Professional Documents
Culture Documents
Chapter 4
Chapter 4
MOV Instruction
PUSH/POP Instructions
Load-Effective Address Instructions
LEA (Load effective address)
LDS (Load data segment)
LES (Load extra segment )
String Data Transfers
Miscellaneous Data Transfer Instructions
INTRODUCTION
Flags
Mnemonic Meaning Format Operation
affected
Example 1:
What is the result of executing: LDS SI,[200] ?
Before Execution: DS = 1200H, SI = 0001H
Address Contents
12203 13
12202 00
Physical address = DS×10+200=12200H 12201 00
Example 2:
What is the result of executing: LES BX,[DI]?
Before Execution:
BX = 0000H, DS = 1000H, DI = 1000H
Address Contents
11003 89
11002 30
Physical address = DS×10+DI=11000H 11001 6F
Solution:
LAHF and SAHF transfer the least significant flag byte to and from the
AH register.
The following table shows these instructions:
Flags
Mnemonic Meaning Format Operation
affected