Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .include "init.s"
- ;VRAM destination addresses
- VRAM_MAP_LOC = $9000
- VRAM_TILES_LOC = $0000
- Main:
- initsnes
- lda #%11000000 ;have the automatic read of the SNES read the first pair of JoyPads
- sta $4201
- lda #%10000001 ;Enable NMI and JoyPad $81
- sta $4200
- sep #%00100000
- lda #%10000000
- sta $2100
- lda #%00001111
- sta $2100
- : wai
- bra :-
- vblankhandler:
- lda $4218 ;joy1read
- and #%00010000 ;up
- beq :+
- shitmoveup:
- :
- lda $4218 ;joy1read
- and #%00100000 ;down
- beq :+
- shitmovedown:
- :
- rtl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement