Cant see the connection between that and the problem i'm having.
*edit* If i remove the interrupts from my code it compiles fine, so its def something to do with interrupts.
Cant see the connection between that and the problem i'm having.
*edit* If i remove the interrupts from my code it compiles fine, so its def something to do with interrupts.
Last edited by Kamikaze47; - 19th March 2008 at 11:09.
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
I believe the problem is that your program is creating too many temporary variables. The program isn't too long, but you will have to simplify some of your lines. Break up some of the longer statements into two or more smaller ones.
Charles Linquist
Thanks Charles.
It was this line causing the problem:
I'll expand it out into a number of IF statements and that'll fix it.Code:IF (temp>=$32 AND temp<=$47) OR (temp>=$3A AND temp<=$40) OR (temp>=$5B AND temp<=$60) OR (temp>=$7B AND temp<=$7E) OR (t2b_word_length+index=t2b_focus_length) THEN
Cheers
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
IF (temp>=$32 AND temp<=$47) OR (temp>=$5B AND temp<=$60) OR (temp>=$7B AND temp<=$7E) OR (t2b_word_length+index=t2b_focus_length) THEN[/QUOTE]IF (temp>=$32 AND temp<=$47) OR (temp>=$3A AND temp<=$40) OR (temp>=$5B AND temp<=$60) OR (temp>=$7B AND temp<=$7E) OR (t2b_word_length+index=t2b_focus_length) THEN
You can get rid of one of the temp-AND cases in the >$32 and <$47...first couple of ANDs
Might save just that one AND/OR temp variable right there...
thanks skimask, cos u actually pointed out a bug in my code there. the first set should have been $20 to $2F... i accidentally put the decimal numbers in instead of hex.
"I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams
thanks Kamikaze47, cos u actually pointed out a bug in my code there.
Should have been ...Then it would display a relevant "Warning", instead of obscure errors.Code:ifdef T8 ifndef NO_T7_WARNING messg "Temp variables exceeding T7" endif endif
<br>
DT
Bookmarks