]> Shamusworld >> Repos - virtualjaguar/commitdiff
Support for new timer based execution
authorShamus Hammons <jlhamm@acm.org>
Wed, 29 Dec 2004 07:58:04 +0000 (07:58 +0000)
committerShamus Hammons <jlhamm@acm.org>
Wed, 29 Dec 2004 07:58:04 +0000 (07:58 +0000)
src/clock.cpp
src/include/clock.h

index 8ca3bc1d2f9d3a5f7c71a7e160f6d1bdf029c018..af6f543178db1f68bb428f983d5593e392cbb585 100644 (file)
@@ -1,21 +1,23 @@
 //
-// Clock handler
+// System time handler
 //
-// by cal2
-// GCC/SDL port by Niels Wagenaar (Linux/WIN32) and Caz (BeOS)
-// Cleanups by James L. Hammons
+// by James L. Hammons
 //
 
 #include "jaguar.h"
+#include "clock.h"
 
 
-void clock_init(void)
+
+
+
+/*void clock_reset(void)
 {
-       clock_reset();
 }
 
-void clock_reset(void)
+void clock_init(void)
 {
+       clock_reset();
 }
 
 void clock_done(void)
@@ -38,4 +40,4 @@ uint8 clock_byte_read(uint32 offset)
 uint16 clock_word_read(uint32 offset)
 {
        return 0xFFFF;
-}
+}*/
index e4b686fb87e6f651d580712abbac61769dc24030..492f0b44610a36bf4bd137e6a5700820a1a43cbc 100644 (file)
@@ -1,14 +1,27 @@
+//
+// CLOCK.H: System timing support functionality
+//
+// by James L. Hammons
+//
+
 #ifndef __CLOCK_H__
 #define __CLOCK_H__
 
 #include "types.h"
 
-void clock_init(void);
+struct Event
+{
+       double eventTime;
+       void (* eventCallback)(void);
+};
+
+
+/*void clock_init(void);
 void clock_reset(void);
 void clock_done(void);
 void clock_byte_write(uint32, uint8);
 void clock_word_write(uint32, uint16);
 uint8 clock_byte_read(uint32);
-uint16 clock_word_read(uint32);
+uint16 clock_word_read(uint32);//*/
 
 #endif