luaur-code-gen 0.1.0

Native (A64/X64) code generation for Luau (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::records::assembly_builder_x_64::AssemblyBuilderX64;
use crate::records::operand_x_64::OperandX64;

impl AssemblyBuilderX64 {
    pub fn not_(&mut self, op: OperandX64) {
        // C++ `placeUnaryModRegMem("not", op, 0xf6, 0xf7, 2)` — must emit the
        // size-select opcode (0xf6/0xf7) + REX, not a bare ModRM byte.
        self.place_unary_mod_reg_mem(c"not".as_ptr(), op, 0xf6, 0xf7, 2);
    }
}