2021-09-04 21:52:35 +00:00
|
|
|
|
2021-09-05 21:04:52 +00:00
|
|
|
lst off
|
|
|
|
cas se
|
|
|
|
rel
|
|
|
|
xc
|
|
|
|
xc
|
|
|
|
|
|
|
|
use vt.equ
|
|
|
|
|
2021-09-04 21:52:35 +00:00
|
|
|
|
|
|
|
*control chars
|
|
|
|
ext draw_char,update_cursor
|
|
|
|
|
|
|
|
control ent
|
|
|
|
|
|
|
|
asl
|
|
|
|
tax
|
|
|
|
jmp (:table,x)
|
|
|
|
|
|
|
|
:table
|
|
|
|
dw :rts ; ^@
|
|
|
|
dw :rts ; ^A
|
|
|
|
dw :rts ; ^B
|
|
|
|
dw :rts ; ^C
|
|
|
|
dw :rts ; ^D
|
|
|
|
dw enq ; ^E
|
|
|
|
dw :rts ; ^F
|
|
|
|
dw bel ; ^G
|
|
|
|
dw bs ; ^H
|
|
|
|
dw tab ; ^I
|
|
|
|
dw lf ; ^J
|
|
|
|
dw vt ; ^K
|
|
|
|
dw ff ; ^L
|
|
|
|
dw cr ; ^M
|
|
|
|
dw so ; ^N
|
|
|
|
dw si ; ^O
|
|
|
|
dw :rts ; ^P
|
|
|
|
dw xon ; ^Q
|
|
|
|
dw :rts ; ^R
|
|
|
|
dw xoff ; ^S
|
|
|
|
dw :rts ; ^T
|
|
|
|
dw :rts ; ^U
|
|
|
|
dw :rts ; ^V
|
|
|
|
dw :rts ; ^W
|
|
|
|
dw can ; ^X
|
|
|
|
dw :rts ; ^Y
|
|
|
|
dw sub ; ^Z
|
|
|
|
dw esc ; ^[
|
|
|
|
dw :rts ; ^\
|
|
|
|
dw :rts ; ^]
|
|
|
|
dw :rts ; ^^
|
|
|
|
dw :rts ; ^_
|
|
|
|
|
|
|
|
:rts rts
|
|
|
|
|
|
|
|
enq
|
|
|
|
* send answer back message.
|
|
|
|
* answer back message is a user-controllable string of text sent as-is
|
|
|
|
* (with no specific terminator character)
|
|
|
|
rts
|
|
|
|
bel
|
|
|
|
* todo - trigger nice ensoniq beep.
|
|
|
|
rts
|
|
|
|
|
|
|
|
|
|
|
|
bs
|
|
|
|
* backspace, no wrap
|
|
|
|
lda x
|
|
|
|
beq :rts
|
2021-09-17 23:50:56 +00:00
|
|
|
and #$7f
|
|
|
|
dec
|
|
|
|
sta x
|
2021-09-04 21:52:35 +00:00
|
|
|
jmp update_cursor
|
|
|
|
:rts rts
|
|
|
|
|
|
|
|
tab
|
|
|
|
* go to next tab stop
|
2021-09-17 23:50:56 +00:00
|
|
|
* tab at 80 does not reset overflow.
|
2021-09-04 21:52:35 +00:00
|
|
|
rts
|
|
|
|
|
|
|
|
lf
|
|
|
|
vt
|
|
|
|
ff
|
|
|
|
* vt and ff interpreted as lf
|
|
|
|
* LNM: also do cr.
|
|
|
|
bit LNM
|
|
|
|
bpl :lnm
|
|
|
|
stz x
|
|
|
|
:lnm
|
|
|
|
lda y
|
|
|
|
cmp BM ; bottom margin
|
|
|
|
bne :iny
|
|
|
|
jmp scroll_up
|
|
|
|
:iny inc y
|
|
|
|
jmp update_cursor
|
|
|
|
|
|
|
|
cr
|
|
|
|
stz x
|
|
|
|
jmp update_cursor
|
|
|
|
|
2021-09-05 21:04:52 +00:00
|
|
|
|
|
|
|
so ; G1 character set
|
|
|
|
si ; G0 character set
|
|
|
|
rts
|
|
|
|
|
2021-09-04 21:52:35 +00:00
|
|
|
xon
|
|
|
|
xoff
|
|
|
|
* flow control...
|
|
|
|
rts
|
|
|
|
can
|
|
|
|
sub
|
|
|
|
* cancel esc sequence and display error character
|
|
|
|
stz state
|
|
|
|
rts
|
|
|
|
|
|
|
|
esc
|
|
|
|
lda #st_esc
|
|
|
|
sta state
|
|
|
|
rts
|