Writing, Iguanas, and Electronics

XOR Instruction

This instruction performs a logical Exclusive-OR of the left (Data Bus) and right (B-Register) values, and stores the result in the Output Cache Register. Each output bit will be true only when one input is true and the second false. When both input bits are false, or true, the output bit will be false.

Logical Exlusive-OR Instruction

Usage Examples:

        Hex                Mnemonic                      Action

1610       ; XOR            PC XOR B -> OCR
1650       ; XOR             X XOR B -> OCR
16A0       ; XOR             A XOR B -> OCR

Updates when Executed:

  • ALU Output Cache Register
  • Zero Flag
  • Negative Flag