Class NES
Defined in File NES.h
Inheritance Relationships
Base Type
public System
(Class System)
Class Documentation
-
class NES : public System
Nintendo Entertainment System emulation (NTSC version).
Public Functions
-
NES()
-
~NES() override = default
-
virtual void doClocks(unsigned int count) override
Proceed specified number of system clocks.
Note
For System developer: implement a reaction to a main clock signal. Normally whole emulation is driven by this function.
- Parameters
count – Number of clock to process.
-
virtual void doSteps(unsigned int count) override
Proceed specified number of CPU instructions.
Note
For System developer: You can for example proceed by single clocks until the CPU processes specified number of instructions. If there is no CPU, provide dummy method.
- Parameters
count – Number of instructions to process.
Protected Functions
-
void clock()
Protected Attributes
-
const unsigned int MASTER_CLOCK_HZ = 21477272
-
const unsigned int PPU_CLOCK_HZ = MASTER_CLOCK_HZ / 4
- Memory m_RAM = {0x800, {.from = 0x0000, .to = 0x1FFF}, 0xFF}
-
NESPeripherals m_peripherals
-
SignalPort m_cpuClock
-
SignalPort m_ppuClock
-
SignalPort m_apuClock
-
unsigned long long m_clockCount = 0
-
NES()