Let's assume we are writing assembly code using MASM 6.1 / 16 bit / huge data model, and we have a variable (label) named MY_VAR, a segment named MY_SEG and a segment group named MY_GROUP. Let's assume MY_VAR is placed in MY_SEG, and MY_SEG belongs to MY_GROUP.
Then, what is the difference between the following two statements:
1) MOV AX, MY_SEG
2) MOV AX, SEG MY_SEG:MY_VAR
Furthermore, what is the difference between the following two statements:
1) MOV AX, MY_GROUP
2) MOV AX, SEG MY_GROUP:MY_VAR
Note: MASM happily processes all of these statements. As expected (in my case), the results of each 1) and 2) are the same. But I would like to know for sure ...
Thank you very much,
Binarus