??? 03/04/10 07:49 Modified: 03/04/10 08:19 Read: times |
#173818 - That, in fact, IS it Responding to: ???'s previous message |
Jan Waclawek said:
Now I don't quite understand what are you complaining of - is it the difference between simulation and the real thing?
I'm not complaining about anything, but as you can see in the debugger, all XRAM locations are initialized to 0, which is hardly ever the case with the real thing. I think there should be atlest an option for this in simulator whether to fill uninitialized location with random data in order to get a closer approximation of the real world. I remember once having defined an uninitialized image_buffer[] in XDATA which filled the LCD with all sort of garbage. I think we must try to understand why a piece of code works as equally as why it does not (not forget to mention not relying too much on the simulator!) The reason is clear now: strcat() or strcpy() in real hardware did't stop copying after buffer[1]. Andy Neil said:
Didn't you notice, then, in the debugger that the NUL termination was missing? I think the falsifying debugger was at fault too! (okay, I'm complaining :-) ) |