Class Op_SAVE

  • 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

    final class Op_SAVE
    extends Op_Interface
    Save / Print Data
    Author:
    "Martin Krischik" «krischik@users.sourceforge.net»
    • Field Detail

      • Display_Text

        private static final short[] Display_Text
        Test to Display 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_SAVE

        Op_SAVE​(@NotNull
                @NotNull 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)
        Display Operation in Wrt mode.
        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_Interface
        Throws:
        Error - some error
        net.sourceforge.uiq3.calculator.Error
        See Also:
        IOperation.Execute(short)
      • Execute_Run

        private void Execute_Run()
                          throws Error
        Throws:
        Error
      • Execute_Shift_IO

        private void Execute_Shift_IO​(String Java_File_Name)
                               throws Op_Error

        execute shift EXE in IO mode

        Parameters:
        Java_File_Name - file name
        Throws:
        Op_Error - something went wrong
      • Execute_Shift_Run

        private void Execute_Shift_Run​(String Java_File_Name)
                                throws Error
        Throws:
        Error
      • Save_Display

        private void Save_Display()
                           throws Op_Error
        Writes displayed register to simulated cassette interface.
        Throws:
        Op_Error - some error in the calculator.