mirror of
https://github.com/lscharen/iigs-game-engine.git
synced 2024-11-25 00:30:48 +00:00
Fix offset calc
This commit is contained in:
parent
2013771524
commit
eb548343a7
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user