Skip to content

CPUAPI ​

cpp
#include <VirtualC64.h>
cpp
class CPUAPI

Defined in VirtualC64.h:422

CPU API

Public Attributes ​

ReturnNameDescription
CPUDebuggerAPIdebuggerCPU debugger.
GuardsAPIbreakpointsBreakpoints.
GuardsAPIwatchpointsWatchpoints.

debugger ​

cpp
CPUDebuggerAPI debugger

Type: CPUDebuggerAPI

Defined in VirtualC64.h:431

CPU debugger.


breakpoints ​

cpp
GuardsAPI breakpoints

Type: GuardsAPI

Defined in VirtualC64.h:433

Breakpoints.


watchpoints ​

cpp
GuardsAPI watchpoints

Type: GuardsAPI

Defined in VirtualC64.h:435

Watchpoints.

Public Methods ​

ReturnNameDescription
const CPUConfig &getConfig constReturns the component's current configuration.
const CPUInfo &getInfo constReturns the component's current state.
const CPUInfo &getCachedInfo constReturns the most recent state snapshot recorded by the emulator thread (see getInfo()).

getConfig ​

const

cpp
const CPUConfig & getConfig() const

Defined in VirtualC64.h:439

Returns the component's current configuration.


getInfo ​

const

cpp
const CPUInfo & getInfo() const

Defined in VirtualC64.h:450

Returns the component's current state.

getInfo() reads the live state on the calling thread. The result is only consistent if the emulator is paused or suspended. getCachedInfo() returns the snapshot the emulator thread has recorded most recently, which is the one to use while the emulator runs. Both return references that can be overwritten by a later call or by the emulator thread, so copy the data if you need to keep it.


getCachedInfo ​

const

cpp
const CPUInfo & getCachedInfo() const

Defined in VirtualC64.h:452

Returns the most recent state snapshot recorded by the emulator thread (see getInfo()).