Calculator
Author
"Martin Krischik" «krischik@users.sourceforge.net»
Inheritors
Types
Link copied to clipboard
enum Execution_Type
Do a single step and return to Execution_Halt.
Link copied to clipboard
enum Indicator_Type
Mode was pressed
- Inv
- Keyboard in inverse move
- Hyp
- Keyboard in hyperbolic mode - also used for password entry
- K
- Constant calculation mode
- Hlt
- halted program - also used for debugger
- Run
- Mode1, interactive or program run mode
- Wrt
- Mode2, write programs
- Pcl
- Mode3, clear, save, load programs.
- Deg
- Mode4, Tr
- Rad
- Mode5
- Gra
- Mode6
- Keyboard_Alpha
- Alpha entry and display mode
Link copied to clipboard
enum Keyboard_Mode
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
class Program_Type
A Program which may be from P0 … P19
Link copied to clipboard
enum Token_Plane_Type
Available Token Planes
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
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_Formated
- Displays the content of the L0 aka X register inside an alpha
Link copied to clipboard
Error Message displayed on using the wrong execution mode!
Link copied to clipboard
Current Execution mode.
Link copied to clipboard
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
Indicator_Type.
Link copied to clipboard
The memory from 10000 ..
Link copied to clipboard
The memory from 10000 ..
Link copied to clipboard
last key pressed
Link copied to clipboard
Operations as they come from the keyboard.
Link copied to clipboard
Error Message displayed on using the wrong keyboard mode!
Link copied to clipboard
The L-Register are used for general calculations.
Link copied to clipboard
the last comp mode used.
Link copied to clipboard
Last operation chosen 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
no program
Link copied to clipboard
The memory from 1000 ..
Link copied to clipboard
Do not display the steps.
Link copied to clipboard
Link copied to clipboard
Text to display when ( is pressed
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
Numeric / Lower Row.
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
Link copied to clipboard
Amount of Steps.
Link copied to clipboard
The text to display in the steps field.
Link copied to clipboard
Active plane:
- 0
- Keyboard_Normal
- 1
- $2B: Memory + 20, Fix instead of RND
- 2
- $2C: Memory + 40
- 3
- $2D: Memory + 60
- 4
- $2F: Memory + 80
- 5
- $EA: P1_
- 6
- $EB: ExFn Plane
Link copied to clipboard
The memory from 0 ..
Link copied to clipboard
The memory from 0 ..
Functions
Link copied to clipboard
The A Register contains the Keyboard_Alpha data of the display.
Link copied to clipboard
Active A register for row.
Link copied to clipboard
A_Text to be displayed.
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
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
activate or deactivate base n mode.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Decrement where to store the next merged operations.
Link copied to clipboard
Display A register in given row
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 text as message
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 value as formatted text
Link copied to clipboard
* Display Key merge info.
Link copied to clipboard
Display texts as dual line message
Link copied to clipboard
enable Bin Mode
Link copied to clipboard
Brings the calculator into a defined state after an error condition.
Link copied to clipboard
Execute keyboard ob code
Link copied to clipboard
Handles the program I/O.
Link copied to clipboard
Handles the program clear, save and load.
Link copied to clipboard
Handles running the calculator
Link copied to clipboard
Handles the program editing
Link copied to clipboard
Add total amount of free steps to text;
Link copied to clipboard
Display Program Steps
Link copied to clipboard
steps text
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
Current display mode
- Display_Alpha
- Displays the content of the Alpha register.
- Display_L
- Displays the content of the L0 aka X register.
- Display_Formmated
- 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
return current stack pointer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Handles the IO in I/O mode
Link copied to clipboard
Handles the IO in program-clear mode
Link copied to clipboard
Handles I/O for program-write mode
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
Setup the keyboard
Link copied to clipboard
Clears internal Memory
Link copied to clipboard
init the GSB stack
Link copied to clipboard
Clears Programm Steps
Link copied to clipboard
2ndF Mode?
Link copied to clipboard
Alpha Mode?
Link copied to clipboard
Bin Mode?
Link copied to clipboard
Decimal Mode?
Link copied to clipboard
Hex Mode?
Link copied to clipboard
Oct Mode?
Link copied to clipboard
check for end of program
Link copied to clipboard
checks if we are running a program
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
Shift Mode?
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
Link copied to clipboard
the last comp mode used.
Link copied to clipboard
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
Operations as they executed by the calculator.
Link copied to clipboard
Pop values from stack by triggering an calculation run up the the level Operation
Link copied to clipboard
Program stack used for GSB commands .
Link copied to clipboard
get the previous step to a given step number or 255 when there is none.
Link copied to clipboard
Get current Program counter.
Set Current Program counter.
Link copied to clipboard
Return step-position of given program
Link copied to clipboard
get where to store the next merged operations.
Set where to store the next merged operations.
Link copied to clipboard
Push stack one down.
Push value and given operation to stack.
Link copied to clipboard
Program stack used for GSB commands .
Link copied to clipboard
Remove step count from text field
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
Set Current program to programm at program counter
Link copied to clipboard
reset shift indicators
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
Set new Execution mode
Link copied to clipboard
Link copied to clipboard
Calculator Program Memory
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
- $2B: Memory + 20, Fix instead of RND
- 2
- $2C: Memory + 40
- 3
- $2D: Memory + 60
- 4
- $2F: Memory + 80
- 5
- $EA: P1_
- 6
- $EB: ExFn Plane
Active plane:
- 0
- Keyboard_Normal
- 1
- Memory + 20, Fix instead of RND
- 2
- Memory + 40
- 3
- Memory + 60
- 4
- Memory + 80
- Programm + 10
- ExFn
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.