chore: split up some structs and add comments

This commit is contained in:
2025-05-20 18:59:09 +09:00
parent 48eeff16fa
commit 058afeb7ba
7 changed files with 159 additions and 143 deletions

View File

@@ -1,14 +1,15 @@
use core::fmt;
use std::{fs::File, io::Read, process::exit};
//! The main dissembling logic.
use crate::aout::Aout;
use crate::instructions::{Displacement, IByte, IWord, MemoryIndex, ModRmTarget, Operand, Pointer};
use crate::operands::{Displacement, IByte, IWord, MemoryIndex, ModRmTarget, Operand, Pointer};
use crate::register::{Register, RegisterId, SegmentRegister};
use crate::{
Args,
instructions::{Instruction, Mnemonic},
};
use crate::{modrmb, modrms, modrmv};
use core::fmt;
use std::{fs::File, io::Read, process::exit};
#[derive(Debug)]
/// Generic errors, which are encountered during parsing.