IDevice

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.

handleUpdateQuery
void handleUpdateQuery(ref ulong delay)

Must handle previosly posted update query. If next updates is not needed must set delay to zero. If set to non-zero will be called after delay cycles elapsed with provided message.

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

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

Meta