Package net.emustudio.emulib.plugins.cpu
Interface Disassembler
-
public interface Disassembler
An instruction disassembler interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DisassembledInstruction
disassemble(int memoryPosition)
Dissassemble one instruction at specific location.int
getNextInstructionPosition(int memoryPosition)
Returns an address in the memory of the next instruction, that is followed by specified location.
-
-
-
Method Detail
-
disassemble
DisassembledInstruction disassemble(int memoryPosition) throws InvalidInstructionException, java.lang.IndexOutOfBoundsException
Dissassemble one instruction at specific location.- Parameters:
memoryPosition
- Memory address where to begin disassembling.- Returns:
- Object that represents the disassembled instruction.
- Throws:
InvalidInstructionException
- when instruction coul not be disassembledjava.lang.IndexOutOfBoundsException
- when memory location exceeds the bounds
-
getNextInstructionPosition
int getNextInstructionPosition(int memoryPosition) throws java.lang.IndexOutOfBoundsException
Returns an address in the memory of the next instruction, that is followed by specified location.- Parameters:
memoryPosition
- The memory location of the instruction- Returns:
- Memory position of next instruction
- Throws:
java.lang.IndexOutOfBoundsException
- when memory location exceeds the bounds
-
-