TI-57 Program Emulator
Display Register Display

The Display Register or X Register shows the result after the execution of a Program. In the Python code, the X Register corresponds to the variable "x".

The Display History shows the values of the Display Register each time the Program encounters the "2nd Pause" key. The real Calculator would pause for a second while the Emulator keeps track of the X Register. In the Python code, the Display History is stored in the "regx" list.

The Display Register is editable. Enter a list of numbers separated by spaces to change the Data. Then click elsewhere to see the effect of the change in the Program. Or press the Enter key to run the Program with the new Data. For example, suppose the Data begins with 10 STO 1 20 STO 2 30 STO 3 and you want to replace the first two with 11 STO 1 22 STO 2. You can either edit the program directly or enter 11 22 in the Display Register. This is handy especially with games.

0
Program

Program Instructions/Keys

  • A program is a set of instructions written with the TI-57 keys. You will find the list of keys in the Reference Guide (link at the bottom of the page).
  • You can use X or * for multiplications and : or / for divisions.
  • Most of the keys are simple to enter, others require some clarification (on the left, how to enter the key, on the right, which key it represents):
    2nd Ct = 2nd C.t | x<>t = x↔t | x^2 = x² | Vx = √x | 2nd DMS = 2nd D.MS | 2nd P->R = 2nd P→R | 2nd pi = 2nd π | y^x = yx | 2nd s2 = 2nd σ2 | 2nd S+ = 2nd Σ+ | 2nd x = 2nd x.
  • The Emulator accepts comments starting with #.
Program Sections
  • Program sections are optional.
  • Data Input: This is where the Data is stored in memory. Data would be entered outside of Program mode on a real Calculator.
  • Data Preprocessing: This is where the Data is manipulated before the atual processing. This would be done outside of Program mode on a real Calculator.
  • Data Processing: This is the Program as it would be entered on the real Calculator. The number of steps is only relevant for this section.
Program Limitations
  • The Labels are limited to 7 on the Emulator while labels 8 and 9 are available on a real Calculator.
  • The 50-steps limit is not enforced. This is used in a few cases to improve the "user experience".
  • Numbers are extracted as a whole integer or float but not digit by digit.
  • Jumps between subroutines (GTO or RST) are not implemented.

     
# Master Mind # How many guesses will you take to discover a 4-digit number with digits ranging from 1 to 6? # Enter a number in the Display Register then press Return! # The calculator will return the number of digits placed correctly. # Keep trying until you get 4 and check the History to narrow down the number. # Data Input 0 STO 3 # Your guess 2nd Pause # Data Preprocessing 0 STO 7 RCL 1 INV 2nd x=t # Seed != 0? GTO 0 0.172695 STO 1 # Set the seed 2nd Lbl 0 4 STO 7 RCL 6 INV 2nd x=t # Digit found != 4? GTO 1 # Keep trying 0 STO 2 # New game 2nd Lbl 1 0 STO 7 RCL 2 2nd x=t # Secret = 0? SBR 4 # Generate secret # Data Processing (70 steps) 4 STO 0 # Digit position 0 STO 6 # Number of correctly placed digits RCL 2 STO 4 # Copy the target number 2nd Lbl 2 # Shift one digit of the target number right RCL 4 : 10 = - 2nd Int STO 4 = # Fractional part STO 5 # Shift one digit of the guessed number right RCL 3 : 10 = - 2nd Int STO 3 = # Fractional part INV SUM 5 # Digit difference (Fract difference) 0.01 STO 7 RCL 5 2nd |x| # Digit difference 2nd x>=t # Digit difference > 0.01? GTO 3 1 SUM 6 # Add on digit correctly placed 2nd Lbl 3 2nd Dsz # Digits left? GTO 2 RCL 6 # Correctly placed digits 2nd Pause R/S # Subroutine: Generate a 4-digit random number 2nd Lbl 4 4 STO 0 # Number of digits 0 STO 2 # Initialize the number 2nd Lbl 5 10 2nd Prd 2 # Shift previous digits left SBR 6 SUM 2 # Add a digit to the number 2nd Dsz # Digits left? GTO 5 # Yep INV SBR # 4-digit number ready # Subroutine: Generate a random digit from 1 to 6 2nd Lbl 6 2nd pi + RCL 1 = # i = π + A y^x 8 = INV 2nd Int # A = Fract[i^8] STO 1 X 6 + 1 = 2nd Int # R = Int(A X 6 + 1) INV SBR # Note that this program would not fit in a real calculator!

Python Code
Internal State
Manuals EN DE FR Reference Guide EN More on