Re: [cc65] NES specific - memory space

From: Marc 'BlackJack Rintsch <marc1rintsch.de>
Date: 2009-01-11 10:27:29
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.
Received on Sun Jan 11 10:27:41 2009

This archive was generated by hypermail 2.1.8 : 2009-01-11 10:27:44 CET