Keil™, An ARM® Company

Technical Support

DSCOPE: WATCHING ASSEMBLY VARIABLES


Information in this article applies to:

  • C51 Version 5.50a

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 100 to this variable from within the debugger?

ANSWER

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

ws uint(x:&mike)

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

uint(x:&mike) = 100

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

uint(x:&mike) += 100

Last Reviewed: Monday, November 06, 2000


Did this article provide the answer you needed?
 
Yes
No
Not Sure