fix nmi scroll update

This commit is contained in:
Safyrus 2022-04-06 20:21:03 +02:00
parent fe7b09d97b
commit ae0f787453
1 changed files with 3 additions and 4 deletions

View File

@ -199,10 +199,9 @@ NMI:
LDX scroll_y LDX scroll_y
STX PPU_SCROLL STX PPU_SCROLL
LDX #$00 ; set bit 15 of t in PPU to 0 ; set high order bit of X and Y
STX PPU_ADDR ; (because, for unknown reason) LDA ppu_ctrl_val
LDX #$00 ; to fix scrolling in the wrong nametable. STA PPU_CTRL
STX PPU_ADDR
@scroll_end: @scroll_end:
@done: @done: