1 | /*****************************************************************************\ |
2 | Snes9x - Portable Super Nintendo Entertainment System (TM) emulator. |
3 | This file is licensed under the Snes9x License. |
4 | For further information, consult the LICENSE file in the root directory. |
5 | \*****************************************************************************/ |
6 | |
7 | #ifndef _SRTC_H_ |
8 | #define _SRTC_H_ |
9 | |
10 | struct SRTCData |
11 | { |
12 | uint8 reg[20]; |
13 | }; |
14 | |
15 | // for snapshot only |
16 | struct SSRTCSnapshot |
17 | { |
18 | int32 rtc_mode; // enum RTC_Mode |
19 | int32 rtc_index; // signed |
20 | }; |
21 | |
22 | extern struct SRTCData RTCData; |
23 | extern struct SSRTCSnapshot srtcsnap; |
24 | |
25 | void S9xInitSRTC (void); |
26 | void S9xResetSRTC (void); |
27 | void S9xSRTCPreSaveState (void); |
28 | void S9xSRTCPostLoadState (int); |
29 | void S9xSetSRTC (uint8, uint16); |
30 | uint8 S9xGetSRTC (uint16); |
31 | |
32 | #endif |
33 | |