From 390fd96ede9cca44ec752fba16901494c44f0279 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Thu, 26 Aug 2021 22:20:56 -0500 Subject: [PATCH] Do not report an error when the segment length equals the bank size. This is legal per the OMF definition in the GS/OS Reference (and it is accepted by the loader), so it should not be treated as an error. --- linker.notes | 3 +++ out.asm | 1 + 2 files changed, 4 insertions(+) diff --git a/linker.notes b/linker.notes index 3fcc839..d5fb4cc 100644 --- a/linker.notes +++ b/linker.notes @@ -22,6 +22,9 @@ Updated 2021 restrictive alignment of any of the object segments, and the alignment requirements of each object segment will be obeyed. + 3. A spurious error is no longer reported for code segments that + are exactly $10000 bytes long (the full size of a bank). + 2.0.5 1. On case-sensitive filesystems (which are not normally used natively on the Apple IIGS, but may be used through emulation tools or network file servers), the linker can now find object diff --git a/out.asm b/out.asm index a818fcd..2f72780 100644 --- a/out.asm +++ b/out.asm @@ -2495,6 +2495,7 @@ lb2 add4 length,loadPC update the length of the program beq lb2a cmpl loadPC,loadBanksize blt lb2a + beq lb2a ph4 #0 ph2 #18 jsr Error