Re: [cc65] NES specific - memory space

From: Groepaz <>
Date: 2009-01-14 05:20:49
On Sonntag 11 Januar 2009, Tachdaun wrote:
> Hi, this one is for Groepaz:
> I've noted that global variables begin in address $6000, which is the
> area of Save RAM, that's why emulators create a .sav file when you run
> programs that use global variables.
> Then local variables take addresses starting from $07FF going downwards,
> this memory area should be the RAM itself.
> Am I right?
> why is not $100 to $1FF used for stack, and why is Save RAM used for
> global variables?

using save ram was an arbitrary decision, it just was a quick and dirty way of 
getting a memory setup that worked for me :) if you want to change it, simply 
look at the default nes linker script and modify it.


Paranoide Innenminister sind der Pickel am Arsch der Demokratie

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Jan 14 05:20:22 2009

This archive was generated by hypermail 2.1.8 : 2009-01-14 05:20:25 CET