instruction length intel 8086
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?)
is pointer in intel 8086 always 4 bytes?
or is it a word (2 bytes)
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 15:24.|