chore: squash bugs preventing swi_demo.gba from working

This commit is contained in:
2022-02-13 00:34:47 -04:00
parent 8ab7a178c1
commit d2740e30d9
3 changed files with 4 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ pub fn format19(comptime is_low: bool) InstrFn {
// Instruction 2
const old_pc = cpu.r[15];
cpu.r[15] = cpu.r[14] + (offset << 1);
cpu.r[15] = cpu.r[14] +% (offset << 1);
cpu.r[14] = old_pc | 1;
} else {
// Instruction 1