cman
2007-03-10 13:54:55 UTC
I am trying to understand memory addressing in 8086 assembler.
Especially use of the square brackets in the mov instruction. What
exactly does the square brackets refer to?
If I have a variable "str" and do the following, what does it mean:
mov str, "H" - is this legal code, what does it do?
and, mov [str], "H"
Also, I read that just using mov dx, str - would move the memory
address of "str" into dx, or is the the actual contents of "str" which
is Hello. I'm coming from C, looks like the [] is a dereference
operator, and the "address of" is implied in assembly. Please guide me
here.
tilak
Especially use of the square brackets in the mov instruction. What
exactly does the square brackets refer to?
If I have a variable "str" and do the following, what does it mean:
mov str, "H" - is this legal code, what does it do?
and, mov [str], "H"
Also, I read that just using mov dx, str - would move the memory
address of "str" into dx, or is the the actual contents of "str" which
is Hello. I'm coming from C, looks like the [] is a dereference
operator, and the "address of" is implied in assembly. Please guide me
here.
tilak