1
0
mirror of https://github.com/livingcomputermuseum/pdp7-unix.git synced 2026-05-05 15:44:01 +00:00
This commit is contained in:
Warren Toomey
2016-03-13 21:09:33 +10:00
5 changed files with 333 additions and 337 deletions

View File

@@ -78,7 +78,7 @@ getc: 0
dac cibufp
jmp getc+1
1:
lac 0o4
lac o4
jmp getc i
putc: 0

View File

@@ -7,7 +7,7 @@ loop:
loop1:
c = read();
if(c==4) return;
if(c==';' & state==0) state = 2;
if(c==':' & state==0) state = 2;
if((c<'0' ^ c>'9'&c<'a' ^ c>'z') & state==0) state = 1;
line[i] = c;
i = i+1;