mirror of
https://github.com/blondie7575/GSCats.git
synced 2024-11-05 02:08:21 +00:00
Fixed a bug with odd byte sizes in bank loader
This commit is contained in:
parent
0368468b0e
commit
cb390e9895
BIN
gscats.2mg
BIN
gscats.2mg
Binary file not shown.
16
loader.s
16
loader.s
@ -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
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user