Keystroke programming: Difference between revisions

Content deleted Content added
Ldo (talk | contribs)
fill in rest of table
Ldo (talk | contribs)
continue example
Line 38:
|}
 
Each key is assigned a two-digit code; for most (but not all) keys, the tens digit comes from the row number (as indicated down the left of the table) and the units digit comes from the column number (as indicated across the top of the table).
 
Now consider a very simple program, which adds 2 to the number being displayed, and then stops. The program is entered starting from program ___location 000, and looks like this:
 
{|
|-
|Location||Contents||Meaning||Comments
|-
|000||85||+
|-
|001||02||2
|-
|002||95||=||compute result
|-
|003||91||R/S||stop program
|-
|}
 
You can see that the codes 85, 95 and 91 correspond to the positions of the keys labelled {{TI-5x/Keys/Yellow| + }}, {{TI-5x/Keys/Yellow| = }} and {{TI-5x/Keys/Brown|R/S}} on the grid above, but the code for the {{TI-5x/Keys/White| 2 }} is not 83 as you would expect from the grid position, but 02. This last code is chosen to be more easily understandable by a human trying to read the program. There is no row 0, so the codes 00 .. 09 are used to represent the keys {{TI-5x/Keys/White| 0 }} .. {{TI-5x/Keys/White| 9 }}.
 
{{TI-5x/Keys/Alt|Ind}}