2018-12-03 12:26:02 +01:00
|
|
|
/*****************************************************************************\
|
|
|
|
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
|
|
|
|
This file is licensed under the Snes9x License.
|
|
|
|
For further information, consult the LICENSE file in the root directory.
|
|
|
|
\*****************************************************************************/
|
2009-11-30 09:14:38 +01:00
|
|
|
|
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
#ifndef _SRTC_H_
|
|
|
|
#define _SRTC_H_
|
2009-11-30 09:14:38 +01:00
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
struct SRTCData
|
2009-11-25 07:35:14 +01:00
|
|
|
{
|
2010-01-27 23:08:56 +01:00
|
|
|
uint8 reg[20];
|
|
|
|
};
|
2009-11-30 09:14:38 +01:00
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
// for snapshot only
|
|
|
|
struct SSRTCSnapshot
|
|
|
|
{
|
|
|
|
int32 rtc_mode; // enum RTC_Mode
|
|
|
|
int32 rtc_index; // signed
|
|
|
|
};
|
2008-08-06 03:09:59 +02:00
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
extern struct SRTCData RTCData;
|
|
|
|
extern struct SSRTCSnapshot srtcsnap;
|
2008-08-06 03:09:59 +02:00
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
void S9xInitSRTC (void);
|
|
|
|
void S9xResetSRTC (void);
|
|
|
|
void S9xSRTCPreSaveState (void);
|
|
|
|
void S9xSRTCPostLoadState (int);
|
|
|
|
void S9xSetSRTC (uint8, uint16);
|
|
|
|
uint8 S9xGetSRTC (uint16);
|
2008-08-06 03:09:59 +02:00
|
|
|
|
2010-01-27 23:08:56 +01:00
|
|
|
#endif
|