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

Parents
  • Hi Barry,

    unfortunately no solution, but the same problem.
    I was not sure before, whether this could be my mistake, when I cover this. I worked on array [][][] holding pixel values for a dot matrix display, showing some chinese characters.
    If I wrote a "scrolly" I became a little bit crazy, because I could not determine the right pixel values, exactly as you mentioned.
    If somebody has a solution, I would be interested in too.

    Stefan

Reply
  • Hi Barry,

    unfortunately no solution, but the same problem.
    I was not sure before, whether this could be my mistake, when I cover this. I worked on array [][][] holding pixel values for a dot matrix display, showing some chinese characters.
    If I wrote a "scrolly" I became a little bit crazy, because I could not determine the right pixel values, exactly as you mentioned.
    If somebody has a solution, I would be interested in too.

    Stefan

Children
No data