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

RPBASIC-52 PROGRAMMING GUIDE
1-15
Data storage and retrieval
B L O A D
B S A V E
C B Y
D B Y
DATA
DIM
P O K E
PEEK
R E A D
R E S T O R E
X B Y
Operators
/
-
+
*
**
<
<=
<>
=
>
>=
A B S
A N D
ATN
C O S
E X P
I N T
L O G
N O T
O R
PI
R N D
S G N
SIN
T A N
X O R
T h e tr i go n o m et r ic o p er a to r s S I N , C O S , an d T A N
use a Taylor series. Results are calculated to seven
significant digits. The algorithm reduces the
expression to a value between zero and PI/2 and
results in a loss of precision if input_expr is large.
Relational operators (=, <>, <, etc.) return a result of
65535 if the relation is true and zero if it's false. The
result may be displayed or used in further
calculations. Beware when comparing calculated
floating-point values as rounding errors may produce
unexpected results.
Logical operators perform bitwise operations on
expressions w hich evaluate to valid positive intege rs
between OH and OF FFFFH (65535). All non-
intege r value s are tru ncate d to inte gers.
Hexadecimal values with a leading alpha character
must be pre ceded by a le ading zero or B asic will
interpret your constant as a variable name. If you
supply fewer than 16 bits to NOT it will return a 16-
bit value based on the assumption the unsupplied
bits were zeros.
Serial input/output
C O N F I G B A U D
C O M
C O M $
GET
I N P U T
O N C O M $
U I
U O
Printing and formatting
C R
PRIN T, P., ?
PH
SPC
U S I N G
Hardware input/output
AIN
A O T
C A R D $
C O U N T
DATE
D I S P LA Y
K E Y P A D
L I N E
O N C O U N T
ONITR
O N K E Y P A D
O N L I N E
P W M
T I M E
Real tim e controls
EXECUTE
IDLE
T I C K
W D O G