The SHLD instruction

The SHLD (Store H and L Registers Direct) instruction stores the 16-bit value from the HL register pair into the specified memory location.

The SHLD instruction format

InstructionDescription
SHLD addr16 This format is used to store the 16-bit value of the HL register pair into the specified memory location.

Usage example

; Author: Evgeny Sergeevich Dovgopolov

data: db 00h, 00h

main:
    mvi     h, 10h  ; Load the hexadecimal value 10h into register H
    mvi     l, 20h  ; Load the hexadecimal value 20h into register L
    shld    data    ; Store the HL register pair in the memory location (data)

    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