Interface OperandType

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void decode​(int pc, de.carne.mcd.io.MCDInputBuffer buffer, de.carne.mcd.io.MCDOutputBuffer out)
      Decodes the operand.
      java.lang.String name()
      Gets the operand type's name.
      char type()
      Gets the operand's type (B:byte, S:short, I:int).
    • Method Detail

      • type

        char type()
        Gets the operand's type (B:byte, S:short, I:int).
        Returns:
        the operand's type (B:byte, S:short, I:int).
      • name

        java.lang.String name()
        Gets the operand type's name.
        Returns:
        the operand type's name.
      • decode

        void decode​(int pc,
                    de.carne.mcd.io.MCDInputBuffer buffer,
                    de.carne.mcd.io.MCDOutputBuffer out)
             throws java.io.IOException
        Decodes the operand.
        Parameters:
        pc - the program counter of the corresponding opcode.
        buffer - the MCDInputBuffer to decode from.
        out - the MCDOutputBuffer to decode to.
        Throws:
        java.io.IOException - if an I/O error occurs.