Class Op_GSB_Comp

    • Field Detail

      • Display_Text

        private static final short[] Display_Text
        Test to Dispay on Program, Print and Debug.
      • Logger

        private static final Logger Logger

        Class logger instance.

      • TAG

        private static final String TAG

        Class logger tag.

    • Constructor Detail

      • Op_GSB_Comp

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

      • Clear

        public void Clear​(boolean AC)
        Reset state - for state full operations.
        Parameters:
        AC - All Clear reset
        See Also:
        IClear.Clear(boolean)
      • ExFn_Display

        private short @NotNull [] ExFn_Display​(short Opcode)
                                        throws Op_Error

        Display the ExFn function mapped to this Opcode.

        Throws:
        Op_Error - Illegal operation
        See Also:
        IOperation.Execute(short)
      • Execute

        public void Execute​(short Opcode)
                     throws Error
        Go to subroutine - this op code has the unique property of not raising an error when something goes wrong - but just to ignore the command.
        Parameters:
        Opcode - Virtual CPU Operation to be executed
        Throws:
        Op_Error - when something went wrong
        Error - "Error" is an abstract exception class representing all possible errors the calculator can produce.
        Error
        See Also:
        IOperation.Execute(short)