This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debug Watch window and 8 bit variables

I am using version 5.05 of the C166 compiler and am seeing a strange problem displaying 8 bit variables in the Watch window. Rather than the value I expect, I see only the lower nibble with the upper nibble stuck at 0 (0x45 displays as 0x05).

I can see that the processor has the correct value because it is correctly shown in the Register window. This is a local function variable that has been optimized to be placed in a register rather than the stack.

Anybody else have this problem and know of a solution?

Thanks,
Barry

0