[cc65] Strange problem

Date view Thread view Subject view

From: Shawn Jefferson (sjefferson_at_sd62.bc.ca)
Date: 2003-02-06 01:10:33


I'm having a strange problem with some code. I wasn't getting the results I expected, so I was dumping all values to a memory location and then using the Monitor in Atari800Win to view the contents as the function executed.  I assumed it was something to do with the automatic type casting that I always have trouble with.  I was getting strange numbers in the memory locations too, so I decided to look at an assembly listing of the function.

Am I correct in saying that local variables are put on the stack?  It appears that for some reason cc65 is grabbing a value from the stack incorrectly for some computations.  The weird thing is that if I take this out of my program and put into a small test file it works!

Would there be any case where the compiler would grab stuff from the stack beyond the local variables?

¯
Shawn Jefferson

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-02-06 01:13:12 CET