Class Bare6502

Inheritance Relationships

Base Type

Class Documentation

class Bare6502 : public System

Bare 6502 system. Unfinished.

Public Functions

Bare6502()
~Bare6502() override = default
virtual void init() override

Initialize a System to a power-on state. Default implementation just calls init on all components in m_components.

Note

For System developer: If there is any other operation except initializing all the components, you can override the method and implement the initialization yourself.

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.

virtual void doFrames(unsigned int count) override

Proceed specified number of rendered frames.

Note

For System developer: If there is neither GPU or any definition of frame, provide dummy method.

Parameters

count – Number of frames to process.

virtual void doRun(unsigned int updateFrequency) override

Run system in real-time.

Note

For System developer:

Parameters

updateFrequency – Frequency in which the function is called to match the clock speed.

Protected Attributes

MOS6502 m_cpu
Memory m_RAM = {0x800, {0x0000, 0x1FFF}, 0xFF}
Bus m_bus = {2, 8, 16}