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
  • In A51 the next definitions takes two cells of RAM, (0AH), for example, and (0BH):

    data_variable: DS 1
    typeless_number EQU 0BH


    No it doesn't. This will only consume one byte of memory. EQUs don't reserve memory --- they're just fancy names for fixed numbers.

    What the instruction

    MOV A, typeless_number
    might put into the accu is random garbage. If it shows 0x0B for you, that's pure coincidence.

    I strongly recommend you have a go over the A51 manual and look up each and every language element you used, before you proceed. You've acquired some serious misconceptions that need sorting out.

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

    data_variable: DS 1
    typeless_number EQU 0BH


    No it doesn't. This will only consume one byte of memory. EQUs don't reserve memory --- they're just fancy names for fixed numbers.

    What the instruction

    MOV A, typeless_number
    might put into the accu is random garbage. If it shows 0x0B for you, that's pure coincidence.

    I strongly recommend you have a go over the A51 manual and look up each and every language element you used, before you proceed. You've acquired some serious misconceptions that need sorting out.

Children
More questions in this forum