16 bit Assembly

Home   Site Map   Instruction Index  


LEA   - Stores Address Instruction

The LEA instruction is used to store the effective address in a Register. Segment registers cannot be used.

This command has 3 parts, Instruction, Register, 16 bit memory address.

LES using a memory address

Assembly SampleDescription
MOV BX, 0x0345;  Assign the memory address of the Pointer
or
MOV BX, DataAddress;  Assign the memory address of the Pointer
LEA AX, [BX];  Call LDS

Alternate method

Assembly SampleDescription
MOV AX, 0x0005;  Assign the memory address to a Register
MOV AX, DataAddress;  Assign the memory address
  using a Register

Assembly Sample Description   16 bit Machine Code
LES AX, [BX];  Save the memory address in the Register   8D 07




Last Update 11/02/2023