fix bad fix to risc jr, & 0x10 seems to be correct according to battle morph and blue lightning...

This commit is contained in:
CasualPokePlayer 2022-09-30 04:36:40 -07:00
parent 95c06e0b6e
commit 929b034321
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -97,7 +97,7 @@ RISC_OPCODE(jr)
if (BRANCH_CONDITION(IMM_2))
{
int32_t offset = (IMM_1 > 0x10 ? 0xFFFFFFF0 | IMM_1 : IMM_1);
int32_t offset = (IMM_1 & 0x10 ? 0xFFFFFFF0 | IMM_1 : IMM_1);
int32_t delayed_pc = risc_pc + (offset * 2);
risc_inhibit_interrupt = 1;
RISCExec(1);