
RPBASIC-52 PROGRAMMING GUIDE
1-15
Data storage and retrieval
BLOAD
BSAVE
CBY
DBY
DATA
DIM
POKE
PEEK
READ
RESTORE
XBY
Operators
/
-
+
*
**
<
<=
<>
=
>
>=
ABS
AND
ATN
COS
EXP
INT
LOG
NOT
OR
PI
RND
SGN
SIN
TAN
XOR
The trigonometric operators SIN, COS, and TAN
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 which evaluate to valid positive intege rs
between OH and OFFFFFH (65535). All non-
integer value s are tru ncated to integers.
Hexadecimal values with a leading alpha character
must be preceded by a leading 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
CONFIG BAUD
COM
COM$
GET
INPUT
ON COM$
UI
UO
Printing and formatting
CR
PRIN T, P., ?
PH
SPC
USING
Hardware input/output
AIN
AOT
CARD$
COUNT
DATE
DISPLAY
KEYPAD
LINE
ON COUNT
ONITR
ON KEYPAD
ON LINE
PWM
TIME
Real time controls
EXECUTE
IDLE
TICK
WDOG
Commenti su questo manuale