fix: resolve off-by-one error in mgba log PC

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-07-02 02:16:12 -03:00
parent 27a6ced4a7
commit a0cb1a4708
1 changed files with 1 additions and 1 deletions

View File

@ -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;