ARM Technical Support Knowledge Articles

WATCHING ASSEMBLY VARIABLES

Applies to: uVision Debugger

Answer


Information in this article applies to:


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)

Article last edited on: 2004-06-29 11:17:01

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential