In SX Microcontrollers, SX/B Compiler and SX-Key Tool, kd5dhu wrote: [2] Ok, further investigation.... It appears that I got bit by the: [b]PROGRAM Start[/b] [b]PROGRAM Start NOSTARTUP[/b] feature. (I was using PROGRAM Start NOSTARTUP to save a few bytes of code space, thought I was handling everything properly in my code.) If I don't set the [b]Year[/b] or [b]Leap[/b] variable to ZERO AND compile with [b]PROGRAM Start[/b], power cycle the Board for 30 seconds, it works as expected (no errors) However if I set: [b]PROGRAM Start NOSTARTUP[/b] DON'T define [b]Year[/b] or [b]Leap[/b], compile, power cycle the board for 30 seconds, then the error shows up. I might have expected he first run through of the SUB's to produce bogus results, but would have assumed that the next loop through would fix it's self. Moral of the story: If you don't know assembly (or what your doing) always use: PROGRAM Start [/2] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=145383#m145401 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)