aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-03-04 12:05:04 -0500
committerB. Watson <urchlay@slackware.uk>2025-03-04 12:05:04 -0500
commitcdef9f137fe37c078c1f76b04c359c4f5095af14 (patch)
tree8d4c2ae5a95f2e442f64211e47d19a6d5e613b89
parent3a4a62b80be951cff247bdf475544bd50853a45a (diff)
downloadbw-atari8-tools-cdef9f137fe37c078c1f76b04c359c4f5095af14.tar.gz
listamsb: tweak warning (make it fit on an 80-column line).
-rw-r--r--listamsb.110
-rw-r--r--listamsb.c2
-rw-r--r--listamsb.rst8
3 files changed, 12 insertions, 8 deletions
diff --git a/listamsb.1 b/listamsb.1
index f4423a4..a800004 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-03-03" "0.2.1" "Urchlay's Atari 8-bit Tools"
+.TH "LISTAMSB" 1 "2025-03-04" "0.2.1" "Urchlay's Atari 8-bit Tools"
.SH NAME
listamsb \- List the source of a tokenized Atari Microsoft BASIC program
.SH SYNOPSIS
@@ -195,10 +195,12 @@ This happens when ATASCII codes 0 to 31 (\fI$1f\fP) appear in the program.
AMSB can create files like this, but at runtime, it\(aqs a syntax error.
More likely, it means this is an Atari BASIC file.
.IP \(bu 2
-actual program size doesn\(aqt match program size in header
+program size doesn\(aqt match size in header
.sp
-Might mean this isn\(aqt an AMSB file. If you\(aqre sure it is, part of the file
-might have been overwritten with \fI$00\fP bytes.
+Might mean this isn\(aqt an AMSB file. If you\(aqre sure it is, it might
+be truncated, or part of the file might have been overwritten
+with \fI$00\fP bytes. It could also mean the length in the header has
+somehow gotten corrupted.
.IP \(bu 2
trailing garbage at end of file
.sp
diff --git a/listamsb.c b/listamsb.c
index 5a4bd80..52d7bc7 100644
--- a/listamsb.c
+++ b/listamsb.c
@@ -147,7 +147,7 @@ void finish(int rv) {
if(proglen == progsize) {
verbose(1, "file size matches proglen");
} else {
- warn("actual program size %d doesn't match program size %d in header,",
+ warn("program size %d doesn't match size %d in header,",
progsize, proglen);
fputs(" ", stderr);
if(proglen > progsize) {
diff --git a/listamsb.rst b/listamsb.rst
index 4cdf8cc..91fa4e9 100644
--- a/listamsb.rst
+++ b/listamsb.rst
@@ -171,10 +171,12 @@ continues processing.
AMSB can create files like this, but at runtime, it's a syntax error.
More likely, it means this is an Atari BASIC file.
-- actual program size doesn't match program size in header
+- program size doesn't match size in header
- Might mean this isn't an AMSB file. If you're sure it is, part of the file
- might have been overwritten with *$00* bytes.
+ Might mean this isn't an AMSB file. If you're sure it is, it might
+ be truncated, or part of the file might have been overwritten
+ with *$00* bytes. It could also mean the length in the header has
+ somehow gotten corrupted.
- trailing garbage at end of file