rust-x86asm
rust-x86asm copied to clipboard
Fix encoding of instructions with add_opcode and REX registers
This fixes encoding of 'POP R8', 'PUSH R15', etc.
Previously, no "rex byte" was generated when using REX registers with instructions that use opcode_add and the register code (>= 0x8) overflowed into the primary opcode, thus changing the instruction in itself.