Advertisement
Guest User

Untitled

a guest
May 3rd, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. ;;add JumpTimer: .rs 1 to top of document (called zero page)
  2.  
  3. ReadA:
  4. LDA $4016
  5. AND #$00000001
  6. BEQ ReadADone
  7.  
  8. LDA JumpTimer ;if JumpTimer hasn't been incremented 10 times, increment JumpTimer
  9. CMP #$10
  10. BCC .IncrementTimer
  11. DEC $0200 ;if it gets to here, JumpTimer has been incremented 10 times, and can now decrement the sprite
  12. LDA #$00
  13. STA JumpTimer
  14. JMP ReadADone
  15. .IncrementTimer:
  16. INC JumpTimer
  17. ReadADone:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement