You are on page 1of 2

Application of LES and LDS:

LES: Load memory double word into word register and ES.

Algorithm:

 REG = first word

 ES = second word

Example:
ORG 100h

LES AX, m

RET

m DW 1234h
DW 5678h

END

AX is set to 1234h, ES is set to 5678h.

LDS: Load memory double word into word register and DS.
Algorithm:

 REG = first word

 DS = second word

Example:
ORG 100h

LDS AX, m

RET

m DW 1234h
DW 5678h

END
AX is set to 1234h, DS is

set to 5678h.

DATA TRANSFER INSTRUCTIONS


Mnemonic Meaning Format Operation Flags affected
LES Load register LES register None
and ES 16EA

LDS Load register LDS register None


and DS 16EA

You might also like