fix: ensure order of operations to prevent regression in arm.gba
This commit is contained in:
parent
e6863e7a9b
commit
67bae5dcb4
|
@ -38,7 +38,7 @@ pub fn blockDataTransfer(comptime InstrFn: type, comptime P: bool, comptime U: b
|
||||||
const undefined_addr: u32 = if (U) blk: {
|
const undefined_addr: u32 = if (U) blk: {
|
||||||
break :blk cpu.r[rn] + if (P) 4 else 0;
|
break :blk cpu.r[rn] + if (P) 4 else 0;
|
||||||
} else blk: {
|
} 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) {
|
if (L) {
|
||||||
|
|
Loading…
Reference in New Issue