StephenHermer.com
Writing, Iguanas, and Electronics

OR Instruction

This instruction performs a logical 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 if either or both input bits are true.

Logical OR instruction

Usage Examples:

        Hex                Mnemonic                      Action

1EA0       ; OR              A OR B -> OCR
1EC0       ; OR              C OR B -> OCR
1E20       ; OR              SP OR B -> OCR

Updates when Executed:

  • ALU Output Cache Register
  • Zero Flag
  • Negative Flag