Package net.emustudio.emulib.plugins.cpu
Interface Decoder
-
public interface Decoder
An instruction decoder interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DecodedInstruction
decode(int memoryPosition)
Decodes an instruction.
-
-
-
Method Detail
-
decode
DecodedInstruction decode(int memoryPosition) throws InvalidInstructionException
Decodes an instruction.- Parameters:
memoryPosition
- the address of the start of the instruction- Returns:
- the decoded instruction object
- Throws:
InvalidInstructionException
- when decoding is not successful
-
-