Advertisement
PokemonMaster124

Movement Problem 2

Nov 29th, 2022
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. UpPressed1:
  2. Test_Button buttons1, BUTTON_UP
  3. beq UpDone1
  4. ldx $0214
  5. cpx #$08
  6. beq DownDone1
  7. dec $0204
  8. dec $0208
  9. dec $020C
  10. dec $0210
  11. dec $0214
  12. UpDone1:
  13. rts
  14. DownPressed1:
  15. Test_Button buttons1, BUTTON_DOWN
  16. beq DownDone1
  17. ldx $0214
  18. cpx #$E0
  19. beq DownDone1
  20. inc $0204
  21. inc $0208
  22. inc $020C
  23. inc $0210
  24. inc $0214
  25. DownDone1:
  26. rts
  27. UpPressed2:
  28. Test_Button buttons2, BUTTON_UP
  29. beq UpDone2
  30. dec $0218
  31. dec $021C
  32. dec $0220
  33. dec $0224
  34. dec $0228
  35. UpDone2:
  36. rts
  37. DownPressed2:
  38. Test_Button buttons2, BUTTON_DOWN
  39. beq DownDone2
  40. inc $0218
  41. inc $021C
  42. inc $0220
  43. inc $0224
  44. inc $0228
  45. DownDone2:
  46. rts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement