I am making a calculator-type program, and I use this to get a number from the user and store it:
mov ah, 01h
int 21h
mov offset num1, al
and at the end of the code I have num1 set up as a byte with
num1 db 0
giving it a default value of 0.
The problem is, when I try to move the value from num1 back into a register to perform the actual operation:
mov bl, offset num1
I get an error saying the second operand is over 8 bits, and I cannot figure this out through any searching of the internet/manuals.
Also, I use offset vars because that is how I was initially taught them and I don't really understand them any other way.