Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/wonderswan/eeprom.h
2 views
1
#ifndef __WSWAN_EEPROM_H
2
#define __WSWAN_EEPROM_H
3
4
#include "system.h"
5
6
namespace MDFN_IEN_WSWAN
7
{
8
9
10
class EEPROM
11
{
12
public:
13
uint8 Read(uint32 A);
14
void Write(uint32 A, uint8 V);
15
void Reset();
16
void Init(const char *Name, const uint16 BYear, const uint8 BMonth, const uint8 BDay, const uint8 Sex, const uint8 Blood);
17
18
private:
19
uint8 iEEPROM_Command, EEPROM_Command;
20
uint16 iEEPROM_Address, EEPROM_Address;
21
public:
22
uint32 eeprom_size;
23
uint8 iEEPROM[0x400];
24
uint8 wsEEPROM[2048];
25
26
enum { ieeprom_size = 0x400 };
27
28
public:
29
System *sys;
30
template<bool isReader>void SyncState(NewState *ns);
31
};
32
33
34
}
35
36
#endif
37
38