Skip to content

MemoryDebuggerAPI ​

cpp
#include <VAmiga.h>
cpp
class MemoryDebuggerAPI

Defined in VAmiga.h:877

API of the memory debugger (dumps and searches).

Public Methods ​

ReturnNameDescription
MemSrcgetMemSrc constReturns the memory source for a given address.
const char *regName constReturns the name of the custom chip register an address selects.
u8spypeek8 constReads a value from memory without causing side effects.
u16spypeek16 constReads a 16 bit value from memory without causing side effects (see spypeek8()).
stringascDump constReturns a string of characters for a portion of memory.
stringhexDump constReturns a string of numbers for a portion of memory.
stringmemDump constReturns a memory dump that includes a text column (see hexDump()).

getMemSrc ​

const

cpp
MemSrc getMemSrc(Accessor src, u32 addr) const

Defined in VAmiga.h:891

Returns the memory source for a given address.

Exceptions ​

ExceptionDescription
CoreError(CoreError::OPT_INV_ARG) if the accessor is invalid.

regName ​

const

cpp
const char * regName(u32 addr) const

Defined in VAmiga.h:898

Returns the name of the custom chip register an address selects.

The address is decoded whether or not it names a register, so this is only meaningful for an address getMemSrc() reports as CUSTOM.


spypeek8 ​

const

cpp
u8 spypeek8(Accessor src, u32 addr) const

Defined in VAmiga.h:903

Reads a value from memory without causing side effects.

Exceptions ​

ExceptionDescription
CoreError(CoreError::OPT_INV_ARG) if the accessor is invalid.

spypeek16 ​

const

cpp
u16 spypeek16(Accessor src, u32 addr) const

Defined in VAmiga.h:905

Reads a 16 bit value from memory without causing side effects (see spypeek8()).


ascDump ​

const

cpp
string ascDump(Accessor src, u32 addr, isize bytes) const

Defined in VAmiga.h:914

Returns a string of characters for a portion of memory.

Parameters ​

ParameterTypeDescription
srcAccessorThe accessor used to read the bytes.
addru32First address to dump.
bytesisizeNumber of bytes to dump.

Exceptions ​

ExceptionDescription
CoreError(CoreError::OPT_INV_ARG) if the accessor is invalid.

hexDump ​

const

cpp
string hexDump(Accessor src, u32 addr, isize bytes, isize sz = 1) const

Defined in VAmiga.h:928

Returns a string of numbers for a portion of memory.

hexDump() shows the bytes as hexadecimal numbers, memDump() as hexadecimal numbers followed by characters. Each group of 'sz' bytes forms one number and is followed by a space.

Parameters ​

ParameterTypeDescription
srcAccessorThe accessor used to read the bytes.
addru32First address to dump.
bytesisizeNumber of bytes to dump.
szisizeGroup size in bytes (1, 2, or 4).

Exceptions ​

ExceptionDescription
CoreError(CoreError::OPT_INV_ARG) if the accessor is invalid.

memDump ​

const

cpp
string memDump(Accessor src, u32 addr, isize bytes, isize sz = 1) const

Defined in VAmiga.h:930

Returns a memory dump that includes a text column (see hexDump()).