Emulator

Does actual interpreting of DCPU-16

Members

Functions

attachDevice
void attachDevice(IDevice!CpuType device)
Undocumented in source. Be warned that the author may not have intended to support it.
loadProgram
void loadProgram(ushort[] binary)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()

Resets dcpu state and interpreter state to their initial state.

step
void step(ulong numInstructions)

Performs next instruction

stepCycles
ulong stepCycles(ulong cyclesToStep)
Undocumented in source. Be warned that the author may not have intended to support it.
undoStackSize
size_t undoStackSize()
Undocumented in source. Be warned that the author may not have intended to support it.
unstep
void unstep(ulong numInstructions)
Undocumented in source. Be warned that the author may not have intended to support it.
unstepCycles
ulong unstepCycles(ulong cyclesToStep)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

dcpu
CpuType dcpu;

data storage: memory, registers.

stats
EmulationStatistics stats;
Undocumented in source.

Meta