MikroElektronika PIC Microcontrollers PIC16 Scheda Tecnica Pagina 30

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 29
Programming PIC Microcontrollers in BASIC - mikroElektronika
BASIC also has two unary arithmetic operators:
Operator Operation Operand types Result type
+ (unary) sign identity short, integer,
longint
short, integer,
longint
- (unary) sign negation short, integer,
longint
short, integer,
longint
Unary arithmetic operators can be used to change sign of variables:
a = 3
b = -a
' assign value -3 to b
3.2 Boolean Operators
Boolean operators are not true operators, because there is no boolean data type defined
in BASIC. These operators conform to standard Boolean logic. They cannot be used
with any data type, but only to build complex conditional expression.
Operator Operation
not negation
and conjunction
or disjunction
For example:
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/03.htm (3 sur 6)05/11/2004 02:14:47
Vedere la pagina 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 193 194

Commenti su questo manuale

Nessun commento