Class Op_Percent

    • 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.

      • Last_Y

        @Nullable
        private Number Last_Y
        Last Y register - needed for some more complex percentage calculation
    • Constructor Detail

      • Op_Percent

        public Op_Percent​(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)
      • Display

        @NotNull
        public @org.jetbrains.annotations.NotNull short[] Display​(short Opcode)
                                                           throws Op_Error
        Display Operation in Wrt mode.
        Parameters:
        Opcode - Virtual CPU Operation to be executed
        Returns:
        String to be displayed
        Throws:
        Op_Error
        See Also:
        IProgrammable_Operation.Display(short)
      • Execute

        public void Execute​(short Opcode)
                     throws Error
        Description copied from interface: IOperation

        Execute virtual CPU command or key stroke

        Parameters:
        Opcode - Virtual CPU Operation to be executed
        Throws:
        Error - any old calculator error
        Error
        See Also:
        IOperation.Execute(short)