Showing posts with label Programming. Show all posts

RLC, RRC, RAL, RAR, CMA, CMC, STC

1. RLC: - Each binary bit of the accumulator is rotated left by one position. Bit D7 is placed in the position of D0 as well as in the Carry flag. CY is modified according to bit D7. Any other bit is not affected.

CMP, CPI, ANA, ANI, XRA,XRI, ORA, ORI

1. CMP: - (compare register or memory with accumulator) The contents of the operand  register or memory are M compared with the contents of the accumulator. Both contents are preserved . The result of the comparison is shown by setting the flags of the PSW as follows:

if (A) < reg/mem: carry flag is set.
if (A) = reg/mem:

XCHG, SPHL, XHTL, PUSH, POP, OUT, IN

10. XCHG: - Exchange H and L with D and E. The contents of register H are exchanged with the contents of register D, and the contents of register L are exchanged with the contents of register E.

Eg: - XCHG



11. SPHL: - This instruction copies H and L register to the stack pointer. The instruction loads

Labels

- Copyright © 8085 Microprocessor -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -