Ex6502.CPU.Executor.ORA (ex6502 v0.1.0) View Source

Perform an OR operation with the accumulator or a the location

Stores the result into the accumulator.

Operation

A ∨ M -> A

Table

ORA Exclusive-OR Memory with Accumulator

A ORA M -> A N Z C I D V

                                + + - - - -

addressing assembler opc bytes cyles


immidiate ORA #oper 09 2 2 zeropage ORA oper 05 2 3 zeropage,X ORA oper,X 15 2 4 absolute ORA oper 0D 3 4 absolute,X ORA oper,X 1D 3 4 absolute,Y ORA oper,Y 19 3 4 (indirect,X) ORA (oper,X) 01 2 6 (indirect),Y ORA (oper),Y 11 2 5*

Flags

  • Zero: 1 if result is zero; 0 otherwise
  • Negative: 1 if bit 7 of result is 1; 0 otherwise

Link to this section Summary

Link to this section Functions