mirror of
https://github.com/zellyn/a2audit.git
synced 2024-06-08 05:29:36 +00:00
Use custom copy-to-aux to remove need for Cxxx ROM
This commit is contained in:
parent
3f45cceec8
commit
06755ae704
|
@ -21,14 +21,6 @@
|
||||||
PCL=$3A
|
PCL=$3A
|
||||||
PCH=$3B
|
PCH=$3B
|
||||||
|
|
||||||
;; AUXMOVE locations
|
|
||||||
;; $3C
|
|
||||||
;; $3D
|
|
||||||
;; $3E
|
|
||||||
;; $3F
|
|
||||||
;; $42
|
|
||||||
;; $43
|
|
||||||
|
|
||||||
;; SHASUM locations
|
;; SHASUM locations
|
||||||
!addr SRC = $06
|
!addr SRC = $06
|
||||||
!addr DST = $08
|
!addr DST = $08
|
||||||
|
@ -98,8 +90,6 @@
|
||||||
READ_HRAMRD = $C012
|
READ_HRAMRD = $C012
|
||||||
READ_VBL = $C019
|
READ_VBL = $C019
|
||||||
|
|
||||||
;; CXXX utility routine locations
|
|
||||||
AUXMOVE = $C311
|
|
||||||
;; Monitor locations.
|
;; Monitor locations.
|
||||||
HOME = $FC58
|
HOME = $FC58
|
||||||
COUT = $FDED
|
COUT = $FDED
|
||||||
|
@ -250,19 +240,25 @@ standard_fixup:
|
||||||
|
|
||||||
COPYTOAUX
|
COPYTOAUX
|
||||||
;; Use AUXMOVE routine to copy the whole program to AUX memory.
|
;; Use AUXMOVE routine to copy the whole program to AUX memory.
|
||||||
sta RESET_SLOTC3ROM
|
jsr RESETALL
|
||||||
lda #<START
|
lda #<START
|
||||||
sta $3C
|
sta SRC
|
||||||
sta $42
|
|
||||||
lda #>START
|
lda #>START
|
||||||
sta $3D
|
sta SRC+1
|
||||||
sta $43
|
sta SET_RAMWRT
|
||||||
lda #<(LASTSTRING-1)
|
ldy #0
|
||||||
sta $3E
|
- lda (SRC),y
|
||||||
lda #>(LASTSTRING-1)
|
sta (SRC),y
|
||||||
sta $3F
|
inc SRC
|
||||||
sec ; Move from main to aux memory.
|
bne +
|
||||||
jsr AUXMOVE
|
inc SRC+1
|
||||||
|
+ lda SRC
|
||||||
|
cmp #<(LASTSTRING)
|
||||||
|
bne -
|
||||||
|
lda SRC+1
|
||||||
|
cmp #>(LASTSTRING)
|
||||||
|
bne -
|
||||||
|
sta RESET_RAMWRT
|
||||||
rts
|
rts
|
||||||
|
|
||||||
; !if * != STRINGS {
|
; !if * != STRINGS {
|
||||||
|
|
BIN
audit/audit.dsk
BIN
audit/audit.dsk
Binary file not shown.
Loading…
Reference in New Issue
Block a user