Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revised
op_write_opcode
function (#25)
* Revised `op_write_opcode` function Happy new year, this pull has revised the `op_write_opcode` function, which was previously mis-interpreted. According to the Intel x86 docs, a instruction **including** a byte-sized operand **MUST** use the byte instruction opcode. This is demonstrated in the MOVZX instruction's docs on 4-136 Vol. 2B where a seperate opcode is used with `r/m8`. * Added *normal* opcode In the previous commit, 20efed7, I've forgotten to return the normal opcode (Slap slap) which caused some of the unit tests to fail where the normal operands are given.
- Loading branch information