Droid_Calculator
Author
"Martin Krischik" «krischik@users.sourceforge.net»
Constructors
Properties
Link copied to clipboard
The A Register contains the Keyboard_Alpha data of the display.
Link copied to clipboard
Calculator is running - needed for power saving.
Link copied to clipboard
Calculator is not running - needed for end program.
Link copied to clipboard
Current Current_Program
Link copied to clipboard
The Display currently displays the content of an Alpha register.
Link copied to clipboard
Display enable - used to switch off the display so that intermediate result are not shown to the user.
Link copied to clipboard
Error Message displayed on using the wrong display mode!
Link copied to clipboard
Current display mode
- Display_Alpha
- Displays the content of the Alpha register.
- Display_L
- Displays the content of the L0 aka X register.
- Display_Formatted
- Displays the content of the L0 aka X register inside an alpha
Link copied to clipboard
Calculator debugging a program.
Link copied to clipboard
Execution Mode.
Link copied to clipboard
Error Message displayed on using the wrong execution mode!
Link copied to clipboard
Calculator debugging a program.
Link copied to clipboard
Calculator is used interactively.
Link copied to clipboard
Current Execution mode.
Link copied to clipboard
Do a single step and return to Execution_Halt.
Link copied to clipboard
final Calculator debugging a program.
Link copied to clipboard
Calculator running a program.
Link copied to clipboard
Execution Mode.
Link copied to clipboard
Return Position for HLT Mode.
Link copied to clipboard
The last operation was one of the operations (+-) which disable the clear key.
Link copied to clipboard
Keyboard Mode Alpha:
- Inv
- Keyboard in inverse move
- Hyp
- Keyboard in hyperbolic mode - also used for password entry
- K
- Constant calculation mode
- Hlt
- halted programm - also used for debugger
- Run
- Mode1, interactive or program run mode
- Wrt
- Mode2, write programms
- Pcl
- Mode3, clear, save, load programs.
- Deg
- Mode4, Tr
- Rad
- Mode5
- Gra
- Mode6
- Keyboard_Alpha
- Alpha entry and display mofe
- The mode show that the Alpha Keyboard mode is active. The indicator also blinks twice in that 2 sec pause when displaying an string >11 characters.
Link copied to clipboard
Indicator count:
- Inv
- Keyboard in inverse move
- Hyp
- Keyboard in hyperbolic mode - also used for password entry
- K
- Constant calculation mode
- Hlt
- halted programm - also used for debugger
- Run
- Mode1, interactive or program run mode
- Wrt
- Mode 2, write programms
- Pcl
- Mode 3, clear, save, load programs.
- Deg
- Mode 4, Tr
- Rad
- Mode 5
- Gra
- Mode 6
- Keyboard_Alpha
- Alpha entry and display mofe
Link copied to clipboard
Trigonometric functions in degrees (360° based)
- Inv
- Keyboard in inverse move
- Hyp
- Keyboard in hyperbolic mode - also used for password entry
- K
- Constant calculation mode
- Hlt
- halted programm - also used for debugger
- Run
- Mode1, interactive or program run mode
- Wrt
- Mode2, write programms
- Pcl
- Mode3, clear, save, load programs.
- Deg
- Mode4, Tr
- Rad
- Mode5
- Gra
- Mode6
- Keyboard_Alpha
- Alpha entry and display mofe
Link copied to clipboard
Trigonometric functions in gradians (400 based)
- Inv
- Keyboard in inverse move
- Hyp
- Keyboard in hyperbolic mode - also used for password entry
- K
- Constant calculation mode
- Hlt
- halted programm - also used for debugger
- Run
- Mode1, interactive or program run mode
- Wrt
- Mode2, write programms
- Pcl
- Mode3, clear, save, load programs.
- Deg
- Mode4, Tr
- Rad
- Mode5
- Gra
- Mode6
- Keyboard_Alpha
- Alpha entry and display mofe
Link copied to clipboard
Program halt wait for user response
- Inv
- Keyboard in inverse move
- Hyp
- Keyboard in hyperbolic mode - also used for password entry
- K
- Constant calculation mode
- Hlt
- halted programm - also used for debugger
- Run
- Mode1, interactive or program run mode
- Wrt
- Mode2, write programms
- Pcl
- Mode3, clear, save, load programs.
- Deg
- Mode4, Tr
- Rad
- Mode5
- Gra
- Mode6
- Keyboard_Alpha
- Alpha entry and display mofe
Link copied to clipboard
Hyperbolic function active.
Link copied to clipboard
Inverse functions active.
Link copied to clipboard
Arithmetic with constants.
Link copied to clipboard
Clear program and memory.
Link copied to clipboard
Trigonometric functions in radians (2π based)
- Inv
- Keyboard in inverse move
- Hyp
- Keyboard in hyperbolic mode - also used for password entry
- K
- Constant calculation mode
- Hlt
- halted programm - also used for debugger
- Run
- Mode1, interactive or program run mode
- Wrt
- Mode2, write programms
- Pcl
- Mode3, clear, save, load programs.
- Deg
- Mode4, Tr
- Rad
- Mode5
- Gra
- Mode6
- Keyboard_Alpha
- Alpha entry and display mofe
Link copied to clipboard
Run and calculation mode.
Link copied to clipboard
Write Programs
- Inv
- Keyboard in inverse move
- Hyp
- Keyboard in hyperbolic mode - also used for password entry
- K
- Constant calculation mode
- Hlt
- halted programm - also used for debugger
- Run
- Mode1, interactive or program run mode
- Wrt
- Mode2, write programms
- Pcl
- Mode3, clear, save, load programs.
- Deg
- Mode4, Tr
- Rad
- Mode5
- Gra
- Mode6
- Keyboard_Alpha
- Alpha entry and display mofe
Link copied to clipboard
Indicators:
- Inv
- Keyboard in inverse move
- Hyp
- Keyboard in hyperbolic mode - also used for password entry
- K
- Constant calculation mode
- Hlt
- halted programm - also used for debugger
- Run
- Mode1, interactive or program run mode
- Wrt
- Mode2, write programms
- Pcl
- Mode3, clear, save, load programs.
- Deg
- Mode4, Tr
- Rad
- Mode5
- Gra
- Mode6
- Keyboard_Alpha
- Alpha entry and display mofe
Link copied to clipboard
The memory from 1000 ..
Link copied to clipboard
The memory from 1000 ..
Link copied to clipboard
last key pressed
Link copied to clipboard
Operations as they come from the keyboard.
Link copied to clipboard
Keyboard is in alpha mode
- Keyboard_Normal
- Keyboard is in normal mode
- Keyboard_Inv
- Keyboard is in inverse mode
- Keyboard_Hyp
- Keyboard is in hyperbolic mode
- Keyboard_Inv_Hyp
- Keyboard is in inverse hyperbolic mode
- Keyboard_Alpha
- Keyboard is in alpha mode
- Keyboard_Inv_Alpha
- Keyboard is in inverse alpha mode
Link copied to clipboard
Error Message displayed on using the wrong keyboard mode!
Link copied to clipboard
Keyboard is in hyperbolic mode
- Keyboard_Normal
- Keyboard is in normal mode
- Keyboard_Inv
- Keyboard is in inverse mode
- Keyboard_Hyp
- Keyboard is in hyperbolic mode
- Keyboard_Inv_Hyp
- Keyboard is in inverse hyperbolic mode
- Keyboard_Alpha
- Keyboard is in alpha mode
- Keyboard_Inv_Alpha
- Keyboard is in inverse alpha mode
Link copied to clipboard
Keyboard is in inverse mode
- Keyboard_Normal
- Keyboard is in normal mode
- Keyboard_Inv
- Keyboard is in inverse mode
- Keyboard_Hyp
- Keyboard is in hyperbolic mode
- Keyboard_Inv_Hyp
- Keyboard is in inverse hyperbolic mode
- Keyboard_Alpha
- Keyboard is in alpha mode
- Keyboard_Inv_Alpha
- Keyboard is in inverse alpha mode
Link copied to clipboard
Keyboard is in inverse alpha mode
- Keyboard_Normal
- Keyboard is in normal mode
- Keyboard_Inv
- Keyboard is in inverse mode
- Keyboard_Hyp
- Keyboard is in hyperbolic mode
- Keyboard_Inv_Hyp
- Keyboard is in inverse hyperbolic mode
- Keyboard_Alpha
- Keyboard is in alpha mode
- Keyboard_Inv_Alpha
- Keyboard is in inverse alpha mode
Link copied to clipboard
Keyboard is in inverse hyperbolic mode
- Keyboard_Normal
- Keyboard is in normal mode
- Keyboard_Inv
- Keyboard is in inverse mode
- Keyboard_Hyp
- Keyboard is in hyperbolic mode
- Keyboard_Inv_Hyp
- Keyboard is in inverse hyperbolic mode
- Keyboard_Alpha
- Keyboard is in alpha mode
- Keyboard_Inv_Alpha
- Keyboard is in inverse alpha mode
Link copied to clipboard
Keyboard is in normal mode
- Keyboard_Normal
- Keyboard is in normal mode
- Keyboard_Inv
- Keyboard is in inverse mode
- Keyboard_Hyp
- Keyboard is in hyperbolic mode
- Keyboard_Inv_Hyp
- Keyboard is in inverse hyperbolic mode
- Keyboard_Alpha
- Keyboard is in alpha mode
- Keyboard_Inv_Alpha
- Keyboard is in inverse alpha mode
Link copied to clipboard
The L-Register are used for general calculations.
Link copied to clipboard
Last operation choosen by user - used for the K option.
Link copied to clipboard
Multi Keystroke Operation like Alpha, Degree, Eng, Save, Load in progress
Link copied to clipboard
Operations as they executed by the calculator.
Link copied to clipboard
The memory from 1000 ..
Link copied to clipboard
Text to display when ( is pressed
Link copied to clipboard
Link copied to clipboard
Current Program counter .
Link copied to clipboard
Program stack used for GSB commands .
Link copied to clipboard
Program stack poiunter used for GSB commands .
Link copied to clipboard
Where to store the next merged operations.
Link copied to clipboard
Handle property changes.
Link copied to clipboard
Run calculator with realistic speed - just about as fast as the original.
Link copied to clipboard
Text to display when ( is pressed
Link copied to clipboard
deeps of the program stack.
Link copied to clipboard
Program or program counter where changes where changed.
Link copied to clipboard
Program or program counter where changes where changed.
Link copied to clipboard
Amount of Steps.
Link copied to clipboard
Active plane:
- 0: Keyboard_Normal
- 1: Memory + 20, Fix instead of RND
- 2; Memory + 40
- 3: Memory + 60
- 4: Memory + 80
Link copied to clipboard
The memory from 0 ..
Link copied to clipboard
The memory from 0 ..
Functions
Link copied to clipboard
Link copied to clipboard
Add a PropertyChangeListener to the listener list.
Add a PropertyChangeListener for a specific property.
Link copied to clipboard
Decrement where to store the next merged operations.
Link copied to clipboard
Display an error message until C or AC is pressed.
Link copied to clipboard
Display an error message until C or AC is pressed.
Link copied to clipboard
Display program overview
Link copied to clipboard
Display program overview
Link copied to clipboard
Display Program Steps
Link copied to clipboard
Clear all alpha register.
Link copied to clipboard
display additional information on the error.
Link copied to clipboard
Display value as formatted text
Link copied to clipboard
* Display Key merge info.
Link copied to clipboard
Display text as message
Link copied to clipboard
Enable or disable energy savings mode.
Link copied to clipboard
Handles running the calculator
Link copied to clipboard
Add total amount of free steps to text;
Link copied to clipboard
Checks if the calculator is in Alpha mode by checking merged operation (when execution programms the alpha indicator is not set).
Link copied to clipboard
Link copied to clipboard
Current display mode
- Display_Alpha
- Displays the content of the Alpha register.
- Display_L
- Displays the content of the L0 aka X register.
- Display_Formatted
- Displays the content of the L0 aka X register inside an alpha
Link copied to clipboard
Execution mode
Link copied to clipboard
locate the last step to display the free steps or for debugging.
Link copied to clipboard
The manual says that a PAUSE takes about a second.
Link copied to clipboard
Intermediate wait in milliseconds while pause is executed.
Link copied to clipboard
additional wait to make simulator more realistic.
Link copied to clipboard
return current stack pointer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Increment Current Program counter.
Link copied to clipboard
Increment Current Program counter.
Link copied to clipboard
Increment where to store the next merged operations.
Link copied to clipboard
Clears internal Memory
Link copied to clipboard
Sets the opcodes.
Link copied to clipboard
init the GSB stack
Link copied to clipboard
Clears Program Steps
Link copied to clipboard
Alpha Mode?
Link copied to clipboard
Current mode
Link copied to clipboard
check if Step "Nr" is an Alpha character
Link copied to clipboard
Program stack used for GSB commands .
Link copied to clipboard
Program stack used for GSB commands .
Link copied to clipboard
Calculator is not running - needed for end program.
Link copied to clipboard
Link copied to clipboard
Get current Keyboard mode
set input mode
Link copied to clipboard
The M-Register are used for general data storage.
Link copied to clipboard
Load the current status of the system
Link copied to clipboard
Multi Keystroke Operation like Alpha, Degree, Eng, Save, Load in progress
Link copied to clipboard
Program stack used for GSB commands .
Link copied to clipboard
Get current Program counter.
Link copied to clipboard
Return step-postion of given program
Link copied to clipboard
get where to store the next merged operations.
Link copied to clipboard
Program stack used for GSB commands .
Link copied to clipboard
Read Steps from Simulated Cassette interface.
Link copied to clipboard
Read Steps from Simulated Cassette interface.
Link copied to clipboard
Remove a PropertyChangeListener from the listener list.
Remove a PropertyChangeListener for a specific property.
Link copied to clipboard
Save the current status of the system
Link copied to clipboard
Checks if the calculator is in Alpha mode by checking merged operation (when execution programms the alpha indicator is not set).
Link copied to clipboard
Current mode
Link copied to clipboard
Set Current program to program at program counter
Link copied to clipboard
Set Current Program counter.
Link copied to clipboard
Set where to store the next merged operations.
Link copied to clipboard
Current display mode
- Display_Alpha
- Displays the content of the Alpha register.
- Display_L
- Displays the content of the L0 aka X register.
- Display_Formated
- Displays the content of the L0 aka X register inside an alpha
Link copied to clipboard
Set new Execution mode
- Execution_Interactiv
- Calculator is used interactively.
- Execution_Running
- Calculator running a program.
- Execution_Halt
- Calculator debugging a program.
- Execution_Pause
- Calculator pauses for a sec.
- Execution_1_Step
- Do a single step and return to Execution_Halt.
- Execution_Write
- Calcluator is in write programm mode.
- Execution_Clear
- Calcluator is in clear memory mode.
- Execution_Alpha_Pause
- Initial pause when alpha starts scrolling.
- Execution_Alpha_Step
- Pause between each character when alpha starts scrolling.
Link copied to clipboard
Link copied to clipboard
Stop calculator executing an reset interactive mode.
Link copied to clipboard
Store an operation at into calculator memory
Link copied to clipboard
Text to be displayed.
Link copied to clipboard
Active plane:
- 0: Keyboard_Normal
- 1: Memory + 20, Fix instead of RND
- 2; Memory + 40
- 3: Memory + 60
- 4: Memory + 80
Link copied to clipboard
Writes program steps to simulated cassette interface.
Link copied to clipboard
check if - in wrt mode - we are currently in alpha mode.