Casio FX-700P
Resources
- Manual: CASIO FX-700P.pdf
- Games: Cassio - Collection og games.pdf
Usage
Writing programs
- Enter write mode:
MODE,1 - Select program
S,0to9 - Enter program lines:
<line no> <command> <args>,EXEC LISTto list the program (follow by line number to start from that line)- Each listed line can be edited
ACto cancel any changes made to a lineEXECsave changes
- Changing
<line no>of a line makes a copy of it under that name (if already exist it overwrites existing one) - Putting just
<line no>with no<command>removes that line
Running programs
- Enter run mode with
MODE,0 S,<program number>to run it- Alternatively type
RUNto run currently selected program (last edited or run)
Typing
- Lower case letters:
MODE,.(dot;EXTmode)
BASIC
| Input | INPUT <string var> |
Enter data from keyboard. |
|
|
Read a character and assign it to a variable. Program is not stopped. Empty string is read if no key is pressed. | |
| Output |
|
If no arguments are given clears screen. If string or variable is given it is printed out.
|
| Branching | GOTO [line | var] |
Execution jumps to specified line number. |
IF <comparison> [THEN <line> | ; <command>...] |
Jump to line or execute ; if comparison is true. Otherwise continue from next |
|
GOSUB [line | var] |
Jump to line or line stored in a variable. | |
RETURN |
Returns from last GOSUB call to command next after it. |
|
| Loops | FOR <var>=<val> TO <val> [STEP <val>] |
Starts loop counting from initial value to given value with step. Calling Once |
NEXT <var> |
Repeat FOR loop for given <var> or continue from next command if loop is done. |
|
| Execution | STOP |
Stop the execution of a program temporarily and wait for EXEC key. |
END |
End of program. | |
RUN [line] |
Start program from given line number or form beginning. | |
| Data | VAC |
Clear all variable data for a program. |
CLEAR |
Remove program. | |
CLEAR A |
Remove all programs (!). | |
| Listing | LIST [line>] |
Display program listing from beginning or given line. |
LIST A |
List all programs and data. | |
| Angular unit | MODE [4 | 5 | 6] |
Sets trigonometric angular units:
|
| Format | SET [E <val>, F <val>, N] |
Set number of effective positions or decimal positions for displayed numerical value (0 to 9). |
| Character functions | LEN <char var> |
Length of a string. |
<char var>=MID (<n>[, <m>]) |
Extract n characters from the mth character in $. |
|
VAL <char var> |
Convert number in a string to number. | |
| Numeric | INT <val> |
Integer part of a number. |
FRAC <val> |
Fractional part of a number. | |
SIN <val>, COS <val>, TAN <val> |
Trigonometric functions. | |
ASN <val>, ACS <val>, ATAN <val> |
Inverse trigonometric functions. | |
SQR <val> |
Square root of <val>. |
|
EXP 1 |
Call out the numerical value of exponential table (e). |
|
LN <val> |
Natural logarithm. | |
LOG <val> |
Base 10 logarithm. | |
ABS <val> |
Absolute value. | |
SGN <val> |
Sign of a number:
|
|
|
|
Round number |
|
RAN# |
Random number between 0 and 1. |
BASIC games
Spot and Stop
5 L=0
10 PRINT "Spot and Stop"
20 PRINT "HIGHEST=";H
30 PRINT "BY ";$
40 FOR G=1 TO 20
50 A=INT (RAN#*10)
60 GOSUB 300
70 INPUT C
80 IF A=C;L=L+20:PRINT "GOOD":GOTO 100
90 L=L/2:PRINT "MISSED"
100 NEXT G
110 L=INT L:PRINT :PRINT "SCORE=";L
120 IF L>H;H=L:PRINT "NEW HIGH":INPUT "NAME",$
130 END
300 PRINT "::::::::::";
310 PRINT CSR A;";";:FOR W=1 TO 40:NEXT W
315 PRINT
320 PRINT "0123456789";
330 RETURN
Gopher Trap
10 PRINT "HIGHEST:";H:G=0:$="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
20 FOR C=0 TO 4
30 PRINT CSR 0;" ";
40 A=INT (RAN#*26+1):B=INT (RAN#*12)
50 D$=MID(A,1)
60 FOR E=0 TO 25:PRINT CSR B;D$;:F$=KEY:IF F$="";NEXT E
70 IF D$≠F$;PRINT :PRINT "MISSED:0";:GOSUB 200:NEXT C:GOTO 100
80 PRINT :PRINT CSR 0;"TIME :";E;:GOSUB 200
90 S=(27-E)*10:PRINT CSR 0;"SCORE:"S;:G=G+S:GOSUB 200:NEXT C
100 IF H<G;H=G
110 PRINT :PRINT CSR 0;"FINAL:";G;" "
120 END
200 FOR W=1 TO 200:NEXT W:RETURN
