BizHawk/wonderswan/rtc.h

32 lines
452 B
C
Raw Normal View History

2014-05-30 05:09:54 +00:00
#ifndef __WSWAN_RTC_H
#define __WSWAN_RTC_H
#include "system.h"
namespace MDFN_IEN_WSWAN
{
class RTC
{
public:
void Write(uint32 A, uint8 V);
uint8 Read(uint32 A);
2014-05-30 18:10:39 +00:00
void Init(uint64 initialtime, bool realtime);
2014-05-30 05:09:54 +00:00
void Clock(uint32 cycles);
private:
uint64 CurrentTime;
2014-05-30 18:10:39 +00:00
bool userealtime;
2014-05-30 05:09:54 +00:00
uint32 ClockCycleCounter;
uint8 wsCA15;
uint8 Command, Data;
public:
System *sys;
2014-05-31 05:57:18 +00:00
template<bool isReader>void SyncState(NewState *ns);
2014-05-30 05:09:54 +00:00
};
}
#endif