1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-05 08:05:51 +00:00
cc65/libsrc/runtime
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
..
add.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
addeqsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
addysp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
along.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
and.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
aslax1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
aslax2.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
aslax3.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
aslax4.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
asleax1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
asleax2.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
asleax3.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
asleax4.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
asr.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
asrax1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
asrax2.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
asrax3.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
asrax4.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
asreax1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
asreax2.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
asreax3.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
asreax4.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
axlong.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
bneg.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
bpushbsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
call.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
callirq.s Moved IRQ hooking / unhooking from startup code to constructor / destructor to avoid linking in the hooking / unhooking code (and callirq) for the majority of cc65 prorams not linking in interruptors. 2013-02-12 22:39:38 +00:00
callmain.s Changed run location of INIT segment. 2015-10-14 22:52:09 +02:00
compl.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
condes.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decax1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decax2.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decax3.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decax4.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decax5.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decax6.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decax7.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decax8.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decaxy.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decsp1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decsp2.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decsp3.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decsp4.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decsp5.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decsp6.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decsp7.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
decsp8.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
div.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
enter.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
eq.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ge.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
gt.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
icmp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
idiv32by16r16.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
imul8x8r16.s Changed literal zeroes of the style "#>0" into the style "#>$0000". 2014-09-10 19:15:07 -04:00
imul16x16r32.s Fixed the comments to say where the actual Left-Hand Side and Right-Hand Side are put. 2014-05-11 10:43:06 -04:00
incax1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incax2.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incax3.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incax5.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incax6.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incax7.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incax8.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incaxy.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incsp1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incsp2.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incsp3.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incsp4.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incsp5.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incsp6.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incsp7.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
incsp8.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
jmpvec.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ladd.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
laddeq.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
laddeqsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
land.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lasr.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lbneg.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lcmp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lcompl.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ldai.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ldau0sp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ldaui.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ldauisp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ldaxi.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ldaxsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ldeaxi.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ldeaxysp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ldec.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ldiv.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
le.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
leaaxsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
leave.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
leq.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lge.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lgt.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
linc.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lle.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
llt.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lmod.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lmul.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lne.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lneg.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lor.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lpop.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lpush.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lrsub.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lsave.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lshelp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lshl.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lshr.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lsub.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lsubeq.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lsubeqsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lt.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ltest.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ludiv.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
luge.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lugt.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lule.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lult.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lumod.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
lxor.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
makebool.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
mod.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
mul8.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
mul.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
mulax3.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
mulax5.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
mulax6.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
mulax7.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
mulax9.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
mulax10.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ne.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
neg.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
or.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
popa.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
popsreg.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
push1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
push2.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
push3.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
push4.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
push5.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
push6.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
push7.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
pusha.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
pushaff.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
pushax.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
pushb.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
pushbsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
pushc0.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
pushc1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
pushc2.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
pushlysp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
pushw.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
pushwsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
regswap1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
regswap2.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
regswap.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
return0.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
return1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
rsub.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
shelp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
shl.s Comment and tab fix. No code changes. 2012-07-06 19:56:42 +00:00
shr.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
shrax1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
shrax2.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
shrax3.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
shrax4.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
shreax1.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
shreax2.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
shreax3.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
shreax4.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
staspidx.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
staxsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
staxspi.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
steaxsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
steaxspi.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
stkchk.s Changed run location of INIT segment. 2015-10-14 22:52:09 +02:00
sub.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
subeqsp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
subysp.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
swap.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
tosint.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
toslong.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
udiv32by16r16.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
udiv.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
uge.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ugt.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ule.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
ult.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
umod.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
umul8x8r16.s Fixed the comments to say where the actual Left-Hand Side and Right-Hand Side are put. 2014-05-11 10:43:06 -04:00
umul8x16r24.s Fixed the comments to say where the actual Left-Hand Side and Right-Hand Side are put. 2014-05-11 10:43:06 -04:00
umul16x16r32.s Fixed the comments to say where the actual Left-Hand Side and Right-Hand Side are put. 2014-05-11 10:43:06 -04:00
xor.s Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
zeropage.s Made EXTZP segment option for modules. 2013-06-28 00:30:24 +02:00