mirror of
https://github.com/ksherlock/itty-bitty-vtty.git
synced 2024-11-21 05:31:06 +00:00
update cursor save/cursor restore to also save the DECOM settings. tested with vt100 (mame)
This commit is contained in:
parent
cd1397e3cf
commit
6f055a1ef9
1
vt.equ.S
1
vt.equ.S
@ -82,6 +82,7 @@ mod ds 2
|
||||
* saved cursor
|
||||
saved_x ds 2
|
||||
saved_y ds 2
|
||||
saved_decom ds 2
|
||||
|
||||
do *>256
|
||||
err "too big"
|
||||
|
@ -134,21 +134,24 @@ vt100_esc ent
|
||||
|
||||
|
||||
esc_7 ; save cursor position, graphic rendition, and character set.
|
||||
|
||||
* based on testing, DECOM is also saved/restored.
|
||||
lda x
|
||||
sta saved_x
|
||||
lda y
|
||||
sta saved_y
|
||||
lda DECOM
|
||||
sta saved_decom
|
||||
|
||||
rts
|
||||
esc_8 ; restore cursor position, graphic rendition, and character set.
|
||||
|
||||
* TODO - how does this interact with DECOM?
|
||||
|
||||
lda saved_x
|
||||
sta x
|
||||
lda saved_y
|
||||
sta y
|
||||
lda saved_decom
|
||||
sta DECOM
|
||||
|
||||
jmp recalc_cursor
|
||||
|
||||
esc_eq ; enter alternate keypad mode
|
||||
|
Loading…
Reference in New Issue
Block a user