Guest User

Untitled

a guest
Oct 21st, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. lda #$01
  2. sta $1000
  3. lda #$03
  4. sta $1000
  5. clx
  6. .loop0
  7. lda #$01
  8. sta $1000
  9.  
  10. lda #$24
  11. .loop1
  12. dec a
  13. bne .loop1 ; delay for mouse to respond?
  14.  
  15. lda $1000
  16. and #$0f
  17. sta __gamepad_0_hi,x ;sta $2c63,x
  18. stz $1000
  19. pha
  20. pla
  21. pha
  22. pla
  23. lda $1000
  24. and #$0f
  25. sta __gamepad_0_lo,x ;$2c68,x
  26. inx
  27. cpx #$05
  28. bcc .loop0
  29. lda #$01
  30. sta $1000
  31. lda #$03
  32. sta $1000
  33. clx
  34. .loop2
  35. lda #$01
  36. sta $1000
  37. pha
  38. pla
  39. pha
  40. pla
  41. lda $1000
  42. and #$0f
  43. sta __gamepad_1_hi,x ;$2c6d,x
  44. stz $1000
  45. pha
  46. pla
  47. pha
  48. pla
  49. lda $1000
  50. and #$0f
  51. sta __gamepad_1_lo,x ;$2c72,x
  52. inx
  53. cpx #$05
  54. bcc .loop2
  55. lda #$01
  56. sta $1000
  57. lda #$03
  58. sta $1000
  59. clx
  60. .loop3
  61. lda #$01
  62. sta $1000
  63. pha
  64. pla
  65. pha
  66. pla
  67. lda $1000
  68. and #$0f
  69. sta __gamepad_2_hi,x ;$2c77,x
  70. stz $1000
  71. pha
  72. pla
  73. pha
  74. pla
  75. lda $1000
  76. and #$0f
  77. sta __gamepad_2_lo,x ;$2c7c,x
  78. inx
  79. cpx #$05
  80. bcc .loop3
  81. lda #$01
  82. sta $1000
  83. lda #$03
  84. sta $1000
  85. clx
  86. .loop4
  87. lda #$01
  88. sta $1000
  89. pha
  90. pla
  91. pha
  92. pla
  93. lda $1000
  94. and #$0f
  95. sta __gamepad_3_hi,x ;$2c81,x
  96. stz $1000
  97. pha
  98. pla
  99. pha
  100. pla
  101. lda $1000
  102. and #$0f
  103. sta __gamepad_3_lo,x ;$2c86,x
  104. inx
  105. cpx #$05
  106. bcc .loop4
  107. rts
Add Comment
Please, Sign In to add comment