From 9afcefccaf54e05b9d5cd9054ec38489ae028c65 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 26 Feb 2025 05:30:45 -0500 Subject: listamsb: minor cleanup. --- listamsb.c | 2 +- listamsb.rst | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/listamsb.c b/listamsb.c index b139dd5..c0bf3e8 100644 --- a/listamsb.c +++ b/listamsb.c @@ -130,7 +130,7 @@ void read_header(void) { void unknown_token(int lineno, unsigned char byte, int ext) { warnings++; fprintf(outfile, "", (ext ? "ff ": ""), byte); + fprintf(outfile, "%s%02x>", (ext ? "$ff ": ""), byte); } int next_line(void) { diff --git a/listamsb.rst b/listamsb.rst index 37eb0ea..98c36ae 100644 --- a/listamsb.rst +++ b/listamsb.rst @@ -100,7 +100,7 @@ continues processing. A tokenized AMSB file always ends with three null bytes (*$00*\). This file doesn't. Probably the rest of the file is missing. -- line *N*: EOL address *A* too (low|high) +- line *L*: EOL address *A* too (low|high) Each line begins with the address of the next line. If the address is below *$0700*, it's below the minimum value of *MEMLO*, which @@ -108,11 +108,11 @@ continues processing. list, screen memory, or OS ROM (also impossible). File is corrupt, or not an AMSB file. -- line *N*: EOL address *A* <= previous *B* +- line *L*: EOL address *A* <= previous *B* Corrupt file, or not an AMSB file. -- line *N* EOL address doesn't match actual line length *L* +- line *L* EOL address doesn't match actual line length *N* Same as above: corrupt, or not AMSB. @@ -125,7 +125,7 @@ continues processing. The program contains a line number that's greater than *63999*. How did that happen? -- line *N* has character *C* outside of a string. maybe Atari BASIC? +- line *L* has character *C* outside of a string. maybe Atari BASIC? This happens when ATASCII codes 0 to 31 (*$1f*\) appear in the program. AMSB can create files like this, but at runtime, it's a syntax error. -- cgit v1.2.3