cdrom: treat seek the same as other commands
[pcsx_rearmed.git] / libpcsxcore / new_dynarec / new_dynarec.c
index b9e7c14..2b57e59 100644 (file)
@@ -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);
@@ -4152,7 +4152,7 @@ static void syscall_assemble(int i, const struct regstat *i_regs, int ccadj_)
 
 static void hlecall_assemble(int i, const struct regstat *i_regs, int ccadj_)
 {
-  void *hlefunc = psxNULL;
+  void *hlefunc = gteNULL;
   uint32_t hleCode = source[i] & 0x03ffffff;
   if (hleCode < ARRAY_SIZE(psxHLEt))
     hlefunc = psxHLEt[hleCode];