TI-57 simulator
The TI Programmable 57 came out in 1977.
It was one of the first calculators a pupil could program: it keeps a program of up to 50 steps.
Learn mode: writing a program
- LRN puts the calculator in learn mode: each key you press becomes a step of the program.
- The display then shows the step’s number and the code kept in it:
05 71– step 05 holds RST. - LRN again leaves learn mode.
- RST goes back to step 00; R/S runs the program from there, and stops it.
- SST runs a single step. In learn mode, SST and BST move forward and back through the steps.
- 2nd Ins makes room for a step, 2nd Del removes one, 2nd Nop blanks one.
Key codes
- A key’s code is its row and its column: STO is 32 – row 3, column 2.
- A second function adds 5 to the column, and 10 counts as 0: sin is 28, tan is 20.
- INV makes the code negative: INV sin is −28.
- A key that asks for a digit keeps it in the same step: STO 2 is
32 2.
Program files
A program file is a text file in one of two forms.
- The keys, as you press them in learn mode:
1 SUM 2 RCL 2 x^2 Pause RST.- A second function is written by its name – sin, Lbl, Pause – with or without 2nd before it.
- Other names for keys:
x<>t,x^2,sqrt,y^x,pi,*,/,-,+/-,x>=t,abs,S+,mean,var.
- A listing of steps and codes, as Save writes it and as the owner’s manual prints programs:
01 34 2 SUM 2.- Each line: the step, the code, then anything – usually the key’s name.
- Text after
#is a comment.
Memories and the t register
- The calculator has 8 memories, 0 to 7.
- Memory 7 is the t register: x⇌t swaps it with the display, and x=t, x≥t compare the display with it.
- A comparison that is true runs the next step; a false one skips it. With INV, the opposite question: x≠t, x<t.
- Dsz takes 1 off memory 0 and skips the next step when it reaches 0.
- Σ+ collects statistics in memories 0–5 and 7.
Errors and the computer’s keyboard
- An impossible step – dividing by 0, a memory 8 – makes the display flash. CE or CLR stops it.
- The computer’s keys work too: the digits,
+ - * / ( ), Enter for =, Backspace for CE, Esc for CLR. - Switching the calculator off clears everything, the program too – as on the real one.