AND是逻辑与指令( Logical AND)的缩写符。
A,Z,N = A&M
该指令将内存中的一个字节与累加器中的一个字符逐位进行逻辑与比较。
指令执行后处理器状态::
缩写 | 状态标志名称 | 变化情况 |
---|---|---|
C | Carry Flag | Not affected |
Z | Zero Flag | Set if A = 0 |
I | Interrupt Disable | Not affected |
D | Decimal Mode Flag | Not affected |
B | Break Command | Not affected |
V | Overflow Flag | Not affected |
N | Negative Flag | Set if bit 7 set |
寻址方式(Addressing Mode) | 操作码(Opcode) | 字节数(Bytes) | 循环位数(Cycles) |
---|---|---|---|
Immediate | $29 | 2 | 2 |
Zero Page | $25 | 2 | 3 |
Zero Page,X | $35 | 2 | 4 |
Absolute | $2D | 3 | 4 |
Absolute,X | $3D | 3 | 4(+1 if page crossed) |
Absolute,Y | $39 | 3 | 4(+1 if page crossed) |
(Indirect,X) | $21 | 2 | 6 |
(Indirect,Y) | $31 | 2 | 5(+1 if page crossed) |
网友评论