[cc65] Stack adressing

From: Jonathan MASUR <jmasur1microclub.ch>
Date: 2009-01-19 16:14:26
Hi.
Is there a way to change the way CC65 adress stack so instead of doing 
indirect adressing :
"lda [StackPtr],Y"

It would use some direct adressing to produce faster code :
"lda Stack,Y"

Of course the stack would be limited to 256 bytes, but at least it would 
be much faster, and fixing the stack pointer would also be faster as it 
would only involve some "iny" or "dey".

It could even be done that for words, the stack for hi-bytes is not the 
same for low bytes, so it would end up doing something like :
ldx StackHi,Y
lda StackLo,Y

which would probably be much faster than what CC65 currently does, and 
would push the limit to 512 bytes.

I guess I would have to look tough the sources of CC65 and change them 
so it does that, but I really am not competent enough to do such a thing.

Thanks for listening to me.
----------------------------------------------------------------------
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 Jan 19 16:09:59 2009

This archive was generated by hypermail 2.1.8 : 2009-01-19 16:10:02 CET