2021-09-04 21:52:35 +00:00
|
|
|
|
2021-09-17 23:50:56 +00:00
|
|
|
lst off
|
2021-09-04 21:52:35 +00:00
|
|
|
rel
|
|
|
|
xc
|
|
|
|
xc
|
|
|
|
|
|
|
|
use vt.equ
|
|
|
|
|
2021-09-17 23:50:56 +00:00
|
|
|
mx %11
|
2021-09-04 21:52:35 +00:00
|
|
|
|
|
|
|
init_tabs ent
|
|
|
|
|
2021-09-17 23:50:56 +00:00
|
|
|
ldx #80-1
|
|
|
|
:zloop stz tabs,x
|
2021-09-04 21:52:35 +00:00
|
|
|
dex
|
2021-09-17 23:50:56 +00:00
|
|
|
bpl :zloop
|
2021-09-04 21:52:35 +00:00
|
|
|
|
2021-09-17 23:50:56 +00:00
|
|
|
lda #$80
|
|
|
|
ldy #8
|
|
|
|
:loop ldx :table,y
|
|
|
|
sta tabs,x
|
|
|
|
dey
|
|
|
|
bpl :loop
|
2021-09-04 21:52:35 +00:00
|
|
|
|
|
|
|
rts
|
2021-09-22 03:40:22 +00:00
|
|
|
:table db 8*1,8*2,8*3,8*4,8*5,8*6,8*7,8*8,8*9
|
2021-09-04 21:52:35 +00:00
|
|
|
|
|
|
|
set_tab ent
|
|
|
|
* input x = x
|
|
|
|
|
|
|
|
* ldx x
|
|
|
|
cpx #80
|
|
|
|
bge :rts
|
|
|
|
lda #$80
|
|
|
|
sta tabs,x
|
|
|
|
:rts rts
|
|
|
|
|
|
|
|
reset_tab ent
|
|
|
|
* input x = x
|
|
|
|
|
|
|
|
* ldx x
|
|
|
|
cpx #80
|
|
|
|
bge :rts
|
|
|
|
stz tabs,x
|
|
|
|
:rts rts
|
|
|
|
|
|
|
|
|
|
|
|
reset_all_tabs ent
|
|
|
|
|
|
|
|
ldx #80-1
|
|
|
|
:loop stz tabs,x
|
|
|
|
dex
|
|
|
|
bpl :loop
|
|
|
|
rts
|
|
|
|
|
|
|
|
next_tab_stop ent
|
|
|
|
* input x = x
|
|
|
|
|
|
|
|
* ldx x
|
2021-09-17 23:50:56 +00:00
|
|
|
inx
|
|
|
|
cpx #79
|
|
|
|
bge :79
|
2021-09-04 21:52:35 +00:00
|
|
|
|
|
|
|
:loop bit tabs,x
|
|
|
|
bmi :rts
|
|
|
|
inx
|
|
|
|
cpx #80
|
|
|
|
bcc :loop
|
|
|
|
|
|
|
|
|
2021-09-17 23:50:56 +00:00
|
|
|
:79 ldx #79
|
2021-09-04 21:52:35 +00:00
|
|
|
:rts rts
|
|
|
|
|
|
|
|
|
|
|
|
tabs ds 80
|
|
|
|
|
|
|
|
sav vt100.tabs.L
|