chore: use lower letters for disasm output

This commit is contained in:
2025-05-13 14:20:25 +09:00
parent 4443f84297
commit 6908fb3c69
2 changed files with 34 additions and 32 deletions

View File

@@ -1,5 +1,5 @@
#[macro_export]
/// Generate a byte Opcode for 'normal' ModRM instructions with mem access and a reg
/// Generate a Mnemonic for an 8-bit Register from a ModRM byte.
macro_rules! modrmb {
($self:ident, $variant:ident) => {{
let (target, reg) = $self.parse_modrm_byte(ImmediateOperand::Byte(0));
@@ -8,7 +8,7 @@ macro_rules! modrmb {
}
#[macro_export]
/// Generate a word Opcode for 'normal' ModRM instructions with mem access and a reg
/// Generate a Mnemonic for a 16-bit Register from a ModRM byte.
macro_rules! modrmv {
($self:ident, $variant:ident) => {{
let (target, reg) = $self.parse_modrm_byte(ImmediateOperand::Word(0));
@@ -17,7 +17,7 @@ macro_rules! modrmv {
}
#[macro_export]
/// Generate a word Opcode for 'normal' ModRM instructions with mem access and a segment reg
/// Generate a Mnemonic for a 16-bit Segment Register from a ModRM byte.
macro_rules! modrms {
($self:ident, $variant:ident) => {{
let (target, reg) = $self.parse_modrm_byte(ImmediateOperand::Word(0));
@@ -26,7 +26,8 @@ macro_rules! modrms {
}
#[macro_export]
/// Generate a GPR instruction from modrm byte for byte.
/// 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 {
($self:ident) => {{
@@ -37,7 +38,8 @@ macro_rules! modrmgprb {
}
#[macro_export]
/// Generate a GPR instruction from modrm byte for word
/// 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 {
($self:ident) => {{