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) :
|
2021-11-01 21:01:28 +00:00
|
|
|
Card(CT_SAM, slot)
|
2021-09-18 10:55:29 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
virtual ~SAMCard(void) {}
|
|
|
|
|
2022-03-11 22:17:03 +00:00
|
|
|
virtual void Destroy(void) {}
|
2021-11-13 18:13:01 +00:00
|
|
|
virtual void Reset(const bool powerCycle) {}
|
|
|
|
virtual void Update(const ULONG nExecutedCycles) {}
|
2021-09-18 10:55:29 +00:00
|
|
|
|
2021-11-11 21:45:55 +00:00
|
|
|
virtual void InitializeIO(LPBYTE pCxRomPeripheral);
|
2021-09-18 10:55:29 +00:00
|
|
|
|
|
|
|
static BYTE __stdcall IOWrite(WORD pc, WORD addr, BYTE bWrite, BYTE value, ULONG nExecutedCycles);
|
|
|
|
|
2022-02-28 20:52:18 +00:00
|
|
|
static const std::string& GetSnapshotCardName(void);
|
2021-11-25 20:23:21 +00:00
|
|
|
virtual void SaveSnapshot(YamlSaveHelper& yamlSaveHelper);
|
|
|
|
virtual bool LoadSnapshot(YamlLoadHelper& yamlLoadHelper, UINT version);
|
2021-09-18 10:55:29 +00:00
|
|
|
|
|
|
|
private:
|
2021-11-01 21:01:28 +00:00
|
|
|
// no state
|
2021-09-18 10:55:29 +00:00
|
|
|
};
|