Skip to main content

luaur_code_gen/methods/
assembly_builder_x_64_inc.rs

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