
BASIC comparison sheet Commands Page 20
Commands
Vendor Casio
Model FX-702 PB-700 PB-770 FX-750P VX-4 Z-1GR FP-200
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
Program files
MERGE program lines
N/A N/A
Handling of duplicate line numbers Lines are replaced, file type must be ASCII.
Run program from storage or tape N/A N/A
SAVE or LOAD special areas N/A N/A CETL has interactive G and P commands.
Check integrity of file
Rename file
No file system
NAME "source" AS "destination"
Use menu.
N/A
Delete file KILL "file"
Copy file Use F.COM menu N/A
List directory FILES "pattern"
Format storage medium FORMAT
Data files
OPEN channel on device or file
MEMO N/A N/A
Valid OPEN modes and channels INPUT/OUTPUT, #1 INPUT/OUTPUT/APPEND, #1..16
Close channel CLOSE CLOSE closes all channels, CLOSE #channel closes a channel.
Write data sequentially
MEMO N/A
Read data sequentially
MEMO N/A
N/A
Random access files N/A
Special I/O functions N/A EOF(channel) tests for end of file.
All perfomed in one go by LOAD.
Exisiting program is cleared from
first line of loaded file, which is
automatically started if LOAD is
executed from a running program.
Like FX-702P but
without automatic
execution
MERGE "name"
CHAIN "name" CHAIN "name"
CHAIN "name"
GOTO "name" (RAM disk)
LOAD "name",R
SAVE#"name" saves MEMO.
LOAD#"name",M loads/merges
MEMO.
SAVE#/LOAD#
of MEMO, see left.
Use F.COM menu for ASCII areas.
Z1-GR only save/load memory:
BSAVE start,end
BLOAD start,end,R
Use menu to copy any type of file to
any device.
VER "name" performs checksum test on tape file. VERIFY "name" performs checksum tests on tape file
KILL "0:file"
FILES "0:name"
FORMAT /cap, cap=6/9/M FORMAT "0:"
MEMO data base can be accessed
like a single RAM file.
OPEN "name" FOR mode AS #channel
INPUT/OUTPUT, #1..#16
The maximum number of file descriptors
must be specified with MOUNT <number>.
memory is taken from CETL area.
CLOSE #channel,...
CLOSE without channel closes all open files.
PUT "name" first variable,last variable
Variables are ordered $, A..T9
PUT "name" var1,var2,...
Every single variable must be named.
PRINT #channel, print item; print item; ...
Commas, TAB(n) and USING (not FX-850P/880P) allowed.
MEMO access with WRITE# (except PB-1000, FP-200)
WRITE# var1,var2,...
Writes to MEMO
GET "name" first variable,last variable
GET "name" var1,var2,...
Every single variable must be named.
INPUT #channel, var1, var2, ...
READ# var1,var2,...
reads from MEMO
var$=INPUT$(count,#channel)
LINE INPUT #channel, var$ (Not FX-850P/880P)
MEMO access with READ# (except PB-1000)
RESTORE# string,n,target
positions MEMO pointer.
n=0: rec starts with string (def)
n=1: record contains striing
GOTO target if not found.
MEMO access see
left
RESTORE#("Fa") string,n,target
Selects ASCII area a and positions
MEMO pointer in it. (See left)
OPEN "0:name" AS #chan
FIELD #chan,@,len AS var$,...
(Record size is 256 bytes)
LSET/RSET var$=string
PUT/GET #chan,record > 0
OPEN "0:name" AS #chan
FIELD #chan,len AS var$,...
(Record size is 256 bytes)
LSET/RSET var$=string
CVD/CVS/MKD$/MKS$
PUT/GET #chan,record > 0
EOF(channel) tests end of file.
LOF(channel) returns length of file or
chars left in input buffer.
EOF(channel) tests end of file.
LOC(channel) returns next record number.
LOF(channel) returns number of records.
Comentarios a estos manuales