mirror of
https://github.com/livingcomputermuseum/pdp7-unix.git
synced 2026-05-05 15:44:01 +00:00
Merge branch 'master' of https://github.com/DoctorWkt/pdp7-unix
This commit is contained in:
@@ -78,7 +78,7 @@ getc: 0
|
||||
dac cibufp
|
||||
jmp getc+1
|
||||
1:
|
||||
lac 0o4
|
||||
lac o4
|
||||
jmp getc i
|
||||
|
||||
putc: 0
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user