1
0
mirror of https://github.com/byteworksinc/ORCA-C.git synced 2025-04-28 04:42:28 +00:00

Don’t add the length of the last segment generated in the previous execution to that of the segment in the root file.

This would occur if ORCA/C remained in memory and was restarted after a previous execution, because the 'pc' value was not reinitialized. The ORCA linker seems to ignore the too-long segment length value, but ORCA/C should generate a correct value that actually corresponds to the length of the segment.
This commit is contained in:
Stephen Heumann 2016-11-25 23:38:32 -06:00
parent a4bffe65e5
commit 41fb05404e

@ -2021,6 +2021,7 @@ procedure InitFile {keepName: gsosOutStringPtr; keepFlag: integer; partial: bool
OpenObj(fname2);
{write the header}
InitNative;
Header(@'~_ROOT', $4000, 0);
{new desk accessory initialization}