
Instruction Set
4-138
LES
Load ES with Segment and Register with Offset LES
What It Does
LES copies the segment portion of a full address stored in a doubleword to ES, and copies
the offset portion of the full address to another register.
Syntax
Description
LES reads a full pointer from memory and stores it in a register pair consisting of the ES
register and a second operand-specified register. The first 16 bits are in ES and the
remaining 16 bits are placed into the register specified by
offset.
Operation It Performs
Flag Settings After Instruction
Form
Opcode
Description
Clocks
Am186 Am188
LES
r16,m16:16
C4
/r
Load ES:r16 with segment:offset from memory
18
26
LES
offset,pointer
/* copy offset portion of pointer */
offset = pointer;
/* copy segment portion of pointer */
ES =
p 2;
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Processor Status
Flags Register
reserved
OF DF
IF TF SF ZF
AF
PF
CF
? = undefined; – = unchanged
–
–
–
–
–
– res – res – res –
Summary of Contents for Am186 Series
Page 1: ...Am186 and Am188 Family Instruction Set Manual February 1997...
Page 10: ...Table of Contents x...
Page 18: ...Programming 1 8...
Page 40: ...Instruction Set Listing 3 14...