Interface DecodedInstruction


public interface DecodedInstruction
Immutable facts about one successfully decoded instruction. Accessors describe captured input and never read live memory.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Logical instruction start, in the CPU's address units.
    Captured encoding as display text, including non-byte representations.
    int
    Positive number of occupied addressable cells, not necessarily bytes.
    Rendered mnemonic and operands from the captured instruction.
    of(int address, int length, String mnemonic, String encoding)
    Captures immutable instruction facts without reading or retaining machine state.
  • Method Details

    • address

      int address()
      Logical instruction start, in the CPU's address units.
    • length

      int length()
      Positive number of occupied addressable cells, not necessarily bytes.
    • mnemonic

      String mnemonic()
      Rendered mnemonic and operands from the captured instruction.
    • encoding

      String encoding()
      Captured encoding as display text, including non-byte representations.
    • of

      static DecodedInstruction of(int address, int length, String mnemonic, String encoding)
      Captures immutable instruction facts without reading or retaining machine state.