save restore cursor

This commit is contained in:
Kelvin Sherlock 2021-09-26 19:44:12 -04:00
parent 74d0ee7f07
commit dbf4e07b95
1 changed files with 14 additions and 1 deletions

View File

@ -133,9 +133,22 @@ vt100_esc ent
esc_7 ; save cursor position, graphic rendition, and character set.
lda x
sta saved_x
lda y
sta saved_y
rts
esc_8 ; restore cursor position, graphic rendition, and character set.
rts
* TODO - how does this interact with DECOM?
lda saved_x
sta x
lda saved_y
sta y
jmp recalc_cursor
esc_eq ; enter alternate keypad mode
lda #$80