diff --git a/include/nes_hardware.mfk b/include/nes_hardware.mfk index 97734397..03984036 100644 --- a/include/nes_hardware.mfk +++ b/include/nes_hardware.mfk @@ -72,7 +72,8 @@ inline asm byte read_ppu_status() { ? RTS } -inline asm void ppu_set_scroll(word a, word x) { +inline asm void ppu_set_scroll(byte a, byte x) { + BIT ppu_status ! STA ppu_scroll ! STX ppu_scroll ? RTS