mirror of
https://github.com/ksherlock/itty-bitty-vtty.git
synced 2024-11-21 05:31:06 +00:00
DECARM - auto repeat support. defaults to auto-repeat on.
n.b. - mame does not currently set the repeat bit in the keymod reg so it's not well tested.
This commit is contained in:
parent
22d1c744bb
commit
60259531d5
11
vt100.key.S
11
vt100.key.S
@ -30,13 +30,22 @@ keypress ent
|
||||
debug keypress
|
||||
lda KBD
|
||||
bmi :key
|
||||
rts
|
||||
:rts rts
|
||||
:key
|
||||
and #$7f
|
||||
sta key
|
||||
lda KEYMOD
|
||||
sta mod
|
||||
sta KEYSTROBE
|
||||
|
||||
* if DECARM is clear, skip repeat characters.
|
||||
bit DECARM
|
||||
bpl :arm
|
||||
bit #kmRepeat
|
||||
bne :rts
|
||||
:arm
|
||||
|
||||
|
||||
bit #kmOption!kmCommand
|
||||
bne command
|
||||
|
||||
|
@ -106,7 +106,8 @@ init
|
||||
sta DECBM
|
||||
lda #$80
|
||||
* sta LOCAL
|
||||
sta DECANM
|
||||
sta DECANM ; ANSI (vt100) on
|
||||
sta DECARM ; key repeat on
|
||||
|
||||
* lda #st_vt52
|
||||
lda #st_vt100
|
||||
|
Loading…
Reference in New Issue
Block a user