X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico_int.h;h=a654c5aa92779502dc24bd1681932a2080d60d92;hb=6d7979571d08d7b020022fa169a34a29fc20dfdc;hp=420e82cf4a7879908c7f28df2a1c2107ac2ae293;hpb=bf092a3631694f525c3d1179b21ab8941e87e7d7;p=picodrive.git diff --git a/pico/pico_int.h b/pico/pico_int.h index 420e82c..a654c5a 100644 --- a/pico/pico_int.h +++ b/pico/pico_int.h @@ -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