feat: resolve off-by-{word, halfword} errors when printing debug info

This commit is contained in:
Rekai Nyangadzayi Musuka 2022-07-28 21:03:32 -03:00
parent 960683a1f5
commit 442e90e24d
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ pub const Logger = struct {
arm7tdmi.r[12], arm7tdmi.r[12],
arm7tdmi.r[13], arm7tdmi.r[13],
arm7tdmi.r[14], arm7tdmi.r[14],
arm7tdmi.r[15] - 4, arm7tdmi.r[15] - if (arm7tdmi.cpsr.t.read()) 2 else @as(u32, 4),
arm7tdmi.cpsr.raw, arm7tdmi.cpsr.raw,
opcode, opcode,
}; };