]> git.sur5r.net Git - cc65/commitdiff
The (to be written) "Apple GEOS UnConvert" tool should be allowed to rely on a valid...
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 2 Jan 2012 23:30:55 +0000 (23:30 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Mon, 2 Jan 2012 23:30:55 +0000 (23:30 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5369 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/grc65/main.c

index 0e7c72ad827c186cbebe837a13c0660abf51526a..1cdf8e56a03b3c07b0c904790b4ba641b7a56889 100644 (file)
@@ -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"