Class Op_ABC

    • Field Detail

      • Logger

        private static final Logger Logger

        class logger instance

      • TAG

        private static final String TAG

        class logger tag.

      • Display_Text

        public static final short[] Display_Text
    • Constructor Detail

      • Op_ABC

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

      • Display

        public short @NotNull [] 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)