The LHLD instruction

The LHLD (Load H and L Registers Direct) instruction loads a 16-bit value from the specified memory location into the HL register pair.

The LHLD instruction format

InstructionDescription
LHLD addr16 This format is used to load a 16-bit data value from the specified memory location into the HL register pair.

Usage example

; Author: Evgeny Sergeevich Dovgopolov

data: db 10h, 20h

main:
    lhld    data  ; Load the value from memory at the address data into the HL register pair
    mov     a, l  ; Copy the value of register L (low-order byte) into register A
    mov     b, h  ; Copy the value of register H (high-order byte) into register B

    hlt           ; Stop program execution

Example taken from the textbook "HANDYFAR - MASM (Evgeny Sergeevich Dovgopolov)".

Processor status flags

S
No
Z
No
AC
No
P
No
CY
No