On Sunday 11 January 2009, Tachdaun wrote: > Hi, this one is for Groepaz: Than you've done something wrong, as it shows up on the list. ;-) > why is not $100 to $1FF used for stack, and why is Save RAM used for > global variables? $100 to $1ff is used for the stack too. The processor stores return adresses for subroutines there, two bytes per nested call. Even without those return addresses 256 bytes is not very much space for local variables. So cc65 uses a software stack for local variables. Ciao, Marc 'BlackJack' Rintsch -- “Design patterns are kind of like sarcasm: hard to use well, not always appropriate, and disgustingly bad when applied to problems they are not meant to solve.” -- ajones in c.l.python ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.8 : 2009-01-11 10:27:44 CET