mirror of
https://github.com/ksherlock/itty-bitty-vtty.git
synced 2024-11-21 20:30:56 +00:00
based on testing, will not advance to column 80 unless DECAWM is set.
This commit is contained in:
parent
45aea0293f
commit
74d0ee7f07
@ -237,6 +237,7 @@ draw_char ent
|
|||||||
|
|
||||||
* x = 80 indicates next char will wrap if DECAWM. however, treated as 79
|
* x = 80 indicates next char will wrap if DECAWM. however, treated as 79
|
||||||
|
|
||||||
|
* based on testing, will not advance to column 80 unless DECAWM is enabled.
|
||||||
|
|
||||||
ldx x
|
ldx x
|
||||||
cpx #79
|
cpx #79
|
||||||
@ -256,7 +257,7 @@ draw_char ent
|
|||||||
:79
|
:79
|
||||||
ldy cursor_offset
|
ldy cursor_offset
|
||||||
sta [cursor_base],y
|
sta [cursor_base],y
|
||||||
lda #$80
|
lda DECAWM ; set bit 7 if DECAWM.
|
||||||
tsb x ; mark overflow
|
tsb x ; mark overflow
|
||||||
rts
|
rts
|
||||||
|
|
||||||
@ -604,6 +605,8 @@ erase_line_1 ent
|
|||||||
adc cursor_offset
|
adc cursor_offset
|
||||||
tax
|
tax
|
||||||
|
|
||||||
|
sep #$20 ; short m
|
||||||
|
|
||||||
ldy cursor_offset
|
ldy cursor_offset
|
||||||
lda cursor_base+2
|
lda cursor_base+2
|
||||||
beq :odd
|
beq :odd
|
||||||
|
Loading…
Reference in New Issue
Block a user