answersLogoWhite

0


Best Answer

The POP H instruction in the 8085 copies the top of stack to the HL register and then increments the stack pointer by 2. In C pseudo code, the sequence is L = *(SP++); H = *(SP++);

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What happens when POP H instruction is executed in 8085?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What will be the addressing mode of instruction POP D in microprocesser 8085?

Stack/explicit.


What are the instruction to reset RST 7.5?

To reset the pending RST 7.5 instruction in the 8085, you need to execute a SIM instruction with a particular value in the accumulator. PUSH FLAGS MVI A,10H SIM POP FLAGS Of course the PUSH and POP are optional, if you don't need to preserve the value of the accumulator.


What will happen when pop instruction is executed?

The top of stack to copied to the specified register and the stack pointer is incremented by 2. A special form of POP, RET, has the program continuing with the popped address in the program counter, i.e. a return from subroutine or function call.


What is the similarity between call-return and push-pop instruction?

If this is a homework assignment, you really should try to answer it on your own first, otherwise the value of the reinforcement of the lesson due to actually doing the assignment will be lost on you.The call-return and push-pop instruction sequences on the 8085 are similar in that each pushes something on the stack and then pops something off the stack.In the case of call-return, that something is the program counter. In the case of push-pop, that something is up to the programmer, and it can be one of AF, BC, DE, or HL.


Possibe way of implementing ret instruction in 8085 if ret insruction was not present?

You would have to pop the stack into two dedicated memory locations in RAM, saving and restoring the register(s) used to do that, prefix those two locations with a JMP opcode, and JMP to the JMP.


Write a program to set all flags of 8085?

; Exact answer: LXI H, FFFFH push H POP PSW


Timing diagram of pop b instruction on 8085 microprocesser?

1. Memory Read - (PC) and then increment PC - Op Code C1 - Four clocks 2. Memory Read - (SP) and then increment SP - Transfer to C - Three clocks 3. Memory Read - (SP) and then increment SP - Transfer to B - Three clocks


Which register can be changed directly using pop instruction in 8086?

stack segment register


Program for block transfer in 8085?

Block transfer in 8085... PUSH FLAGS {optional, if registers need to be saved} PUSH B PUSH D PUSH H LXI H,COUNT LXI B,SOURCE LXI D,DESTINATION LOOP LDAX B STAX D INX B INX D DCX H MOV A,H ORA L JNZ LOOP POP H {optional, if registers need to be saved} POP D POP B POP FLAGS


What happens to your body as you descend in water?

your ears pop your ears pop


What happens if you eat pop rockets and pop?

i heard your stomach will explode but i dont believe it


What happens if you pop a blister?

Find out idiot