
RPBASIC-52 PROGRAMMING GUIDE
C-1
APPENDIX C- ERROR MESSAGES
The RPB ASIC-52 error processor helps identify errors.
When running a program , error messages are expressed as:
ERROR: XXX - IN LINE NNN
NNN Instruction
_______X
where XXX is the type of error and NNN is the program line number where the error occurred. The "______X"
identifies the very approximate location of the error. For example, a BAD ARGUMENT error occurring at line
100 is expressed as:
ERROR: BAD ARGUMENT - IN LINE 100
100 DBY(257)=5
_____________________X
In Command mode, only the error type is printed since there are no line numbers in Command mode.
RPBASIC-52 errors include:
A-STACK
ARITH. UNDERFLOW
ARITH. OVERFLOW
ARRAY SIZE
BAD ARGUMENT
BAD SYNTAX
C-STACK
CAN'T CONTINUE
DIVIDE BY ZERO
I-STACK
MEMORY ALLOCATION
NO DATA
HARDWARE
A-STACK
The argum ent stack pointer is out of bounds. Too m any expressions were pushed or tried to pop non -existent data
off the stack.
ARITH. UNDERFLOW
The re sult of a n arithm etic operation is beyond the lowe r limit o f RPB ASIC -52 floa ting-point num bers.
RPBASIC-52's smallest floating-point number is ±1E-127. An operation such as 1E-100/1E28 would cause an
ARITH. UNDERFLOW error.
This exam ple produces a correct result:
>?1e-100/le26
1.0 E-126
Comentários a estes Manuais