instruction length intel 8086

Discussion in 'Assembly Language Programming (ALP) Forum' started by adam2009, Aug 16, 2009.

  1. adam2009

    adam2009 New Member

    Joined:
    Jul 10, 2009
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    hey,

    I have got 2 questions that made me confused (attached).

    how can i know what's the length of a given instruction?
    (is it anywhere to be found on the net?)

    another q:
    is pointer in intel 8086 always 4 bytes?
    or is it a word (2 bytes)


    Thanks
     

    Attached Files:

  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    The length depends on the instruction and you can find that info in the processor data sheet.

    I think pointers are 2 bytes; this goes back a long way and again you can find the definitive answer in the data sheet. x86 uses segment offset pointers (two 16-bit pointers) to extend the address space beyond 64K, and the segment provides the upper two bytes and the offset the lower two bytes, although there is some overlap, so 0x1234:0x0005 points to the same place as 0x1200:0x0345 (i.e. 0x12345). Exactly which x86 family member implements what overlap is again something you should find in the data sheet.
     

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