public interface Instruction
| Modifier and Type | Method and Description |
|---|---|
int |
getCPUClocks()
The number of the CPU clocks the instruction takes to execute
|
void |
run(CPUCore cpuCore)
The implementation of the instruction
|
void run(CPUCore cpuCore) throws java.lang.Exception
cpuCore - The CPU core where the instruction is runningjava.lang.Exception - Raised if the instruction accesses resources it should notint getCPUClocks()