RE: [cc65] Relocating the stack?

From: Shawn Jefferson <sjefferson1shaw.ca>
Date: 2010-08-02 04:03:40
The stack is defined in the crt0.s file (download and look at the cc65
runtime source code.)  It's defined as (__RAM_START__ + __RAM_SIZE__).  I
don't know much about the Vic20, so I don't know if you can override this
with a custom config file only, or whether you would have to provide your
own crt0.s.  On the Atari 8-bit, it's easiest to go with a custom crt0.s
file to relocate the stack.

 

  _____  

From: owner-cc65@musoftware.de [mailto:owner-cc65@musoftware.de] On Behalf
Of Payton Byrd
Sent: Sunday, August 01, 2010 6:02 PM
To: cc65
Subject: [cc65] Relocating the stack?

 

I'm trying to squeeze some more memory out of the 32k expanded VIC-20.  The
memory config provided in the cc65 distribution leaves 8k of RAM unmolested
at $A000 to $BFFF.  I would like to relocate the STACK and HEAP to this
memory so I can place more code in banks 1, 2, and 3.  After reading the
ld65 docs I don't understand how I could accomplish this.  Can anyone help
with this task?

 

Thanks!

Payton



----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Aug 2 04:03:02 2010

This archive was generated by hypermail 2.1.8 : 2010-08-02 04:03:04 CEST