aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-05-29 16:12:06 -0400
committerB. Watson <urchlay@slackware.uk>2024-05-29 16:12:06 -0400
commit019032876e0421dd96d283eb8425f0c1e45ed2b9 (patch)
treea87ddd76ac62f3700bffaa8310839bf88db9c499
parent7558a8d9bda4e474baf1b625640a5868652a5bcb (diff)
downloadbw-atari8-tools-019032876e0421dd96d283eb8425f0c1e45ed2b9.tar.gz
unprotbas: consistently prefix hex with $ in verbose output.
-rw-r--r--unprotbas.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unprotbas.c b/unprotbas.c
index 6dd263c..e7a7df8 100644
--- a/unprotbas.c
+++ b/unprotbas.c
@@ -213,7 +213,7 @@ int fixcode(void) {
while(pos < filelen) {
tmpno = getword(pos);
if(tmpno <= lineno) {
- fprintf(stderr, "Warning: line number %d at offset %04x is <= previous line number %d\n",
+ fprintf(stderr, "Warning: line number %d at offset $%04x is <= previous line number %d\n",
tmpno, pos, lineno);
}
lineno = tmpno;
@@ -221,7 +221,7 @@ int fixcode(void) {
offset = data[pos + 2];
/* fprintf(stderr, "pos %d, line #%d, offset %d\n", pos, lineno, offset); */
if(offset < 6) {
- if(verbose) fprintf(stderr, "Found invalid offset %d (<6) at line %d, file offset %04x\n", offset, lineno, pos);
+ if(verbose) fprintf(stderr, "Found invalid offset %d (<6) at line %d, file offset $%04x\n", offset, lineno, pos);
offset += fixline(pos);
result++;
}
@@ -283,7 +283,7 @@ void breakcode(void) {
memmove(data + pos, badcode, offset);
if(verbose)
- fprintf(stderr, "Inserted line 32767 with invalid offset at file offset %04x\n", pos);
+ fprintf(stderr, "Inserted line 32767 with invalid offset at file offset $%04x\n", pos);
/* update pointers that would be affected by the code move */
stmcur += offset;
@@ -458,7 +458,7 @@ void adjust_vntable_size(int oldsize, int newsize) {
int move_by;
if(oldsize != newsize) {
move_by = newsize - oldsize;
- if(verbose) fprintf(stderr, "need %d bytes for vntable, have %d, moving VVTP by %d to %04x\n",
+ if(verbose) fprintf(stderr, "need %d bytes for vntable, have %d, moving VVTP by %d to $%04x\n",
newsize, oldsize, move_by, vvtp + move_by);
move_code(move_by);
}