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 command following ; if comparison is true. Otherwise continue from next command. |
|
GOSUB [line | var] |
Jump to line or line stored in a variable. | |
RETURN |
Returns from last GOSUB call to command next after it. |
|
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
