From cdef9f137fe37c078c1f76b04c359c4f5095af14 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 4 Mar 2025 12:05:04 -0500 Subject: listamsb: tweak warning (make it fit on an 80-column line). --- listamsb.1 | 10 ++++++---- listamsb.c | 2 +- listamsb.rst | 8 +++++--- 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 -- cgit v1.2.3