Masm indirect addressing mode for MOV commmand -
I have tried the following forms and not like any of them:
Mov byte [marivale], al wax byte ptr [merivable], al mov [byte marial], al
What am I missing? Why can not I use an indirect address
On some incorrect lines, the "missing operator is missing the expression", some of them say "the structure area is expected"
myVariable equ 0404h
does not declare a variable, it replaces all constants with their values in a continuous object file . Therefore,
mov [myVariable] becomes al
mov [0404h], al
that is invalid.
You must assign a value to a register, such as:
mov di, 0404h mov byte PTR [D], AL
Comments
Post a Comment