ft: implement more mnemonics

This commit is contained in:
2025-05-14 11:28:07 +09:00
parent b5c178ea61
commit 04493b1179
3 changed files with 95 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ macro_rules! modrms {
/// Generate the resulting Mnemonic from a GPR instruction with Byte-sized
/// Immediate, encoded in a ModRM byte.
/// GPR always has an imm value as second operand.
macro_rules! modrmgprb {
macro_rules! modrmgpr1b {
($self:ident) => {{
let (target, reg) = $self.parse_modrm_byte(Operand::Byte(0));
let imm = $self.parse_byte();
@@ -41,7 +41,7 @@ macro_rules! modrmgprb {
/// Generate the resulting Mnemonic from a GPR instruction with Word-sized
/// Immediate, encoded in a ModRM byte.
/// GPR always has an imm value as second operand.
macro_rules! modrmgprv {
macro_rules! modrmgpr1v {
($self:ident) => {{
let (target, reg) = $self.parse_modrm_byte(Operand::Word(0));
let imm = $self.parse_word();