fixed cursor position report

- verified DECOM behavior
- was missing [ write.
This commit is contained in:
Kelvin Sherlock 2021-11-28 14:45:03 -05:00
parent 3e53d52226
commit cd1397e3cf

View File

@ -787,12 +787,19 @@ csi_n ; status report
lda #'n'
jmp write_modem
:cpr ; cursor report
* TODO - verify and support DECOM
* returned y is in terms of DECOM.
lda #ESC
jsr write_modem
lda #'['
jsr write_modem
lda y
inc
bit DECOM
bpl :y
sec
sbc DECTM
:y inc
jsr write_digit
lda #';'
jsr write_modem