2019-01-14 04:48:09 +00:00
|
|
|
TVLINE
|
|
|
|
PLA
|
|
|
|
STA RETADR
|
|
|
|
PLA
|
|
|
|
STA RETADR+1
|
|
|
|
PLA
|
2019-04-26 22:49:10 +00:00
|
|
|
STA :F
|
2019-01-14 04:48:09 +00:00
|
|
|
PLA
|
2019-04-26 22:49:10 +00:00
|
|
|
STA :X
|
2019-01-14 04:48:09 +00:00
|
|
|
PLA
|
2019-04-26 22:49:10 +00:00
|
|
|
STA :Y2
|
2019-01-14 04:48:09 +00:00
|
|
|
PLA
|
2019-04-26 22:49:10 +00:00
|
|
|
STA :Y1
|
2019-01-14 04:48:09 +00:00
|
|
|
LDA ERRCTRL
|
|
|
|
CMP #1
|
|
|
|
BEQ :CHKERR
|
|
|
|
JMP :ERREND
|
|
|
|
:CHKERR
|
|
|
|
LDA :Y1
|
|
|
|
CMP :Y2
|
2019-04-26 22:49:10 +00:00
|
|
|
BCS :ERRTOOHI
|
2019-01-14 04:48:09 +00:00
|
|
|
LDA :Y2
|
|
|
|
CMP #24
|
2019-04-26 22:49:10 +00:00
|
|
|
BCS :ERRYOVF
|
2019-01-14 04:48:09 +00:00
|
|
|
LDA :X
|
2019-04-26 22:49:10 +00:00
|
|
|
CMP #40
|
2019-01-14 04:48:09 +00:00
|
|
|
BCS :ERRXOVF
|
|
|
|
LDA :Y1
|
2019-04-26 22:49:10 +00:00
|
|
|
CMP #24
|
2019-01-14 04:48:09 +00:00
|
|
|
BCS :ERRYOVF
|
|
|
|
JMP :ERREND
|
|
|
|
:ERRTOOHI
|
2019-04-26 22:49:10 +00:00
|
|
|
_ERR #:E_SID;#:E_YHI;#:E_DMP1;#:X;#4
|
2019-01-14 04:48:09 +00:00
|
|
|
JMP :ERREND
|
|
|
|
:ERRXOVF
|
2019-04-26 22:49:10 +00:00
|
|
|
_ERR #:E_SID;#:E_XOF;#:E_DMP1;#:X;#4
|
2019-01-14 04:48:09 +00:00
|
|
|
JMP :ERREND
|
|
|
|
:ERRYOVF
|
2019-04-26 22:49:10 +00:00
|
|
|
_ERR #:E_SID;#:E_YOF;#:E_DMP1;#:X;#4
|
2019-01-14 04:48:09 +00:00
|
|
|
JMP :ERREND
|
|
|
|
:ERREND
|
|
|
|
LDA :Y1
|
|
|
|
LDY :X
|
|
|
|
:LOOP
|
2019-04-26 22:49:10 +00:00
|
|
|
JSR $F847
|
2019-01-14 04:48:09 +00:00
|
|
|
LDA :F
|
2019-04-26 22:49:10 +00:00
|
|
|
STA ($26),Y
|
2019-01-14 04:48:09 +00:00
|
|
|
INC :Y1
|
|
|
|
LDA :Y1
|
2019-04-26 22:49:10 +00:00
|
|
|
CMP :Y2
|
|
|
|
BNE :LOOP ; LOOP
|
2019-01-14 04:48:09 +00:00
|
|
|
:EXIT
|
|
|
|
LDA RETADR+1
|
|
|
|
PHA
|
|
|
|
LDA RETADR
|
|
|
|
PHA
|
|
|
|
RTS
|
|
|
|
:X DS 1
|
|
|
|
:Y1 DS 1
|
|
|
|
:Y2 DS 1
|
|
|
|
:F DS 1
|
|
|
|
:E_SID ASC "TVLINE (TVLIN MACRO)",00
|
|
|
|
:E_DMP1 ASC "DUMPING X(1) Y1(1) Y2(1) F(1)",00
|
|
|
|
:E_YHI ASC "Y1 MUST BE LOWER THAN Y2.",00
|
|
|
|
:E_XOF ASC "X > # OF AVAILABLE COLUMNS.",00
|
|
|
|
:E_YOF ASC "Y > # OF AVAILABLE ROWS",00
|