You are on page 1of 4

‫أﺳﺋﻠﺔ اﻟـ‬

ADDRESSING MODES
ADDRESSING MODES Examples

Question #1

Solution #1

Example #2

Given that

BX = 2500H SI = 5000H Displacement = 1000H IP= 2000H

Determine the e ective address for the following addressing modes:

1. Immediate

2. Register using SI

3. Direct

4. Register indirect using BX

5. Base

6. Index

7. Base Index

8. Base index relative.

ff
ADDRESSING MODES Examples

Solution #2

1. For immediate addressing mode e ective address is the content of the IP, so EA = 2000H.

2. For register addressing using SI, the EA = 5000H.

3. For direct addressing using the displacement, the EA = 1000H.

4. For register indirect addressing using BX, the EA = 2500H.

5. For base addressing using displacement, the EA = 2500H + 1000H = 3500H.

6. For index addressing using displacement, the EA = 5000H + 1000H = 6000H.

7. For base index addressing the EA = BX + SI = 2500H + 5000H = 7500H.

8. For base index relative addressing the EA 1000H 8500H. = = BX+SI+ Disp = 2500H + 5000H +
1000H = 8500H.

ff

You might also like