2019-01-23 19:12:29 +00:00
|
|
|
BINSAVE
|
|
|
|
PLA
|
|
|
|
STA RETADR
|
|
|
|
PLA
|
|
|
|
STA RETADR+1
|
|
|
|
PLA
|
2019-04-26 22:49:10 +00:00
|
|
|
STA ADDR2
|
2019-01-23 19:12:29 +00:00
|
|
|
PLA
|
|
|
|
STA ADDR2+1
|
|
|
|
LDA #1
|
2019-04-26 22:49:10 +00:00
|
|
|
STA $AAB6
|
|
|
|
STA $75+1
|
|
|
|
STA $33
|
2019-01-23 19:12:29 +00:00
|
|
|
LDA ERRCTRL
|
|
|
|
CMP #1
|
2019-04-26 22:49:10 +00:00
|
|
|
BEQ :CHKERR0
|
2019-01-23 19:12:29 +00:00
|
|
|
JMP :ERREND
|
|
|
|
:CHKERR0
|
2019-04-26 22:49:10 +00:00
|
|
|
LDA #$FF
|
2019-01-23 19:12:29 +00:00
|
|
|
STA $D8
|
|
|
|
LDA #<:CHKERR
|
2019-04-26 22:49:10 +00:00
|
|
|
STA $9D5A
|
2019-01-23 19:12:29 +00:00
|
|
|
LDA #>:CHKERR
|
|
|
|
STA $9D5B
|
|
|
|
JMP :ERREND
|
|
|
|
:CHKERR
|
|
|
|
LDY #0
|
2019-04-26 22:49:10 +00:00
|
|
|
STY $D8
|
|
|
|
_ERR #:E_SID;#:E_MSG;#:E_DUMP;#ADDR2;#2
|
2019-01-23 19:12:29 +00:00
|
|
|
BRK
|
|
|
|
:ERREND
|
|
|
|
LDA #$8D
|
|
|
|
JSR FCOUT
|
2019-04-26 22:49:10 +00:00
|
|
|
LDA #$84
|
2019-01-23 19:12:29 +00:00
|
|
|
JSR FCOUT
|
2019-04-26 22:49:10 +00:00
|
|
|
LDA #$C2
|
2019-01-23 19:12:29 +00:00
|
|
|
JSR FCOUT
|
2019-04-26 22:49:10 +00:00
|
|
|
LDA #$D3
|
2019-01-23 19:12:29 +00:00
|
|
|
JSR FCOUT
|
2019-04-26 22:49:10 +00:00
|
|
|
LDA #$C1
|
2019-01-23 19:12:29 +00:00
|
|
|
JSR FCOUT
|
2019-04-26 22:49:10 +00:00
|
|
|
LDA #$D6
|
2019-01-23 19:12:29 +00:00
|
|
|
JSR FCOUT
|
2019-04-26 22:49:10 +00:00
|
|
|
LDA #$C5
|
2019-01-23 19:12:29 +00:00
|
|
|
JSR FCOUT
|
2019-04-26 22:49:10 +00:00
|
|
|
LDA #$A0
|
2019-01-23 19:12:29 +00:00
|
|
|
JSR FCOUT
|
|
|
|
LDY #0
|
|
|
|
LDA (ADDR2),Y
|
|
|
|
STA :SLEN
|
|
|
|
LDY #1
|
|
|
|
:LP
|
|
|
|
LDA (ADDR2),Y
|
|
|
|
JSR FCOUT
|
|
|
|
INY
|
|
|
|
CPY :SLEN
|
|
|
|
BCC :LP
|
|
|
|
BEQ :LP
|
|
|
|
LDA #$8D
|
|
|
|
JSR FCOUT
|
|
|
|
LDA RETADR+1
|
|
|
|
PHA
|
|
|
|
LDA RETADR
|
|
|
|
PHA
|
|
|
|
RTS
|
|
|
|
:SLEN DS 1
|
|
|
|
:E_SID ASC "BINSAVE (BSAV MACRO)",00
|
|
|
|
:E_DUMP ASC "DUMPING STRING ADDRESS...",00
|
|
|
|
:E_MSG ASC "INPUT/OUTPUT ERROR!!!",00
|