Acorn Computers BBC Micro Model B w/8271 — Acorn BBC Micro Model B w/8271 User Guide Manual PDF (EN)

221 EOR Exclusive-OR Purpose This is a special logical operator often used to complement certain bits in a byte selectively. Refer to the keyword AND for an introduction to the concepts involved. The process of Exclusive-OR tests whether the corresponding bits in two numbers are the same or different. If the corresponding bits in the two numbers are different then the resultant bit will be a one, if they are the same it will be a zero. Another way of looking at this process is that it complements (changes 0 to 1 and 1 to 0) those bits in one number which are at logic 1 in the other number.

Thus if X is 0000 1100 0011 0000 1110 1011 Y is 1011 1111 0000 1010 0010 1000 Then X EOR Y is 1011 0011 0011 1010 1100 0011 Examples 100 d%= A% EOR &FFFF00 200 R= X EOR Y Description An operator performing the operation of logical or bitwise Exclusive-OR between the two operands. Syntax = EOR or = EOR Associated keywords NOT , AND , OR