逻辑指令是执行基本逻辑运算(例如AND,OR等)的指令。在8085微处理器中,目标操作数始终是累加器。在这里,逻辑运算按位进行。
下表显示了逻辑指令列表:
OPCODE | OPERAND | DESTINATION | EXAMPLE |
---|---|---|---|
ANA | R | A = A AND R | ANA B |
ANA | M | A = A AND Mc | ANA 2050 |
ANI | 8-bit data | A = A AND 8-bit data | ANI 50 |
ORA | R | A = A OR R | ORA B |
ORA | M | A = A OR Mc | ORA 2050 |
ORI | 8-bit data | A = A OR 8-bit data | ORI 50 |
XRA | R | A = A XOR R | XRA B |
XRA | M | A = A XOR Mc | XRA 2050 |
XRI | 8-bit data | A = A XOR 8-bit data | XRI 50 |
CMA | none | A = 1’s compliment of A | CMA |
CMP | R | Compares R with A and triggers the flag register | CMP B |
CMP | M | Compares Mc with A and triggers the flag register | CMP 2050 |
CPI | 8-bit data | Compares 8-bit data with A and triggers the flag register | CPI 50 |
RRC | none | Rotate accumulator right without carry | RRC |
RLC | none | Rotate accumulator left without carry | RLC |
RAR | none | Rotate accumulator right with carry | RAR |
RAL | none | Rotate accumulator left with carry | RAR |
CMC | none | Compliments the carry flag | CMC |
STC | none | Sets the carry flag | STC |
在桌子上
R代表注册
M代表记忆
Mc代表记忆内容
阅读相关文章:8085微处理器中的算术指令