File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -262,21 +262,20 @@ darkBuffer := playfield ; cleared right after in initGameState
262
262
sta PPUADDR
263
263
lda PPUDATA
264
264
265
- ldx #0
265
+ ldx #15
266
266
@copyToBuffer:
267
267
lda PPUDATA
268
268
sta darkBuffer, x
269
- inx
270
- cpx #16
271
- bne @copyToBuffer
269
+ dex
270
+ bpl @copyToBuffer
272
271
273
272
; reset PPUADDR
274
273
lda tmpX
275
274
sta PPUADDR
276
275
lda tmpY
277
276
sta PPUADDR
278
277
279
- ldx #0
278
+ ldx #15
280
279
@copyToNametable:
281
280
lda darkBuffer, x
282
281
@@ -297,9 +296,8 @@ darkBuffer := playfield ; cleared right after in initGameState
297
296
:
298
297
299
298
sta PPUDATA
300
- inx
301
- cpx #16
302
- bne @copyToNametable
299
+ dex
300
+ bpl @copyToNametable
303
301
304
302
clc
305
303
lda tmpY
@@ -309,9 +307,6 @@ darkBuffer := playfield ; cleared right after in initGameState
309
307
inc tmpX
310
308
@noverflow:
311
309
312
- sec
313
- lda tmpZ
314
- sbc #1
315
- sta tmpZ
310
+ dec tmpZ
316
311
bne @processChunk
317
312
rts
You can’t perform that action at this time.
0 commit comments