|
From: <no...@so...> - 2002-09-24 11:31:02
|
Bugs item #613775, was opened at 2002-09-24 11:31 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=613775&group_id=599 Category: z80 port Group: None Status: Open Resolution: None Priority: 5 Submitted By: Stan Croft (scroft) Assigned to: Nobody/Anonymous (nobody) Summary: Stack pointer lost in loop Initial Comment: void bug (float f) { long buf[50]; unsigned char i; i=10; do { buf[i]=f; } while (--i); } void main() { bug(1.414); } At the "while (--i)" point the stack pointer changes downward by 4 bytes at each iteration resulting in loss of reference to i. A smaller buf (less than 128 bytes) works. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=613775&group_id=599 |