Baka baka Erin, do not forget to bump the opcode too!

This commit is contained in:
Erin 2023-11-15 18:23:43 +01:00
parent cb2eaac52e
commit d7e650a66e

View file

@ -374,7 +374,10 @@ where
/// Bump instruction pointer /// Bump instruction pointer
#[inline(always)] #[inline(always)]
fn bump_pc<T: Copy>(&mut self) { fn bump_pc<T: Copy>(&mut self) {
self.pc = self.pc.wrapping_add(core::mem::size_of::<T>()); self.pc = self
.pc
.wrapping_add(core::mem::size_of::<T>())
.wrapping_add(1);
} }
/// Decode instruction operands /// Decode instruction operands