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
just check out my blog expaworld.blogspot.in
ReplyDeletethis blog is really a life saver
ReplyDeleteSuper awesome BLOG. Good job !!
ReplyDeletewhat the hell did you understanf bee!!!!!!
DeleteThis comment has been removed by the author.
DeleteThis comment has been removed by the author.
DeleteFor 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
ReplyDeletewhat is difference between sphl and push h
ReplyDeletewhat is different between push and pop??
ReplyDeletePush command is used to insert data in a stack while the pop command is used to retrieve data from a stack
DeleteI think there's a mistake with PUSH A, it should be PUSH PSW instead.
ReplyDeleteNis work bro
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteNice
ReplyDeleteGood work
ReplyDeleteHelpful content
ReplyDeleteAfter execution of SPHL instruction,which flags content is altered in 8085microprocessor
ReplyDeleteNo flags are affected as it is a stack operation
DeleteAgar kesi bhi Ko website banbani ho to check-onlonesastawebsit.com
ReplyDeleteAny type website creat low rate only onlinesastawebsite.com
This comment has been removed by the author.
ReplyDeleteCheck my blog https://jdxgd.blogspot.com
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteVisit: https://firstmicroprocessor.com/ History of the World s First Microprocessor which was designed by Ray Holt for the F 14 Tomcat fighterjet Designed from 1968 70 F 14 flew in 1970.
ReplyDelete