aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blob2xex.16
-rw-r--r--blob2xex.c5
-rw-r--r--blob2xex.rst6
3 files changed, 1 insertions, 16 deletions
diff --git a/blob2xex.1 b/blob2xex.1
index ee00503..77b15b4 100644
--- a/blob2xex.1
+++ b/blob2xex.1
@@ -133,12 +133,6 @@ Normally this means the .xex file won\(aqt load properly on the
Atari, but feel free to ignore this warning if you know exactly
what you\(aqre doing.
.TP
-.B address would exceed $FFFF! truncated N bytes to N.
-The segment would wrap around the Atari\(aqs 64KB address space.
-\fBblob2xex\fP has truncated the input so the last address
-loaded is \fB$FFFF\fP\&. This warning usually means you gave the
-wrong load address or the wrong input file entirely.
-.TP
.B extra arguments after last input file ignored.
You gave at least one option that would affect the next file,
after the last file on the command line. Such options are ignored,
diff --git a/blob2xex.c b/blob2xex.c
index 413fb52..0fd5c58 100644
--- a/blob2xex.c
+++ b/blob2xex.c
@@ -100,10 +100,7 @@ int write_segment(
/* make sure we don't wrap the Atari's address space. */
if(size + loadaddr > 0xffff) {
- int oldsize = size;
size = (size - loadaddr) + 1;
- fprintf(stderr, SELF ": "
- "warning: %s: address would exceed $FFFF! truncated %d bytes to %d.\n", infile, oldsize, size);
}
/* read <size> bytes, or until EOF (which is not an error) */
@@ -213,7 +210,7 @@ int main(int argc, char **argv) {
if( (bytes = write_segment(infile, outfile, loadaddr, initaddr, offset, size)) ) {
segcount++;
loadaddr += bytes;
- loadaddr %= 0xffff;
+ loadaddr &= 0xffff;
} else {
segcount = 0;
break;
diff --git a/blob2xex.rst b/blob2xex.rst
index 9984b2b..0921886 100644
--- a/blob2xex.rst
+++ b/blob2xex.rst
@@ -110,12 +110,6 @@ created. There are only a few possible warnings:
Atari, but feel free to ignore this warning if you know exactly
what you're doing.
- address would exceed $FFFF! truncated N bytes to N.
- The segment would wrap around the Atari's 64KB address space.
- **blob2xex** has truncated the input so the last address
- loaded is **$FFFF**. This warning usually means you gave the
- wrong load address or the wrong input file entirely.
-
extra arguments after last input file ignored.
You gave at least one option that would affect the next file,
after the last file on the command line. Such options are ignored,