Guest User

NES Assembly code 27

a guest
Oct 14th, 2014
257
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .inesprg 1 ; 1 PRG Bank
  2. .ineschr 1 ; 1 CHR Bank
  3. .inesmap 0 ; Mapper 0 used
  4. .inesmir 1 ; Mirroring enabled
  5.  
  6. .rsset $0000 ; Variables start from $0000
  7. pointerLo .rs 1 ; Hi/Lo bytes for background data pointers
  8. pointerHi .rs 1
  9. counterLo .rs 1 ; Hi/Lo bytes for 16 bit counter
  10. counterHi .rs 1
  11.  
  12. .bank 0 ; PRG Bank
  13. .org $8000 ; starts from $8000
  14. RESET: ; Reset routine
  15. SEI
  16. CLD
  17. LDX #$40
  18. STX $4017
  19. LDX #$FF
  20. TXS
  21. INX
  22. STX $2000 ; Disable NMI
  23. STX $2001 ; Disable rendering
  24. STX $4010 ; Disable DPCM
  25.  
  26. VBwait1: ; First PPU warm up wait
  27. BIT $2002
  28. BPL VBwait1
  29.  
  30. ClearMem: ;Clear internal memory $0000 - $07FF
  31. LDA #$00
  32. STA $0000, x
  33. STA $0100, x
  34. STA $0200, x
  35. STA $0300, x
  36. STA $0400, x
  37. STA $0500, x
  38. STA $0600, x
  39. STA $0700, x
  40. DEX
  41. CPX #$00
  42. BNE ClearMem
  43.  
  44. VBwait2: ; Second PPU warm up wait
  45. BIT $2002
  46. BPL VBwait2
  47.  
  48. LDA $2002 ; Reset PPU Hi/Lo latch
  49. LDA #$3F ; Store Hi/Lo bytes of the palette address
  50. STA $2006
  51. LDA #$00
  52. STA $2006
  53. LDX #$00
  54.  
  55. PaletteLoad1: ; Load palettes
  56. LDA palette, x
  57. STA $2007
  58. INX
  59. CPX #$1F
  60. BNE PaletteLoad1
  61.  
  62. SetBg: ; Set up information for NMI to update background
  63. LDA #LOW(background)
  64. STA pointerLo
  65. LDA #HIGH(background)
  66. STA pointerHi
  67.  
  68. LDA #$01 ; Enable NMI for background
  69. STA $1E
  70.  
  71. LDA #%10001000 ; Enable NMI
  72. STA $2000
  73. LDA #$00
  74. STA $2005
  75. STA $2005
  76.  
  77. CheckALoop: ; Wait until A is pressed
  78. LDA $1F
  79. AND #%10000000
  80. CMP #%10000000
  81. BNE CheckALoop
  82.  
  83. LDA #LOW(background2) ; Set second background if A is pressed
  84. STA pointerLo
  85. LDA #HIGH(background2)
  86. STA pointerHi
  87.  
  88. LDA #$01 ; Enable NMI flag for background
  89. STA $1E
  90.  
  91. LDA #$80
  92. STA $2000 ; Sprite 1 Y position
  93. STA $2003 ; Sprite 1 X position
  94. STA $2004 ; Sprite 2 Y position
  95. LDA #$88
  96. STA $2007 ; Sprite 2 X position
  97. LDA #$00
  98. STA $2001 ; Sprite 1 tile number
  99. STA $2002 ; Sprite 1 attributes
  100. STA $2005 ; Sprite 2 tile number
  101. STA $2006 ; Sprite 2 attributes
  102.  
  103. LDA #$01 ; Enable NMI flag for sprites
  104. STA $1D
  105.  
  106. MainLoop: ; Main loop
  107. JMP MainLoop
  108.  
  109. ReadP1: ; Set up controller reading
  110. LDA #$01
  111. STA $4016
  112. LDA #$00
  113. STA $4016
  114. LDX #$08
  115.  
  116. ReadP1Loop: ; Read each button and roll them to ZP $1F
  117. LDA $4016
  118. AND #$01
  119. LSR A
  120. ROL $1F
  121. DEX
  122. BNE ReadP1Loop
  123. RTS
  124.  
  125. NMI:
  126. PHA ; Push Accumulator, X register and Y register to Stack
  127. TXA
  128. PHA
  129. TYA
  130. PHA
  131. LDX $1E
  132. CPX #$01
  133. BNE FlagClear ; Check if NMI flag $1E is set
  134.  
  135. FlagSet: ; Set up background update
  136. LDA #$00 ; Disable Rendering
  137. STA $2001
  138.  
  139. LDA $2002 ; Reset PPU Hi/Lo latch
  140. LDA #$20 ; Store Hi/Lo bytes of the background nametables
  141. STA $2006
  142. LDA #$00
  143. STA $2006
  144. LDY #$00
  145. LDX #$04
  146.  
  147. LDA #%00001000 ; Disable NMI
  148. STA $2000
  149.  
  150. BgLoop: ; 16 bit loop for drawing background and loading attributes
  151. LDA [pointerLo], y
  152. STA $2007
  153. INY
  154. BNE BgLoop
  155. INC pointerHi
  156. DEX
  157. BNE BgLoop
  158.  
  159. LDA #$00
  160. STA $1E ; Clear NMI flag for background
  161. LDX $1D ; Check sprite updates
  162. CPX #$01
  163. BNE SkipSprites
  164.  
  165. SpriteUpdate:
  166. LDA #$00 ; Low byte for sprite memory start
  167. STA $2003
  168. LDA #02 ; High byte for sprite memory start
  169. STA $4014
  170. LDA #$00 ; Clear NMI flag for sprites
  171. STA $1D
  172.  
  173. SkipSprites:
  174. LDA #%10001000 ; Enable NMI
  175. STA $2000
  176. JMP ExitNMI ; End NMI
  177.  
  178. FlagClear: ; Read controller and draw background
  179. LDA #%00011110 ; Enable rendering
  180. STA $2001
  181. LDA #$00
  182. STA $2005
  183. STA $2005
  184.  
  185. ExitNMI:
  186. JSR ReadP1
  187. PLA ; Pull Accumulator, X register and Y register from Stack
  188. TAY
  189. PLA
  190. TAX
  191. PLA
  192. RTI ; End NMI
  193.  
  194. background:
  195. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 00 - Row 1
  196. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 01 - Row 1
  197. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 02 - Row 2
  198. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 03 - Row 2
  199. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 04 - Row 3
  200. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 05 - Row 3
  201. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 06 - Row 4
  202. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 07 - Row 4
  203. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 08 - Row 5
  204. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 09 - Row 5
  205. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 0A - Row 6
  206. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 0B - Row 6
  207. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 0C - Row 7
  208. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 0D - Row 7
  209. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 0E - Row 8
  210. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 0F - Row 8
  211. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 10 - Row 9
  212. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 11 - Row 9
  213. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 12 - Row 10
  214. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 13 - Row 10
  215. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 14 - Row 11
  216. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 15 - Row 11
  217. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 16 - Row 12
  218. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 17 - Row 12
  219. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 18 - Row 13
  220. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 19 - Row 13
  221. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 1A - Row 14
  222. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 1B - Row 14
  223. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 1C - Row 15
  224. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 1D - Row 15
  225. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$19,$1B,$0E,$1C ; 1E - Row 16
  226. .db $1C,$30,$0A,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 1F - Row 16
  227. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 20 - Row 17
  228. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 21 - Row 17
  229. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 22 - Row 18
  230. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 23 - Row 18
  231. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 24 - Row 19
  232. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 25 - Row 19
  233. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 26 - Row 20
  234. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 27 - Row 20
  235. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 28 - Row 21
  236. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 29 - Row 21
  237. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 2A - Row 22
  238. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 2B - Row 22
  239. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 2C - Row 23
  240. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 2D - Row 23
  241. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 2E - Row 24
  242. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 2F - Row 24
  243. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 30 - Row 25
  244. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 31 - Row 25
  245. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 32 - Row 26
  246. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 33 - Row 26
  247. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 34 - Row 27
  248. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 35 - Row 27
  249. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 36 - Row 28
  250. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 37 - Row 28
  251. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 38 - Row 29
  252. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 39 - Row 29
  253. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 3A - Row 30
  254. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 3B - Row 30
  255.  
  256. attributes:
  257. .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
  258. .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
  259.  
  260. background2:
  261. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 00 - Row 1
  262. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 01 - Row 1
  263. .db $30,$11,$0E,$15,$15,$18,$30,$20,$18,$1B,$15,$0D,$30,$30,$30,$30 ; 02 - Row 2
  264. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 03 - Row 2
  265. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 04 - Row 3
  266. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 05 - Row 3
  267. .db $30,$16,$22,$30,$17,$0A,$16,$0E,$30,$12,$1C,$30,$17,$16,$18,$1C ; 06 - Row 4
  268. .db $30,$06,$05,$00,$02,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 07 - Row 4
  269. .db $30,$12,$30,$0A,$16,$30,$1D,$11,$0E,$30,$19,$1B,$18,$0C,$0E,$1C ; 08 - Row 5
  270. .db $1C,$18,$1B,$30,$12,$17,$1C,$12,$0D,$0E,$30,$30,$30,$30,$30,$30 ; 09 - Row 5
  271. .db $30,$1D,$11,$12,$1C,$30,$1C,$22,$1C,$1D,$0E,$16,$30,$30,$30,$30 ; 0A - Row 6
  272. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 0B - Row 6
  273. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 0C - Row 7
  274. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 0D - Row 7
  275. .db $30,$12,$30,$0A,$16,$30,$17,$18,$1D,$30,$1C,$1E,$12,$1D,$0A,$0B ; 0E - Row 8
  276. .db $15,$0E,$30,$0F,$18,$1B,$30,$19,$15,$0A,$22,$12,$17,$10,$30,$30 ; 0F - Row 8
  277. .db $30,$1D,$18,$1E,$11,$18,$1E,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 10 - Row 9
  278. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 11 - Row 9
  279. .db $30,$20,$0A,$22,$30,$1D,$18,$18,$30,$16,$0A,$17,$22,$30,$1C,$19 ; 12 - Row 10
  280. .db $1B,$12,$1D,$0E,$1C,$30,$0F,$18,$1B,$30,$16,$0E,$30,$30,$30,$30 ; 13 - Row 10
  281. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 14 - Row 11
  282. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 15 - Row 11
  283. .db $30,$0A,$17,$0D,$30,$0C,$12,$1B,$17,$18,$30,$12,$1C,$30,$1D,$18 ; 16 - Row 12
  284. .db $18,$30,$0D,$1E,$16,$0B,$30,$1D,$18,$30,$30,$30,$30,$30,$30,$30 ; 17 - Row 12
  285. .db $30,$1E,$17,$0D,$0E,$1B,$1C,$1D,$0A,$17,$0D,$30,$16,$22,$30,$18 ; 18 - Row 13
  286. .db $19,$0C,$18,$0D,$0E,$1C,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 19 - Row 13
  287. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 1A - Row 14
  288. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 1B - Row 14
  289. .db $30,$EE,$EF,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 1C - Row 15
  290. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 1D - Row 15
  291. .db $30,$FE,$FF,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 1E - Row 16
  292. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 1F - Row 16
  293. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 20 - Row 17
  294. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 21 - Row 17
  295. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 22 - Row 18
  296. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 23 - Row 18
  297. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 24 - Row 19
  298. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 25 - Row 19
  299. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 26 - Row 20
  300. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 27 - Row 20
  301. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 28 - Row 21
  302. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 29 - Row 21
  303. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 2A - Row 22
  304. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 2B - Row 22
  305. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 2C - Row 23
  306. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 2D - Row 23
  307. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 2E - Row 24
  308. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 2F - Row 24
  309. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 30 - Row 25
  310. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 31 - Row 25
  311. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 32 - Row 26
  312. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 33 - Row 26
  313. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 34 - Row 27
  314. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 35 - Row 27
  315. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 36 - Row 28
  316. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 37 - Row 28
  317. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 38 - Row 29
  318. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 39 - Row 29
  319. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 3A - Row 30
  320. .db $30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30,$30 ; 3B - Row 30
  321.  
  322. attributes2:
  323. .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
  324. .db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
  325.  
  326. palette:
  327. .db $0F,$31,$21,11
  328. .db $0F,$31,$21,11
  329. .db $0F,$31,$21,11
  330. .db $0F,$31,$21,11
  331. .db $0F,$31,$21,11
  332. .db $0F,$31,$21,11
  333. .db $0F,$31,$21,11
  334. .db $0F,$31,$21,11
  335.  
  336. .bank 1
  337. .org $FFFA
  338. .dw NMI
  339. .dw RESET
  340. .dw 0
  341.  
  342. .bank 2
  343. .org $0000
  344. .incbin "Font.chr"
  345. .incbin "Sprites.chr"
RAW Paste Data