luaur-vm 0.1.3

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
use crate::type_aliases::instruction::Instruction;

#[allow(non_snake_case)]
#[inline(always)]
pub unsafe fn VM_PATCH_E(pc: *const Instruction, slot: i32) {
    *(pc as *mut Instruction) = ((slot as u32) << 8) | (0x000000ffu32 & *pc);
}