gbf_core/decompiler/handlers/
nop.rs#![deny(missing_docs)]
use crate::{
decompiler::{
function_decompiler::FunctionDecompilerError,
function_decompiler_context::FunctionDecompilerContext, ProcessedInstruction,
ProcessedInstructionBuilder,
},
instruction::Instruction,
};
use super::OpcodeHandler;
pub struct NopHandler;
impl OpcodeHandler for NopHandler {
fn handle_instruction(
&self,
_context: &mut FunctionDecompilerContext,
_instruction: &Instruction,
) -> Result<ProcessedInstruction, FunctionDecompilerError> {
Ok(ProcessedInstructionBuilder::new().build())
}
}