And not
Archiver
Posts: 46,084
Martin-
Combining the BS2's & and ~ operators gives the same result as the
BS1's &/:
x = %00001111 &/ %10101001 ' yields %00000110 on BS1
x = %00001111 & ~%10101001 ' yields %00000110 on BS2
In both cases the result is the logical AND of the first operand
with the negation of the second operand.
Regards,
Steve
On 30 Jul 01 at 21:42, Martin and Hillary wrote:
> ...I want to program the following:-
>
> XXX AND NOT YYY
>
> I'm trying to use &/ but is this only for BS1 and not BS2. If so
> what should I use for a BS2?
Combining the BS2's & and ~ operators gives the same result as the
BS1's &/:
x = %00001111 &/ %10101001 ' yields %00000110 on BS1
x = %00001111 & ~%10101001 ' yields %00000110 on BS2
In both cases the result is the logical AND of the first operand
with the negation of the second operand.
Regards,
Steve
On 30 Jul 01 at 21:42, Martin and Hillary wrote:
> ...I want to program the following:-
>
> XXX AND NOT YYY
>
> I'm trying to use &/ but is this only for BS1 and not BS2. If so
> what should I use for a BS2?
Comments
I'm new to Basic Stamps and have a problem.
I want to program the following:-
XXX AND NOT YYY
I'm trying to use &/ but is this only for BS1 and not BS2. If so what should
I use for a BS2?
Thanks - Martin
>
>XXX AND NOT YYY
>
>I'm trying to use &/ but is this only for BS1 and not BS2. If so what should
>I use for a BS2?
XXX &~ YYY