Mercurial > audlegacy-plugins
comparison src/Input/sexypsf/PsxCounters.h @ 0:13389e613d67 trunk
[svn] - initial import of audacious-plugins tree (lots to do)
author | nenolod |
---|---|
date | Mon, 18 Sep 2006 01:11:49 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:13389e613d67 |
---|---|
1 /* Pcsx - Pc Psx Emulator | |
2 * Copyright (C) 1999-2002 Pcsx Team | |
3 * | |
4 * This program is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; either version 2 of the License, or | |
7 * (at your option) any later version. | |
8 * | |
9 * This program is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License | |
15 * along with this program; if not, write to the Free Software | |
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
17 */ | |
18 | |
19 #ifndef __PSXCOUNTERS_H__ | |
20 #define __PSXCOUNTERS_H__ | |
21 | |
22 typedef struct { | |
23 u32 count, mode, target; | |
24 u32 sCycle, Cycle, rate, interrupt; | |
25 } psxCounter; | |
26 | |
27 psxCounter psxCounters[5]; | |
28 | |
29 u32 psxNextCounter, psxNextsCounter; | |
30 | |
31 void psxRcntInit(); | |
32 void psxRcntUpdate(); | |
33 void psxRcntWcount(u32 index, u32 value); | |
34 void psxRcntWmode(u32 index, u32 value); | |
35 void psxRcntWtarget(u32 index, u32 value); | |
36 u32 psxRcntRcount(u32 index); | |
37 | |
38 void psxUpdateVSyncRate(); | |
39 | |
40 int CounterSPURun(void); | |
41 void CounterDeadLoopSkip(); | |
42 | |
43 #endif /* __PSXCOUNTERS_H__ */ |