caoss.simulator.instructions

## Interface Instruction

- All Known Implementing Classes:
    Computation, Loop, MemoryAccess, MemoryLoad, MemoryStore, SysCall

      public interface Instruction

  Interface for the set of instructions supported by the CAOSS CPU cores
  Author:
    Herve Paulino

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    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

- - ### Method Detail

    - #### run

          void run(CPUCore cpuCore)
            throws java.lang.Exception

      The implementation of the instruction
      Parameters:
        `cpuCore` - The CPU core where the instruction is running
      Throws:
        `java.lang.Exception` - Raised if the instruction accesses resources it should not

    - #### getCPUClocks

          int getCPUClocks()

      The number of the CPU clocks the instruction takes to execute
      Returns:
        The number of the CPU clocks