Difference between revisions of "OR (binary)"

From veswiki
Jump to: navigation, search
m
 
m (1 revision)
 
(No difference)

Latest revision as of 21:23, 16 November 2012

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

    %01100100
    %00101110

You would get:

    %01101110

Because those bits are true in either the first value, or the second one. The F8 can only OR two bytes at a time.

See Also