There is no STAX for HL register pair because the data transfer for STAX can be done through XCHG command.
For ex: to transfer the data to the memory loaction specified by the HL pair we do as follows:
XCHG
STAX D
for DE pair and BC pair we can directly do it using STAX
HL is a register pair that is used to store 16-bit data in 8085 Microprocessor
6 general purpose registers.i.e., B,C,D,E,H,L
8085 is a 8 bit microprocessor designed by Intel.
In order to add 32 bit numbers in the 8085, you need to add them 8 bits at a time, tracking the carrys between each add. LXI B,first_number LXI H,second_number LXI D,result LDAX B ;first byte - no carry in ADD M STAX D INX B; point to next byte INX D INX H LDAX B ;second byte - carry in ADC M ;note the ADC instead of ADD STAX D INX B; point to next byte INX D INX H LDAX B ;third byte - carry in ADC M STAX D INX B; point to next byte INX D INX H LDAX B ;fourth - carry in ADC M STAX D
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
Lxi h, 2000h mov a,m mov b,a inx h mov a,m add b sta 2002h hlt
Lxi h,8000h // hl pointes to the location 8000 mov a,m // the value at 8000 copied to accumulator inx h // increment hl add m // add values at 8000 and 8001 hlt // quit the program
its FF (H)
8085 microprocessor is 8 bit microprocessor develop by Intel corp. it's architecture can be study broadly over internet various sites provide the information about architecture. some is given below 1-data bus - 8 2-address bus- 16 3-memory- 64 KB 4-GPRs - B,C D,E H,L 5-each of 8 bit 6- A L U. airthmatical logical unit.
8085 microprocessor is 8 bit microprocessor develop by Intel corp. it's architecture can be study broadly over internet various sites provide the information about architecture. some is given below 1-data bus - 8 2-address bus- 16 3-memory- 64 KB 4-GPRs - B,C D,E H,L 5-each of 8 bit 6- A L U. airthmatical logical unit.
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++);
There are seven 8 bit registers in the 8085. A, B, C, D, E, H, and L