]> git.sur5r.net Git - cc65/commit
Adapted, to the c64 target, the INIT-segment overlay scheme from the apple2 targets.
authorGreg King <gregdk@users.sf.net>
Mon, 5 Oct 2015 09:47:43 +0000 (05:47 -0400)
committerGreg King <gregdk@users.sf.net>
Mon, 5 Oct 2015 09:47:43 +0000 (05:47 -0400)
commit074e10d28877647862d2dc94c2a8ce93e07585a1
tree7f089c9fa42d153807d6d0f81849b50cb5e193cf
parent24c2da980b0dab7186072ab57eb997e2aae3c173
Adapted, to the c64 target, the INIT-segment overlay scheme from the apple2 targets.

When a program starts running, INIT is moved from one place to another place.  Then, INIT's code is executed; and, the first place is re-used for variables.  After the INIT code has finished, the second place can be re-used by the heap and the C stack.  That means that initiation code and data won't waste any RAM space after they stop being needed.
asminc/c64.inc
cfg/c64-overlay.cfg
cfg/c64.cfg
libsrc/c64/crt0.s
libsrc/common/moveinit.s [new file with mode: 0644]