- basicInstruction
void basicInstruction(Cpu dcpu, Instruction instr)
Performs basic instruction.
- execute
void execute(Cpu dcpu, Instruction instr)
Undocumented in source. Be warned that the author may not have intended to support it.
- handleInterrupt
void handleInterrupt(Cpu dcpu)
Handles interrupt from interrupt queue if reg_ia != 0 && intQueue.length > 0
Handles interrupts only when interrupt queuing is disabled.
It may be enabled by interrupt handler or manually in time critical code.
- pop
ushort pop(Cpu dcpu)
Pops value from stack increasing reg_sp.
- push
void push(Cpu dcpu, ushort value)
Pushes value onto stack decreasing reg_sp.
- queryHardwareInfo
void queryHardwareInfo(Cpu dcpu, ushort deviceIndex)
Sets A, B, C, X, Y registers to information about hardware deviceIndex
- sendHardwareInterrupt
void sendHardwareInterrupt(Cpu dcpu, ushort deviceIndex)
Sends an interrupt to hardware deviceIndex
- skip
void skip(Cpu dcpu, ushort pc)
Undocumented in source. Be warned that the author may not have intended to support it.
- skipIfs
void skipIfs(Cpu dcpu)
Skips instructions if conditional opcode was failed.
- specialInstruction
void specialInstruction(Cpu dcpu, Instruction instr)
Performs special instruction.
- triggerInterrupt
void triggerInterrupt(Cpu dcpu, ushort message)
Adds interrupt with message 'message' to dcpu.intQueue or starts burning DCPU if queue grows bigger than 256