Tutorial 2 KE26604
Computer Architecture & Microprocessors (CAM)
1. For each of the following Logical addresses of 80386 microprocessor, calculate the Physical
address of the memory:
i. 1000:1234H
ii. 23FB:FAB3H
iii. 1234:FFB3H
iv. 1000:12FAH
v. F000:1245H
vi. F300:3467H
vii. 10FF: 1144H
viii. 3FFF:1234H
2. Briefly, defined the following terms:
i. Assembler
ii. Assembler Directives
iv. Source code
v. Object code
iii. Linker
vi. Text Editor
3. Describe the structure of an assembly language program and its statement.
4. With the help of an appropriate diagram and example, explain in detailed the following
addressing modes of 80386 microprocessor:
i.
Register addressing
ii.
Register Indirect addressing
iii. Base-plus-Index addressing
iv.
Base Relative plus Index Addressing
5. Briefly, describe the operation of each of the following instructions :
a. PUSH AX
b. POP AX
c. XCHG AX, BX
d. ADD AX, [BX] e. X-OR AX, 0Fh
f. BSF AX, [BX + DI]
g. LOADSW
h. STOSD
i. MOVSB
j. REP MOVSB
k. INC CX
l. SUB AX, [BX]
m. DEC LIST
n. ADC LIST, [BX] o. MUL BX
6. Given that DS = F000H, BX = C300H, DI = 00A3H and LIST = 0100H, determine the
physical memory address accessed by each of the following instructions assuming real-mode
operations :
i. MOV AX, LIST[BX + DI]
ii. ADD CX, LIST[DI]
iii. AND AX, [BX + 100]
iv. SUB AX, [BX + DI]
7. A program that perform the following tasks:
Accept a long sentence
Convert it to upper case
Display the result on the screen
Design this assembly program using flowchart and pseudocode only.
8. What decimal value is represented by the following 32-bit floating point number given in
hexadecimal form?
i. C17B000016
ii. BBC8000116
iii. A17B000016
iii. 89AF00FF16
9.
Express the following number as a 32-bit and 64-bit floating point number in hexadecimal
form.
i. 36.562510
ii. 65.875610
iii. 198.778510
iv. 1234. 5678910
1