mirror of
https://github.com/livingcomputermuseum/pdp7-unix.git
synced 2026-02-04 15:53:49 +00:00
transcribed from 08-rest.pdf
This commit is contained in:
20
scans/lease.b
Normal file
20
scans/lease.b
Normal file
@@ -0,0 +1,20 @@
|
||||
main $(
|
||||
auto ch;
|
||||
extrn read, write;
|
||||
|
||||
goto loop;
|
||||
while (ch != 04)
|
||||
$( if (ch > 0100 & ch < 0133)
|
||||
ch = ch + 040;
|
||||
if (ch==015) goto loop;
|
||||
if (ch==014) goto loop;
|
||||
if (ch==011)
|
||||
$( ch = 040040;
|
||||
write(040040);
|
||||
write(040040);
|
||||
$)
|
||||
write(ch);
|
||||
loop:
|
||||
ch = read()&0177;
|
||||
$)
|
||||
$)
|
||||
Reference in New Issue
Block a user