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

trunk
Erin 2023-11-15 18:23:43 +01:00
parent 207d8d7fa6
commit b8432d544c
1 changed files with 4 additions and 1 deletions

View File

@ -374,7 +374,10 @@ where
/// Bump instruction pointer
#[inline(always)]
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