Want this question answered?
hl pair holds the address of the location pointed by the memory pointer M
HL is a register pair used to store 16 bit of data in 8085 microprocessor.
Because in many statements you use HL as a pointer to memory data, eg: LD B,(HL) SUB A,(HL) LD (HL),E
cuh it only works for right triangles yo!
HL is a register pair that is used to store 16-bit data in 8085 Microprocessor
HL is a general purpose 16 bit register. It is also the address in memory of the M register.
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
Because that is the way Intel designed the INX instruction of the 8085. The 8080 is also the same. INX increments (and DCX decrements) the 16 bit register pairs or BC, DE or HL, depending on what register pair you specify in the INX (or DCX) instruction. To check is the value is 0 after an INX (or DCX) instruction, you need to OR the values of the register pair into the A register. For example..... INX H ;increment HL register pair MOV A,H ; move H register into the accumulator ORA L ; Logical OR it with the L register JZ ADDR ; If 0 then jump to ADDR
stack register is a special purpose register.
An indirect address is an address contained in a register or memory location, instead of in the instruction itself. In the 8085, the most common form is to load or calculate an address in the HL register, and then access the memory pointed to by HL using the M register designation, such as MOV A,M.
C600 LXI H C700 21 ; Initialize the HL register pair C601 00 ; C602 C7 ; C603 MOV A M 7E ; Move the content of memory to accumulator C604 MOV D A 57 ; Move accumulator content in to D register C605 RAR 1F ; Rotate accumulator right C606 XRA D AA ; Exclusive OR the content of D register C607 INX H 23 ; Increment the HL register pair C608 MOV M A 77 ; Move the accumulator content to memeory C609 HLT 76 ; Halt the execution
If 8 or 16 bit data is required for executing the instruction present in register/register pair and named of register/register pair is given along the register.this instruction is called register addressing mode instruction.for example:MOV B,A