top | item 21734785

(no title)

excessive | 6 years ago

x86's version of a single "instruction" is frequently a large class of opcodes. It's kind of crazy considering the assembler chooses one of the following numbers for "mov" based on the operand types, not the mnemonic:

    88, 89, 8A, 8B, 8C, 8E, A0, A1, A2, A3, B0, B8, C6, C7
This also ignores all of the prefix bytes.

https://www.felixcloutier.com/x86/mov

discuss

order

mike_hock|6 years ago

Also, MOV is far from only a bit copy. It's (potentially, depending on the operands), left shift, add, load, store.