diff --git a/vt100.esc.S b/vt100.esc.S index 6da2c5b..4a37730 100644 --- a/vt100.esc.S +++ b/vt100.esc.S @@ -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