2019-01-14 04:48:09 +00:00
|
|
|
CURSFOR
|
|
|
|
CLC
|
|
|
|
ADC CURSH
|
|
|
|
STA CURSH
|
|
|
|
LDA ERRCTRL
|
|
|
|
CMP #1
|
|
|
|
BEQ :CHKERR
|
|
|
|
JMP :ERREND
|
|
|
|
:CHKERR
|
|
|
|
LDA CURSH
|
2019-04-26 22:49:10 +00:00
|
|
|
CMP #40
|
2019-01-14 04:48:09 +00:00
|
|
|
BCS :XOVF
|
|
|
|
JMP :ERREND
|
|
|
|
:XOVF
|
2019-04-26 22:49:10 +00:00
|
|
|
_ERR #:E_SID;#:E_XOF;#:E_DMP1;#RETURN;#10
|
2019-01-14 04:48:09 +00:00
|
|
|
:ERREND
|
|
|
|
JSR VTAB
|
|
|
|
RTS
|
|
|
|
:E_SID ASC "CURSFOR (CURF MACRO)",00
|
|
|
|
:E_DMP1 ASC "DUMPING RETURN BLOCK...",00
|
|
|
|
:E_XOF ASC "CURSOR X OVERFLOW: X <> MIN/MAX",00
|
|
|
|
CURSBAK
|
|
|
|
SEC
|
|
|
|
STA SCRATCH
|
|
|
|
LDA CURSH
|
|
|
|
SBC SCRATCH
|
|
|
|
STA CURSH
|
|
|
|
LDA ERRCTRL
|
|
|
|
CMP #1
|
|
|
|
BEQ :CHKERR
|
|
|
|
JMP :ERREND
|
|
|
|
:CHKERR
|
|
|
|
LDA CURSH
|
2019-04-26 22:49:10 +00:00
|
|
|
CMP #40
|
2019-01-14 04:48:09 +00:00
|
|
|
BCS :XOVF
|
|
|
|
JMP :ERREND
|
|
|
|
:XOVF
|
2019-04-26 22:49:10 +00:00
|
|
|
_ERR #:E_SID;#:E_XOF;#:E_DMP1;#RETURN;#10
|
2019-01-14 04:48:09 +00:00
|
|
|
:ERREND
|
|
|
|
JSR VTAB
|
|
|
|
RTS
|
|
|
|
:E_SID ASC "CURSBAK (CURB MACRO)",00
|
|
|
|
:E_DMP1 ASC "DUMPING RETURN BLOCK...",00
|
|
|
|
:E_XOF ASC "CURSOR X OVERFLOW: X <> MIN/MAX",00
|
|
|
|
CURSDN
|
|
|
|
CLC
|
|
|
|
ADC CURSV
|
|
|
|
STA CURSV
|
|
|
|
LDA ERRCTRL
|
|
|
|
CMP #1
|
|
|
|
BEQ :CHKERR
|
|
|
|
JMP :ERREND
|
|
|
|
:CHKERR
|
|
|
|
LDA CURSV
|
2019-04-26 22:49:10 +00:00
|
|
|
CMP #24
|
2019-01-14 04:48:09 +00:00
|
|
|
BCS :YOVF
|
|
|
|
JMP :ERREND
|
|
|
|
:YOVF
|
2019-04-26 22:49:10 +00:00
|
|
|
_ERR #:E_SID;#:E_YOF;#:E_DMP1;#RETURN;#10
|
2019-01-14 04:48:09 +00:00
|
|
|
:ERREND
|
|
|
|
JSR VTAB
|
|
|
|
RTS
|
|
|
|
:E_SID ASC "CURSDN (CURD MACRO)",00
|
|
|
|
:E_DMP1 ASC "DUMPING RETURN BLOCK...",00
|
|
|
|
:E_YOF ASC "CURSOR Y OVERFLOW: Y <> MIN/MAX",00
|
|
|
|
CURSUP
|
|
|
|
SEC
|
|
|
|
STA SCRATCH
|
|
|
|
LDA CURSV
|
|
|
|
SBC SCRATCH
|
|
|
|
STA CURSV
|
|
|
|
LDA ERRCTRL
|
|
|
|
CMP #1
|
|
|
|
BEQ :CHKERR
|
|
|
|
JMP :ERREND
|
|
|
|
:CHKERR
|
|
|
|
LDA CURSV
|
2019-04-26 22:49:10 +00:00
|
|
|
CMP #24
|
2019-01-14 04:48:09 +00:00
|
|
|
BCS :YOVF
|
|
|
|
JMP :ERREND
|
|
|
|
:YOVF
|
2019-04-26 22:49:10 +00:00
|
|
|
_ERR #:E_SID;#:E_YOF;#:E_DMP1;#RETURN;#10
|
2019-01-14 04:48:09 +00:00
|
|
|
:ERREND
|
|
|
|
JSR VTAB
|
|
|
|
RTS
|
|
|
|
:E_SID ASC "CURSUP (CURU MACRO)",00
|
|
|
|
:E_DMP1 ASC "DUMPING RETURN BLOCK...",00
|
|
|
|
:E_YOF ASC "CURSOR Y OVERFLOW: Y <> MIN/MAX",00
|