Course Name: EE 3541: Introduction To Microprocessors: Academic Year 1440H/1441H - 2019G/2020G
Course Name: EE 3541: Introduction To Microprocessors: Academic Year 1440H/1441H - 2019G/2020G
Course Name:
EE 3541 : Introduction to Microprocessors
Student Name
Signature Signature
.-f
1-7
'1 J
Answer the Following Questions:
I. What do the following MOY instructions accomplish?
(a) MOY AX, BX
(b) MOY BX, AX
(c) MOY BL, CH
(b) MOY SP, BP
-·-- _(e) MOY AX, CS ······-· ......... ........ ... -····-··-
-- A)_(.o.p~.-· -B.L .ihto_J)( ........ . ·········- · ··--·· . ···-·. ·--·····- ····-···-· ·····--· ···-·-·- -
. )jfJJ ·-···- - ···- .. ··-·-····--· ·········· ······-········· ········- . · ·--··-·····-······•··· ·---·- -····-
__1)J _(.(2Vj --ih~-·-~11J Jsx. . . . . . . ··· · -· ·-·· -· ·-· . · · · -· · · ·--·-·..
__r)__cJ?.?1. -l H~.\\1.0 ..JsL··-······. ········-·-····-··· · · · -·· ·-·····-·--····· ··--·-·--·· .==:
- - ----- --- - - - - -· - --
2-7
't
3. List the 16-bit registers used for register addressing J
5. List the 16-bit segment registers used for register addressing by MOY.
·····•············----- -
························- - -- - -
···························- - - - - - - - -··- -
.. -···········-·· ··----
·····-···-··· ·-·· ··-··--····· ·· ·····-··-- - - - - - ----
7. What is wrong with the MOY DS, SS instruction?
. ··--·· ... ··-·--·····---··-- ... ········-·· -·······-···· . ----··-·····- ·-······· .... ············---
3-7
J. Select an instruction for each of the fol lowing tasks :
(a) copy BX into DX
(b) copy BL into CL
(c) copy ST into BX
(d) copy DS into AX
(e) copy AL into AH
Af-fJ.Q~___A 1._,.__D :.: ~-· ...- ................ - ....... ._....................... - .... ..... --
.... --·------ ... _ .. ___ , ......... _.._ .. ____.... . _........ ---- ..--·-..·---·.. -·-- · - --
e}_}J_Q_\l.__..f± }l_J_4 L ::-_ . ...........- ......- ........ -.......... ........ - ....... ...- ........ .............. -- .. -- ...-.• - ....--.. - --
.... - ..............· - - - · · - - -- - - - - --
----·-- ---
4-7
1o. Suppose that DS==0200H, BX==0300H, and D1==4001-1. Determine the memory
address accessed by each of the foll owing instructions, assuming real mode operation:
(a) MOY AL, [ 1234H]
(b) MOY AX, [BX]
(c) MOY [DI ], AL
_ . ..0 >.Xl b -r o 3 c-o \\ - _'b oc.\A _1- o J.P ..9 \-\.: \ '2 3 o \-\
12. Suppose that OS== IOOOH, SS=2000H, BP= IOOOH, and DI= IOOH. Determine the
memory address accessed by each of the following, assuming real mode operation:
(a) MOY AL, [BP+DJJ
(b) MOY ex, [DI]
(c) MOY DX, [BP]
o)C:S~\t, _loooq\ -
5-7
-
_\Jlu~i_\o L) 1 ":__\ 0. 10
\-t .- \1~co \.\..1- 0 1 ?.o \\.±.\oco.J \ :;[ 13.2.5QJAJ
e,) 0 \oD ~-- -\?~o~-~-+~-\·~·~~-~·\-~~~-~\\ '2?60 ~)
14. Suppose that DS= 11 OOH, BX=O2OOH, LIST=O25OH, and SI=OSOOH. Determine the
address accessed by each of the following instructions assuming real mode operation:
(a) MOY LIST[SI], EDX
(b) MOY CL, LIST[BX+SI]
(c) MOY CH, [BX+SI]
·-· · ---·--······--·-------·---- --·········-··-·- - - - -
C") QSx\o \\Duu _ _
v~x \u -r JtVJC,\\ -'".JSu ·\-\ \\u__;c1\\10'2~0 1\1 o~oo \--1{\\.;,?S o~1
6-7
'1 J
I 5. Suppose that OS=1300H, SS== 1400H, BP=IS0OH, and SI=OIOOH. Determine the
address accessed by each of the following instructions, assuming real mode operation:
(a) MOY AX, [BP+200H]
(b) MOY AL, [BP+Sl-200H]
(c) MOY AL, [Sl-01 OOH]
c) DSx\o n°00 \\
-·- ~ l o.r SJ .- ~\. ..- \ lo.D
..o. \Lt .0\0.1...})... o ..Lo.P \:1. ...:-:.. \}?.Q.Q... \-\ ······ ··
················· · · · - --
- - · - · · - ··- ·················· · · · · · · · - - -
- - -- - - - - - -·················· ·····- - - -
·-·······-···-··- - -- -·----
- - - - - · · · · · - · ····- · · · · · · - -- -
rl l
7.7