Fixed a bug with odd byte sizes in bank loader

This commit is contained in:
blondie7575 2017-10-08 16:46:35 -07:00
parent 0368468b0e
commit cb390e9895
3 changed files with 21 additions and 1 deletions

Binary file not shown.

View File

@ -96,14 +96,20 @@ copyBytes:
phx
BITS8
sta copyBytesDest+3
sta copyBytesDest2+3
BITS16
plx
txa
and #1
bne copyBytesOdd
copyBytesEven:
dex
dex
copyBytesLoop:
lda LOADBUFFER,x
copyBytesDest:
sta $010000,x
dex
@ -111,6 +117,14 @@ copyBytesDest:
bpl copyBytesLoop
rts
copyBytesOdd:
dex
BITS8A
lda LOADBUFFER,x
copyBytesDest2:
sta $010000,x
BITS16
bra copyBytesEven
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

View File

@ -10,6 +10,12 @@
.endmacro
.macro BITS8A
sep #%00100000
.a8
.endmacro
.macro BITS8
sep #%00110000
OP8