Shop OBEX P1 Docs P2 Docs Learn Events
And not — Parallax Forums

And not

ArchiverArchiver Posts: 46,084
edited 2001-07-30 15:50 in General Discussion
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?

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-07-30 10:42
    Hi All,

    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
  • ArchiverArchiver Posts: 46,084
    edited 2001-07-30 15:50
    >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?


    XXX &~ YYY
Sign In or Register to comment.