fix: resolve off-by-one error in mgba log PC
This commit is contained in:
parent
27a6ced4a7
commit
a0cb1a4708
|
@ -449,7 +449,7 @@ pub const Arm7tdmi = struct {
|
|||
const r12 = self.r[12];
|
||||
const r13 = self.r[13];
|
||||
const r14 = self.r[14];
|
||||
const r15 = self.r[15] -| if (self.cpsr.t.read()) 4 else @as(u32, 8);
|
||||
const r15 = self.r[15] -| if (self.cpsr.t.read()) 2 else @as(u32, 4);
|
||||
|
||||
const c_psr = self.cpsr.raw;
|
||||
|
||||
|
|
Loading…
Reference in New Issue