
INSTR
I N S T R ( [ < i n t e g e r
e x p r e s s i o n > , < s t r i n g e x p r e s s i o n > , < s t r i n g
expression>)
P R I N T I N S T R ( 2 , “ B A N A N A ” , “ A N ” )
FUNCTION: Searches the first string expression, for the first occurance of the second string
expression), where the optional number at the start indicates where to start the search - otherwise
the search begins at the first character of the first string expression).
Associatedkeywords:
MID$, LEFT$, RIGHT$
INT
INT(<n u m e r i c e x p r e s s i o n > )
PRINT INT(-1 . 9 9 5 )
-2
FUNCTION: Rounds the number to the nearest lower integer, removing any fractional part. The
same as
FIX
for positive numbers, but returns one less than
FIX
for negative numbers not already
integers.
Associated keywords:
CINT, FIX, ROUND
JOY
J O Y ( < i n t e g e r e x p r e s s i o n > )
1 0 IF JOY(0) AND 8 THEN GOT0 100
FUNCTION: The JOY function reads a bit-significant result from the joystick specified in the
<integer expression> (either 0 or
1).
Bit
Decimal
0: Up
1
1: Down
2
2: Left
4
3: Right
8
4: Fire 2
16
5: Fire 1
32
Associated keywords:
INKEY
Summary of Contents for CPC464
Page 1: ......
Page 102: ...PRINT 10 AND 12 Results in 8 PRINT 10 AND 1000 Results in 8 again ...
Page 118: ...TO DO DRAW THIS PAGE ...
Page 219: ...actual value may be made to vary during the execution of a program ...
Page 240: ...Text and WINDOW planner Mode 2 80 Columns ...
Page 241: ......