From c1ef96a72359363cdafbc662261ecad905153a28 Mon Sep 17 00:00:00 2001 From: Phil Budne Date: Mon, 21 Mar 2016 00:07:24 -0400 Subject: [PATCH] wake up init with smes before exiting --- src/other/pbsh.s | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/other/pbsh.s b/src/other/pbsh.s index 989a3b6..63ed3c0 100644 --- a/src/other/pbsh.s +++ b/src/other/pbsh.s @@ -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