Zitat Zitat von roboguy
Soviel ich gesehen habe, kennt AVR Bascom die typischen logischen Operatoren nicht. Ein kurzer Blick in die Hilfe liefert allerdings die Funktion "Bits" - dort solltest du einmal nachsehen.
Unsinn. Mache Bascom bitte nicht schlechter als es ist.

Aus der Hilfe:
Logical Operators

Logical operators perform tests on relations, bit manipulations, or Boolean operators.
There four operators in Bascom are :


Operator Meaning
NOT Logical complement
AND Conjunction
OR Disjunction
XOR Exclusive or

It is possible to use logical operators to test bytes for a particular bit pattern.
For example the AND operator can be used to mask all but one of the bits
of a status byte, while OR can be used to merge two bytes to create a particular binary value.


Example

A = 63 And 19
PRINT A
A = 10 Or 9
PRINT A
Henrik