Desktop_Calculator
Calculator engine with debug capability
Author
"Martin Krischik" «krischik@users.sourceforge.net»
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
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
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 program overview
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 texts as dual line message
Link copied to clipboard
enable Bin Mode
Link copied to clipboard
Execute keyboard ob code
Link copied to clipboard
Handles running the calculator
Link copied to clipboard
Add total amount of free steps to text;
Link copied to clipboard
Get content of Calculator Display
Link copied to clipboard
Link copied to clipboard
Get text for clipboard
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
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
Setup the keyboard
Link copied to clipboard
Clears internal Memory
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
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
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 value and given operation to stack.
Link copied to clipboard
Program stack used for GSB commands .
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
Returns the memory step x as debug info or null for step 0xff which is the empty step.
Link copied to clipboard
Calculator Program Memory
Link copied to clipboard
get all program steps for 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
- $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.