my code is 110% correct; eg no errors and runs properly. see.
int _val; int myfunc2(int val) { _val = val; return _val; }; int Bar(int val) { return _val + val + 1; }; void myfunc1(int val) { _val += Bar(val); }; etc etc etc
it doesnt give me the right answer sometime.
HEEEEEEEELLLLLLLPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP
the only reason it worked is that the cpu was NOT functioning as it should per the datasheet.
What on earth are you talking about? Hans-Bernhard Broeker presented a perfectly logical explanation for the observed behavior.
except that the moronic programmer couldn't realize it.
Such mistakes are rarely related to one being a moron. Everybody makes mistakes, and as specified already- sometimes it the environment, not the code itself!