Manual for MZ-80B

Manual for MZ-80B

Brand: SHARP

Category: Office Equipment

Document Type: Manual

Language: EN

Uploaded: Nov. 21, 2025, 6:47 p.m.

1.1 Activating the DISK BASIC interpreter SB-6610 1. Ready the disk drive unit, place the master diskette (or submaster diskette, if available) in disk drive 1 and turn on the power of the MZ-80B. 2. The MZ-80B's built-in IPL automatically loads DISK BASIC interpreter SB-6610 and MONITOR SB-1510. 3. SB-6610 loads and executes the program named "AUTO RUN" from the diskette, which defines the 10 special function keys. 4. System variables and default values are initialized: Keyboard operation mode (normal), lower case entry with SHIFT, special function keys defined by "AUTO RUN", character display mode (normal), character size (40/line), scrolling area (full screen), graphic input/output modes (cleared/off), position pointer (0,0), no arrays declared, clock starts at "000000", tempo at 4, and duration at 5. 1.2 Introduction to file control 1. DISK BASIC has a superb file control function utilizing the floppy disk system. 2. Files can be used for data storage, as a random access data area, or as program segments called by CHAIN or SWAP statements. 3. Data files are classified into sequential access files (BSD) and random access files (BRD). 4. Sequential access files are accessed sequentially from the beginning. 5. Random access files allow access to individual data items specified by an expression. 6. To access data, specify a file with a logical file number (1-127). 7. CHAIN and SWAP statements overlay programs and transfer control. 8. DISK BASIC handles three kinds of files: BSD, BRD, and BASIC text (BTX). Machine language program files (OBJ) can be run but not written by DISK BASIC.

Troubleshooting and error codes

Error No. Meaning
1 Syntax error
2 Operation result overflow
3 Illegal data
4 Data type mismatch
5 String length exceeded 255 characters
6 Insufficient memory capacity
7 The size of an array defined was larger than that defined previously.
8 The length of a BASIC text line was too long.
9 The number of levels of GOSUB nests exceeded 15.
10 The number of levels of FOR-NEXT nests exceeded 15.
11 The number of levels of functions exceeded 6.
12 Next was used without a corresponding FOR.
13 RETURN was used without a corresponding GOSUB.
14 Undefined function was used.
15 Unused reference line number was specified in a statement.
16 CONT command cannot be executed.
17 A writing statement was issued to the BASIC control area.
18 Direct mode commands and statements are mixed together.
19 RESUME statement cannot be executed.
20 A RESUME statement was used without a corresponding error process.
21 A READ statement was used without a corresponding DATA statement.
22 The number of SWAP levels exceeded 1.
36 File was not found.
37 Disk drive hardware error.
38 A file name already used was defined again.
39 OPEN, DELETE, RENAME statements were issued to an open file.
40 An unopened file was reference or a CLOSE or KILL statement was issued to it.
41 A file was accessed in different mode from ROPEN, WOPEN or XOPEN.
42 A protected file was accessed for writing.
43 The disk drive is not ready.
44 The total number of files on a volume exceeded 63.
45 Volume number error
46 File space on the diskette is insufficient.
47 A diskette which has not been initialized was loaded.
48 The number of data of a BSD file exceeded 64K bytes.
49 Data error occurred on an FDC routine call.
50 The diskette cannot be used.
60 Illegal file name was specified.
61 Illegal file mode was specified.
62 Out of file
63 Illegal logical number was specified.
64 The printer is not ready.
65 Printer hardware error
66 Out of paper
67 Check sum error
Privacy Policy