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
10struct SRTCData
11{
12 uint8 reg[20];
13};
14
15// for snapshot only
16struct SSRTCSnapshot
17{
18 int32 rtc_mode; // enum RTC_Mode
19 int32 rtc_index; // signed
20};
21
22extern struct SRTCData RTCData;
23extern struct SSRTCSnapshot srtcsnap;
24
25void S9xInitSRTC (void);
26void S9xResetSRTC (void);
27void S9xSRTCPreSaveState (void);
28void S9xSRTCPostLoadState (int);
29void S9xSetSRTC (uint8, uint16);
30uint8 S9xGetSRTC (uint16);
31
32#endif
33