Chapter 5 Program
Ca
I
cu
lation
...............................27
5-1
Program Outline
............••.................
......•...
27
5-2 Program Fundamentals
...............................•.•...
28
5-2-1 Constants and Variables
...•••....•.•.••.......•..........••••.
28
5-2-2
Substitution
Statements
•.•..•..........•......................
29
5·3 Program Writing and Execution
...........................••..
30
5-3-1 Program
Writing
...•.••...••.••••.•...............•...•
30
5-3-2 Program
Execution
•...•••...••••.......................
32
5·4 Program Editing
.................•.....•.•..••.....•.....
34
5-5
Program
Debug
""
..
.. ..
40
5-6 Program Commands
.............•••.••..•..•..............
44
5-6-1
5-6-2
5-6-3
5-6-4
&-6-5
5-6-6
5-6-7
5-6-8
5-6-9
5-6-10
5-6-11
5-6-12
5-6-13
5-6-14
5-6-15
5-6·16
5-6-17
Input
Command
(INPUT,
KEY)
44
Output
Command
(PRINT,
CSR) 45
Jump
Command (GOTO)
.•.•...•••...•.................•
47
Judgement Command
(IF
-
THEN)
..•....•...•...•••.•.•....
48
Loop
Command
(FOR·NEXT)
....•••.•..•..•..............
49
SUbroutine Command (GOSUB,
RETURN)
................•....•
51
Multistatement
.....•.•.•.•.•••..••...•.•.•.....•••.•
54
Stop Command (STOP)
•.•••••...•.•.•.............•....
54
End Command
(END)
...•...•.•...............•.•.•••..
54
Execute Command
(R
UN)
.•...•.............•.•.•....•.••
54
List Command
(LIST)
.........................••••.•...
55
Mode Designation (MODE)
•••.•.................••.•••.•.
55
Output
Format
(SET)
.......•...............•••.•......
56
Character
Functions
(LEN,
MID,
VAL)
...............••••.....
56
Memory
Clear
(V
AC)
..................•.....•....•...•.
57
Program Clear
(CLEAR,
CLEAR
A)
.............•.••.•...•.•.
57
Option
Specifications
.................................••
58
Cassette Magnetic Tape
(SAVE,
LOAD,
SAVE
A,
LOAD
A,
PUT,
GET,
VER).
58
Printer
...................................•••.••
60
Error
Message
List It
61
Program Command List I
...................................................
• '62
Function Digit Capacity
64
Specifications
65
-2-