public class Context
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
CPUCore |
getCpuCore()
Get the core where the context is running
|
void |
jump(InstructionList instructionList)
Jump to a list of instructions
|
void |
jumpBack()
Jump back to the previous codeblock
|
void |
loop()
Restart the execution of the current Loop
|
Instruction |
nextInstruction()
Next instruction to execute
|
void |
setCPUCore(CPUCore cpuCore)
Set the core where the context is running
|
public Instruction nextInstruction()
public void setCPUCore(CPUCore cpuCore)
cpuCore
- The CPU corepublic CPUCore getCpuCore()
public void jump(InstructionList instructionList)
instructionList
- The target list of instructionspublic void loop()
public void jumpBack()