understanding the addressing modes report

Upload: shahrul

Post on 01-Jun-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 understanding the addressing modes report

    1/12

    TITLE: UNDERSTANDING THE ADDRESSING MODES

    OBJECTIVE:

    In this experiment, st !ents "i## re$ei%e h&n!s'(n experien$e st !)in* the +eh&%i(r ( se#e$t-.// instr $ti(ns sin* !i erent &!!ressin* m(!es, "ith !et&i#s +e)(n! t)pi$ $#&ssr((m$(%er&*e0 S pp(rte! &!!ressin* m(!es &n! &!!ressin* m(!e $(m+in&ti(ns &re & 1e) &$t(r in!eterminin* & pr($ess(r2s p("er in terms ( $(!e e i$ien$)3 there (re the ## n!erst&n!in* (&!!ressin* m(!es is &+s(# te#) $r $i

    4ROCEDURES:

    C(mp#ete the (##("in* t&s1s0

    50 Enter the pr(*r&m pr(%i!e! in the 4r(+#em se$ti(n0 Assem+#e it, &n! hit the 6Exe$ te7+ tt(n in the &ssem+#) $(mp#eti(n !i(* +(x t( in%(1e the Sim #&t(r0

    80 Set p the Sim #&t(r2s Exe$ ti(n L(**in* &$i#it) t( #(* the instr $ti(ns, re*isters &n! the5-'+)te mem(r) &re& +e*innin* &t &!!ress 95///0

    0 Exe$ te the pr(*r&m step'+)'step, &n! i## in the entire T&+#e 50 ;? Be (re exe$ tin* e&$h instr $ti(n, tr) t($$ #&te the % e in the #&st $(# mn, &n! then $(mp&re it "ith the Sim #&t(r2s res #ts0 I )( (+ser%e !is$rep&n$ies, it is & $#e&r in!i$&ti(n th&t )( r n!erst&n!in* ( the in%(#%e!&!!ressin* m(!es is n(t )et per e$t0

    INSTRUCTION O4ERAND VALUESOURC

    EDEST SOURCE DEST

    BE

  • 8/9/2019 understanding the addressing modes report

    2/12

    RESULT

    5? M(%e@ '8,!(

    The instr $ti(n MOVE ;MOVE i$1? is se! t( p t sm# imme!i&te !&t& in & !&t& re*ister0The instr $ti(n is t"( +)tes #(n* &n! $&n h&n!#e $(nst&nts in the r&n*e '58. &n! 58;!e$im?0

    In m) ("n (pini(n, the

  • 8/9/2019 understanding the addressing modes report

    3/12

    8? M(%e&0# 95///,&/

    The instr $ti(n MOVEA $(pies &n (per&n! *i%en +) &n e e$ti%e &!!ress t( &n &!!ress re*ister0On#) "(r!s &n! #(n*"(r!s &re se!, &n! # 8 +its in the !estin&ti(n &re & e$te! ;si*nexten!e! i "(r!?0

    The &!!ressin* m(!es (r m(%e&0# 95///,&/ is Re*ister In!ire$t Mem(r) &!!ressin*0

  • 8/9/2019 understanding the addressing modes report

    4/12

    ? M(%e0# ' - ,!5

    - n m+er &re $#(se! t( 5- +it !&t& ( nsi*ne! % e th&t $(mes r(m / thr( *h - 0

    S( "hen - '- K8, then "e *(t // / 0 h) +e$& se - -K

  • 8/9/2019 understanding the addressing modes report

    5/12

    ? A!!&0" !5,&/

    e $h&n*in* the !&t& &!!ressin* #($&ti(n r(m 95/// t( 95// (r A/ &!!ressin* re*ister0

    The &!!ressin* m(!es (r &!!&0" !5,&/ is re*ister in!ire$t mem(r) &!!ressin*0

  • 8/9/2019 understanding the addressing modes report

    6/12

  • 8/9/2019 understanding the addressing modes report

    7/12

  • 8/9/2019 understanding the addressing modes report

    8/12

    It #((1s #i1e $(mp#i$&te! + t the tr th is "e !(n2t $h&n*in* the #($&ti(n ( &/ ,&!!ress re*ister0e (n#) p t !/, !&t& re*ister $(nt&in (

  • 8/9/2019 understanding the addressing modes report

    9/12

    .? M(%e0" !/,!8

    The &!!ressin* m(!es (r m(%e0" !/,!8 is re*ister !ire$t &!!ressin*0

    ? S +0# !8,!/

    The &!!ressin* m(!es (r s +0# !8,!/ is re*ister !ire$t &!!ressin*0

  • 8/9/2019 understanding the addressing modes report

    10/12

    5/? Ne*0" 95//-

    e p t the 9< < !&t& t( the mem(r) ( 95//-0

    The &!!ressin* m(!es (r Ne*0" 95//- is &+s(# te sh(rt &!!ress0

  • 8/9/2019 understanding the addressing modes report

    11/12

    55? M(%e0# !8,';&/?

    e p t the !&t& re*ister !8 t( the ne" &!!ress re*ister &/ "hen its !e$re&se +) , +&se (n(p$(!e !&t& &n! (per&n! !&t& st&tes th&t #(n* "(r! &re +ein* se!0

    ;95// '9 K95///?

    The &!!ressin* m(!es (r m(%e0# !8,';&/? is &!!ress re*ister in!ire$t "ith pre'!e$rement0

  • 8/9/2019 understanding the addressing modes report

    12/12

    INSTRUCTION O4ERAND VALUESOURCE DEST SOURCE DEST

    BE