x86 Displacement?

Programming, for all ages and all languages.
Post Reply
cxzuk
Member
Member
Posts: 164
Joined: Mon Dec 21, 2009 6:03 pm

x86 Displacement?

Post by cxzuk »

This this correct?

A displacement opcode is only needed if used with a SIB OR when the displacement is a direct address in mode 00?

Cheers,
Mike
User avatar
neon
Member
Member
Posts: 1567
Joined: Sun Feb 18, 2007 7:28 pm
Contact:

Re: x86 Displacement?

Post by neon »

Hello,

The displacement byte is only used with indirect addressing modes so I believe you are correct.
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}
Post Reply