]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/event.h
Added switch to disable untuned tank circuit, for slower computers.
[virtualjaguar] / src / event.h
index 35f84468240984c090f50ea230e2dea3878a3267..5565bec85af9a324134c2a6d2a7f6b6c2997da52 100644 (file)
@@ -1,7 +1,7 @@
 //
 // EVENT.H: System timing support functionality
 //
-// by James L. Hammons
+// by James Hammons
 //
 
 #ifndef __EVENT_H__
@@ -9,11 +9,11 @@
 
 #include "types.h"
 
-// Note that these are NTSC timings:
+#define RISC_CYCLE_IN_USEC        0.03760684198
+#define M68K_CYCLE_IN_USEC        (RISC_CYCLE_IN_USEC * 2)
 
-#define RISC_CYCLE_IN_USEC     0.03760684198
-#define M68K_CYCLE_IN_USEC     (RISC_CYCLE_IN_USEC * 2)
-#define HORIZ_PERIOD_IN_USEC   63.5555
+#define HORIZ_PERIOD_IN_USEC_NTSC 63.555555555
+#define HORIZ_PERIOD_IN_USEC_PAL  64.0
 
 #define USEC_TO_RISC_CYCLES(u) (uint32)(((u) / RISC_CYCLE_IN_USEC) + 0.5)
 #define USEC_TO_M68K_CYCLES(u) (uint32)(((u) / M68K_CYCLE_IN_USEC) + 0.5)