SW in Lemmy's suite with Krom's IPL3 loops infinitely due to throwing exception that shouldn't happen

This commit is contained in:
CocoSimone
2022-10-01 03:47:26 +02:00
parent a711093b55
commit 770339f84e
6 changed files with 26 additions and 7 deletions

View File

@@ -99,7 +99,10 @@ void Cpu::Exec(Mem& mem, u32 instr) {
case 0x02: j(instr); break;
case 0x03: jal(instr); break;
case 0x04: b(instr, regs.gpr[RS(instr)] == regs.gpr[RT(instr)]); break;
case 0x05: b(instr, regs.gpr[RS(instr)] != regs.gpr[RT(instr)]); break;
case 0x05: {
//fmt::print("RS: {:016X}, RT: {:016X}\n", (u64)regs.gpr[RS(instr)], (u64)regs.gpr[RT(instr)]);
b(instr, regs.gpr[RS(instr)] != regs.gpr[RT(instr)]);
} break;
case 0x06: b(instr, regs.gpr[RS(instr)] <= 0); break;
case 0x07: b(instr, regs.gpr[RS(instr)] > 0); break;
case 0x08: addi(instr); break;