Package net.sourceforge.uiq3.fx603p
Class Op_ENG
- java.lang.Object
-
- net.sourceforge.uiq3.fx603p.Owned_Operation
-
- net.sourceforge.uiq3.fx603p.Programmable_Operation
-
- net.sourceforge.uiq3.fx603p.Op_ENG
-
- All Implemented Interfaces:
IClear
,IOperation
,IOwned_Operation
,IProgrammable_Operation
,IProgrammable_Operation
final class Op_ENG extends Programmable_Operation
Halt Calculator- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Field Summary
Fields Modifier and Type Field Description private static short[]
Display_Text_1
Test to Dispay on Program, Print and Debug.private static short[]
Display_Text_2
Test to Dispay on Program, Print and Debug.private int
Exponent_Offset
Exponent Offset to be usedprivate static Logger
Logger
Class logger instance.private static String
TAG
Class logger tag.-
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_ENG(@NotNull Calculator Owner)
Create operation and attach to owning calculator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
Clear(boolean AC)
Reset state - for state full operations.@org.jetbrains.annotations.NotNull short[]
Display(short Opcode)
Display operation in Prog mode.private void
Display_Formatted()
Actualy format the value of L[X] for display.void
Execute(short Opcode)
Execute virtual CPU command or key stroke@NotNull String
Token(short Opcode)
string representation suitable for use with serial I/O.-
Methods inherited from class net.sourceforge.uiq3.fx603p.Owned_Operation
µReset, µReset, toString
-
-
-
-
Field Detail
-
Display_Text_1
private static final short[] Display_Text_1
Test to Dispay on Program, Print and Debug.
-
Display_Text_2
private static final short[] Display_Text_2
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.
-
Exponent_Offset
private int Exponent_Offset
Exponent Offset to be used
-
-
Constructor Detail
-
Op_ENG
Op_ENG(@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)
-
Display
@NotNull public @org.jetbrains.annotations.NotNull short[] Display(short Opcode) throws Op_Error
Display operation in Prog mode.- Parameters:
Opcode
- Virtual CPU Operation to be executed- Returns:
- String to be displayed
- Throws:
Op_Error
- See Also:
IProgrammable_Operation.Display(short)
-
Display_Formatted
private void Display_Formatted()
Actualy format the value of L[X] for display.
-
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 possible calculator error- 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:
Token
in interfaceIProgrammable_Operation
- Overrides:
Token
in classProgrammable_Operation
- Parameters:
Opcode
- Virtual CPU Operation to be executed- Returns:
- pure ASCII String
- Throws:
Op_Error
-
-