Peet19
Member
Hi All!
How can you transfer the value of a register to a local variable within a macro?
I've tried the following but it doesn't work.
Thus, you pass the address to the variable, not its value.
Thank you in advance for your help!
How can you transfer the value of a register to a local variable within a macro?
I've tried the following but it doesn't work.
Code:
TESTM MACRO
LOCAL B = SPEED
MOVLW B
MOVWF MSH
ENDM
Thus, you pass the address to the variable, not its value.
Thank you in advance for your help!