GenericClock

Undocumented in source.

Members

Functions

attachEmulator
void attachEmulator(Emulator!Cpu emulator)

Saves dcpu reference internally for future use.

commitFrame
void commitFrame(ulong frameNumber)
Undocumented in source. Be warned that the author may not have intended to support it.
discardFrame
void discardFrame()
Undocumented in source. Be warned that the author may not have intended to support it.
discardUndoStack
void discardUndoStack()
Undocumented in source. Be warned that the author may not have intended to support it.
handleInterrupt
uint handleInterrupt()

Handles hardware interrupt and returns a number of cycles.

handleUpdateQuery
void handleUpdateQuery(ulong delay)
Undocumented in source. Be warned that the author may not have intended to support it.
hardwareId
uint hardwareId()
hardwareVersion
ushort hardwareVersion()
manufacturer
uint manufacturer()
undoFrames
void undoFrames(ulong numFrames)
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.
updateFrame
void updateFrame()

Called every application frame. Can be used to update screens.

Variables

_dcpu
Cpu* _dcpu;
Undocumented in source.
_emulator
Emulator!Cpu _emulator;
Undocumented in source.
regs
UndoableStruct!(ClockRegisters, ushort) regs;
Undocumented in source.

Meta