How to use LOW or HIGH in A51?

I am writing a 8051 assembly program and try to use LOW/HIGH. When i ran the following

MOV  R1,#LOW   (variable)

R1 = LSB address byte of the variable, not LSB byte of the variable. How can I get it?

Parents Reply Children
More questions in this forum