
BASIC comparison sheet Commands Page 17
Commands
Vendor Casio
Model FX-702 PB-700 PB-770 FX-750P VX-4 Z-1GR FP-200
Program flow
Labels N/A N/A
#area (0-9) PROG area (0-9) #area (0-9) #area, *Label "File" PROG area (0-9)
Number or area may be an expression, even in ON ... GOTO targets. Targets are constant. "File" may be expression. Targets are constant.
ON ... GOTO/GOSUB GTO variable GOTO var Available GOTO variable Available
IF ... THEN ... THEN is mandatory THEN is mandatory except before GOTO
IF ... THEN ... ELSE ... ELSE is N/A. Available
Nested IF Allowed. Unambiguous because ELSE is not available. Allowed, nearest ELSE belongs to nested IF.
Multiline IF ... ENDIF
N/A Available N/A
WHILE ... WEND
REPEAT ... UNTIL
SWITCH ... CASE ... ENDSWITCH
Loop is executed once, I=0 after loop. Loop not executed, I=1 after loop.
Variable name on NEXT Mandatory Optional, multiple variables allowed.
Function and position of END Executable command anywhere in program. Closes all files. Executable from keyboard.
Subroutines
Use separate program area. Use extra file. Use separate program area.
Return from procedure RET RETURN, Z-1GR supports RETURN target
Variable scope All variables are global.
Call and parameter passing GSB #area GOSUB #area. GOSUB PROG area GOSUB #area. GOSUB "file" GOSUB PROG area
Recursion
Error handling
ON ERROR
N/A
MODE 99,1
N/A
ON ERROR GOTO
N/A
Error line and error code
N/A
ERL, ERR
Return from error handler RESUME, RESUME NEXT, RESUME target
Disable error handler MODE 99,0 ON ERROR GOTO 0
More event handling N/A N/A
Debugging TRON, TROFF turn tracing on/off.
Suspend execution STOP
CONT key CONT STOP/CONT key
PB-100
PB-300
FX-700P
FX-710P
PB-220
FX-720P
FX-730P
FX-770P
FX-785P
FX-790P
FX-795P
FX-850P
FX-880P
PB-1000
PB-2000C/AI-1000 with BASIC
ROM OM-53B
*Label:
(>30 chars allowed)
Syntax for branch targets besides
line numbers
GTO/GSB instead of GOTO/GOSUB,
syntax as with PB-100.
Use ";" before commands,
THEN only before jump targets.
THEN is mandatory,
";" is obsolete.
FOR I=1 TO 2 STEP -1
NEXT I
Executable command anywhere in program. Not executable from keyboard.
Local procedure definition
besides GOSUB/RETURN
Use program area
or set a label.
Recursion is possible. Local variables must be emulated by arrays.
A file named "AUTO.EXE" is executed
on power up.
MODE 2, MODE 3 turn tracing on/off.
Continue after STOP,
break key or break point
EXE key on empty input line. EXE key on empty input line.
CONT key
OM-53B: Shift+Down
Kommentare zu diesen Handbüchern