Rpbasic-52 programming guide – Remote Processing BASIC 52 User Manual
Page 159

RPBASIC-52 PROGRAMMING GUIDE
C-2
This exam ple produces a n expected e rror:
?le-100/le28
ERROR: ARITH. UNDERFLOW
READY
This exam ple produces a n incorrect expo nent:
>?le-100/.9e28
1.1111111 E -0
ARITH. OVERFLOW
T h e re s u lt o f a n a ri t hm e t ic o p er a ti o n e x c ee d s th e u pp e r l i m it o f R P B A S I C -5 2 fl o at i ng - po i nt n um b e r s. R P B A SI C -
5 2 's l ar g es t fl o at i ng - po i nt n um b e r i s ± . 9 99 9 9 99 9 E + 12 7 . A n o pe r at i on s uc h a s 1 E 1 00 * 1 E 28 c a us e s a n A R IT H .
OVE RFLO 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 co mma nd, instruction, or operator or ha ve attemp ted to use a reserve d key word as part of a variable
was entere d. This is a generic " I don't know w hat this is" responce by a com puter.
C-STACK
M o r e co n tr o l s t ac k m e m or y w as u se d th a n it h as a v ai l ab l e. T he c o nt r ol s ta c k ha s o f 1 5 8 by t e o f m em o r y . A F O R -
NEXT loop uses 17 bytes, and DO-UNT IL, DO-WHILE , and GOSUB each use three bytes. This means you
l i m it e d t o ni n e F O R - N E X T lo o p s. E xe c u ti n g a r et u rn b e fo r e a G O S U B , o r a W H I L E o r U N T I L be f or e a D O
instruction, or a NE XT befo re a FOR also generates a C-STA CK error.
CAN'T CONTINUE
A program was edited after stopping.
DIVIDE BY ZERO
A num ber was divid ed by zero or a sta tement suc h as TAN (PI/2).