Ex6502.CPU.Executor.AND (ex6502 v0.1.0) View Source
Transfer to the adder and perform a bit-by-bit AND operation
Operation
A ^ M -> A
Table
AND AND Memory with Accumulator
A AND M -> A N Z C I D V
+ + - - - -addressing assembler opc bytes cyles
immidiate AND #oper 29 2 2 zeropage AND oper 25 2 3 zeropage,X AND oper,X 35 2 4 absolute AND oper 2D 3 4 absolute,X AND oper,X 3D 3 4 absolute,Y AND oper,Y 39 3 4 (indirect,X) AND (oper,X) 21 2 6 (indirect),Y AND (oper),Y 31 2 5*
Flags
- Zero: 1 if result is zero; 0 otherwise
- Negative: 1 if bit 7 of result is 1; 0 otherwise