2015-04-09 21:54:26 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-09-18 10:55:29 +00:00
|
|
|
#include "Card.h"
|
|
|
|
|
|
|
|
class SAMCard : public Card
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SAMCard(UINT slot) :
|
|
|
|
Card(CT_SAM),
|
|
|
|
m_slot(slot)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
virtual ~SAMCard(void) {}
|
|
|
|
|
|
|
|
virtual void Init(void) {};
|
|
|
|
virtual void Reset(const bool powerCycle) {};
|
|
|
|
|
|
|
|
void InitializeIO(LPBYTE pCxRomPeripheral, UINT slot);
|
|
|
|
|
|
|
|
static BYTE __stdcall IOWrite(WORD pc, WORD addr, BYTE bWrite, BYTE value, ULONG nExecutedCycles);
|
|
|
|
|
|
|
|
static std::string GetSnapshotCardName(void);
|
|
|
|
void SaveSnapshot(class YamlSaveHelper& yamlSaveHelper);
|
|
|
|
bool LoadSnapshot(class YamlLoadHelper& yamlLoadHelper, UINT slot, UINT version);
|
|
|
|
|
|
|
|
private:
|
|
|
|
UINT m_slot;
|
|
|
|
};
|