Software Archive
Read-only legacy content
17061 Discussions

Number of bytes in instruction

isnsdlk
Beginner
462 Views
Calculation length of instructions
?
0 Kudos
3 Replies
TimP
Honored Contributor III
462 Views
Your message is cryptic enough to allow for a wide variety of possibilities. Maybe youwould beinterested in how gnu objdump does it, when disassembling code.http://sourceware.org/binutils/
0 Kudos
isnsdlk
Beginner
462 Views

Example:

.text:00413279 push offset aEnvironmentdir ; "
.text:0041327E push eax
x1:.text:0041327F jmp x3

x:2:.text:00413281 mov ecx, [ebp+var_110]
.text:00413287 push ecx
.text:00413288 mov edi, eax
x3:.text:0041328A call ebx
.text:0041328C push esi

Without disassembling determin length in bytes of arbitrary instruction?.

What value of displacement between labels x1 and x2 if during execution currentEIP is not appropriated consistently?

0 Kudos
Intel_Software_Netw1
462 Views

Some of our engineering contacts have reviewed your post, but are having difficulty understanding your question. Might you be able to provide additional details?

If you are more comfortable using a language other than English, please let us know which one, in case we have an engineering contact who can assist you in that language.

==

Lexi S.

IntelSoftware NetworkSupport

http://www.intel.com/software

Contact us

0 Kudos
Reply