Fix offset calc

This commit is contained in:
Lucas Scharenbroich 2023-06-26 13:19:12 -05:00
parent 2013771524
commit eb548343a7
3 changed files with 13 additions and 8 deletions

View File

@ -107,19 +107,24 @@ SlowSprites equ 0
jsr HandleKeys ; Do the generic key handlers
bcs :do_more
brl :do_render
bra :evt_loop
:do_more
and #$007F
cmp #'a'
bne :not_a
dec ScreenX
:not_a cmp #'s'
bne :not_s
inc ScreenX
:not_s
:do_render jsr :next_frame
brl :evt_loop
:next_frame
; inc ScreenX
; inc ScreenY
; pei ScreenX
; pei ScreenY
; _GTESetBG0Origin
pei ScreenX
pei ScreenY
_GTESetBG0Origin
pea $FFFE
_GTERender

View File

@ -653,7 +653,7 @@ _RenderLite
; jsr _DrawFinalPass
ldx #0
lda ScreenHeight
ldy ScreenHeight
jsr _BltRange
lda StartYMod208 ; Restore the fields back to their original state

View File

@ -137,7 +137,7 @@ JTableOffset ENT
; physical word index that each instruction is intended to be placed at is in the comment.
bra *-3 ; wrap around
CodeFieldEvenBRA ENT
bra *+6 ; 81 -- need to skip over the JMP loop that passed control back
bra *+6 ; 81 -- need to skip over the JMP loop that passes control back
bra *+9 ; 80
bra *+12 ; 79
bra *+15 ; 78