fix: resolve off-by-one error in mgba log PC
This commit is contained in:
parent
53988b1c83
commit
66ac4050fd
|
@ -449,7 +449,7 @@ pub const Arm7tdmi = struct {
|
||||||
const r12 = self.r[12];
|
const r12 = self.r[12];
|
||||||
const r13 = self.r[13];
|
const r13 = self.r[13];
|
||||||
const r14 = self.r[14];
|
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;
|
const c_psr = self.cpsr.raw;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue