Fix plx/pla ordering in tile dispatcher

This commit is contained in:
Lucas Scharenbroich 2021-08-14 21:56:08 -05:00
parent 1492ac3b36
commit 2540359f60

View File

@ -480,65 +480,66 @@ CopyTileMToDyn
; This should never be called, because empty control value should be fast-pathed
solid
plx
pla
rts
plx
brl CopyTileMem
solid_hflip
plx
pla
clc
adc #64 ; Advance to the flipped version
plx
brl CopyTileMem
solid_vflip
plx
pla
plx
brl CopyTileMemV
solid_hvflip
plx
pla
clc
adc #64 ; Advance to the flipped version
plx
brl CopyTileMemV
masked
plx
pla
plx
brl CopyTileMemM
masked_hflip
plx
pla
clc
adc #64 ; Advance to the flipped version
plx
brl CopyTileMemM
masked_vflip
plx
pla
plx
brl CopyTileMemMV
masked_hvflip
plx
pla
clc
adc #64 ; Advance to the flipped version
plx
brl CopyTileMemMV
dynamic
plx
pla
asl
asl
xba ; Undo the x128 we just need x2
plx
brl DynamicTile
dyn_masked
plx
pla
plx
rts
; CopyTile
;
; A low-level function that copies 8x8 tiles directly into the code field space.
@ -598,50 +599,3 @@ CopyTile
plb ; restore the data bank and return
rts