mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 08:28:06 +11:00
trs80: make (key?) non-blocking
This commit is contained in:
parent
475caf35f4
commit
1a48ff047f
@ -11,10 +11,10 @@ There is also the RECV program at B612.
|
||||
( ----- 602 )
|
||||
1 8 LOADR+
|
||||
( ----- 603 )
|
||||
CODE (key?) ( -- c? f ) ( TODO: make non-blocking )
|
||||
A 0x01 LDri, ( @KEY )
|
||||
CODE (key?) ( -- c? f )
|
||||
A 0x08 LDri, ( @KBD )
|
||||
0x28 RST,
|
||||
PUSHA, PUSH1,
|
||||
IFZ, PUSHA, THEN, PUSHZ,
|
||||
;CODE
|
||||
CODE (emit) EXX, ( protect BC )
|
||||
BC POP, ( c == @DSP arg ) chkPS,
|
||||
|
@ -41,6 +41,11 @@ static void pchookfunc(Machine *m)
|
||||
wmove(w, y, x-1);
|
||||
}
|
||||
break;
|
||||
case 0x08: // @KBD TODO: make non-blocking
|
||||
debug_panel();
|
||||
m->cpu.R1.br.A = wgetch(w);
|
||||
m->cpu.R1.br.F |= F_Z;
|
||||
break;
|
||||
case 0x0f: // @VDCTL
|
||||
wmove(w, m->cpu.R1.br.H, m->cpu.R1.br.L);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user