<div dir="ltr">The encoding where ESP as a base should be indicates that there's an additonal byte (the SIB byte) following this byte. The ESP base will be encoded in the SIB byte in this case.</div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Sep 12, 2013 at 1:24 AM, Jun Koi <span dir="ltr"><<a href="mailto:junkoi2004@gmail.com" target="_blank">junkoi2004@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div>hi,</div><div><br></div><div>i found this code in X86DisassemblerDecoder.h</div><div><br></div><div>#define EA_BASES_32BIT \</div><div> ENTRY(EAX) \</div><div> ENTRY(ECX) \</div>
<div> ENTRY(EDX) \</div><div> ENTRY(EBX) \</div><div> ENTRY(sib) \</div><div> ENTRY(EBP) \</div><div> ENTRY(ESI) \</div><div> ENTRY(EDI) \</div><div>
ENTRY(R8D) \</div><div> ENTRY(R9D) \</div><div> ENTRY(R10D) \</div><div> ENTRY(R11D) \</div><div> ENTRY(R12D) \</div><div> ENTRY(R13D) \</div><div> ENTRY(R14D) \</div>
<div> ENTRY(R15D)</div></div><div><br></div><div><br></div><div>the ENTRY(sib) looks suspicious. that should be ENTRY(ESP), no?</div><div><br></div><div>thanks.</div><span class="HOEnZb"><font color="#888888"><div>J</div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>~Craig
</div>