Casio Z1 Gr User Manual
Here you can view all the pages of manual Casio Z1 Gr User Manual. The Casio manuals for Personal Computer are available online for free. You can easily download all the documents as PDF.
Page 41
41 5.8 BASIC Command Reference 5.8.1 Format elements The method for entering statements is explained below. • Words in bold type are command or functions, and they must be entered as shown. • Braces indicate that one of the parameters enclosed must be specified. • Commas contained in braces must be written in the position shown. • Brackets indicate that the parameters enclosed may be omitted. Brackets themselves are not entered. • An asterisk indicates that the term preceding it may appear more than...
Page 42
42 5.8.2 Manual Commands PASS PURPOSE: Specifies or cancels a password FORMAT: PASS “password” String expression EXAMPLE: PASS”TEXT” PARAMETERS: 1. Registering a single password makes it the password for all BASIC program areas (P0-P9) and for C language and Assembler program areas (F0-F9). 2. The password must be a string of 1-8 characters. 3. All characters after the first 8 are ignored when 9 or more characters are entered. EXPLANATION: 1. The password is used to protect programs. 2. The...
Page 43
43 CLEAR PURPOSE: Clears all variables and determines the memory mapping in accordance with the parameters entered. FORMAT: CLEAR [ [strings area size] [ , assembler area size , variables area size ] ] Numeric expression Numeric expression Numeric expression EXAMPLE: CLEAR CLEAR 400 CLEAR 4096,512,6144 PARAMETERS: 1. Strings area size: Determines the area used for strings. The initial setting when ALL RESET is executed is 4096. The current value can be obtained through FRE 3. 2. Assembler area...
Page 44
44 SYSTEM PURPOSE: Shows main system status. FORMAT: SYSTEM EXAMPLE: SYSTEM PRINT OFF TRACE OFF CLEAR 4096,512,6144 FREE 83703 V:4096 _ EXPLANATION: Data returned by the SYSTEM statement are: 1. PRINT mode (ON/OFF) 2. TRACE mode (ON/OFF) 3. CLEAR followed by 3 numbers. These are the parameters of the last CLEAR statement entered. - First number is the memory area size in Bytes. This is what returns FRE 3. - Second number is the assembler area size in Bytes. This is what returns FRE 6 - Third is...
Page 45
45 LIST [ALL] PURPOSE: Displays all or part of the currently specified program. FORMAT: [start line number] [ - [end line number] ] Line number Line number LIST [.] [ALL] *Label Label name EXAMPLE: LIST LIST 100 LIST 100-300 LIST -400 LIST*Root PARAMETERS: 1. Start line number: integer in the range of 1≤ line number ≤ 65535 (first line number when omitted) 2. End line number: integer in the range of 1≤ line number ≤ 65535 (end line number when omitted) 3. Label: Name of a label...
Page 46
46 EDIT PURPOSE: Enters the BASIC edit mode. FORMAT: [start line number] Line number or period EDIT [.] *Label Label name EXAMPLE: EDIT 100 PARAMETERS: 1. Start line number: integer in the range of 1 ≤ line number ≤ 65535 (first line number when omitted) 2. Label: Name of a label in the program. EXPLANATION: 1. Enters the BASIC edit mode and displays the program at the specified line number, or at the specified label. The cursor is displayed and editing becomes possible with either the...
Page 47
47 RUN PURPOSE: Executes a program. FORMAT: [start line number] RUN Line number or period *Label Label name EXAMPLE: RUN RUN 100 RUN*Root PARAMETERS: 1. Start line number: Interger in the rage of 1 ≤ line number ≤ 65535 2. Label: Name of a label in the program.. Entering an unknown label will generate an “UL error”. EXPLANATION: 1. Execution starts from the beginning of the program when the line number or label name is omitted. 2. When the specified start line does not exist, the first line...
Page 48
48 5.8.3 Fundamental Commands END PURPOSE: Terminates program execution. EXPLANATION: 1. Terminates program execution, and the computer stands for command input 2. Closes all files that are open 3. Variables and arrays are not cleared. 4. Any number of END statements can be used in a single program. Program execution is terminated and open files are closed automatically at the end of a program even if an END statement is not included. STOP PURPOSE: Temporarily halts program execution. EXAMPLE:...
Page 49
49 GOTO PURPOSE: Branches unconditionally to a specified branch destination. FORMAT: branch destination line number Line number GOTO # program area number Single character; 0-9 *Label Label name EXAMPLE: GOTO 1000 GOTO #7 GOTO *Finish PARAMETERS: 1. Branch destination line number: integer in the range of 1≤ line number ≤65535 2. Program area number: single character, 0-9 3. Label: Name of a label in the program. EXPLANATION: 1. Specifying a line number causes program execution to jump to...
Page 50
50 GOSUB PURPOSE: Jumps to a specified subroutine. FORMAT: branch destination line number Line number GOSUB # program area number Single character; 0-9 *Label Label name EXAMPLE: GOSUB 100 GOSUB #6 GOSUB *Root PARAMETERS: 1. Branch destination line number: integer in the range of 1≤ line number ≤65535 2. Program area number: single character, 0-9 3. Label: Name of a label in the program. EXPLANATION: 1. Program execution branches to the subroutine that starts at the specified line number...
All Casio manuals