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