Re: [cc65] Interrupt <-> C runtime environment

From: Greg King <greg.king41verizon.net>
Date: 2011-07-12 18:45:59
From: "marcas"; on Monday, July 11, 2011; at 01:11 PM -0400
>
> What is the base address of the software stack?

The first address in the "sp" variable is stored by the program's
start-up code (in CC65 library files called "crt0.s").

> What is the address of the stack pointer (or index counter) for the
> software stack?

"sp" is defined by the file "libsrc/runtime/zeropage.s".

> What is the maximum size of the software stack?

It is defined by a platform's ld65 configuration file.
(Look in "src/ld65/cfg/".)

> Only if the stack parameters are flexible: is there an intrinsic C
> header file with definitions to access that software stack?

Does <stdarg.h> do what you want?

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jul 12 19:55:39 2011

This archive was generated by hypermail 2.1.8 : 2011-07-12 19:55:42 CEST