summaryrefslogtreecommitdiff
path: root/src/instructions.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/instructions.rs')
-rw-r--r--src/instructions.rs8
1 files changed, 6 insertions, 2 deletions
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<OpcodeHandler>; 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 {