mirror of
https://github.com/a2-4am/a2fc.system.git
synced 2024-09-29 18:56:58 +00:00
move softswitches outside auxmem copy loop now that we're running from the stack page
This commit is contained in:
parent
a46b819a9d
commit
e59fd225db
@ -58,17 +58,16 @@ Open
|
|||||||
;DHGRCopy
|
;DHGRCopy
|
||||||
sta $C00A
|
sta $C00A
|
||||||
sta $C000
|
sta $C000
|
||||||
.writeToAux
|
|
||||||
sta $C005 ; read from mainmem, write to auxmem
|
sta $C005 ; read from mainmem, write to auxmem
|
||||||
.copya lda $2000,x
|
.copya lda $2000,x
|
||||||
.copyb sta $2000,x
|
.copyb sta $2000,x
|
||||||
inx
|
inx
|
||||||
bne .copya
|
bne .copya
|
||||||
sta $C004 ; read/write from mainmem
|
|
||||||
inc .copya+2
|
inc .copya+2
|
||||||
inc .copyb+2
|
inc .copyb+2
|
||||||
bit .copyb+2
|
bit .copyb+2
|
||||||
bvc .writeToAux ; loop until address hits $4000
|
bvc .copya ; loop until address hits $4000
|
||||||
|
sta $C004 ; read/write from mainmem
|
||||||
jsr Read
|
jsr Read
|
||||||
Close
|
Close
|
||||||
php
|
php
|
||||||
|
Loading…
Reference in New Issue
Block a user