I dropped WLA for CA65 and added the SNESGSS code.
Everything is OK for now, but I often have problems with the differences between these assemblers:
WLA-65816 code:
Copies from Bank03 2048 bytes BIN to WRAM $001000:
I can't figure out how to do the same thing in CA65...
Everything is OK for now, but I often have problems with the differences between these assemblers:
WLA-65816 code:
Copies from Bank03 2048 bytes BIN to WRAM $001000:
Code:
PHB; Preserve Data Bank.REP#$30; Sets A, X and Y to 16-Bit mode.LDA.W#$07FF; Specifies the amount of bytes to transfer, plus 1).LDX.W#BGR1; Specifies the high and low bytes of the data source memory address.LDY.W#$1000; Specifies the high and low bytes of the destination memory address.MVN$03,$00; BANK SRC -> BANK DST.PLBBGR1:.INCBIN "BGR1.map"
I can't figure out how to do the same thing in CA65...
Code:
PHB; Preserve Data Bank.REP #$30; Sets A, X and Y to 16-Bit mode.LDA #$07FF; Specifies the amount of bytes to transfer, plus 1).;LDX BGR1; In CA65 I have a compilation error so I can't use "#" before the label.LDX #.LOWORD(BGR1); Doesn't work.LDY #$1000; Specifies the high and low bytes of the destination memory address.MVN $03,$00; BANK SRC -> BANK DST.PLBBGR1:.INCBIN "BGR1.map"
Statistics: Posted by sdm — Tue Apr 23, 2024 6:42 am