fix: rename OperandSize to OperandWidth

This commit is contained in:
2025-05-13 12:13:27 +09:00
parent a25e0a3890
commit c71ddb4419
3 changed files with 28 additions and 28 deletions

View File

@@ -2,8 +2,8 @@
/// Generate a byte Opcode for 'normal' ModRM instructions with mem access and a reg
macro_rules! modrmb {
($self:ident, $variant:ident) => {{
let (target, reg) = $self.parse_modrm_byte(OperandSize::Byte(0));
Mnemonic::$variant(target, Register::by_id(OperandSize::Byte(reg)))
let (target, reg) = $self.parse_modrm_byte(OperandWidth::Byte(0));
Mnemonic::$variant(target, Register::by_id(OperandWidth::Byte(reg)))
}};
}
@@ -11,8 +11,8 @@ macro_rules! modrmb {
/// Generate a word Opcode for 'normal' ModRM instructions with mem access and a reg
macro_rules! modrmv {
($self:ident, $variant:ident) => {{
let (target, reg) = $self.parse_modrm_byte(OperandSize::Word(0));
Mnemonic::$variant(target, Register::by_id(OperandSize::Word(reg.into())))
let (target, reg) = $self.parse_modrm_byte(OperandWidth::Word(0));
Mnemonic::$variant(target, Register::by_id(OperandWidth::Word(reg.into())))
}};
}
@@ -20,7 +20,7 @@ macro_rules! modrmv {
/// Generate a word Opcode for 'normal' ModRM instructions with mem access and a segment reg
macro_rules! modrms {
($self:ident, $variant:ident) => {{
let (target, reg) = $self.parse_modrm_byte(OperandSize::Word(0));
let (target, reg) = $self.parse_modrm_byte(OperandWidth::Word(0));
Mnemonic::$variant(target, SegmentRegister::by_id(reg))
}};
}