From 8582ecb3208f9e58b6df65f0913912662132c235 Mon Sep 17 00:00:00 2001 From: Lucas Scharenbroich Date: Sun, 22 May 2022 21:57:52 -0500 Subject: [PATCH] Fix weird search/replace bug --- src/blitter/Blitter.s | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/blitter/Blitter.s b/src/blitter/Blitter.s index 4b149bc..0c5b4ad 100644 --- a/src/blitter/Blitter.s +++ b/src/blitter/Blitter.s @@ -18,7 +18,7 @@ _BltRange dey tya ; Get the address of the line that we want to return from - adc StartY ; and create a pointer to it + adc StartYMod208 ; and create a pointer to it asl tay lda BTableLow,y @@ -27,7 +27,7 @@ _BltRange sta :exit_ptr+2 txa ; get the first line (0 - 199) - adc StartY ; add in the virtual offset (0, 207) -- max value of 406 + adc StartYMod208 ; add in the virtual offset (0, 207) -- max value of 406 asl tax ; this is the offset into the blitter table @@ -88,6 +88,5 @@ stk_save lda #0000 ; load the stack sta [:exit_ptr],y rep #$20 -blt_out plb ; restore the bank rts