
RPBASIC-52 PROGRAMMING GUIDE
C-2
This exam ple produces an expected error:
?le-100/le28
ERROR: ARITH. UNDERFLOW
READY
This exam ple produces an incorrect exponent:
>?le-100/.9e28
1.1111111 E-0
ARITH. OVERFLOW
The result of an arithmetic operation exceeds the upper limit of RPBASIC-52 floating-point numbers. RPBASIC-
52's largest floating-point number is ± .99999999E+127. An operation such as 1E100*1E28 causes an ARITH.
OVERFLO W error.
ARRAY SIZE
An array was accessed that is outside the dimension boundaries defined by a DIM instruction. For example:
DIM A(100)
PRINT A(102)
ERROR: ARRAY SIZE
READY
BAD ARGUMENT
The argument of an operator is out of limits. For example, A=AIN(300) generates a BAD ARGU MENT error
since the value assigned by the AIN operator is limited to the range 0 to 7.
BAD SYNTAX
An invalid command, instruction, or operator or ha ve attempted to use a reserved key word as part of a variable
was entered. This is a generic "I don't know what this is" responce by a computer.
C-STACK
More control stack memory was used than it has available. The control stack has of 158 byte of memory. A FOR-
NEXT loop uses 17 bytes, and DO-UNTIL, DO-WHILE , and GOSUB each use three bytes. This means you
limited to nine FOR-NEXT loops. Executing a return before a GOSUB, or a WHILE or UNTIL before a DO
instruction, or a NEXT before a FOR also generates a C-STA CK error.
CAN'T CONTINUE
A program was edited after stopping.
DIVIDE BY ZERO
A number was divided by zero or a statement such as TAN (PI/2).
Komentarze do niniejszej Instrukcji