EasyManua.ls Logo

Texas Instruments TI-86 - Page 312

Texas Instruments TI-86
431 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
300
Chapter 20: A to Z Function and Instruction Reference
20ATOZ.DOC TI-86, Chap 20, US English Bob Fedorisko Revised: 02/13/01 2:42 PM Printed: 02/13/01 3:05 PM Page 300 of 118
getKy
‡ program editor
I/O menu
getKy
Returns the key code for the last key pressed. If no key
has been pressed,
getKy
returns
0
. Refer to the TI
-
86
key code diagram in Chapter 16.
Program:
PROGRAM:CODES
:Lbl TOP
:getKy
KEY
:While KEY==0
: getKy
KEY
:End
:Disp KEY
:Goto TOP
To break the program, press
^
and then
*
.
Goto
‡ program editor
CTL menu
Goto
label
Transfers (branches) program control to the
label
specified by an existing
Lbl
instruction.
Program segment:
©
:0
TEMP:1
J
:Lbl TOP
:TEMP+J
TEMP
:If J<10
:Then
: J+1
J
: Goto TOP
:End
:Disp TEMP
©
Greater than:
>
TEST menu
numberA
>
numberB
or
(
expressionA
)
>
(
expressionB
)
Tests whether the condition is true or false. The
arguments must be real numbers.
•
If true (
numberA
>
numberB
), returns
1
.
•
If false (
numberA
numberB
), returns
0
.
2>0
b
1
88>123
b
0
L
5>
L
5
b
0
(20
¹
5/2)>(18
¹
2)
b
1

Table of Contents