Warren Toomey
d6d4c9b814
According to cat.s, fd 8 is standard error (not fd2!). I've updated
...
the a7out simulator to have STDERR on fd 8.
2016-02-26 22:37:03 +10:00
Warren Toomey
9c8dbdea37
tools/a7out: I refactored the indirect logic, much nicer now.
2016-02-26 21:57:10 +10:00
Warren Toomey
a132327a8b
a7out: I had the spa logic wrong. Now fixed.
2016-02-26 21:45:55 +10:00
Warren Toomey
536de9ea56
I worked out the bug with the command-line arguments, I was overwriting
...
017777, oops. I've added more comments to wktcat.s (renamed from
simplecat.s). Now we need to find out how the real PDP-7 Unix
does command line arguments.
2016-02-26 21:26:44 +10:00
Warren Toomey
8f8cc64d10
I've added tad and sza to the a7out simulator, and I also added some
...
code to place command-line arguments into the simulated memory. I'm
trying to write my own version of cat so I can compare mine to the
real one. Right now there's a bug when simplecat has two arguments.
Zero and one arguments are OK! Saving so I have a backup before proceeding.
2016-02-26 20:56:31 +10:00
Warren Toomey
b8550475b0
I've got a very simple cat program working, which reads from stdin and
...
sends it to stdout.
2016-02-26 18:43:20 +10:00
Warren Toomey
f9b8c8eeb2
Changed as7 to allow sys open statements, rewrite write_test.s to
...
use this syntax, and fixed up a bug in sys_open in a7out.
2016-02-26 06:19:27 +10:00
Warren Toomey
cc678483e1
I've added read() now, but I haven't tested it fully yet.
2016-02-25 18:43:44 +10:00
Warren Toomey
b463500f37
I've got a few system calls working: open, close, write, exit along with the
...
instructions dac, lac, iot and hlt. I can print Hello, world\n, yay!
2016-02-25 18:12:57 +10:00
Warren Toomey
f5554d1181
The beginnings of the user-mode simulator: three instructions so far
2016-02-25 10:25:43 +10:00