ARM Technical Support Knowledge Articles

ACCESSING SPECIAL VARIABLE NAMES

Applies to: uVision Debugger

Answer


Information in this article applies to:


QUESTION

I load my program into the debugger and try to watch the variables a, b, and state in my program. The watch window shows strange values that are not correct for my variables. What's going on?

ANSWER

By default, the debugger uses the name A to reference the accumulator (in the 51 and 251), B to access the B register (in the 51 and 251) and STATE to access the number of machine states that have occurred. To access the variables from your program named a, b, and state, use a back quote before the variable. For example:

ws `a
ws `b
ws `state

This adds watchpoints for your variables.

Article last edited on: 2004-06-28 21:13:24

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