summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/deprecat.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-01-29 23:27:24 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-01-29 23:27:24 +0000
commit19dc5dba41f3fe07f66f16ed250b903f120e41da (patch)
tree03a6ef9302be6f36299dbde310211ca51ca04877 /src/emu/deprecat.h
parentef7452b85255316e7ff7919eb8077b9559f76e94 (diff)
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. :)
Diffstat (limited to 'src/emu/deprecat.h')
-rw-r--r--src/emu/deprecat.h22
1 files changed, 19 insertions, 3 deletions
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__ */