Sharp OZ-707 Operation Manual - Page 30
Labelled Programs, BASIC Commands, Direct Commands, Modes
![]() |
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 30 highlights
You can use the AUTO command to automatically insert line numbers for you. Each time you press the IENTER I key, a new line number, with the correct increment, will be automatically inserted. See the BASIC COMMAND DICTIONARY for a full description of this useful function. It's wise to allow increments of several numbers in your line numbering (10, 20, 30, ... 10, 30, 50, etc.). This enables you to insert additional lines if necessary. If you use the same line number, the old line with that number is deleted when you enter the new line. Labelled Programs Often you will want to store several different programs in the memory at one time. (Remember that each must have unique line numbers). Normally, to start a program with a RUN or GOTO command, you need to remember the beginning line number of each program. However, there is an easier way. You can label each program with alphanumeric characters and run the program. Label the first line of each program that you want to reference. The label consists of a letter and up to 19 alphanumeric characters in quotes or with :+: in front of it, followed by a colon: 10: :+:A: PRINT "FIRST' 20: END 80: "B": PRINT "SECOND" 90: END Although both :+:Iabel and "label" forms may be used, :+:Iabel is recommended, since it executes more quickly and is more visible in the program listing. BASIC Commands All BASIC statements must contain commands. They tell the Card what action to perform. A command is contained with a program, and as such is not acted upon immediately. 48 Some statements require or allow an operand: 10: DATA "HELLO" 20: READ B$ 30: PRINT B$ 40: END Operands provide information to the Card telling it what data the command will act upon. Some commands require operands, while with other commands they are optional. Certain commands do not allow operands. (See the BASIC COMMAND DICTIONARY for BASIC commands and their uses.) Note: Commands, functions and variables entered in lowercase characters will be converted to uppercase characters. Direct Commands Direct commands are instructions to the Card that are entered outside of a program. They instruct the Card to perform some immediate action or set modes that affect how your programs are executed. Direct commands have immediate effect - as soon as you complete entering direct commands (by pressing the [fNTER I key), the command will be executed. Direct commands are not preceded by a line number. RUN NEW RADIAN Modes You will remember that you can use the Card as a calculator in the RUN mode. The RUN mode is also used to execute the programs you create. The PRO mode is used to enter and edit your programs. 49
![](/manual_guide/products/sharp-oz707-operation-manual-7aa0508/30.png)