(i) RIM : Read interrupt mask :-> This is multipurpose instruction to read the status of interrupts RST 7.5, RST 6.5, RST 5.5 and read serial input pin. The instruction loads 8 bits in the accumulator in the following format.
RIM Instruction format |
SIM Instruction format |
(iii) RRC : Rotate accumulator right -> This instruction rotates the contents of accumulator right by 1 bit. D7 will be transferred to D6, D6 to D5 and so on D1 to D0, D0 to D7 as well as to the carry flag.
RRC Instruction format |
D0 -> D7, D0 -> Cy
(iV) XCHG : Exchange the contents of HL, with DE pair.
This instruction exchanges contents of H register with D register and L register with E register.
Operation : H <-> D, L <-> E.
(v) DADRp : Add the specified register pair to HL pair.
This instruction adds the contents of specified register pair to HL pair and stores the result in HL pair. The example of Rp are SP,BC,DE and HL. Only carry flag is modified to reflect the result of operation.
Operation : Rp + HL -> HL
Post a Comment