collapseos/emul/forth/emul.fs

18 lines
211 B
Forth
Raw Normal View History

2020-03-26 12:05:48 -04:00
( Implementation fo KEY and EMIT in the emulator
stdio port is 0
)
CODE (emit)
HL POPqq,
chkPS,
A L LDrr,
0 OUTnA,
;CODE
2020-03-26 12:12:11 -04:00
CODE KEY
0 INAn,
H 0 LDrn,
L A LDrr,
HL PUSHqq,
;CODE