Class Op_Min_IO
- 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_Min_IO
-
- All Implemented Interfaces:
IClear
,IOperation
,IOwned_Operation
,IProgrammable_Operation
,IProgrammable_Operation
final class Op_Min_IO extends Op_M
Halt Calculator- Author:
- "Martin Krischik" «krischik@users.sourceforge.net»
-
-
Field Summary
Fields Modifier and Type Field Description private @NotNull Op_RSLOAD
Load
Load to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.private static Logger
logger
class logger instanceprivate @NotNull Op_Peek
Peek
Peek to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.private @NotNull Op_Poke
Poke
Poke to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.private @NotNull Op_PRT
Print
Print has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.private @NotNull Op_RSSAVE
Save
Save to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.private static String
TAG
class logger tag.private @NotNull Op_VER
Verify
Verify to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.-
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_Min_IO(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)
Display the ExFn function mapped to this Opcode.private void
ExFn_Execute(short Opcode)
Execute the ExFn function mapped to this Opcode.@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
-
logger
private static final Logger logger
class logger instance
-
TAG
private static final String TAG
class logger tag.
-
Load
@NotNull private final @NotNull Op_RSLOAD Load
Load to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.
-
Peek
@NotNull private final @NotNull Op_Peek Peek
Peek to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.
-
Poke
@NotNull private final @NotNull Op_Poke Poke
Poke to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.
-
Print
@NotNull private final @NotNull Op_PRT Print
Print has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.
-
Save
@NotNull private final @NotNull Op_RSSAVE Save
Save to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.
-
Verify
@NotNull private final @NotNull Op_VER Verify
Verify to serial port has the same Opcode as Min and is to complex to be done inside this class — so this delegate is used.
-
-
Constructor Detail
-
Op_Min_IO
Op_Min_IO(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
Display 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)
-
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
-
-