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.

     
# Hi-Lo # How many guesses will you take to discover a secret number between 0 and 1023? # Enter a number in the Display Register then press Return. # The calculator displays +1 if your guess is too large, -1 if too small or 0 if correct! # Check the History to narrow down the number. # Source: "TI-57 Making Tracks into Programming.pdf#page=214", p. 11-11 # Data Input 0 STO 2 # Your guess # Data Preprocessing 0 STO 7 RCL 0 INV 2nd x=t # Seed != 0? GTO 0 0.389202 STO 0 # Set the seed 2nd Lbl 0 # Data Processing (50 steps) 0 STO 7 RCL 1 2nd x=t # No tries yet? SBR 1 # Generate secret SBR 4 # Test the guess R/S # Subroutine: Generate the secret number 2nd Lbl 1 2nd pi + RCL 0 = # i = π + A y^x 8 = INV 2nd Int # A = Fract[i^8] STO 0 X 1023 + 1 = 2nd Int # R = Int(A X 1023 + 1) STO 6 # Secret INV SBR # Subroutine: Test the guess 2nd Lbl 4 RCL 6 STO 7 1 SUM 1 # Increment the tries RCL 2 2nd Pause INV 2nd x>=t # Guess < Secret? GTO 5 # Yes, too low 2nd x=t # Guess = Secret? GTO 7 # Yes, correct 1 = # +1, too high INV SBR 2nd Lbl 5 1 +/- = # -1, too low INV SBR # 2nd Lbl 7 # Good guess 0 STO 1 # Reset the tries INV SBR

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