AND (binary)

From veswiki
Revision as of 23:01, 19 November 2004 by Admin (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To AND one value with another is to compare the bits of each value, and only keep the ones which are both true. For example, if you AND'd these values:

    %01100100
    %00101110

You would get:

    %00100100

Because only those two bits are the same in each byte. The F8 can only AND two bytes at a time.

See Also