GenericClock

@trusted nothrow
class GenericClock : IDevice!Cpu(
Cpu
) {
Cpu* _dcpu;
Emulator!Cpu _emulator;
UndoableStruct!(ClockRegisters, ushort) regs;
}

Members

Functions

attachEmulator
void attachEmulator(Emulator!Cpu emulator)

Saves dcpu reference internally for future use.

handleInterrupt
uint handleInterrupt()

Handles hardware interrupt and returns a number of cycles.

hardwareId
uint hardwareId()
hardwareVersion
ushort hardwareVersion()
manufacturer
uint manufacturer()
updateFrame
void updateFrame()

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

Meta