From af58b16e663344d58385a18a19cfebc860ce9e9c Mon Sep 17 00:00:00 2001 From: Karol Stasiak Date: Fri, 12 Jul 2019 13:31:10 +0200 Subject: [PATCH] Better scrolling on NES --- include/nes_hardware.mfk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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