mirror of
https://github.com/lscharen/iigs-game-engine.git
synced 2025-02-20 05:29:10 +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
|
jsr HandleKeys ; Do the generic key handlers
|
||||||
bcs :do_more
|
bcs :do_more
|
||||||
brl :do_render
|
bra :evt_loop
|
||||||
:do_more
|
:do_more
|
||||||
and #$007F
|
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
|
:do_render jsr :next_frame
|
||||||
brl :evt_loop
|
brl :evt_loop
|
||||||
|
|
||||||
:next_frame
|
:next_frame
|
||||||
; inc ScreenX
|
pei ScreenX
|
||||||
; inc ScreenY
|
pei ScreenY
|
||||||
; pei ScreenX
|
_GTESetBG0Origin
|
||||||
; pei ScreenY
|
|
||||||
; _GTESetBG0Origin
|
|
||||||
|
|
||||||
pea $FFFE
|
pea $FFFE
|
||||||
_GTERender
|
_GTERender
|
||||||
|
@ -653,7 +653,7 @@ _RenderLite
|
|||||||
; jsr _DrawFinalPass
|
; jsr _DrawFinalPass
|
||||||
|
|
||||||
ldx #0
|
ldx #0
|
||||||
lda ScreenHeight
|
ldy ScreenHeight
|
||||||
jsr _BltRange
|
jsr _BltRange
|
||||||
|
|
||||||
lda StartYMod208 ; Restore the fields back to their original state
|
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.
|
; physical word index that each instruction is intended to be placed at is in the comment.
|
||||||
bra *-3 ; wrap around
|
bra *-3 ; wrap around
|
||||||
CodeFieldEvenBRA ENT
|
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 *+9 ; 80
|
||||||
bra *+12 ; 79
|
bra *+12 ; 79
|
||||||
bra *+15 ; 78
|
bra *+15 ; 78
|
||||||
|
Loading…
x
Reference in New Issue
Block a user