mirror of
https://github.com/cc65/cc65.git
synced 2024-12-23 19:29:37 +00:00
3d08abcfa8
Conceptually the INITBSS segment is not initialized in any way. Therefore it makes sense to not load it from disk. However the INIT segment has to be loaded from disk and therefore moved to its run location above the INITBSS segment. The necessary move routine increases runtime RAM usage :-( Therefore we now "unnecessarily" load the INITBSS segment from disk too meaning that the INIT segment is loaded at its run location. Therefore there's no need for the move routine anymore. After all we trade disk space for (runtime) RAM space - an easy decision ;-) Notes: - The code allowing to re-run a program without re-load present so far could not have worked as far as I can see as it only avoided to re-run the move routine but still tried to re-run the code in the INIT segment that was clobbered by zeroing the BSS. Therefore I removed the code in question altogether. I'm personally not into this "dirty re-run" but if someone wants to add an actually working solution I won't block that. - INITBSS is intentionally not just merged with the DATA segment as ROM-based targets can't reuse the INIT segment for the BSS and therefore have no reason to place the INIT segment above INITBSS. - Because ROM-based targets don't copy INITBSS from the ROM (like it is done with the DATA segment) all users of INITBSS _MUST_NOT_ presume INITBSS to be initialized with zeros! |
||
---|---|---|
.. | ||
apple2 | ||
atari | ||
atari5200 | ||
atmos | ||
c16 | ||
c64 | ||
c128 | ||
cbm | ||
cbm510 | ||
cbm610 | ||
common | ||
conio | ||
dbg | ||
em | ||
gamate | ||
geos-apple | ||
geos-cbm | ||
geos-common | ||
joystick | ||
lynx | ||
mouse | ||
nes | ||
osic1p | ||
pce | ||
pet | ||
plus4 | ||
runtime | ||
serial | ||
sim6502 | ||
supervision | ||
tgi | ||
vic20 | ||
zlib | ||
Makefile |