Debian Codegraph @

mednafen/wswan/wswan-memory.h

raw symbols SCIP
1 #ifndef __WSWAN_MEMORY_H
2 #define __WSWAN_MEMORY_H
3
4 #include "../state.h"
5
6 enum
7 {
8 MEMORY_GSREG_ROMBBSLCT = 0,
9 MEMORY_GSREG_BNK1SLCT,
10 MEMORY_GSREG_BNK2SLCT,
11 MEMORY_GSREG_BNK3SLCT
12 };
13
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 extern uint8 wsRAM[65536];
20 extern uint8 wsEEPROM[2048];
21 extern uint8 *wsCartROM;
22 extern uint32 eeprom_size;
23 extern uint8 *wsSRAM;
24 extern uint32 wsRAMSize;
25
26 void WSwan_MemoryInit(bool lang, bool IsWSC, uint32 ssize, bool SkipSaveLoad);
27 void WSwan_MemoryKill(void);
28
29 uint8 WSwan_readmem20(uint32);
30 void WSwan_writemem20(uint32 address,uint8 data);
31
32 void WSwan_writeport(uint32 IOPort, uint8 V);
33 uint8 WSwan_readport(uint32 number);
34
35 void WSwan_MemoryReset(void);
36 int WSwan_MemoryStateAction(StateMem *sm, int load, int data_only);
37
38 void WSwan_CheckSoundDMA(void);
39
40 uint32 WSwan_MemoryGetRegister(const unsigned int id, char *special, const uint32 special_len);
41 void WSwan_MemorySetRegister(const unsigned int id, uint32 value);
42
43 #ifdef __cplusplus
44 }
45 #endif
46
47 #endif