You are on page 1of 2

Name: __________________________________________ Score: __________________

Course & Section: __________________

I. Tracing

The initial contents of the 8088 CPU register and some memory locations are shown below. Each set of questions
is independent of the others, so always refer back to the initial state. All values are in hexadecimal notation. Your answer
should also be in hexadecimal. If there is an invalid syntax in the instruction then write “ERROR”. If answers cannot be
obtained due to lack of given, then write “N/A”.

AX: 1994 SP: 000F CS: 0000 OF: 0


BX: 000A BP: 1214 DS: CADE ZF: 0
CX: 0129 SI: 0006 ES: 5000 SF: 0
DX: 0725 DI: 000E SS: 8200 PF: 0
IP: 0000 CF: 0
AF: 0

A. MOV SI, DX

1. What is the addressing mode of the source operand?


2. What will SI contain after execution?
3. What will DX contain after execution?

B. MOV BX, 1128

4. What is the addressing mode of the source operand?


5. What will BL contain after execution?
6. What is the effective address of the source operand assuming that opcodes occupy two (2) bytes?
C. MOV AX, [0005]

7. What is the addressing mode of the source operand?


8. What is the effective address of the source operand?
9. What will AX contain after execution?

D. MOV DI, GAM[BX]

10. What is the addressing mode of the source operand?


11. What is the effective address of the source operand?
12. What will DI contain after execution?
13. What will BX contain after execution?

E. MOV CX, [BP]

14. What is the addressing mode of the source operand?


15. What is the effective address of the source operand?
16. What will CX contains after execution?

F. MOV DX, GAM[BX][SI]

17. What is the addressing mode of the source operand?


18. What is the effective address of the source operand?
19. What will DX contain after execution?

G. MOV GAM[DX], AX

20. What is the effective address of the destination operand?

H. MOV DI, [DI]

21. What is the effective address of the source operand?


22. What will DI contain after execution?

I. MOV BL, [BX]

23. What will BX contain after execution?


24. What is the addressing mode of the destination operand?

J. MOV BL, [GAM]

25. What will BX contain after execution?

You might also like