mirror of
https://github.com/libretro/beetle-pce-fast-libretro.git
synced 2024-11-24 00:10:14 +00:00
41 lines
903 B
C++
41 lines
903 B
C++
#ifndef __WSWAN_MEMORY_H
|
|
#define __WSWAN_MEMORY_H
|
|
|
|
#include "../state.h"
|
|
|
|
namespace MDFN_IEN_WSWAN
|
|
{
|
|
|
|
extern uint8 wsRAM[65536];
|
|
extern uint8 *wsCartROM;
|
|
extern uint32 eeprom_size;
|
|
extern uint8 wsEEPROM[2048];
|
|
|
|
uint8 WSwan_readmem20(uint32);
|
|
void WSwan_writemem20(uint32 address,uint8 data);
|
|
|
|
void WSwan_MemoryInit(bool lang, bool IsWSC, uint32 ssize, bool SkipSaveLoad);
|
|
void WSwan_MemoryKill(void);
|
|
|
|
void WSwan_CheckSoundDMA(void);
|
|
int WSwan_MemoryStateAction(StateMem *sm, int load, int data_only);
|
|
void WSwan_MemoryReset(void);
|
|
void WSwan_writeport(uint32 IOPort, uint8 V);
|
|
uint8 WSwan_readport(uint32 number);
|
|
|
|
enum
|
|
{
|
|
MEMORY_GSREG_ROMBBSLCT = 0,
|
|
MEMORY_GSREG_BNK1SLCT,
|
|
MEMORY_GSREG_BNK2SLCT,
|
|
MEMORY_GSREG_BNK3SLCT,
|
|
};
|
|
|
|
|
|
uint32 WSwan_MemoryGetRegister(const unsigned int id, char *special, const uint32 special_len);
|
|
void WSwan_MemorySetRegister(const unsigned int id, uint32 value);
|
|
|
|
}
|
|
|
|
#endif
|