Course Name:: EE 3541: Introduction To Microprocessors
Course Name:: EE 3541: Introduction To Microprocessors
Course Name:: EE 3541: Introduction To Microprocessors
Course Name:
Student Name
Group No.
ID No.
First Term
Teaching
Assistant/Lecturer Notes Total I
.
10
Eng.: Instructor Name:
Prof. Fayez F. M. EI-Sousy
Signature
Signature
l:b _cf
-
1- 12
/
/
/
--,
'i J
Answer the Following Questions:
. _L~'1:! .~.re .the four build!1.~g_.~. ~qc,~~of amiCf(?£1"~.~essor SYl!~.m? .......... .
--·---·.L-.,.\\p.l,...L.J~~1 if _..._ - ............ _. ___ . - . ... ___ . --· -............ _ _ __ _ __
__ __..7_~ . . a.(At.. r-2l,\. L .llitLt.- . . -. . . . . ..------·--·- . . . . . .-..... ._______ . . ._. _. . . _ . ______.. _ ·- . . . ..
12- P\ )C r:o -FI .>C.e5l 1n,1 \,\~11 f
- .... _. _._4_. ..._l1L~n1.. D.L.j-_ . .\Lllt1..1_ . ....... .... - -....... - ...--....-.. --.- . ............. _ _ __ .._ __
_
.............................. . ...... ......................... - ...... ............ - -- - - - - -.......·-··· _. _.. ___ ....... ...
. . . ..........-....- ............-.. ..... ... ........ .................... - - - .....- ... ... -.... _______ ....................... __ .. .................- ....
·····-·· ............ - ........ ............................... .-..................... ____ ....... _. .......- ......._... __ ...................... ..
- -- · -- - - - - - - - ..........................._..... - -
.......................... ................ ...... - -- - - - - - - ... ............................- . ..- -...............
__________ _
.......
3. Mention the address capability of 8086 and also show its memory map .
______ _ _ ___ ____ _ .. ....- _____________
-.......... ... _. ..
-1~ - - == --
~.....-.....;
_............- - - - - - - -- - -
=. .. .. .. . .... .. .. ...
-
-----t . -.. -·- .
1.- - ..
_____
r oooo'rl
_. ·--- .....---··...
---· ...........- .. .
. ·--- - - ---------
I~ 2.. 12
I
I
't
4. Describe memory segmentation scheme of 8086.
--·--111K_,...m. ±.k.X'. J/21 I:?.-· Co-.. 6-&----•-"-Ui. LJ-1..d_._ 1±.o-l 6__s.~-0v!'.1.e .e.~.dc_.JJ).~.
1'.\. ___ lfj___ _
6. Which processing unit for the 8088 microprocessor is the interface to the outside world?
Eii c;
- - - - - - - - - - - - - - - - - - - ······-··-·-·---········-- - - - - - - - - - - -
7. What are the length of the 8086' s address bus and data bus?
- - - - - - - - · · ·- .. ·-·-· .. --------·------····-··-·-·· · - - - - - - - - - - - - · - - - - --
--------· - - - - - · - - - - · - - - · - - - - - - - - --
3- 12
8. List the elements of the execution unit.
- - - -- .............. .........· - · · · - - - - - - - - - --
I 0. How many registers are located within the 8088 microprocessor?
--- _ _______
..
12. Is the mem01y in the 8088 microprocessor organized as byte, word or doubleword?
------ -- -- - -- --
4-12
L
ti EP
13 • Which of the 8088 's internal registers are used for memory segmentation?
14. What register defines the beginning of the current code segment in memory?
cs
···-·-·····---
- -- - · -·-··············· · · · - -- - - -- - -- - -- - - - - --
- - -- - - - - -- - - - - · ·- ···-·······--···-·····- - - - - - -- - - - - - --
- -- - - --· - · -- - --
------------····- . ..- - - · - - -- - --···-·--- --
.- - -- · - · - ··- - -- -
I~ 5-12
I
L
~6 - What happens to the value m IP each time 8088 ,mcroprocessor completes an "''
instruction
/
---·--------·
----------- -
-· · ----------- ---
- -- -·- --- ------- ----------- --- -
------ - - - - ---- -
--------·- .... --
.-i:_ 1
-- ----- --
6 - 12
21. What do SI and DI stand for?
--·- ·· ···- ~o-',J.'1._0e_i V\J e.x. ..... --·-·------· - -·-· --····--·-··---·· - - · --·- -· . . ·----- - - -
- -----· _.c\..es.l-i 1-1"' Ii ~.J\ .._..il-'.d..e.-r __ ·- . . -.. ·-..---·-···-----·--·-·---.. ···-· - - ·--·--· _. __._
I'> I\ c;;_vv;;;i _ _ _ _ __ _ _ _ __ _ _
4 ;I
- - ~ - - - - -- - - - - - - - - -. ..........- ..- .. ____
2\ - 1 1 t <-" ( es,. I_r _]5 _a ! ( J _ _ __ __ _ _ _ _ __ _
-- .........- - · - · - · - - - - -
7. 12
24. What does TF stand for?
-···---· ------
Z:tr;,.>-c~
- -2J--=-~.1:~s- - - - -·-- · -· -·- ·---·---···-·•··········-···-·············· · -· · ·-···-·-· · · · -· · ·-·-·
26. What two address elements are combined to fonn physical address?
27. Discuss logical address, base segment address and physical address .
8- 12
I
I
I 7
Y- '1
I 28. Describe how the 20-bit physical address is generated.
30. Calculate the value of each of the physical addresses that follows . Assume all numbers
are hexadecimal numbers.
(a) 1000: 1234
(b) 0100:ABCD
(c) A200 : 12CF
(d) B2C0:FA12
- - ---
c\J g 2 c. ~-.ll~-1.ul. -r J A1_1
- - -- - - - - - - - ---··-·· - -- -----···--·---·--- - - --
-- C'L61 '1- __ _ _ _ _ _ _ _ _ _ _ _ _ __
- - - - -- - - - - -- - -
9-12
31 . Find the unknown value for eacl f . '::...r..:
numbers are he xa, decm,a
· 1numbers. 1 0 th e followmg physical address. Assume all
(a) A000:? ==Ao 123
(b) ?:14DA==235DA
(c) D765 :? ==DABCO
(d) ?:CD2 1==32D2 1
· - - -------------
------
(J) l I- J t UI 1
--------------
32. Find the memory address of the next instruction executed by the microprocessor, when
operated in the real mode, for the folJowing CS:IP combinations:
(a) CS = J 000H and IP = 2000H
(b) CS = 2000H and IP = IO00H
(c) CS = 2300H and JP = IA00H
(d) CS = JA00H and IP = B000H
(e) CS = 3456H and IP = ABCDH
--------
- _ q-) __u.K__h .± T L l.2.!...-b H
_ b) _,, _____::_ 1, _ :;,... ·1.1 L c i 11
_ _() 1, r IL _ .. • 24-tLt:i.9 ___ _l·l _
-- -- - -
c.\ ) ,, /, _:_J_~~ o_c _!::I _ . _
Q._) f r, _ _>SJ l _\j .. __
I 0- 12
I
't
- - - - - - - - -----· --- - -
33 . The stack memo1y is addressed by a combination of the 5 l·o- cl(, segment plus
)tc1ic \:; offset.
---- ----
- - - - -- - ----- - - - - - - -- - - -- - -- - - - - - -
34. If the base pointer (BP) addresses memmy, the St li- C: \C segment contains the data.
---·------- ---- - - - -- -
- - - - - ----- - - - - - - -- - - - - - -
---
---------------- - - - - - -- - - - - - -
35 . What is the function of the stack?
- -- - - - -- - - - - - - - - - - - - - - - · -- - - -
--------------- -- - - - - · - -
--------•·-----·- - - - . --·---- ---- - -- - - - - - - - --
- - - -- - - - - - - - - - - ----- ---- - -- - - - - - -
1_: 11 - 12
36. Dete1mine the memmy location addressed by the following 8086/8088 register
combinations:
(a) DS = I000H and DI =2000H
(b) OS = 2000H and SI = l 002H
(c) SS = 2300H and BP =3200H
(d) DS =A000H and BX = I000H
(e) SS =2900H and SP = 3A00H
J Q.>_Xl(,)._.U)J _ _ :-:__ \Loot."' \-\..__.__ . . ... ... . ..... --- --·-·--·--.. ··-- -· · · ....... ----·----- ·- ·
\r)) f)~..1'.Jl2.. J .).__J___1..\_oo2. JL ··--· ..........._. - - --------·· --------····-·---
---W~xJ.o_1_.QJ1_ jJ.J. o.o._ \:1 _-· ·---··--- -·---·- . _ _ _...... _·-- - -
___l)_.\)'.)."'"_1:9__~11..__ ~.1.o~o -L\ ______ .___ ._ ____ ...........................
e:>) ~\ \ \ C> t-\i) ·1C Aoo \\
12-12