Class Op_X_M

  • All Implemented Interfaces:
    net.sourceforge.uiq3.calculator.IClear, net.sourceforge.uiq3.calculator.IOperation, net.sourceforge.uiq3.calculator.IOwned_Operation, net.sourceforge.uiq3.calculator.IProgrammable_Operation, IProgrammable_Operation

    final class Op_X_M
    extends Op_M
    Halt Calculator
    Author:
    "Martin Krischik" «krischik@users.sourceforge.net»
    • Field Detail

      • Logger

        private static final Logger Logger

        class logger instance

      • TAG

        private static final String TAG

        class logger tag.

      • ABC

        private final Op_ABC ABC

        1st ExtFn function

      • DC

        private final Op_DC DC

        2nd ExtFn function

    • Constructor Detail

      • Op_X_M

        Op_X_M​(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
        Display operation in program mode.
        Throws:
        Op_Error
        See Also:
        IProgrammable_Operation.Display(short)
      • Execute

        public void Execute​(short Opcode)
                     throws net.sourceforge.uiq3.calculator.Error
        Specified by:
        Execute in interface net.sourceforge.uiq3.calculator.IOperation
        Overrides:
        Execute in class Op_M
        Throws:
        Error - something went wrong
        M_Error - Memory accessed does not exist
        net.sourceforge.uiq3.calculator.Error
        See Also:
        IOperation.Execute(short)
      • ExFn_Display

        @NotNull
        private @org.jetbrains.annotations.NotNull short[] ExFn_Display​(short Opcode)
                                                                 throws Op_Error

        Dipslay the ExFn function mapped to this Opcode.

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

        private void ExFn_Execute​(short Opcode)
                           throws net.sourceforge.uiq3.calculator.Error

        Execute the ExFn function mapped to this Opcode.

        Throws:
        Op_Error - Illegal operation
        net.sourceforge.uiq3.calculator.Error
        See Also:
        IOperation.Execute(short)
      • ExFn_Token

        @NotNull
        public @NotNull String ExFn_Token​(short Opcode)
                                   throws Op_Error

        string representation suitable for use with serial I/O.

        Parameters:
        Opcode - Virtual CPU Operation to be executed
        Returns:
        pure ASCII String
        Throws:
        Op_Error
      • Token

        @NotNull
        public @NotNull String Token​(short Opcode)
                              throws net.sourceforge.uiq3.calculator.Error

        string representation suitable for use with serial I/O.

        Specified by:
        Token in interface IProgrammable_Operation
        Overrides:
        Token in class Programmable_Operation
        Parameters:
        Opcode - Virtual CPU Operation to be executed
        Returns:
        pure ASCII String
        Throws:
        net.sourceforge.uiq3.calculator.Error