mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
32x: some timing hacks..
This commit is contained in:
parent
61801d5bc8
commit
8a847c12e6
2 changed files with 18 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue