Interface Decoder
public interface Decoder
An instruction decoder interface.
-
Method Summary
-
Method Details
-
decode
DecodedInstruction decode(int address) throws InvalidInstructionException, IndexOutOfBoundsException Decodes an instruction. Callers must serialize access unless the implementation documents concurrent decoding. A returned instruction is immutable even after the memory changes.- Parameters:
address- the logical address of the start of the instruction- Returns:
- the decoded instruction object
- Throws:
InvalidInstructionException- when decoding is not successfulIndexOutOfBoundsException- when required instruction cells are unavailable
-