9 Sept 2012

What are the temporary registers of 8085?


In 8085 available temporary register are temporary data register and W and Z registers. These registers are not available to the programmer, but 8085 uses them internally to hold temporary data during execution of some instructions.


Now Question is How W and Z registers of 8085 works ?


W and Z are two 8-bit temporary registers, used to hold 8-bit data/address during execution of some instructions.
CALL-RET instructions are used in subroutine operations. On getting a CALL in the main program, the current program counter content is pushed into the stack and loads the PC with the first memory location of the subroutine. The address of the first memory location of the subroutine is temporarily stored in W and Z registers. Again, XCHG instruction exchanges the contents H and L with D and E respectively. W and Z registers are used for temporary storage of such data.

No comments:

Post a Comment