356 Commits

Author SHA1 Message Date
Olaf Seibert
8ce31d6bac Add -rt11 and -rsx options to usage message. 2020-03-08 21:38:14 +01:00
Olaf Seibert
5497a73a42 Add 'obj2bin/' from commit '5015ea60c545a7a21b17d5f313601111b96fe1cf'
git-subtree-dir: obj2bin
git-subtree-mainline: 890daab687b2625a59ef0295924fc711bf47bf29
git-subtree-split: 5015ea60c545a7a21b17d5f313601111b96fe1cf

Command was: git subtree add --prefix obj2bin https://github.com/AK6DN/obj2bin.git master
2020-03-08 21:28:29 +01:00
Olaf Seibert
890daab687 Add .PAGE as no-op, and give errors for misplaced .ENDR .ENDM. 2020-03-08 16:50:51 +01:00
Olaf Seibert
43aef73305 Fix logical error in listing from maclib.
It seems the code was similarly wrong before I introduced the flag
CALLED_NOLIST in f07c9045f5bf60ccd821a33bb4ebf06d06fe7c48.

No change in regression tests as we don't have macro libraries available
to test.
2020-03-07 23:23:44 +01:00
Olaf Seibert
cdef7047eb Make that .enabl ama does not affect the next pass. 2020-03-07 18:43:45 +01:00
Olaf Seibert
c4221e0b4b Sometimes pc-relative addressing needs no relocation record.
In this case, in an absolute section refering to an absolute symbol.
Use test cases from Johnny Billquist.
2020-03-07 17:34:45 +01:00
AK6DN
5015ea60c5 Update documentation comments 2020-03-06 23:48:55 -08:00
AK6DN
4523bd75e0 Update documentation re: multiple input .obj files 2020-03-06 21:51:29 -08:00
Olaf Seibert
62868a6661 Get rid of #define stricmp strcasecmp. 2020-03-06 22:44:20 +01:00
Olaf Seibert
88d33fd913 Adjust 2.11BSD-m11-lout.lst.ok.
Because of this corrected sequence:

      575        000000                  lctbas  =       .
      576 000000                                genlct  seq
        1        000001                  lc.seq=        1
-       2                                       .rept   <.-lctbas>/2
+       2        000000                         .rept   <.-lctbas>/2
        3                                lc.seq=        lc.seq+lc.seq
        4                                       .endm
-       1        000002                  lc.seq=        lc.seq+lc.seq
        5 000000 073631                         .rad50  /seq/
        6                                       .if nb  <>
        7                                       lcinit= lcinit+lc.seq
        8                                       .endc

The repeat count is 0. lc.seq previously incorrectly had a value of 2
but now it has the correct value of 1.
This has a knock-on effect on various other expressions throughout, so there
are various changes.
2020-03-06 22:08:02 +01:00
Olaf Seibert
2349d80ec8 Fix .REPT 0 to not repeat the code block at all.
Also, now list the calculated repeat count for reference.
This occurred a few times in the regression tests to fix the expected
outcome.
2020-03-06 21:58:53 +01:00
Olaf Seibert
7595621cd7 Add new options to usage message. 2020-03-04 19:41:22 +01:00
Kevin Handy
bf322f3c6b Fix file name parsing. 2020-03-04 19:40:56 +01:00
Olaf Seibert
94d044fd77 Add -rt11 option to dumpobj too. 2020-03-03 22:58:32 +01:00
Olaf Seibert
592b7facf1 Silence gcc7 warnings by adjusting FALLS THROUGH comment. 2020-03-03 22:11:02 +01:00
Olaf Seibert
5c9fc1ae16 Try to fix travis yml. 2020-03-03 21:46:57 +01:00
Kevin Handy
e2fb29e3f2 Make the produced object file configurable...
at run time, from the command line.
2020-03-03 19:13:20 +01:00
John Forecast
3927147862 FSIO: Bug fixes and clean up warnings generated by GCC 8.3
Fix some OS/8 directory handling routines which did not correctly handle
directories with optional extended words. Add missing

RL01 initialization support for RT11.
2020-01-29 17:54:48 -08:00
John Forecast
beabfab2e8 FSIO: bug fixes and the addition of OS/8 support 2020-01-11 09:21:05 -08:00
Tom Russo
f40e814fcb Fix fsio compilation on FreeBSD
Just tried to build fsio on FreeBSD and found it complaining about
unknown functions letoh32.  Turns out that the attempt to make this
portable to FreeBSD is incorrectly assuming that FreeBSD should be
like NetBSD, when in fact it is more like OpenBSD in this regard.

Moving the defined(__FreeBSD__) so it selects the same block as
__OpenBSD__ makes fsio build correctly on FreeBSD 11 (and presumably
later).
2020-01-09 12:40:55 -07:00
John Forecast
cfeb0e42da FDIO: Various improvements 2019-05-15 09:15:18 -07:00
John Forecast
5117bd4d7c FSIO: Disk and Tape container file utility 2019-05-01 06:24:33 -07:00
AK6DN
fa38443f8a sort psect list in .log file in asc addr order instead of name order 2019-03-25 20:17:31 -07:00
Olaf Seibert
c80c87b2d4 Test another weird delimiter: .ASCIZ && 2018-11-10 17:12:21 +01:00
Olaf Seibert
78fb685e59 Clarify ORG error message a bit
its counterpart for absolute sections mentions the section type too.
2018-11-10 17:12:21 +01:00
Olaf Seibert
2920e9f2f9 Test a few error message with .IIF. 2018-11-10 17:12:21 +01:00
Olaf Seibert
2dbf80388e Add tests for (N)'DF foo!bar' and (N)'DF foo&bar'. 2018-11-10 17:12:21 +01:00
Olaf Seibert
a42b49f73b Bug: '.iif conf, label: foo' didn't work. 2018-11-10 17:12:21 +01:00
Olaf Seibert
8c89fd27cf Try if gitlab-ci is as easy as Travis... 2018-06-06 22:24:14 +02:00
Olaf Seibert
647b639552 Also build and test on osx. 2017-12-18 14:59:45 +01:00
Olaf Seibert
877400f236 Fix error message for .odd with argument. 2017-12-18 14:50:17 +01:00
Olaf Seibert
d98c1e54d0 Initial Travis CI config.
Try to get Travis' gmake to run ./make-git-info in before compiling macro11.c.
In RunTests, reflect differences in exit status, for automated testing.
2017-12-18 14:30:30 +01:00
John Forecast
18202f1b8d RAWTAP: Fix initial tapemark problem.
If the first record in a container file was a tape mark, the tape was, incorrectly, assumed to be empty.
2017-12-14 17:06:51 -08:00
Andreas Bombe
928d137f17 Use loops over subdirs in Makefiles
The top and second level Makefiles that build the whole project by
recursing into all their subdirectories had implemented these by long
lists of invocations and then repeated these for all the all, clean,
install, uninstall targets. There were mistakes such as some
subdirectories not being cleaned.

Introduce SUBDIRS variables instead and have the targets loop over those
and additionally implement the clean, install, uninstall targets with a
single rule.
2017-10-13 01:24:53 +02:00
Andreas Bombe
1c21f2901b Remove wrong quotes from CFLAGS in converters/Makefile 2017-10-13 01:22:45 +02:00
AK6DN
fd0eea148e added .gitignore 2017-07-19 21:22:08 -07:00
Olaf Seibert
0a9d7cddb0 Add some of the changes to CHANGES. 2017-05-13 19:47:03 +02:00
Olaf Seibert
5f5414fb37 Update some dates. 2017-05-06 19:11:19 +02:00
Olaf Seibert
a279a86076 Remove unneeded include (which cases compile errors wrt. git-info.h) 2017-05-06 19:10:21 +02:00
Olaf Seibert
1557c4c186 Add stuff to .gitignore. 2017-05-06 17:55:47 +02:00
Olaf Seibert
ea5ef8587f Add .ENABL LCM. Its default setting was incorrect. 2017-05-06 17:53:15 +02:00
Olaf Seibert
f3af0d060f Adjust tests: .ENABL LC can now be removed.
This changes all the 2.11 listings.
2017-05-06 17:15:20 +02:00
Olaf Seibert
6be865911c Each pass starts implicitly with .ENABL LC. 2017-05-06 17:11:56 +02:00
Olaf Seibert
faf378ba86 Factor out some common pass initialisation code. 2017-05-06 17:07:53 +02:00
Olaf Seibert
870ecef497 Small doc update 2017-05-06 15:51:28 +02:00
Olaf Seibert
203a812664 Add 2.11BSD's m11 sources as regression tests. 2017-05-06 15:49:18 +02:00
Olaf Seibert
e42bc827ff Merge branch 'master' into mlb2 2017-05-04 23:02:08 +02:00
Olaf Seibert
f5e1227317 Add some tests for .if etc. Fix a sign bit. 2017-05-04 23:00:43 +02:00
Olaf Seibert
a4bc859d15 Merge branch 'master' into mlb2 2017-04-28 23:22:58 +02:00
Olaf Seibert
4916b699fa Add ^pl and ^ph expressions from 2.11BSD's m11.
I hope I understood what this is doing!
2017-04-28 23:02:06 +02:00