1
0
mirror of https://github.com/livingcomputermuseum/pdp7-unix.git synced 2026-02-10 02:10:31 +00:00

wake up init with smes before exiting

This commit is contained in:
Phil Budne
2016-03-21 00:07:24 -04:00
parent dee1695759
commit c1ef96a723

View File

@@ -332,7 +332,7 @@ rline: 0
1:
cla; sys read; char; 1 " Read in one character from stdin
sna " read ok?
sys exit " EOF: quit
jmp quit " no
lac char
lrss 9 " Get it and shift down 9 bits
sad o100 " '@' (kill) character?
@@ -353,6 +353,11 @@ rline: 0
dac 8
jmp 1b " and loop back
quit:
lac d1; sys smes " wake up init
sys exit
" copied from cat.s:
putc: 0
and o177 " Keep the lowest 7 bits and save into 2f+1
dac 2f+1