Begin working on alternate B run-time library

This commit is contained in:
rswier
2016-03-25 05:08:43 -04:00
parent 10f0fa9da9
commit c638044dc0
2 changed files with 311 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
/* test.b - test program for B run-time library brt.s
b test.b test.s
echo abcABC > abc
perl as7 --out test.out brt.s test.s bi.s
perl a7out test.out
*/
main {
extrn fname, fin;
auto ch;
fin = open(fname, 0);
goto loop;
while (ch != 04) {
putchr(ch);
loop:
ch = getchr();
}
flush();
}
fname [] 'ab','c ',' ',' ';