This commit is contained in:
Erin 2023-11-13 00:21:12 +01:00
parent 4170245098
commit f639eeebb4

View file

@ -242,7 +242,7 @@ where
}),
JMP => {
let OpsO(off) = self.decode();
self.pc = self.pc.wrapping_add(off);
self.pc = self.pc.wrapping_add(off).wrapping_add(1);
}
JAL => {
// Jump and link. Save PC after this instruction to