forked from koniifer/ableos
Baka baka Erin, do not forget to bump the opcode too!
This commit is contained in:
parent
207d8d7fa6
commit
b8432d544c
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue