From 19dc5dba41f3fe07f66f16ed250b903f120e41da Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Tue, 29 Jan 2008 23:27:24 +0000 Subject: Moved cpu_getiloops() and cpu_scalebyfcount() to deprecat.h. Added #include "deprecat.h" where necessary to make this happen. Cleaned up cpuexec.c/.h to latest core style. Cleaned up implementation of extended INP header in inptport.c. Removed external access to cycles_currently_ran(). Replaced use of cycles_currently_ran() in v9938 code with mame_rand(), since that is effectively the same thing. :) --- src/emu/deprecat.h | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'src/emu/deprecat.h') diff --git a/src/emu/deprecat.h b/src/emu/deprecat.h index 14397bd7bb7..5204d1a4af4 100644 --- a/src/emu/deprecat.h +++ b/src/emu/deprecat.h @@ -43,10 +43,26 @@ extern running_machine *Machine; * *************************************/ -/* Recomputes the VBLANK timing after, e.g., a visible area change */ -void cpu_compute_vblank_timing(running_machine *machine); - /* Returns the number of the video frame we are currently playing */ int cpu_getcurrentframe(void); + + +/************************************* + * + * Core timing + * + *************************************/ + +/* Returns the number of times the interrupt handler will be called before + the end of the current video frame. This is can be useful to interrupt + handlers to synchronize their operation. If you call this from outside + an interrupt handler, add 1 to the result, i.e. if it returns 0, it means + that the interrupt handler will be called once. */ +int cpu_getiloops(void); + +/* Scales a given value by the ratio of fcount / fperiod */ +int cpu_scalebyfcount(int value); + + #endif /* __DEPRECAT_H__ */ -- cgit v1.2.3-70-g09d2