Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;add JumpTimer: .rs 1 to top of document (called zero page)
- ReadA:
- LDA $4016
- AND #$00000001
- BEQ ReadADone
- LDA JumpTimer ;if JumpTimer hasn't been incremented 10 times, increment JumpTimer
- CMP #$10
- BCC .IncrementTimer
- DEC $0200 ;if it gets to here, JumpTimer has been incremented 10 times, and can now decrement the sprite
- LDA #$00
- STA JumpTimer
- JMP ReadADone
- .IncrementTimer:
- INC JumpTimer
- ReadADone:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement