mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-06 07:38:05 -04:00
drc: debug improvements
This commit is contained in:
parent
bf092a3631
commit
6d7979571d
6 changed files with 126 additions and 36 deletions
|
@ -145,6 +145,10 @@ int PicoReset(void)
|
|||
if (Pico.romsize <= 0)
|
||||
return 1;
|
||||
|
||||
#ifdef DRC_CMP
|
||||
PicoOpt |= POPT_DIS_VDP_FIFO|POPT_DIS_IDLE_DET;
|
||||
#endif
|
||||
|
||||
/* must call now, so that banking is reset, and correct vectors get fetched */
|
||||
if (PicoResetHook)
|
||||
PicoResetHook();
|
||||
|
|
|
@ -244,6 +244,7 @@ extern SH2 sh2s[2];
|
|||
} \
|
||||
} while (0)
|
||||
# define ash2_cycles_done(sh2) ((sh2)->cycles_timeslice - (sh2)->icount)
|
||||
# define sh2_pc(c) (c) ? ssh2.ppc : msh2.ppc
|
||||
#else
|
||||
# define ash2_end_run(sh2, after) do { \
|
||||
int left = (sh2)->sr >> 12; \
|
||||
|
@ -254,10 +255,9 @@ extern SH2 sh2s[2];
|
|||
} \
|
||||
} while (0)
|
||||
# define ash2_cycles_done(sh2) ((sh2)->cycles_timeslice - ((sh2)->sr >> 12))
|
||||
# define sh2_pc(c) (c) ? ssh2.pc : msh2.pc
|
||||
#endif
|
||||
|
||||
//#define sh2_pc(c) (c) ? ssh2.ppc : msh2.ppc
|
||||
#define sh2_pc(c) (c) ? ssh2.pc : msh2.pc
|
||||
#define sh2_reg(c, x) (c) ? ssh2.r[x] : msh2.r[x]
|
||||
#define sh2_gbr(c) (c) ? ssh2.gbr : msh2.gbr
|
||||
#define sh2_vbr(c) (c) ? ssh2.vbr : msh2.vbr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue