Code!TableBytes = DATAEND-DATA
JMP MarioBelow : JMP MarioAbove : JMP MarioSide
JMP Return : JMP Return : JMP Return : JMP Return
MarioAbove:
MarioBelow:
MarioSide:
LDA #$01
STA $7FFF0F
PHB
REP #$30 ;16-bit AXY
LDA.w #!TableBytes ;Amount of bytes to transfer
LDX.w #DATA ;Low + High bytes of src
LDY.w #$FF00 ;Low + High bytes of dest
db $54,$7F,DATA>>16 ;You don't need to set the bank manually
SEP #$30 ;8-bit AXY
PLB
Return: RTL
;LEVEL NAME DATA GOES HERE. --v
DATA:
db $FC,$1C,$0A,$1F,$0E,$FC,$22,$18,$1E,$1B,$FC,$1D,$12,$16,$0E,$FC
db $0B,$22,$FC,$1E,$1C,$12,$17,$10,$FC,$16,$1F,$17,$28,$28,$FC,$FC
DATAEND: