Rpbasic-52 programming guide, Operators, Arithmetic operators – Remote Processing BASIC 52 User Manual
Page 16: Obsolete and modified commands
RPBASIC-52 PROGRAMMING GUIDE
1-13
OPERATORS
Operator categories include:
Arithme tic
= , + , * , /, * *, S Q R
Relational
=, <>, <, >, <=, >=
Logical
.AND., .OR., .XOR., .NOT.
Value
A B S , IN T , P I, R N D , S G N
Operator Precedence
The prece dence of ope rators determin es the order in
which m athema tical operations are e xecuted. Ba sic
s c an s an e xp re s si on fr om l ef t t o r ig h t a n d p e rf or m s
no operations until it encounters an operator of
lower or equal precedence. For instance,
mult iplica tion tak es prec eden ce ove r additi on.
Parenthetical expressions have the highest
precedence.
The following list is Basic's order of precedence:
1. Operators in pa renthesis
2. Exponential operators (**)
3. Negation (-)
4. Multiplication (*) a nd division (/)
5. Addition (+) an d Subtraction (-)
6.
Relational expressions (=, <>, <=, <, >=, >)
7 . .A N D . (l o gi c al A N D )
8 . .O R . (l o gi c al O R )
9 . .X O R . (l o gi c al X O R )
Parenthetical expressions have the highest
precedenc e, so their use is a good way for you to
reduce am biguity and m ake your progra ms m ore
readable. However, parenthetical expressions use
internal data memory.
ARITHMETIC OPERATORS
Arithme tic operators perform basic arithme tic
functions:
+
addition
-
subtraction, not negation
*
multiplication
/
division
**
exponential
OBSOLETE and MODIFIED
COMMANDS
A number of comm ands in the original BASIC-52
have been replaced, obsolete, or no longer
functional. The follo wing is a list of obsole te
commands and are no longer available:
C L E A R I
C L O C K 0
C L O C K 1
F P R O G t hr o ug h F PR O G 6
IP
PORT1
P R O G t hr o ug h P R O G 6
R A M
RCAP2
R O M
R R O M
T I M E R 1
T I M E R 2
T 2 C O N
XFER
X T A L
The follow ing comm ands have b een mod ified with
respect to name and operation:
Old
New
O N E X 1
ONITR
O N T IM E
O N T I C K
P G M
B S A V E
R R O M
EXECUTE
T I M E
T I M E