19 const std::string& name,
unsigned sampleRam);
22 void reset(EmuTime::param time);
23 [[nodiscard]]
bool isMuted()
const;
24 void writeReg(
byte rg,
byte data, EmuTime::param time);
25 [[nodiscard]]
byte readReg(
byte rg, EmuTime::param time);
26 [[nodiscard]]
byte peekReg(
byte rg, EmuTime::param time)
const;
28 void sync(EmuTime::param time);
31 template<
typename Archive>
32 void serialize(Archive& ar,
unsigned version);
48 void executeUntil(EmuTime::param time)
override;
51 void restart(PlayData& pd)
const;
53 [[nodiscard]]
bool isPlaying()
const;
54 void writeData(
byte data);
55 [[nodiscard]]
byte peekReg(
byte rg)
const;
56 [[nodiscard]]
byte readData();
57 [[nodiscard]]
byte peekData()
const;
58 void writeMemory(
unsigned memPtr,
byte value);
59 [[nodiscard]]
byte readMemory(
unsigned memPtr)
const;
67 static constexpr int CLOCK_FREQ = 3579545;
68 static constexpr int CLOCK_FREQ_DIV = 72;
Represents a clock with a fixed frequency.
Every class that wants to get scheduled at some point must inherit from this class.
void sync(EmuTime::param time)
byte readReg(byte rg, EmuTime::param time)
byte peekReg(byte rg, EmuTime::param time) const
void writeReg(byte rg, byte data, EmuTime::param time)
void serialize(Archive &ar, unsigned version)
void reset(EmuTime::param time)
This file implemented 3 utility functions: