diff options
Diffstat (limited to 'src/core.rs')
| -rw-r--r-- | src/core.rs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core.rs b/src/core.rs index 1628216..4c17070 100644 --- a/src/core.rs +++ b/src/core.rs @@ -7,7 +7,7 @@ use crate::{ consts::{Addr, RegId, RegValue}, decode::Instruction, - instructions::find_runner, + instructions::find_and_exec, mem::MemConfig, }; @@ -57,11 +57,9 @@ impl Core { let instr = Instruction(instr); - let runner = find_runner(instr); - - if let Some(runner) = runner { - let res = runner(self, instr); + let res = find_and_exec(instr, self); + if let Some(res) = res { match res { InstructionResult::Normal => {} InstructionResult::Exception(_e) => { |
