Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. .include "init.s"
  2.  
  3. ;VRAM destination addresses
  4. VRAM_MAP_LOC = $9000
  5. VRAM_TILES_LOC = $0000
  6.  
  7. Main:
  8. initsnes
  9. lda #%11000000 ;have the automatic read of the SNES read the first pair of JoyPads
  10. sta $4201
  11. lda #%10000001 ;Enable NMI and JoyPad $81
  12. sta $4200
  13.  
  14. sep #%00100000
  15. lda #%10000000
  16. sta $2100
  17. lda #%00001111
  18. sta $2100
  19.  
  20. : wai
  21. bra :-
  22.  
  23. vblankhandler:
  24.  
  25. lda $4218 ;joy1read
  26. and #%00010000 ;up
  27. beq :+
  28.  
  29. shitmoveup:
  30.  
  31. :
  32.  
  33. lda $4218 ;joy1read
  34. and #%00100000 ;down
  35. beq :+
  36.  
  37. shitmovedown:
  38.  
  39. :
  40.  
  41. rtl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement