Understanding the nop byte(s)

Posted by Cole Johnson on Super User See other posts from Super User or by Cole Johnson
Published on 2012-06-05T14:11:14Z Indexed on 2012/06/05 16:42 UTC
Read the original article Hit count: 269

Filed under:
|
|
|

Ok, so I was reading through the AMD64 manuels and knowing that nop is really an xchg eax, eax, I looked at the xchg and found something interesting, that it seems a byte can be encoded into the instruction for specifying the registers (apologies I'm on my iPod): picture.

So what I am wondering is how does the processor know if there is a byte after to work with or is it that that extra register has to be of type rAX causing it to actually still be the one byte 0x90

© Super User or respective owner

Related posts about 64-bit

Related posts about x86