X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico_int.h;h=2a793e5ed83b1cc42632dd6cdee7b22fa6755e42;hb=8a847c12e6a82869b7ff6f1742f53e0da1ad2db6;hp=d63657998ca77bae736de5e65025d16b7a85ff19;hpb=61801d5bc85c82afc5548fc25fc890bb56f4e763;p=picodrive.git diff --git a/pico/pico_int.h b/pico/pico_int.h index d636579..2a793e5 100644 --- a/pico/pico_int.h +++ b/pico/pico_int.h @@ -251,6 +251,7 @@ extern SH2 sh2s[2]; } \ } while (0) # define sh2_cycles_left(sh2) (sh2)->icount +# define sh2_burn_cycles(sh2, n) (sh2)->icount -= n # define sh2_pc(sh2) (sh2)->ppc #else # define sh2_end_run(sh2, after_) do { \ @@ -262,6 +263,7 @@ extern SH2 sh2s[2]; } \ } while (0) # define sh2_cycles_left(sh2) ((signed int)(sh2)->sr >> 12) +# define sh2_burn_cycles(sh2, n) (sh2)->sr -= ((n) << 12) # define sh2_pc(sh2) (sh2)->pc #endif