fix: ensure order of operations to prevent regression in arm.gba

This commit is contained in:
Rekai Nyangadzayi Musuka 2023-09-06 20:03:15 -05:00
parent e6863e7a9b
commit 67bae5dcb4
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ pub fn blockDataTransfer(comptime InstrFn: type, comptime P: bool, comptime U: b
const undefined_addr: u32 = if (U) blk: {
break :blk cpu.r[rn] + if (P) 4 else 0;
} else blk: {
break :blk cpu.r[rn] - 0x40 - if (!P) 4 else 0;
break :blk cpu.r[rn] - (0x40 - if (!P) 4 else 0);
};
if (L) {