r:: r:: r:: r::: r::: r::: r::: r::: r::: r::: -• --1 Personal Computer IIIZ -b'illHID DISK BASIC MANUAL SHARP
5.1.4 BRD control statements ... 87 5.1.5 Error processing statements ...
102 < <> or >< >=or=< <=or=< * + 10 IF A<X THEN." If variable A is smaller than X, executes commands from THEN onw
" " $ 300 DIM A(20), as J.n,exal1pleUsedin punctU!ltionof,avariable,:. (3,6) 320 AS = "DISK BA " "indicates a string conte
104 5.2 Error Message List (DISK BASIC) Error dis-Statement Content play number 1 Syntax error Error in syntax 2 Overflow error Numerical data outsi
105 Error dis-Statement Content play number 21 Resume error Attempt to use RESUME although no error 24 Read error Use of READ statement withOl(t corre
106 Error dis-Statement Content play number 61 Illegal file mode error File mode error 63 Out of file error Out of file (file data read-in) 64 Logic
5.3 Memory Map FFOO FFFF Monitor + 10CS BASIC interpreter Text I/O work area Variable area String data buffer Temporary String Area t Free area • Stac
108 5.4 Use of the Floppy Disk For information regarding the method used for setting the floppy disk and the method of floppy disk drive operatio
109 • Write information on the index label before attaching it to the jacket. If something must be written on a label which is already attached,
110 A storage box for the master disk is not included. To store it, use a box which is applicable, keeping in mind the conditions stated above .
SHARP CORPORATION OSAKA, JAPAN Printed In Japan Gedruckt In Japan Imprlme' au Japon Stampato In Glapporf" 4C
10 What the DISK BASIC is The DISK BASIC has a strong file control function relative to the cassette base . BASIC. For example, it makes
11 • Data file control There are two types of data files, depending upon the format of file access (the method of data read-out and write-in). One i
12 • Program file control The BASIC program file control commands CHAIN (page 44) and SWAP (page 45) are for read-out of another program in
Section 1 DISK BASIC OUTLINE This section explains the features of the DISK BASIC and outlines the file controls. First of all is an explana
14 1.1 Starting the DISK BASIC To make the DISK BASIC run, first perform initial loading by the IPL (Initial Program Loader). The init
15 , key is registered by this file name on the supported master disk. In addition, because the NEW command is at the end of this program, "REA
16 FD For mat I Copy Ut i lit Y VX. xx [ Funct i on I F For mat d i s k C Copy d i s k I Bo ot [ Co mma n d are a I *-Insert the floppy disk prepar
17 *111... If N is input, changes to the condition of awaiting the next command, and, if Y is input, the floppy di
18 DISK BASIC Sequential Access File } data file BASIC Text Files } L .. __ --:---r-------. program file. _ Machine Language Program Files As the
DISK BASIC Manual
19 i File call (data read-out) DISK BASIC CASSETIE BASE BASIC File open command ROPEN #n, "fjJename" ROPEN "fjJename" Data read-o
20 The reason that the space used for each name and each address is of various lengths is because the data registered by sequential access are not us
21 • • To find the data end What would happen if the data being read-out in order from the file surpass the number of data registered?
22 Problem 2 Divide, and re-register, the BSD file "ADDRESS LIST" into two: a BSD file which registers names only and a BSD file which r
23 i 1.5 Random Access File Control Random access files are data files in which the registration or read-out of data is in the random access format.
24 11 may be once closed and in the registered.condition, that same file can be made larger. The random access file "RND 1", for example
25 The random access file prepared in that way would be as follows. If product no. K=12, 5 data are registered in elements corresponding t
26 1.6 Program Chain (CHAIN) Next, following the data file control commands, will be an explanation of program file controls. The commands explaine
27 1.7 Program Swap (SWAP) Program files on the floppy disk are read-in to the memory, and control is moved to this program, by SWAP command but
28 Program file "PLAYER" 10 REM CELLO PLAYER 20 MUSI C M1$, M2$, M3$ 30 PRI NT"OK7" 40 E NO On slave disk in drive number 2 Firs
Introductory Note This manual is based upon the DISK BASIC Interpreter MZ-2Z009, the system software of the MZ-700 personal computer. (1) The
29 161 ABS ... MZ K] GET ... MZ AND ... 65 GOSUB ...
30 MOVE ... MZ RLINE ... MZ MUSIC ... MZ RMOVE ... MZ
31 ~----------------------~--------------------------~--~~ 1.9 Table of File Input/Output Devices Indicates the DISK BASIC descriptors .' Floppy
32 DEF KE Y( 1 ) =" RUN +CHR$(13) DEF KE Y( 2) =" II ST" DEF KE Y( 3) =" AUTO" DEF KEY(4) ="RENUM" DEF KE Y( 5) =&
Section 2 DISK BASIC EXPANSION, NEW COMMANDS AND STATEMENTS
34 In this section each statement, function and system variable is explained. How to describe is explained in FORMAT. This symbols have the
35 DIR (directory) Displays directory contents. Format: DIR [/P] [<device name>] Note: Only FDn device name. Abbreviated form: DI. Explanation
36 I RUN (run) Executes the I!rogrilm. Format: RU N " [<device name> :] <file name> " [{ ~:~~f ] Note: Only FDn or CMT device
37 LOAD (load) Reads out the program file. Format: LOAD" [<device name> :] <filename> " [<,A>] Note: Only FDn or CMT devi
38 SAVE (save) Registers the program as a file. Format: SAVE" [<device name> :] <filename> " [<,A>] Note: Only FDn or CMT
Introduction We want to take this opportunity to thank you for purchasing the Sharp DISK BASIC system software. The manual provides a general explana
39 DELETE (delete) Deletes desianated file. Format: DELETE" [<device name> :] <filename> n Note: Only FDn device name. Abbreviated
40 LOCK (lock) Perform the protection (lock) of the file. Format: LOCK " [<device name> : ] <filename> " Note: Only FDn device
41 UNLOCK (unlock) Unlocks the specified locked file. Format: UNLOCK" [<device name> :] <filename>" Note: Only FDn device name.
42 I RENAME \rename) Changes the filename. Format: - , RENAME • [ < dev i ce Rue>:] • " <old filename> " , "<new filena
43 MERGE (merge) A-,»rogram in the file is added to a program in the memory .. Format: MERGE [" [<device name> :] < filename > &qu
44 CHAIN (chain) Movement of execution from active program to program in file Format: CHAIN" [<device name> :] <filename> " Note
45 SWAP (swap) Calls out a program in the file during execution of the program. Format: SWAP 11 [<device name> :] <filename> 11 Note: Onl
46 ROPEN # (read open) Opens the BSO file for read-out. Format: ROPEN # <logical number>, "[<device name>:] < filename> &quo
INPUT # (Input) Reads out data from BSO file. Format: INPUT # <logical number>,<variable>,<variable>, ... Abbreviated form: 1.#
48 WOPEN # (write open) Opens the files for write-in. Format: WOPEN # <logical number>, " [<device name> :] <filename> "
• Difference between the CASSETTE TAPE BASIC and DISK BASIC. The following commands are extended and supplemented in the difference between
49 PRINT # (print) Writes data in BSD files. Format: PRINT # <logical number>, <data> [, <data> ] ... Abbreviated form: R.# Explan
50 XOPEN # (cross open) Opens BRD file for read-out and Format: XOPEN # <logical number>," [<device name> :] <filename> "
51 INPUT # ( )(input) Reads out data from BRD file. Format: INPUT # <logical number>, «data element number», <variable> [,<variable&
52 PRINT # ( ) (print) Writes in data to BRD files. Format: PRINT # <logical number>, «data element number», <data> [, <data>, ..
53 CLOSE # (close) Closes the file. Format: CLOSE [# <logical number>] Abbreviated form: CLO.# Explanation: • Closes the data file opened
54 I KILL # (kill) Stops file registration. Format: KILL [# <logical number>] Abbreviated form: KI.# Explanation: • Stops registration of the f
55 DEFAULT (default) Sets device names. Format: DEFAULT" <device name>: " Note: Only FDn, CMT, or RSn device name. Abbreviated form:
56 EOF (#) (end of file) Function to locate end of data file data. Format: EOF (# <logical number» Abbreviated form: EO.(# Explanation: • The func
57 LABEL (label) Sets the label. Format: LABEL" <label name> " <label name> : character line to 249 characters Abbreviated form:
58 WAIT (wait) Interrupts the program execution for a definite time. Format: WAIT <numerical data> Abbreviated form: W. Explanation: • Interrup
CAS·SETTE TAPE BASIC DISK BASIC CONT is possible after execution of CONT is not possible after execution of END statement. END statement. IcrRLI +
59 SEARCH (search) Searches the character data through the text. Format: SEARCH [IP) <character data> Abbreviated form: SE. Explanation: • Sear
60 INIT (Initialize) Sets the RS mode. Format: INIT"RS{~ } <monitoring code>, <initialization setting code>(,<end code>] "
61 <breference> To exchange information between two MZ-700s, prepare a cable provided with the following connections: Signal name Pin
62 USR (user) Calls out and executes in BASIC the machine language program. Format: USR «address> , <input character variable> , <output c
63 INP@ (input) Inputs data at 110 ports to variables. Format: INP@ <port number>, <variable> Abbreviated form: I.@ Explanation: • Inputs
64 IOUT@(OUT) Outputs data to 1/0 ports. Format: OUT @ <port number>, <numerical data> Abbreviated form: OU.@ Explanation: • Converts <
65 • Logical operation Logical operation The task of giving YES or ON results, by judgment, are not few in computers. Here let us consider some
Section 3 BASIC MONITOR FUNCTIONS
68 In order to make the input of machine language programs easier, the DISK BASIC has a monitor section following the IOCS section. As the stack
69 3.3 DUMP CD Command} * D <heading address[ < final address> J> Displays the memory contents. When the final address is omitted, 128
• Increase of floppy 'disk interface-ROM • Floppy disk drive control ROM If the DISK BASIC controls the floppy disk drive (MZ-1F02), connect the
70 3.5 FIND (F Command) * F <heading address>L.J<final address>L.J<data>L.J[<data ... >] Searches from the heading addres
71 3.9 LOAD (L Command) * L <load heading address> [<device name> : fllaname) Loads the designated file from the designated device name.
Section 4 APPLICATION PROGRAMS
74 Use of the File Converter • The file converter is registered on the DISK BASIC floppy disk by the "TRANS" file name. To execute this,
75 • Explanation of contents and specification method of menu area display * System menu • Specify the source system (the destination system is
76 * Device menu • Specifies the device name (source device, destination device) to perform conversion. Display contents * File mode Menu di
77 Display contents Menu display area * F i I e n a me J i n put ? Co~~rol -A ==> £:):r.cz.c..~or1 Display mode Example of display when I CTRL
SeJ I 78 Reference: If, for file conversion, the source drive and destination drive are the same, the following display is added. Display: 1~1&q
79 After the end of either message display, there will be a display meaning "will conversion be made again? or will conversion be end
Section 5 DISK BASIC SUMMARY
Contents What the DISK BASIC is ... : ... 10 Section 1: DISK BASIC Outline ...
82 5.1 Summary of DISK BASIC Commands, Statements, Functions and Operations 5.1.1 Commands DIR DIRIP LOAD DIR DIR FD1 DIR Displays floppy disk directo
SAVE RUN MERGE VERIFY AUTO LIST LISTIP 83 SAVE" FDl : DAY" Names the BASIC text currently in the text area "DAY" and writes in
84 RENUM SEARCH NEW CONT BYE KEY LIST RENUM RENUM 100 SEARCH n ABC 11 NEW CONT BYE KEY LIST Changes statement number of the program. Renumbers all st
RENAME DELETE CHAIN SWAP 85 RENAME· FD1 :A.B • Changes file name of file "A" in floppy disk drive number 1 to filename "B". DELETE
86 5.1.3 BSD (BASIC Sequential Access, Data File) Control Statements Note: For file descriptors FD and CMT WOPEN # WOPEN #3 "FD2:S Opens the
87 CLOSE # CLOSE #4 Closes the BSD; the file opened in logical number 4 by (Corresponding to the ROPEN # statement. ROPEN #) Logical number 4
88 KILL # IFEOF (#) KILL #5 KILL Kills the BRD opened in logical number 5 by the XOPEN # statement. Kills all files opened by WOPEN, ROPEN or XOPEN.
89 5.1.1 Substitution Statements LET LET A=X+3 Substitutes sum results of numerical variable X and numerical data 3 to numerical variable A.
90 SET RESET GET 40 INPUT X, XS, y, Numerical variables and string variables can be combined YS by using the comma ( , ) to separate them, b
91 5.1.8 Loop statements FOR-TO NEXT 10 FOR A == 1 TO The statement number 10 is a command to change 10 variable A and substitute for values
CLOSE # ... 53 KILL # ...
92 5.1.9 Branch Statements GOTO GOSUB -RETURN IF - THEN IF -GOTO IF - GOSUB ON-GOTO ON-GOSUB 100 GOTO 200 100 GOSUB 700 800 RETURN Jumps to stateme
93 5.1.10 Definition Statements DIM DEFAULT DEFFN 10 DIM A(20) 20 DIM B(79,79) 30 DIM C1$(10) 40 DIM K$(7,5) DEFAULT" FD1 " For one-dimensi
94 DEF KEY INIT LABEL 15 DEF KEY(1) = "L The DEF KEY statement of statement number 15 defines 1ST" -+-CHRS(13) the function LIST IQY to 25
CONSOLE SIZE TI$ 10 CONSOLE 0, 25, The scroll range covers the whole screen. 0, 40 95 20 CONSOLE 5, 15 Specifies the scroll range from the 5t
96 5.1.13 Machine Language Program Control Statements INP@ INP@ $E8,A Substitutes data at port number $E8 for variable A. OUT@ OUT@ $E8,A Output
97 5.1.14 Printer Control Statements AXIS CIRCLE GPRINT HSET LINE MODE MOVE Valid in GRAPH mode. 30 AXIS O. -10. 48 Adds a scale of 48 graduations i
98 RMOVE Valid in GRAPH mode. 20 RMOVE -240. Moves the pen upward relatively from the current pen 240 position by -240 (X direction) and 240
LN RND 100 A = LN (X) 99 Regarding the value of '9ariable X, gets natural logarithm IO!!e X and substitutes for variable A. X must be a positiv
100 5.1.15 String Control Functions LEFfS MIDS RIGHTS SPC CHRS ASC STRS VAL LEN 10 A$ = LEFT$ (X$, Substitutes string variable XS (from beginning
101 5.1.16 Tab Function TAB 10 PRINT TAB (X);A Displays the value of variable A at the X + 1 character position counting from the left edge of
Kommentare zu diesen Handbüchern