I wrote a very simple program to figure out some problems I was having with short int operations.
I did something like this --
short count = 3200;
and then I looked at the value of count as it incremented. The weird thing is that the high byte of count goes to 0x0c and then back to 0x0a and then to 0x0e. somehow it outputs 0x0a instead of 0x0d. Has anybody seen this problem before?
P.S. note that this happens only in case of shorts, and char are ok.