Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; X is the controller number
- lda mousebyte2,x ; check speed in the second byte read from the mouse
- and #%00110000
- lsr
- lsr
- lsr
- lsr
- cmp #2 ; 2 is fast
- bne :+ ; change to the next speed
- lda #1 ; turn on latch
- sta $4016
- lda $4016,x ; read from controller with latch on
- lda #0
- sta $4016 ; turn off latch
- :
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement