Remote-processing BASIC 52 Bedienungsanleitung Seite 16

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 163
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 15
RPBASIC-52 PROGRAMMING GUIDE
1-13
OPERATORS
Operator categories include:
Arithmetic =, +, *, /, **, SQR
Relational =, <>, <, >, <=, >=
Logical .AND., .OR., .XOR., .NOT.
Value ABS, INT, PI, RND, SGN
Operator Precedence
The precedence of operators determines the order in
which mathematical operations are e xecuted. Basic
scans an expression from left to right and performs
no operations until it encounters an operator of
lower or equal precedence. For instance,
multiplication takes prec edence over addition.
Parenthetical expressions have the highest
precedence.
The following list is Basic's order of precedence:
1. Operators in parenthesis
2. Exponential operators (**)
3. Negation (-)
4. Multiplication (*) and division (/)
5. Addition (+) and Subtraction (-)
6. Relational expressions (=, <>, <=, <, >=, >)
7. .AND. (logical AND)
8. .OR. (logical OR)
9. .XOR. (logical XOR)
Parenthetical expressions have the highest
precedence, so their use is a good way for you to
reduce ambiguity and m ake your programs more
readable. However, parenthetical expressions use
internal data memory.
ARITHMETIC OPERATORS
Arithmetic operators perform basic arithme tic
functions:
+ addition
- subtraction, not negation
* multiplication
/ division
** exponential
OBSOLETE and MODIFIED
COMMANDS
A number of commands in the original BASIC-52
have been replaced, obsolete, or no longer
functional. The following is a list of obsolete
commands and are no longer available:
CLEAR I
CLOCK0
CLOCK1
FPROG through FPROG6
IP
PORT1
PROG through PROG6
RAM
RCAP2
ROM
RROM
TIMER1
TIMER2
T2CON
XFER
XTAL
The following comm ands have been modified with
respect to name and operation:
Old New
ONEX1 ONITR
ONTIME ONTICK
PGM BSAVE
RROM EXECUTE
TIME TIME
Seitenansicht 15
1 2 ... 11 12 13 14 15 16 17 18 19 20 21 ... 162 163

Kommentare zu diesen Handbüchern

Keine Kommentare