Skip to content

Commit

Permalink
update PSEMU/CPU.h
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherrytree56567 committed Oct 8, 2023
1 parent e7c99b9 commit c995975
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PSEMU/CPU.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void op_swr(uint32_t instruction);
return;
}

bool pending = (i_stat & i_mask) != 0;
bool pending = (registers.i_stat & registers.i_mask) != 0;
if (pending) cop0.cause.IP |= (1 << 0);
else cop0.cause.IP &= ~(1 << 0);

Expand All @@ -116,7 +116,7 @@ void op_swr(uint32_t instruction);
cop0.sr.raw |= (mode << 2) & 0x3F;

uint copy = cop0.cause.raw & 0xff00;
cop0.cause.exc_code = (uint)cause;
cop0.cause.exc_code = (uint)0x0;
cop0.cause.CE = 1;

cop0.epc = registers.pc;
Expand Down

0 comments on commit c995975

Please sign in to comment.