mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
32x: interpreter-wrap drc works (demos only). SVP drc refactoring.
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@812 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
98da48e418
commit
679af8a3f4
19 changed files with 1505 additions and 46 deletions
|
@ -243,10 +243,19 @@ extern SH2 sh2s[2];
|
|||
#define msh2 sh2s[0]
|
||||
#define ssh2 sh2s[1]
|
||||
|
||||
#define ash2_end_run(after) if (sh2->icount > (after)) sh2->icount = after
|
||||
#define ash2_cycles_done() (sh2->cycles_aim - sh2->icount)
|
||||
#ifndef DRC_SH2
|
||||
# define ash2_end_run(after) if (sh2->icount > (after)) sh2->icount = after
|
||||
# define ash2_cycles_done() (sh2->cycles_aim - sh2->icount)
|
||||
#else
|
||||
# define ash2_end_run(after) { \
|
||||
if ((sh2->sr >> 12) > (after)) \
|
||||
{ sh2->sr &= 0xfff; sh2->sr |= (after) << 12; } \
|
||||
}
|
||||
# define ash2_cycles_done() (sh2->cycles_aim - (sh2->sr >> 12))
|
||||
#endif
|
||||
|
||||
#define sh2_pc(c) (c) ? ssh2.ppc : msh2.ppc
|
||||
//#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