From: ol.sc
Date: Mon, 2 Jan 2012 23:30:55 +0000 (+0000)
Subject: The (to be written) "Apple GEOS UnConvert" tool should be allowed to rely on a valid...
X-Git-Tag: V2.13.3~96
X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=803686e179539c22d3269ca26149de1289105017;p=cc65
The (to be written) "Apple GEOS UnConvert" tool should be allowed to rely on a valid file size (aka EOF) in the ProDOS directory entry.
git-svn-id: svn://svn.cc65.org/cc65/trunk@5369 b7a2c559-68d2-44c3-8de9-860c34a00d81
---
diff --git a/src/grc65/main.c b/src/grc65/main.c
index 0e7c72ad8..1cdf8e56a 100644
--- a/src/grc65/main.c
+++ b/src/grc65/main.c
@@ -550,6 +550,7 @@ static void DoHeader (void)
if (apple == 1) {
fprintf (outputSFile,
+ "\t.import __VLIR0_START__, __VLIR0_LAST__, __BSS_SIZE__\n\n"
"\t.byte %i << 4 | %u\n",
myHead.structure + 2, (unsigned)strlen (myHead.dosname));
@@ -559,7 +560,8 @@ static void DoHeader (void)
"\t.byte $%02x\n"
"\t.word 0\n"
"\t.word 0\n"
- "\t.byte 0, 0, 0\n"
+ "\t.word __VLIR0_LAST__ - __VLIR0_START__ - __BSS_SIZE__\n"
+ "\t.byte 0\n"
"\t.word %i << 9 | %i << 5 | %i, %i << 8 | %i\n"
"\t.byte 0\n"
"\t.byte 0\n"