You are here : assembly8086LDS

LDS - 8086

Load memory double word into word register and DS.

Algorithm:

  •  REG = first word
  •  DS = second word


Syntax

LDS Reg,memory


Example

.model small
.data
  memory dd 12345678h
  ...
.code
  ...
  ...
  LDS AX,memory
  ;AX is set to 1234h, DS is set to 5678h
  ...
  ...
  end


Output / Return Value


Limitations


Alternatives / See Also


Reference