luaur_code_gen/methods/assembly_builder_x_64_not.rs
1use crate::records::assembly_builder_x_64::AssemblyBuilderX64;
2use crate::records::operand_x_64::OperandX64;
3
4impl AssemblyBuilderX64 {
5 pub fn not_(&mut self, op: OperandX64) {
6 // C++ `placeUnaryModRegMem("not", op, 0xf6, 0xf7, 2)` — must emit the
7 // size-select opcode (0xf6/0xf7) + REX, not a bare ModRM byte.
8 self.place_unary_mod_reg_mem(c"not".as_ptr(), op, 0xf6, 0xf7, 2);
9 }
10}