:chart_with_upwards_trends: this seems to get it under 3 seconds sometimes
parent
209b1ff7b5
commit
cd0cf33dfc
|
@ -120,7 +120,6 @@ pub trait DecodeInstruction {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl DecodeInstruction for u32 {
|
impl DecodeInstruction for u32 {
|
||||||
#[inline(always)]
|
|
||||||
fn opcode (self) -> u8 {
|
fn opcode (self) -> u8 {
|
||||||
((self >> 0) & 0x7f) as u8
|
((self >> 0) & 0x7f) as u8
|
||||||
}
|
}
|
||||||
|
|
|
@ -551,12 +551,12 @@ impl State {
|
||||||
{
|
{
|
||||||
use crate::loader::DecodeInstruction;
|
use crate::loader::DecodeInstruction;
|
||||||
|
|
||||||
let i = self.fetch ();
|
|
||||||
|
|
||||||
let make_step_error = |msg| {
|
let make_step_error = |msg| {
|
||||||
panic! ("unimplemented {msg}")
|
panic! ("unimplemented {msg}")
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let i = self.fetch ();
|
||||||
|
|
||||||
match i.opcode () {
|
match i.opcode () {
|
||||||
0x22 => {
|
0x22 => {
|
||||||
if self.op_add (i.a (), i.b (), i.c ()) {
|
if self.op_add (i.a (), i.b (), i.c ()) {
|
||||||
|
|
Loading…
Reference in New Issue