1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-04 03:56:13 +00:00
cc65/libsrc/cbm
Oliver Schmidt 0ee9b2e446 Changed run location of INIT segment.
So far the INIT segment was run from the later heap+stack. Now the INIT segment is run from the later BSS. The background is that so far the INIT segment was pretty small (from $80 to $180 bytes). But upcoming changes will increase the INIT segment in certain scenarios up to ~ $1000 bytes. So programs with very limited heap+stack might just not been able to move the INIT segment to its run location. But moving the INIT segment to the later BSS allows it to occupy the later BSS+heap+stack.

In order to allow that the constructors are _NOT_ allowed anymore to access the BSS. Rather they must use the DATA segment or the new INITBSS segment. The latter isn't cleared at any point so the constructors may use it to expose values to the main program. However they must make sure to always write the values as they are not pre-initialized.
2015-10-14 22:52:09 +02:00
..
c_acptr.s
c_basin.s
c_bsout.s
c_chkin.s
c_ciout.s
c_ckout.s
c_clall.s
c_close.s
c_clrch.s
c_getin.s
c_iobase.s
c_listen.s
c_load.s
c_open.s
c_readst.s
c_save.s
c_setlfs.s
c_setnam.s
c_talk.s
c_unlsn.s
c_untlk.s
cbm_close.s
cbm_dir.c
cbm_filetype.s
cbm_load.c Made _afailed() and uncompress() be fastcall functions. 2015-03-13 07:35:47 -04:00
cbm_open.s Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
cbm_read.s Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
cbm_save.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
cbm_write.s
cbm.inc
cclear.s
chline.s Allow to override chars used for horizontal and vertical lines. 2015-10-12 21:04:06 +02:00
clinechars.s Allow to override chars used for horizontal and vertical lines. 2015-10-12 21:04:06 +02:00
clock.s
close.s
closedir.s
ctype.s
curdevice.s
cvline.s Allow to override chars used for horizontal and vertical lines. 2015-10-12 21:04:06 +02:00
devicedir.s
dir.h Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
dir.inc
dir.s Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
diskcmd.s
diskinit.s
exec.c Made the Commodore version of exec() work in programs that are so big that they load into all of BASIC RAM. 2015-09-28 11:27:39 -04:00
execvars.s Made the Commodore version of exec() work in programs that are so big that they load into all of BASIC RAM. 2015-09-28 11:27:39 -04:00
exehdr.s
filedes.inc
filedes.s Changed run location of INIT segment. 2015-10-14 22:52:09 +02:00
filename.s
filetype.s
filevars.s Changed run location of INIT segment. 2015-10-14 22:52:09 +02:00
getdevice.s
gotox.s
gotoxy.s
gotoy.s
initcwd.s
loadaddr.s
mcbpointercolor.s Keep low level VIC sprite stuff out of user code. 2015-10-09 18:33:35 +02:00
mcbpointershape.s Keep low level VIC sprite stuff out of user code. 2015-10-09 18:33:35 +02:00
open.s
opendir.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
oserrlist.s
oserror.s
overlayaddr.s
penadjust.c
read.s Changed run location of INIT segment. 2015-10-14 22:52:09 +02:00
readdir.c Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
rewinddir.s
rwcommon.s
scratch.s
seekdir.c Fixed a buffer overrun bug. 2014-07-17 07:05:10 -04:00
syschdir.s Improved some multiplication code. 2014-07-17 07:11:14 -04:00
sysremove.s
sysrename.s
telldir.s
toascii.s
wherex.s
wherey.s
write.s Changed run location of INIT segment. 2015-10-14 22:52:09 +02:00