diff --git a/lunar_wave_vm/src/state.rs b/lunar_wave_vm/src/state.rs index 1d9dd0d..01abbe5 100644 --- a/lunar_wave_vm/src/state.rs +++ b/lunar_wave_vm/src/state.rs @@ -556,6 +556,7 @@ impl State { }; let i = self.fetch (); + self.incr_pc (); match i.opcode () { 0x22 => { @@ -1047,8 +1048,6 @@ impl State { x => unimplemented! ("{x}"), } - self.incr_pc (); - Ok (None) }