Skip to content

MemoryDebuggerAPI ​

cpp
#include <VirtualC64.h>
cpp
class MemoryDebuggerAPI

Defined in VirtualC64.h:130

Memory Debugger API

Public Methods ​

ReturnNameDescription
stringascDump constReturns a string of characters for a portion of memory.
stringhexDump constReturns a string of numbers for a portion of memory.
stringdecDump constVariant of hexDump() that uses a different output format.
stringmemDump constVariant of hexDump() that uses a different output format.

ascDump ​

const

cpp
string ascDump(MemType src, u16 addr, isize bytes) const

Defined in VirtualC64.h:149

Returns a string of characters for a portion of memory.

Unmapped memory (MemType::NONE) is shown as nothing.

Parameters ​

ParameterTypeDescription
srcMemTypeThe memory type the bytes are read from.
addru16First address to dump.
bytesisizeNumber of bytes to dump.

hexDump ​

const

cpp
string hexDump(MemType src, u16 addr, isize bytes, isize sz = 1) const

Defined in VirtualC64.h:163

Returns a string of numbers for a portion of memory.

hexDump() shows the bytes as hexadecimal numbers, decDump() as decimal numbers, and memDump() as hexadecimal numbers followed by characters. Each group of 'sz' bytes forms one number and is followed by a space. Unmapped memory (MemType::NONE) is shown as '–'.

Parameters ​

ParameterTypeDescription
srcMemTypeThe memory type the bytes are read from.
addru16First address to dump.
bytesisizeNumber of bytes to dump.
szisizeGroup size in bytes (1, 2, or 4).

decDump ​

const

cpp
string decDump(MemType src, u16 addr, isize bytes, isize sz = 1) const

Defined in VirtualC64.h:165

Variant of hexDump() that uses a different output format.


memDump ​

const

cpp
string memDump(MemType src, u16 addr, isize bytes, isize sz = 1) const

Defined in VirtualC64.h:167

Variant of hexDump() that uses a different output format.