From: notaz Date: Thu, 11 Aug 2022 19:52:54 +0000 (+0300) Subject: drc: fix a silly mistake of overwriting a reg X-Git-Tag: r24l~424 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90c6c8621bbee75955637b9820c907692ea87852;p=pcsx_rearmed.git drc: fix a silly mistake of overwriting a reg --- diff --git a/libpcsxcore/new_dynarec/new_dynarec.c b/libpcsxcore/new_dynarec/new_dynarec.c index b9e7c144..1c708566 100644 --- a/libpcsxcore/new_dynarec/new_dynarec.c +++ b/libpcsxcore/new_dynarec/new_dynarec.c @@ -3179,10 +3179,10 @@ static void do_invstub(int n) set_jump_target(stubs[n].addr, out); save_regs(reglist); - emit_readword(&inv_code_start, 2); - emit_readword(&inv_code_end, 3); if (addrr != 0 || ofs_start != 0) emit_addimm(addrr, ofs_start, 0); + emit_readword(&inv_code_start, 2); + emit_readword(&inv_code_end, 3); if (len != 0) emit_addimm(0, len + 4, (rightr = 1)); emit_cmp(0, 2);