16 bit Assembly
Home Site Map Instruction Index
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.
Assembly Sample | Description |
---|---|
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 |
Assembly Sample | Description |
---|---|
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 |