Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Robin's Joystick Routines
- ; Adapted from 8bitshowandtell.
- joy2 = $dc00
- ;lda #$ff
- ;cmp $d012
- ;bne gameloop
- up
- lda joy2
- and #1
- bne down
- dec spry
- down
- lda joy2
- and #2
- bne left
- inc spry
- left
- lda joy2
- and #4
- bne right
- dec sprx
- lda spry
- cmp #$ff
- bne right
- dec sprx+1
- right
- lda joy2
- and #8
- bne button
- inc sprx
- bne button
- inc sprx+1
- button
- lda joy2
- and #16
- bne updateall
- inc $d020
- updateall
Add Comment
Please, Sign In to add comment