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 207d8d7fa6
commit b8432d544c

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