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
the contents of the H and L registers into the stack pointer register, the contents of the H register provide the highorder address and the contents of the L register provide the low-order address. The contents of the H and L registers are not altered.


Eg: - SPHL



12.  XTHL: - This instruction exchanges H and L with top of stack. The contents of the L register are exchanged with the stack location pointed out by the contents of the stack pointer register. The contents of the H register are exchanged with the next stack location (SP+1); however, the contents of the stack pointer register are not altered.

Eg: - XTHL



13.  PUSH: - This instruction pushes the register pair onto stack. The contents of the register pair designated in the operand are copied onto the stack in the following sequence. The stack pointer register is decremented and the contents of the highorder register (B, D, H, A) are copied into that location. The stack pointer register is decremented again and the contents of the low-order register (C, E, L, flags) are copied to that location.
 
Eg: - PUSH B 
          PUSH A



14. POP: - This instruction pop off stack to register pair. The contents of the memory location pointed out by the stack pointer register are copied to the low-order register (C, E, L, status flags) of the operand. The stack pointer is incremented by 1 and the contents of that memory location are copied to the high-order register (B, D, H, A) of the operand. The stack pointer register is again incremented by 1.
 
Eg: - POP H 
          POP A



15. OUT: - Output data from accumulator to a port with 8-bit addresses. The contents of the accumulator are copied into the I/O port specified by the operand.
Eg: OUT F8H



16.IN: - Input data to accumulator from a port with 8-bit address. The contents of the input port designated in the operand are read and loaded into the accumulator.
Eg: - IN 8CH
 

{ 11 comments... read them below or Comment }

  1. just check out my blog expaworld.blogspot.in

    ReplyDelete
  2. this blog is really a life saver

    ReplyDelete
  3. Super awesome BLOG. Good job !!

    ReplyDelete
    Replies
    1. what the hell did you understanf bee!!!!!!

      Delete
    2. This comment has been removed by the author.

      Delete
    3. This comment has been removed by the author.

      Delete
  4. For XTHL, rather the contents of SP are exchanged with the HL pair and stack remains un- altered. I just tried it out on the simulator

    ReplyDelete
  5. what is difference between sphl and push h

    ReplyDelete
  6. what is different between push and pop??

    ReplyDelete
  7. I think there's a mistake with PUSH A, it should be PUSH PSW instead.

    ReplyDelete

Labels

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