Assembly Calculating location of variables

43 Views Asked by At
MYDATA SEGMENT

ARRAY DD 30 DUP(?)
MESSAGE DB 'Hello World$'
BA DD MESSAGETWO

MYDATA ENDS


DATASECOND SEGMENT

HELLO DB 20 DUP(?)
MESSAGETWO 'I AM ASSEMBLY$'

DATASECOND ENDS

The Physical address of MYDATA is 19AC0h

What is the offset of MESSAGE ? what is the offset of MESSAGETWO ?

I don't know how to do it, do I just count the array (30) + count the letters in MESSAGE ? (11) = 41 ?

And what about MESSAGETWO ? Does it matter it is not the same segment?

Thank you!

0

There are 0 best solutions below