Keil Logo

µVISION DEBUGGER: WATCHING ASSEMBLY VARIABLES


Information in this article applies to:

  • µVision Version 2.07

QUESTION

I want to watch a word in XDATA memory. The variable is defined in my assembly code as follows:

mike:   ds   2

How can I do this? Also, is there a way to add a constant value to this variable from within the debugger?

ANSWER

To add this assembly variable to the watch window, you must use the following command:

ws _rword(&mike)

To initialize this variable to a value of 300, enter the following code in the debugger's command window:

_wword(&mike,300)

And, to add 300 to it, enter the following code in the debugger's command window:

_wword(&mike, _rword(&mike) + 300)

Last Reviewed: Tuesday, June 29, 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.