From 7663d7e3f35daa07900557faa5a1e83fbbcdadb0 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 26 Feb 2025 04:27:04 -0500 Subject: listamsb: sanity check end-of-line addresses. --- listamsb.1 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'listamsb.1') diff --git a/listamsb.1 b/listamsb.1 index a21fb5a..a80a17d 100644 --- a/listamsb.1 +++ b/listamsb.1 @@ -27,7 +27,7 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. -.TH "LISTAMSB" 1 "2025-02-25" "0.2.1" "Urchlay's Atari 8-bit Tools" +.TH "LISTAMSB" 1 "2025-02-26" "0.2.1" "Urchlay's Atari 8-bit Tools" .SH NAME listamsb \- List the source of a tokenized Atari Microsoft BASIC program .SH SYNOPSIS @@ -116,6 +116,22 @@ unexpected EOF, file truncated? A tokenized AMSB file always ends with three null bytes (\fI$00\fP). This file doesn\(aqt. Probably the rest of the file is missing. .IP \(bu 2 +line \fIN\fP: EOL address \fIA\fP too (low|high) +.sp +Each line begins with the address of the next line. If the address +is below \fI$0700\fP, it\(aqs below the minimum value of \fIMEMLO\fP, which +is impossible. If it\(aqs above \fI$bc1f\fP, it would be in the display +list, screen memory, or OS ROM (also impossible). File is +corrupt, or not an AMSB file. +.IP \(bu 2 +line \fIN\fP: EOL address \fIA\fP <= previous \fIB\fP +.sp +Corrupt file, or not an AMSB file. +.IP \(bu 2 +line \fIN\fP EOL address doesn\(aqt match actual line length \fIL\fP +.sp +Same as above: corrupt, or not AMSB. +.IP \(bu 2 line number out of order .sp Probably means the file is corrupted, or isn\(aqt really an AMSB file. -- cgit v1.2.3