Commit Graph
100 Commits
Author SHA1 Message Date
Sebastian Rasmussen a17a12cc45 Fix typos in character table. 2020-10-25 07:35:37 +08:00
Sebastian Rasmussen 5447173fec Space Travel now runs without crashing after reordering input files.
The naive order of the assembly files given to the assembler was to
put the st?.s files first followed by fop.s at the end. This caused
Space Travel to crash, why that happend is explained below.

st1.s through st5.s contain code, while st6. and st7.s contain
constants and data storage respectively. The order of the given
assembler files meant that the code st?.s ended up at 010000 onwards,
while the code in fop.s ended up after the data storage defined in
st7.s. In particular the function fmp ended up immediately after dspl.

At the end of st7.s there is a display list, dspl. At runtime this
list is pointed to by the clistp variable stored at the auto-indexing
memory register at address 017. Auto-indexing means that the pointer
will be incremented after use. However the display list dspl does not
reserve memory for the entire list, instead it assumes that the memory
immediately after dpsl is unused. This conflicts with storing fmp from
fop.s immediately after st7.s!

Despite this conflict the first few frames of space travel could be
rendered because clistp was never referenced. By the time it was
referenced it changed the code in fmp to invalid code. At a later
stage when fmp was called the program crashed.

The solution I chose is to reorder the files at the command-line given
to the assembler; specifically I opted to put fop.s after all the code
in st1.s though st4.s.

This means that Space Travel now runs without crashing!
2020-10-05 17:13:47 +08:00
Sebastian Rasmussen c6bdbfebf3 Fix typos in s3.s after manual review. 2020-03-15 15:30:06 +08:00
Sebastian Rasmussen 8e3ebc67d9 Fix typos in ds.s after manual review. 2020-03-15 15:00:23 +08:00
Sebastian Rasmussen 41e83c21b6 Add page comments to bc.s. 2020-02-10 03:51:07 +08:00
Sebastian Rasmussen 5350984840 Add page comments to ds.s. 2020-02-10 03:48:00 +08:00
Sebastian Rasmussen 99ac073334 Fix typo in bc.s after manual review. 2020-02-10 03:47:41 +08:00
Sebastian Rasmussen 0185f36563 Add page comments to init.s. 2020-02-10 03:47:06 +08:00
Sebastian Rasmussen ea3cb95973 Fix typos in init.s after manual review. 2020-02-10 03:46:49 +08:00
Sebastian Rasmussen 914c466d4a Add page comments to dsksav.s, dsksav.s and dskio.s. 2020-02-10 03:46:29 +08:00
Sebastian Rasmussen cf19c53068 Add page comments to bl.s. 2020-02-10 03:46:14 +08:00
Sebastian Rasmussen 25fc9eb131 Add page comments to cat.s 2020-02-10 03:45:34 +08:00
Sebastian Rasmussen 79d8a411c8 Add page comments to bi.s. 2020-02-10 03:45:26 +08:00
Sebastian Rasmussen 4a8a0a9215 Fix typos in sop.s after manual review. 2020-02-10 03:44:51 +08:00
Sebastian Rasmussen 8d839f2d0f Fix typos in un.s after manual review. 2020-02-10 03:44:28 +08:00
Sebastian Rasmussen 164d0dbf33 Fix typos in adm.s after manual review. 2020-02-10 03:43:32 +08:00
Sebastian Rasmussen e2ead8e5df Fix typo in page comment in s6.s. 2020-02-10 03:42:55 +08:00
Sebastian Rasmussen 5ba0d02037 Add page comments to adm.s. 2020-02-10 03:42:27 +08:00
Sebastian Rasmussen 07afd0503e Fix typos in ttt2.s after manual review. 2020-02-10 03:40:11 +08:00
Sebastian Rasmussen b90a05a712 Fix typos in sysmap after manual review. 2020-01-08 16:11:11 +08:00
Sebastian Rasmussen dad9b873e2 Make whitespace consistent in sysmap. 2020-01-08 16:11:11 +08:00
Sebastian Rasmussen 42c521fdbe Required changes to make it compile again. 2020-01-08 15:59:48 +08:00
Sebastian Rasmussen 940d8e21e2 Fix typos in s8.s after manual review. 2020-01-08 15:59:13 +08:00
Sebastian Rasmussen 3e028c40a0 Fix typos in maksys.s after manual review 2020-01-08 15:53:35 +08:00
Sebastian Rasmussen eedb90386f Add page comments to db.s. 2020-01-08 15:51:41 +08:00
Sebastian Rasmussen a2331f0e21 Fix typos in fop.s after manual review. 2020-01-06 16:24:03 +08:00
Sebastian Rasmussen 7e474b0cf0 Fix typos in p1.s after manual review. 2020-01-06 14:50:45 +08:00
Sebastian Rasmussen 9f71939934 Improve description of cas input/output formats.
Correct details about input/output formats and provide more
thorough description of character example.
2019-12-30 01:56:35 +08:00
Sebastian Rasmussen bcd9dac2ed Fixed typos in s2.s after manual review. 2019-11-16 15:56:53 +01:00
Sebastian Rasmussen 42bc34866d Fix typos in s7.s after manual review. 2019-11-14 14:25:38 +01:00
Sebastian Rasmussen 56a75c0362 Add handwritten comments to psych.s. 2019-11-13 04:09:07 +01:00
Sebastian Rasmussen da23c633e7 Add handwritten notes to fop.s. 2019-11-12 22:08:59 +01:00
Sebastian Rasmussen 65a1f1ee69 Add handwritten notes to st7.s. 2019-11-12 22:04:44 +01:00
Sebastian Rasmussen df31ca4816 Add handwritten notes to st4.s. 2019-11-12 22:01:15 +01:00
Sebastian Rasmussen d4e4101a49 Add handwritten notes to st3.s. 2019-11-12 21:58:48 +01:00
Sebastian Rasmussen c45fba954f Add handwritten notes to st1.s. 2019-11-12 21:55:34 +01:00
Sebastian Rasmussen 141efe0218 Fix typos in fop.s after manual review. 2019-11-03 03:23:44 +01:00
Sebastian Rasmussen b909a75810 Fix typos in ed1.s after manual review. 2019-11-02 02:14:14 +01:00
Sebastian Rasmussen e37757e00c Fix typo in check.s after manual review. 2019-11-01 03:19:23 +01:00
Sebastian Rasmussen ccc4e3d2da Add page comments to check.s. 2019-11-01 03:19:19 +01:00
Sebastian Rasmussen 8876fcf79b Fix typo in dmabs.s after manual review. 2019-11-01 03:17:50 +01:00
Sebastian Rasmussen 6e410e9d9f Add page comments to dmabs.s 2019-11-01 03:17:44 +01:00
Sebastian Rasmussen 4df9bc464a Fix typos in ed2.s after manual review. 2019-11-01 02:15:36 +01:00
Sebastian Rasmussen 79cdb51378 Attempt to describe purpose of source code in dskres.s 2019-10-31 15:16:12 +01:00
Sebastian Rasmussen 55383ce528 Attempt to describe purpose of source code in dsksav.s 2019-10-31 15:14:31 +01:00
Sebastian Rasmussen f576bec7f9 Attempt to describe purpose of source code in dskio.s 2019-10-31 15:00:20 +01:00
Sebastian Rasmussen 3b91271606 Fix typos in moo.s after manual review 2019-10-24 00:27:10 +02:00
Sebastian Rasmussen e479293788 Fix typos in nm.s after manual review 2019-10-24 00:26:10 +02:00
Sebastian Rasmussen 246781a210 Fix typos in stat.s after manual review 2019-10-24 00:25:22 +02:00
Sebastian Rasmussen f5b298b12a Fixed typos in roff.s after manual review 2019-10-24 00:24:29 +02:00
Sebastian Rasmussen c03fc017a9 Fix typos in scans/dsw.s 2019-10-24 00:23:18 +02:00
Sebastian Rasmussen 4affe9ee8d Add page comments to scans/dsw.s 2019-10-24 00:23:18 +02:00
Sebastian Rasmussen 897c491606 Fix typos in ln.s after manual review 2019-10-24 00:22:05 +02:00
Sebastian Rasmussen d0a432565b Rename cas.x to cas.cas
The intention is the point to what tool should be used to process
the character definitions.
2019-10-22 21:36:11 +02:00
Sebastian Rasmussen 4d5da87780 Adhere to common pattern even in last section of scans/cas.x
All previous sections end with the sequence x/mn/r, but the section
:c9 ends with only x/mn. This is likely not correct. Without a
trailing r statement when cas processes cas.x the output will not
contain the definition of the last character.
2019-10-22 21:36:10 +02:00
Sebastian Rasmussen f89cdd7f1b Reorder contents of pages 16 and 17 also in scans/cas.x
Pages 16 and 17 in scans/cas.x must have been accidentally reordered
when scanned. This commits reorders the contents in scans/cas.x
to reflect the original authors' intentions.
2019-10-22 21:35:31 +02:00
Sebastian Rasmussen ee8f5f296c Fix typos in scans/ttt2.s 2019-10-22 18:46:54 +02:00
Sebastian Rasmussen 0cd0039a49 Fix typos in scans/ttt1.s 2019-10-22 18:46:54 +02:00
Sebastian Rasmussen 81780d703e Add scope.cas to src/cmd/scope.cas
This omits the page comments present scans/scope.cas, but is
otherwise identical.
2019-10-22 02:12:20 +02:00
Sebastian Rasmussen 3092525c9b Add source page comments to scope.cas 2019-10-22 02:12:20 +02:00
Sebastian Rasmussen ce51bc69c4 Rename scope.v to scope.cas to follow the naming pattern for cas
Previously the cas input files have been named .cas, so rename
scope.v to follow that pattern.
2019-10-22 02:12:20 +02:00
Sebastian Rasmussen 1cf5f4c421 Fix typos in salv.s after review comment 2019-10-21 13:51:36 +02:00
Sebastian Rasmussen 2bb7f50322 Adhere to common pattern even in last section of src/cmd/cas.x
All previous sections end with the sequence x/mn/r, but the section
:c9 ends with only x/mn. This is likely not correct.

Running

cd src/cmd
../../tools/as7 -o cas cas.s
../../tools/a7out cas cas2out cas.x

with and without this commit reveals a difference in cas2out.
Besides having the last number not be truncated, the trailing
statement for the :c9 entry:

c9=x-b+0264000

will only be emitted if the section ends with x/mn/r. This makes
cas emit well-formed output.
2019-10-21 04:08:21 +02:00
Sebastian Rasmussen 351d00a018 Remove comments interfering with cas from src/cmd/cas.x 2019-10-21 04:08:21 +02:00
Sebastian Rasmussen 483b7a28ce Reorder contents of pages 16 and 17 in src/cmd/cas.x
Pages 16 and 17 in scans/cas.x must have been accidentally reordered
when scanned. This commits reorders the contents in src/cmd/cas.x,
but leaves scans/cas.x contents identical to the source scans.
2019-10-21 04:08:21 +02:00
Sebastian Rasmussen 26ea74d622 Fix typo in cas.x after manual review 2019-10-21 04:08:21 +02:00
Sebastian Rasmussen 7520a46ce8 Separate out scans/cas.x from scans/cas.s and update README.md 2019-10-21 04:08:20 +02:00
Sebastian Rasmussen dd0a571a08 Fix typos in check.s after review comment 2019-10-21 03:48:14 +02:00
Sebastian Rasmussen 03b98deb15 Fix typos in check.s after manual review 2019-10-21 00:06:27 +02:00
Sebastian Rasmussen 76a4eee402 Use colon separator between filename and code source in scans/README.md 2019-10-21 00:02:37 +02:00
Sebastian Rasmussen 6a43ec6892 Add missing file to scans/README.md 2019-10-21 00:02:37 +02:00
Sebastian Rasmussen 46c73130e0 Fix typo in ttt1.s after manual review 2019-10-21 00:01:33 +02:00
Sebastian Rasmussen c49d92529a Fix typo in ald.s after manual review 2019-10-21 00:00:33 +02:00
Sebastian Rasmussen c39a800bf3 Fix typos in psych.s after manual review 2019-10-20 23:59:58 +02:00
Sebastian Rasmussen 9f5681ddab Fix typos in salv.s after manual review 2019-10-20 23:59:16 +02:00
Sebastian Rasmussen 15d186106d Fix typos in t6.s after manual review 2019-10-20 23:57:27 +02:00
Sebastian Rasmussen 8e565510ff Fix typos in t5.s after manual review 2019-10-20 23:56:44 +02:00
Sebastian Rasmussen db6946b5be Fix typos in t4.s after manual review 2019-10-20 23:55:51 +02:00
Sebastian Rasmussen 8cdfab6565 Fix typos in t3.s after manual review 2019-10-20 23:54:50 +02:00
Sebastian Rasmussen 828730833a Fix typos in cat.s after manual review 2019-10-20 23:52:58 +02:00
Sebastian Rasmussen f206461018 Fix typos in bc.s after manual review 2019-10-20 23:51:52 +02:00
Sebastian Rasmussen 6539e50f90 Use correct filenames in scans/README.md 2019-10-20 23:36:33 +02:00
Sebastian Rasmussen 57a1eb64e1 Fix typos in src/cmd/{adm,apr,as}.s 2019-10-19 22:29:16 +02:00
Sebastian Rasmussen 53e58bb6dc Fix typos in psych.s 2019-10-19 22:20:46 +02:00
Sebastian Rasmussen 5341d4d9fe Fix typos in adm.s, ald.s, apr.s and as.s 2019-10-19 22:20:46 +02:00
Sebastian Rasmussen fecb4c23a2 Fix typos in cas.s and t?.s 2019-10-19 22:20:46 +02:00
Sebastian Rasmussen dd77b444d9 Correct entries in scans/README.md referring to p?.s 2019-10-19 20:38:29 +02:00
Sebastian Rasmussen ecefc957ba Fix typos in p?.s.
Take opportunity to remove excutable permissions from source code files.
2019-10-19 20:07:19 +02:00
Sebastian Rasmussen 3c0dfb537c add moo.s 2019-10-19 19:38:40 +02:00
Sebastian Rasmussen 512a3d3939 add fop.s 2019-10-19 19:24:03 +02:00
Sebastian Rasmussen 1e5f5e31fe Remove duplicate entries in scans/README.md. 2019-10-19 19:06:10 +02:00
Sebastian Rasmussen ab0d441112 add ls.s 2019-10-19 18:29:08 +02:00
Sebastian RasmussenandPhil Budne b9d7f4a9be Remove unncessary whitespace at end of nm.s 2019-10-19 12:28:21 -04:00
Sebastian RasmussenandPhil Budne e68be483fb add nm.s 2019-10-19 12:28:21 -04:00
Sebastian RasmussenandPhil Budne 6c3941db4f add ln.s 2019-10-19 12:28:21 -04:00
Sebastian RasmussenandPhil Budne 16aa87c302 add op.s 2019-10-19 12:28:21 -04:00
Sebastian RasmussenandPhil Budne 9b178ab69e fix transcription typos in scope.v 2019-10-19 12:28:21 -04:00
Sebastian Rasmussen 463c6d2ba6 Remove unncessary whitespace at end of nm.s 2019-10-19 18:02:23 +02:00
Sebastian Rasmussen 9ede496a40 add nm.s 2019-10-19 17:54:49 +02:00
Sebastian Rasmussen f8ff9be525 add ln.s 2019-10-19 17:32:04 +02:00