Skip to main content

luaur_code_gen/macros/
mod_rm.rs

1#[allow(non_snake_case)]
2#[inline(always)]
3pub const fn MOD_RM(mod_: u8, reg: u8, rm: u8) -> u8 {
4    ((mod_ << 6) | ((reg & 0x7) << 3) | (rm & 0x7)) as u8
5}