Linear Address

Discussion in 'Assembly Language Programming (ALP) Forum' started by eblack10, Nov 16, 2010.

  1. eblack10

    eblack10 New Member

    Joined:
    Nov 16, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    If you have a variable that has a hexadecimal segment-offset address, 0x08D2:0x0140. What would be the linear address?
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    Depends how the segment and offset are merged. In one x86 mode they are simply concatenated, so the result would be 0x08D20140. But in another mode the segment is multiplied by 16 and added to the offset, so the result is 0x8D20+0x0140=0x8E60.
     
    eblack10 likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice