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

From: Marc 'BlackJack' Rintsch <marc1rintsch.de>
Date: 2011-07-11 10:28:17
Hi,

> On 2011-07-10 04:51, Greg King wrote:
> > 2. Interrupts can happen in-between changes to the two bytes of the
> > Stack-Pointer -- the SP will be "indeterminate".  Therefore, your
> > interrupt functions must create their own stack.
> 
> Why do I need an own stack? The only problem is, that the stack is
> very small and overflows after 256 bytes. Maybe then I will have to
> copy it to have 256 bytes for every task.

Greg is not talking about the 256 bytes hardware stack of the processor 
at $100, but the software stack used by cc65 generated code for passing 
arguments and storing local variables.

Ciao,
	Marc 'BlackJack' Rintsch
-- 
“In Britain, it seems that all the attention in recent years has been
 on the evils of Mad Cow – with little or no heed paid to the Mad Men!
 Just because you don't eat the Mad Men is no reason to ignore the
 serious safety issue here.”      -- Michael Moore, “Stupid White Men”

----------------------------------------------------------------------
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 Jul 11 10:28:52 2011

This archive was generated by hypermail 2.1.8 : 2011-07-11 10:28:55 CEST