Package net.sourceforge.uiq3.fx603p
Class Op_X_M
- 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_X_M
-
- All Implemented Interfaces:
IClear
,IOperation
,IOwned_Operation
,IProgrammable_Operation
,IProgrammable_Operation
final class Op_X_M extends Op_M
Halt Calculator- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Field Summary
Fields Modifier and Type Field Description private Op_ABC
ABC
1st ExtFn functionprivate Op_DC
DC
2nd ExtFn functionprivate static Logger
Logger
class logger instanceprivate static String
TAG
class 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_X_M(Calculator Owner)
Create operation and attach to owning calculator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @org.jetbrains.annotations.NotNull short[]
Display(short Opcode)
Display operation in program mode.void
Execute(short Opcode)
Execute virtual CPU command or key strokeprivate @org.jetbrains.annotations.NotNull short[]
ExFn_Display(short Opcode)
Dipslay the ExFn function mapped to this Opcode.private void
ExFn_Execute(short Opcode)
Execute the ExFn function mapped to this Opcode.@NotNull String
ExFn_Token(short Opcode)
string representation suitable for use with serial I/O.@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
-
-
-
-
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.- 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
- Specified by:
Execute
in interfaceIOperation
- Overrides:
Execute
in classOp_M
- Parameters:
Opcode
- Virtual CPU Operation to be executed- Throws:
Error
- something went wrongM_Error
- Memory accessed does not existError
- 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 Error
Execute the ExFn function mapped to this Opcode.
- Throws:
Op_Error
- Illegal operationError
- 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 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:
Error
-
-