Appearance
CopperAPI
cpp
#include <VAmiga.h>cpp
class CopperAPIDefined in VAmiga.h:602
API of the Copper.
Public Attributes
| Return | Name | Description |
|---|---|---|
GuardsAPI | breakpoints | The Copper breakpoints. |
GuardsAPI | watchpoints | The Copper watchpoints. |
breakpoints
cpp
GuardsAPI breakpointsType: GuardsAPI
Defined in VAmiga.h:611
The Copper breakpoints.
watchpoints
cpp
GuardsAPI watchpointsType: GuardsAPI
Defined in VAmiga.h:613
The Copper watchpoints.
Public Methods
| Return | Name | Description |
|---|---|---|
const CopperInfo & | getInfo const | Returns the component's current state. |
const CopperInfo & | getCachedInfo const | Returns the most recent state snapshot recorded by the emulator thread (see getInfo()). |
string | disassemble const | Disassembles a Copper instruction. |
string | disassemble const | Disassembles a Copper instruction. |
bool | isIllegalInstr const | Checks whether a Copper instruction is illegal. A Copper instruction is classified as illegal if it is tries custom chip register it has no access to. |
getInfo
const
cpp
const CopperInfo & getInfo() constDefined in VAmiga.h:624
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 CopperInfo & getCachedInfo() constDefined in VAmiga.h:626
Returns the most recent state snapshot recorded by the emulator thread (see getInfo()).
disassemble
const
cpp
string disassemble(isize list, isize offset, bool symbolic) constDefined in VAmiga.h:637
Disassembles a Copper instruction.
Parameters
| Parameter | Type | Description |
|---|---|---|
list | isize | The Cooper list to take the instruction from |
offset | isize | Offset of the instruction relative to the start of the list. |
symbolic | bool | The output format. The flag indicates whether the instruction should be be disassembled in symbolic, human-readable form or in raw form as a sequence of hexadecimal numbers. |
disassemble
const
cpp
string disassemble(u32 addr, bool symbolic) constDefined in VAmiga.h:643
Disassembles a Copper instruction.
Parameters
| Parameter | Type | Description |
|---|---|---|
addr | u32 | The address of the Cooper instruction in memory. |
symbolic | bool | Output format. |
isIllegalInstr
const
cpp
bool isIllegalInstr(u32 addr) constDefined in VAmiga.h:650
Checks whether a Copper instruction is illegal. A Copper instruction is classified as illegal if it is tries custom chip register it has no access to.
Parameters
| Parameter | Type | Description |
|---|---|---|
addr | u32 | The address of the Cooper instruction in memory. |