1
0
mirror of https://github.com/DoctorWkt/pdp7-unix.git synced 2026-01-13 15:27:39 +00:00

40 Commits

Author SHA1 Message Date
phil
a08d97c8d8 as7: accept (decimal) digits in octal constants, like as.s does! 2020-10-05 19:19:06 -04:00
phil
f9dbe7e946 as7: add --no-label-warnings flag 2019-10-29 21:29:55 -04:00
phil
4ffabd8bdf add tmg to src/cmd and image
add doug user to image, put tmg sources there
fix an as7 bug found by tmg
2019-10-28 23:14:16 -04:00
phil
9c5f034193 as7: change directive prefix from "<TAB>." to "@" 2019-10-26 12:36:09 -04:00
phil
30c7e9bdca as7: truncate labels to 8 characters for moo.s 2019-10-26 00:40:33 -04:00
Phil Budne
cda071864e shell from 11-56-91.pdf; added ecla to as7 2019-10-18 18:12:42 -04:00
Neo_Chen
ab7641df72 Make perl scripts independ of path 2018-08-20 21:03:24 +08:00
Warren Toomey
59dff5c9f2 I've modified as7 to have local and global labels, which we will need for
the upcoming pcc compiler.
2017-02-02 19:46:05 +10:00
Warren Toomey
a558131773 I've imported the tool changes I made in my H compiler. Also,
Anders Magnusson contributed the lrs simulation code for a7out.
2017-01-22 23:51:44 +10:00
Warren Toomey
c1dc742f03 Added support for symbols with uppercase letters. 2016-04-28 13:11:24 +10:00
Phil Budne
dbe494ea8b as7: make multiply defined symbols non-fatal (as.s doesn't even warn!) 2016-03-29 11:05:52 -04:00
Phil Budne
15a61c0512 fix rim comments 2016-03-25 00:42:08 -04:00
Phil Budne
efb135bc10 as7: "rim" now means "hardware read-in" (contiguous memory with no overhead) 2016-03-25 00:39:50 -04:00
Phil Budne
2b7ff69251 clarify WHICH "Read In Mode" we mean! 2016-03-24 22:16:46 -04:00
Phil Budne
2b4aeb3bab as7: make I/II/filename output match as.s behavior 2016-03-22 20:07:20 -04:00
Warren Toomey
8b421eb27b I've commited a change to as7 to use the C pre-processor. Not sure if it's
to everybody's taste.
2016-03-13 21:08:43 +10:00
Warren Toomey
ffb6676a39 I wrote a very simplistic tool to generate kernel cross references. 2016-03-12 22:37:37 +10:00
Phil Budne
d7d7d592d7 fix "rim" format 2016-03-10 00:11:20 -05:00
Phil Budne
cf164b2746 add comment from v1 as man page 2016-03-07 00:16:53 -05:00
Phil Budne
6fbc8c3a05 ptr: dump memory starting at '..' 2016-03-05 14:32:15 -05:00
Phil Budne
f06f075517 fix subtraction with relative values (relative-relative)=absolute! 2016-03-02 15:40:52 -05:00
Warren Toomey
dc2d2dd63b Phil's change to as7 to implement RELATIVE flag. He says:
seems to assemble cat.s and kernel reasonably...
   (famous last words)
I've updated a7out to use the same starting location. It runs cat.s OK.
2016-03-02 20:38:00 +10:00
Warren Toomey
d1a6bf8a39 Hah, I worked out how to bring as7 back. Sorry Phil! 2016-03-02 18:41:39 +10:00
Warren Toomey
9fcffe7e43 Merge remote-tracking branch 'origin/master' 2016-03-02 18:00:56 +10:00
Warren Toomey
bcb2cb0f15 local changes. 2016-03-02 17:59:34 +10:00
Phil Budne
97b11c6e40 start with .=4096. This isn't what as.s does (and will break the kernel) 2016-03-01 20:36:13 -05:00
Phil Budne
1bb80f01ec add --output, --namelist, rim output format, always set 0200 on ptp/rim output 2016-03-01 19:31:01 -05:00
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