Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Assembly Language Programming (ALP) Forum (http://www.go4expert.com/forums/assembly-language-programming-forum/)
-   -   instruction length intel 8086 (http://www.go4expert.com/forums/instruction-length-intel-8086-t19068/)

adam2009 16Aug2009 18:44

instruction length intel 8086
 
1 Attachment(s)
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

xpi0t0s 17Aug2009 15:10

Re: instruction length intel 8086
 
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.


All times are GMT +5.5. The time now is 05:17.