Class Op_Peek

    • Field Detail

      • Display_Text

        public static final short[] Display_Text
      • Logger

        private static final Logger Logger

        class logger instance

      • TAG

        private static final String TAG

        class logger tag.

    • Constructor Detail

      • Op_Peek

        Op_Peek​(Calculator Owner)
        Create operation and attach to owning calculator.
        Parameters:
        Owner - Calculator which will call this Opcode
    • Method Detail

      • Display

        @NotNull
        public @org.jetbrains.annotations.NotNull short[] Display​(short Opcode)
                                                           throws Op_Error

        Dipslay the ExFn function mapped to this Opcode.

        Parameters:
        Opcode - Virtual CPU Operation to be executed
        Returns:
        String to be displayed
        Throws:
        Op_Error - Illegal operation
        See Also:
        IOperation.Execute(short)
      • Execute

        public void Execute​(short Opcode)
                     throws Error

        Execute the ExFn function mapped to this Opcode.

        Specified by:
        Execute in interface IOperation
        Overrides:
        Execute in class Op_M
        Parameters:
        Opcode - Virtual CPU Operation to be executed
        Throws:
        Op_Error - Illegal operation
        Error - something went wrong
        M_Error - Memory accessed does not exist
        See Also:
        IOperation.Execute(short)