From d357b9255a8f5ac869c51fa87c1ae9dea15839a9 Mon Sep 17 00:00:00 2001 From: Diego Dagum Date: Sun, 20 Sep 2020 18:34:10 -0700 Subject: [PATCH] Fixed two tutorial bugs. Official tutorial says in a paragraph: "The resulting image file ashello5.img has 248 bytes", but then an "ls -l" is offered to confirm and it correctly shows that the size is 132. It's gonna be 248 when the file is assembled with all .asm providing referenced symbols. The other fix is a bug in ashello.asm. It was missing a fundamental "DEF START" at the preamble. The omission was causing the symbol not to be included in the .obj. Consequently, when entering START as program name in E/A #3 (Load and Run), it was causing a "PROGRAM NOT FOUND" error. --- doc/MANUAL.md | 2 +- examples/ashello.asm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/MANUAL.md b/doc/MANUAL.md index 13a2cc9..eb1be66 100644 --- a/doc/MANUAL.md +++ b/doc/MANUAL.md @@ -281,7 +281,7 @@ option 5 using the image option `-i`. $ xas99.py -R -i ashello.asm -o ashello5.img Again, we override the default output name `ashello.img`, for later. The -resulting image file `ashello5.img` has 248 bytes and contains binary data. +resulting image file `ashello5.img` has 132 bytes and contains binary data. $ ls -l ashello5.img > dir ashello5.img diff --git a/examples/ashello.asm b/examples/ashello.asm index 28e1ea5..705dbf9 100644 --- a/examples/ashello.asm +++ b/examples/ashello.asm @@ -2,6 +2,7 @@ IDT 'ASHELLO' + DEF START REF VSBW,VMBW,VWTR REF KSCAN