$7f (delete) character is a null char. drop it (and $00) when checking the read queue.

This commit is contained in:
Kelvin Sherlock 2022-01-28 23:21:13 -05:00
parent acfe94a4c7
commit 71993497ea
1 changed files with 12 additions and 0 deletions

View File

@ -163,6 +163,11 @@ modem_int
* doesn't access direct page. * doesn't access direct page.
* check/clear overrun? * check/clear overrun?
*
* n.b. - vt100 would drop $00 and $7f characters here - I drop them later.
*
mx %11 mx %11
phb phb
@ -242,6 +247,13 @@ modem_io ent
beq :nope beq :nope
lda read_buffer,x lda read_buffer,x
inc read_q_tail inc read_q_tail
* $00 and $7f dropped here.
and #$7f
beq :read
cmp #$7f
beq :read
plp plp
sec sec
rts rts