Skip to content

Cmd ​

cpp
enum Cmd

Defined in Infrastructure/CmdQueueTypes.h:27

Emulator command.

ValueDescription
NONENone.
CONFIGConfigure the emulator.
CONFIG_ALLConfigure the emulator.
CONFIG_SCHEMEIConfigure the emulator with a predefined scheme.
HARD_RESETPerform a hard reset.
SOFT_RESETPerform a soft reset.
POWER_ONSwitch power on.
POWER_OFFSwitch power off.
RUNStart emulation.
PAUSEPause emulation.
WARP_ONSwitch on warp mode.
WARP_OFFSwitch off warp mode.
TRACK_ONSwitch on track mode.
TRACK_OFFSwitch off track mode.
STEP_INTORun the emulator for a single step.
STEP_OVERRun the emulator for a single step.
STEP_CYCLERun the emulator for a single step.
FINISH_LINERun the emulator for a single step.
FINISH_FRAMERun the emulator for a single step.
HALTTerminate the emulator thread.
ALARM_ABSSchedule an alarm (absolute cycle).
ALARM_RELSchedule an alarm (relative cycle).
INSPECTION_TARGETSets the auto-inspection mask.
SAVE_WORKSPACESave the workspace to a folder (path attached).
SAVE_SNAPSHOTSave a snapshot to a file (path attached, value = compressor).
HIBERNATEHibernate into an SVM (path attached, value = bit 0: snapshot, bit 1: workspace).
FLASHFlash a file into memory (path attached, value = item).
CPU_BRKLet the CPU execute a BRK instruction.
CPU_NMIEmulate an external expansion port NMI.
GUARD_SET_ATSet a guard.
GUARD_REMOVE_NRRemove the n-th guard.
GUARD_MOVE_NRChange the address of a guard.
GUARD_REMOVE_ATRemove the guard at an address.
GUARD_REMOVE_ALLRemove all guards.
GUARD_ENABLE_NREnable the n-th guard.
GUARD_ENABLE_ATEnable the guard at an address.
GUARD_ENABLE_ALLEnable all guards.
GUARD_DISABLE_NRDisable the n-th guard.
GUARD_DISABLE_ATDisable the guard at an address.
GUARD_DISABLE_ALLDisable all guards.
GUARD_TOGGLE_NRToggle the n-th guard.
KEY_PRESSPress a key on the C64 keyboard.
KEY_RELEASERelease a key on the C64 keyboard.
KEY_RELEASE_ALLClear the keyboard matrix.
KEY_TOGGLEPress or release a key on the C64 keyboard.
KEY_LOCKLock a key on the C64 keyboard.
KEY_UNLOCKUnlock a key on the C64 keyboard.
KEY_UNLOCK_ALLUnlock all keys on the C64 keyboard.
KEY_ABORT_TYPINGDelete all pending keyboard events.
KEY_AUTOTYPEType a string with the auto-typing daemon (text attached).
MOUSE_MOVE_ABSSignal a mouse movement (absolute).
MOUSE_MOVE_RELSignal a mouse movement (relative).
MOUSE_BUTTONSignal a mouse button event.
JOY_EVENTSignal a joystick button event.
JOY_STATESet the complete joystick state (directions and fire button).
DSK_TOGGLE_WPToggle write-protection.
DSK_MODIFIEDSignal that the disk has been saved.
DSK_UNMODIFIEDSignal that the disk needs saving.
DSK_INSERTInsert a disk (path attached, value = drive, value2 = write protection).
DATASETTE_PLAYPress the datasette play key.
DATASETTE_STOPPress the datasette stop key.
DATASETTE_REWINDRewind the tape.
DATASETTE_INSERTInsert a tape (path attached).
CRT_ATTACHAttach a cartridge (path attached, value = reset).
CRT_BUTTON_PRESSPress a cartridge button.
CRT_BUTTON_RELEASERelease a cartridge button.
CRT_SWITCH_LEFTPull the cartridge switch left.
CRT_SWITCH_NEUTRALPut the cartridge switch in neutral position.
CRT_SWITCH_RIGHTPull the cartridge switch right.
RSH_EXECUTEExecute a script command.
RSH_PRESS_KEYType a special key into RetroShell (value = key, value2 = shift).
RSH_PRESS_CHARType a character into RetroShell (value = character).
RSH_PRESS_TEXTType a string into RetroShell (text attached).
CALLRun a function on the emulator thread (value2 = pointer to a std::function<void()> that stays alive until the command has been carried out).
FOCUSThe emulator windows got or lost focus.