µVISION DEBUGGER: WATCHING ASSEMBLY VARIABLES
Information in this article applies to:
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?
To add this assembly variable to the watch window, you must use the following command:
To initialize this variable to a value of 300, enter the following code in the debugger's command window:
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
of your data.