Skip to content

CPUInfo ​

cpp
#include <Components/CPU/CPUTypes.h>
cpp
struct CPUInfo

Defined in Components/CPU/CPUTypes.h:133

State of the CPU.

Public Attributes ​

ReturnNameDescription
i64cycleCycle counter.
u16pc0Address of the current instruction.
u16pcProgram counter.
u8spStack pointer.
u8aAccumulator.
u8xX register.
u8yY register.
u8srStatus register.
u8irqState of the IRQ lines.
u8nmiState of the NMI lines.
boolrdyState of the RDY line.
booljammedThe CPU is jammed.
longnextNext micro instruction to be executed.
u8processorPortProcessor port register.
u8processorPortDirProcessor port data direction register.

cycle ​

cpp
i64 cycle

Defined in Components/CPU/CPUTypes.h:135

Cycle counter.


pc0 ​

cpp
u16 pc0

Defined in Components/CPU/CPUTypes.h:137

Address of the current instruction.


pc ​

cpp
u16 pc

Defined in Components/CPU/CPUTypes.h:138

Program counter.


sp ​

cpp
u8 sp

Defined in Components/CPU/CPUTypes.h:139

Stack pointer.


a ​

cpp
u8 a

Defined in Components/CPU/CPUTypes.h:140

Accumulator.


x ​

cpp
u8 x

Defined in Components/CPU/CPUTypes.h:141

X register.


y ​

cpp
u8 y

Defined in Components/CPU/CPUTypes.h:142

Y register.


sr ​

cpp
u8 sr

Defined in Components/CPU/CPUTypes.h:143

Status register.


irq ​

cpp
u8 irq

Defined in Components/CPU/CPUTypes.h:145

State of the IRQ lines.


nmi ​

cpp
u8 nmi

Defined in Components/CPU/CPUTypes.h:146

State of the NMI lines.


rdy ​

cpp
bool rdy

Defined in Components/CPU/CPUTypes.h:147

State of the RDY line.


jammed ​

cpp
bool jammed

Defined in Components/CPU/CPUTypes.h:148

The CPU is jammed.


next ​

cpp
long next

Defined in Components/CPU/CPUTypes.h:150

Next micro instruction to be executed.


processorPort ​

cpp
u8 processorPort

Defined in Components/CPU/CPUTypes.h:152

Processor port register.


processorPortDir ​

cpp
u8 processorPortDir

Defined in Components/CPU/CPUTypes.h:153

Processor port data direction register.