Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

ModRM and SIB are not a prefix, they're part of the opcode (second and third byte after all the prefixes and the 0Fh/0F38h/0F3Ah opcode map selectors)


More specifically, they're affixed to certain opcodes that require them. There are a number of byte-sized opcodes that do not require a ModRM or SIB byte (although a number of those got gobbled up to make the REX prefix, but that's another story).

TL;DR Weeee! Intel machine language is crazy!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: