fix nmi scroll update
This commit is contained in:
parent
fe7b09d97b
commit
ae0f787453
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue