1
0
mirror of https://github.com/DoctorWkt/pdp7-unix.git synced 2026-02-01 22:42:59 +00:00
Commit Graph

13 Commits

Author SHA1 Message Date
Phil Budne
ff4d793ca5 another round of (hopeful) improvements
add indirect bit to "sys" definition
set initial ".." (output base) to 4096 (not yet honored)
add "ptr" output format (binary in paper tape reader format: 3 frames of 6 bits)
remove IOT instrictions (system source uses sop.s)
always write labels to "n.out"
add debug output
fix multiply defined error handling (process symbolic labels on both passes)
2016-03-01 11:22:53 -05:00
Phil Budne
66909ac6fd fix bugs noted by warren 2016-03-01 11:22:29 -05:00
Phil Budne
aeceb8614a move whitespace removal back in word loop 2016-03-01 01:43:24 -05:00
Phil Budne
249ce47e44 OR syllables by default (allows multiple OPR instructions) 2016-02-29 14:24:37 -05:00
Phil Budne
9e148edefc changes in expression parsing 2016-02-28 16:29:01 -05:00
Phil Budne
815d8bc220 comment out debug prints 2016-02-25 21:03:39 -05:00
Phil Budne
2cca3d4473 finish s1.s; tried to clean up s5-s8; let as7 continue after error 2016-02-25 20:58:17 -05:00
Warren Toomey
c84b2dffdd I've changed the assembler so that it groks the <ab> string literal
syntax. I think it's OK, but it probably needs more testing.
write_test.s was changed to exercise the string parsing.
2016-02-26 07:35:36 +10:00
Warren Toomey
018af6f43e Ken Thompson sent e-mail in to explain that there can be labels mid-line, such as
sys write; 1:0; 4

so I modified the assembler logic to support this, and added some code to write_test.s
to verify that it works.
2016-02-26 06:52:43 +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
07c95bbe15 I commented out most of the debug lines, and I now output the octal code
along with the input line that generated it. There is code to use values
of defined constants as well as defined labels.
2016-02-24 13:25:24 +10:00
Warren Toomey
f46777b272 Added code to output the final machine code in octal. Parse
the 'i' argument to instructions that indicate indirect mode.
2016-02-24 11:15:47 +10:00
Warren Toomey
d70b4e87cc First version of as7, which is definitely incomplete. I now need some
example assembly programs and their machine code octal dumps so that
I can complete as7 and get it working properly.
2016-02-24 09:16:32 +10:00