mirror of
https://github.com/aap/pdp6.git
synced 2026-02-12 02:57:41 +00:00
experimented, fixed bugs, implemented basic tty
This commit is contained in:
43
ttytest.s
Normal file
43
ttytest.s
Normal file
@@ -0,0 +1,43 @@
|
||||
P=17
|
||||
TTY=120
|
||||
|
||||
|
||||
PDLLEN=100
|
||||
|
||||
.=40
|
||||
JRST 4,
|
||||
JRST 4,
|
||||
|
||||
.=1000
|
||||
ENTRY: JRST START
|
||||
PDL: .=.+PDLLEN
|
||||
SP: -PDLLEN,,PDL-1
|
||||
|
||||
START:
|
||||
MOVE P,SP
|
||||
PUSHJ P,GETCH
|
||||
PUSHJ P,PUTCHR
|
||||
MOVEI 0,"\n
|
||||
PUSHJ P,PUTCHR
|
||||
MOVEI 0,"a
|
||||
PUSHJ P,PUTCHR
|
||||
JRST 4,
|
||||
|
||||
GETCH:
|
||||
CONI TTY,0
|
||||
TRNN 0,40
|
||||
JRST .-2
|
||||
DATAI TTY,0
|
||||
TRZ 0,200
|
||||
POPJ P,
|
||||
|
||||
PUTCHR:
|
||||
CONI TTY,1
|
||||
TRNE 1,20
|
||||
JRST .-2
|
||||
IORI 0,200
|
||||
DATAO TTY,0
|
||||
POPJ P,
|
||||
|
||||
STR:
|
||||
"a
|
||||
Reference in New Issue
Block a user