Skip to content

Commit e9926a2

Browse files
committed
darkmode: remove unneeded 6 bytes
1 parent 8df636a commit e9926a2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/gamemodestate/initbackground.asm

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,6 @@ savestate_nametable_patch:
255255
.byte $23,$57,$3D,$3E,$3E,$3E,$3E,$3E,$3E,$3F,$FD
256256

257257
drawDarkMode:
258-
lda currentPpuCtrl
259-
and #%11111011
260-
sta tmp1
261258
ldx #$00
262259
@darkLoop:
263260
lda darkmode_stripes,x
@@ -274,7 +271,7 @@ drawDarkMode:
274271
rol
275272
asl
276273
asl
277-
ora tmp1
274+
ora currentPpuCtrl
278275
sta PPUCTRL
279276
lda #$FF
280277
@darkTiles:

0 commit comments

Comments
 (0)