uVision2 debugger

In A51 the next definitions takes two cells of RAM, (0AH), for example, and (0BH):

data_variable: DS 1
typeless_number EQU 0BH

and can be treated with the same instruction:

MOV A,data_variable (F50A)
MOV A,typeless_number (F50B)

,but there is the value of "data_variable" displays properly in the "Watch" window,
"typeless_number" shows it's address instead
of the value.

How can I trace such a variable?

Parents
  • -Thanks alot, for a patience for silly questions :)!
    -I'm sorry for the incorrect formulation.
    Of corse, the first case is a "pure" variable, the second, -is a constant to refer to as an address, for example.
    But anyway, how it could be done, to see a random SFR using it's address?
    When I've typed following: ( WS 1, 0x0B ), in watch window appears name: 0x0B with the value: (0x000C)

Reply
  • -Thanks alot, for a patience for silly questions :)!
    -I'm sorry for the incorrect formulation.
    Of corse, the first case is a "pure" variable, the second, -is a constant to refer to as an address, for example.
    But anyway, how it could be done, to see a random SFR using it's address?
    When I've typed following: ( WS 1, 0x0B ), in watch window appears name: 0x0B with the value: (0x000C)

Children
More questions in this forum