Casio PB-100 Instruction Manual page 42

Table of Contents

Advertisement

(2) Conversation type debug
It an eriur oixurs cluniuj program execiution, an eiror message will be shown on the
display. These errors will be shown in line uniis and will indicate the kind of BASIC
language error. Based on the error message which is shown on tlie display, debugging
is then manually performed while conveising with the display. For the meaning of the
error messages, refer to the Error Message List on page 61.
Example:
1 0
I N P U T
X
2 0 I F X ^ 0 ; P R i N T • X ^ 0 ' : G O T O 1 0
3 0 Y = X T 2 + 3 * X + 1 5
4 0
P R I N T
Y
5 0 E N D
Line 20 of the above program is a judgement of the input range of power When
A*<0, program execution will return to the INPUT statement on line 10.
Suppose line 30 of the above program is mistakenly
input as follows.
3 0
Y = X t 2
+
3 X + 1 5
Operation:
• If this program is executed, a "?" will be displayed
as a result of the INPUT statement on line 10.
@ ( S 3 R U N 0 2 3 I ?
• Suppose "45" is input at this time. The display would show.
45 OS
E R R 2
P 0 - 3 O
This means that "a syntax error occurred on line 30". Confirm the
p r o g r a m c o n t e n t s .
p r o g r a m c o n t e n t s .
c a ^ m
L 1 S T
3 0
E O
P
_ 1 2 3 4 5 6 7 8 9
3 0 Y = X t 2 + 3 X +
The " 5|c" was omitted between "3" and "X" on line 30. Therefore, correct it by
following the procedure for program editing.
3 0
Y = X t 2 - F 3 _ X
4 0
P R I N T
Y
- 4 1
-

Advertisement

Table of Contents
loading

Table of Contents