momiji
m68k emulator infrastructure
About Source codeTable of contents
momiji::Cpu
Defined in header <momiji/System.h>
struct Cpu
Class describing a generic MC68000 CPU.
Member fields
Field | Type | Notes | Default value |
---|---|---|---|
dataRegisters | std::array<momiji::DataRegister, 8> |
Array of eight data registers indexed from zero ( |
All zeros. |
addressRegisters | std::array<momiji::AddressRegister, 8> |
Array of eight address registers indexed from zero ( |
All zeros. |
statusRegister | momiji::StatusRegister |
The status register. |
All flags cleared out. |
programCounter | momiji::ProgramCounter |
The current program counter. |
0 |
Notes
The emulated CPU has no concept of a “clock”, each instruction is executed “instantaneously”, as if it took 1 clock to execute.