Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/wonderswan/rtc.h
2 views
1
#ifndef __WSWAN_RTC_H
2
#define __WSWAN_RTC_H
3
4
#include "system.h"
5
6
namespace MDFN_IEN_WSWAN
7
{
8
class RTC
9
{
10
public:
11
void Write(uint32 A, uint8 V);
12
uint8 Read(uint32 A);
13
void Init(uint64 initialtime, bool realtime);
14
void Clock(uint32 cycles);
15
16
private:
17
uint64 CurrentTime;
18
bool userealtime;
19
20
uint32 ClockCycleCounter;
21
uint8 wsCA15;
22
uint8 Command, Data;
23
public:
24
System *sys;
25
template<bool isReader>void SyncState(NewState *ns);
26
27
};
28
29
}
30
31
#endif
32
33