logoalt Hacker News

x86 prefixes and escape opcodes flowchart

46 pointsby gaultoday at 3:47 AM9 commentsview on HN

Comments

st_goliathtoday at 9:09 AM

Fun little tidbit: The 0x40-0x4f range used for the REX prefix actually clashes with the single-byte encodings for increment/decrement.

When AMD designed the 64 bit extension, they had run out of available single-byte opcodes to use as a prefix and decided to re-use those. The INC/DEC instructions are still available in 64 bit mode, but not in their single-byte encodings.

debugniktoday at 5:48 AM

This site redirects to HN when it notices HN in the referrer.

show 3 replies
snvzztoday at 7:38 AM

This is in no small part why x86 code density is awful despite variable size encoding.

tucnaktoday at 7:38 AM

I respect the disobedience.