From bb0007707c7f67f368eb1e0c644d33f986be113f Mon Sep 17 00:00:00 2001 From: taitep Date: Fri, 3 Oct 2025 13:28:02 +0200 Subject: Swap out execution status for instructions returning an InstructionResult --- src/instructions.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/instructions.rs') diff --git a/src/instructions.rs b/src/instructions.rs index 9f3a544..e16894e 100644 --- a/src/instructions.rs +++ b/src/instructions.rs @@ -6,9 +6,13 @@ static INSTRUCTIONS: Lazy<[Option; 32]> = Lazy::new(|| { instructions }); -use crate::{consts::Word, core::Core, decode::Instruction}; +use crate::{ + consts::Word, + core::{Core, InstructionResult}, + decode::Instruction, +}; -type Runner = fn(&mut Core, Instruction) -> Result<(), ()>; +type Runner = fn(&mut Core, Instruction) -> Result<(), InstructionResult>; #[derive(Clone, Copy)] struct InstructionHandler { -- cgit v1.2.3