Package net.sourceforge.uiq3.fx603p
Class Op_DC
- java.lang.Object
-
- net.sourceforge.uiq3.fx603p.Owned_Operation
-
- net.sourceforge.uiq3.fx603p.Programmable_Operation
-
- net.sourceforge.uiq3.fx603p.Op_M
-
- net.sourceforge.uiq3.fx603p.Op_DC
-
- All Implemented Interfaces:
IClear,IOperation,IOwned_Operation,IProgrammable_Operation,IProgrammable_Operation
final class Op_DC extends Op_M
Halt Calculator- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Field Summary
Fields Modifier and Type Field Description static short[]Display_TextTest to Display on Program, Print and Debug.private static LoggerLoggerclass logger instanceprivate static StringTAGclass logger tag.-
Fields inherited from class net.sourceforge.uiq3.fx603p.Op_M
Is_M_Register, Register
-
Fields inherited from class net.sourceforge.uiq3.fx603p.Owned_Operation
Owner
-
Fields inherited from interface net.sourceforge.uiq3.fx603p.IProgrammable_Operation
No_Display
-
-
Constructor Summary
Constructors Constructor Description Op_DC(Calculator Owner)Create operation and attach to owning calculator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short @NotNull []Display(short Opcode)Dipslay the ExFn function mapped to this Opcode.voidExecute(short Opcode)Execute the ExFn function mapped to this Opcode.@NotNull StringToken(short Opcode)string representation suitable for use with serial I/O.-
Methods inherited from class net.sourceforge.uiq3.fx603p.Owned_Operation
µReset, µReset, toString
-
-
-
-
Constructor Detail
-
Op_DC
Op_DC(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_ErrorDipslay 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 ErrorExecute the ExFn function mapped to this Opcode.
- Specified by:
Executein interfaceIOperation- Overrides:
Executein classOp_M- Parameters:
Opcode- Virtual CPU Operation to be executed- Throws:
Op_Error- Illegal operationError- something went wrongM_Error- Memory accessed does not exist- See Also:
IOperation.Execute(short)
-
Token
@NotNull public @NotNull String Token(short Opcode) throws Op_Error
string representation suitable for use with serial I/O.
- Specified by:
Tokenin interfaceIProgrammable_Operation- Overrides:
Tokenin classProgrammable_Operation- Parameters:
Opcode- Virtual CPU Operation to be executed- Returns:
- pure ASCII String
- Throws:
Op_Error
-
-