Keil Logo

µVISION DEBUGGER: WRONG CODE IN DISASSEMBLY WINDOW


Information in this article applies to:

  • µVision Version 2 and later

QUESTION

When I view my program in the µVision Debugger, a line of my C code seems to have been incorrectly compiled. I have written the following statements:

TL0 = 0x80;
TH0 = 0x6F;

When I review the code in the disassembly window of the µVision debugger, it appears as:

TL0 = 0x80;
       MOV  MyValue(0x8A),#P0(0x80)
TH0 = 0x6F;
       MOV  TH0(0x8C),#0x6F

It looks like the line TL0 = 0x80; is not correctly translated. Is this a compiler bug?

ANSWER

No. This is not a compiler bug. The disassembly tries to insert symbolic values. However, your program has already a symbolic equate statement or other variables with the value 0x8A. Therefore, the disassembly shows the wrong symbol. Note that the code is fully correct, since 0x8A is the memory location for TL0.

SEE ALSO

Last Reviewed: Monday, May 3, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.