extern u32 psxNextCounter, psxNextsCounter;
+extern u32 hSyncCount, frame_counter;
+
+typedef struct Rcnt
+{
+ u16 mode, target;
+ u32 rate, irq, counterState, irqState;
+ u32 cycle, cycleStart;
+} Rcnt;
+extern Rcnt rcnts[];
+
void psxRcntInit();
void psxRcntUpdate();
void psxRcntWmode(u32 index, u32 value);
void psxRcntWtarget(u32 index, u32 value);
-u32 psxRcntRcount(u32 index);
+u32 psxRcntRcount0();
+u32 psxRcntRcount1();
+u32 psxRcntRcount2();
u32 psxRcntRmode(u32 index);
u32 psxRcntRtarget(u32 index);
-s32 psxRcntFreeze(gzFile f, s32 Mode);
+s32 psxRcntFreeze(void *f, s32 Mode);
#ifdef __cplusplus
}