:chart_with_upwards_trends: this seems to get it under 3 seconds sometimes

main
_ 2023-10-04 18:15:57 -05:00
parent 209b1ff7b5
commit cd0cf33dfc
2 changed files with 2 additions and 3 deletions

View File

@ -120,7 +120,6 @@ pub trait DecodeInstruction {
}
impl DecodeInstruction for u32 {
#[inline(always)]
fn opcode (self) -> u8 {
((self >> 0) & 0x7f) as u8
}

View File

@ -551,12 +551,12 @@ impl State {
{
use crate::loader::DecodeInstruction;
let i = self.fetch ();
let make_step_error = |msg| {
panic! ("unimplemented {msg}")
};
let i = self.fetch ();
match i.opcode () {
0x22 => {
if self.op_add (i.a (), i.b (), i.c ()) {