MikroElektronika PIC Microcontrollers PIC16 Arkusz Danych Strona 31

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 30
Programming PIC Microcontrollers in BASIC - mikroElektronika
if (astr > 10) and (astr < 20) then
PORTB = 0xFF
end if
3.3 Logical (Bitwise) Operators
Overview of logical operators in BASIC:
Operator Operation Operand types Result type
not bitwise negation byte, word,
short, integer,
long
byte, word,
short, integer,
long
and bitwise and byte, word,
short, integer,
long
byte, word,
short, integer,
long
or bitwise or byte, word,
short, integer,
long
byte, word,
short, integer,
long
xor bitwise xor byte, word,
short, integer,
long
byte, word,
short, integer,
long
<< bit shift left byte, word,
short, integer,
long
byte, word,
short, integer,
long
>> bit shift right byte, word,
short, integer,
long
byte, word,
short, integer,
long
<< : shift left the operand for a number of bit places specified in the right operand
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/03.htm (4 sur 6)05/11/2004 02:14:47
Przeglądanie stron 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 193 194

Komentarze do niniejszej Instrukcji

Brak uwag