{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

lec19_f08 - $295.838 was $3856.4333 33.28 8 58.33.23...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
Image of page 5

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: $295 .838 . was. . . $3856 .4333 33.28 8 58.33.23 Ee‘wDBuSEBh \/ , .38: 98%. RN ASN.3, mg .84“ manna . . .EQSNESN . .mxcfiwmow .38 mNmomm 350ng MO 853% $3883 , 8%.on bafiommm 614014 9137in ‘ - .\ x ‘ \ NNSNNN. 292:8,1, IIIIIIIII if: 9-4 5:989 . w>w...\0\++0 £9.25 .8200 B. 2000 EON". . r.\. .mmEmew ucm 2539.. 229m .9550 ucm 22.03me «6.. $39.35... w.m:m_w .ohcoo £5. .9530 m6... . Snug—€25 $.28 @6806 can :89— 5.8.35.3. goo. m 5.? $5503 $0.. :< 3on memfluum ucm wbmc. $0.. €383.32 3m 8:355. <9 «6.. ">538 9.300.. cowgwoxm 6.00.: 32.2.8. h5.3.3. .0: .33.:an .xofim 5.9: :50: .8 9.02m. .Emn... .m fian— Eo: 0 .m < 80.65%? 5563”. Elsi...» m an at: 95...... b... an. .3355. “x0: 3... :83 E.m..m.>. >mummcu¢>> or... x095 53...; 29:3 2.. x83 .2232 Nam—US on an. ”3583.35 mEEOOQD .Ea 2.6 m=.=m>¢ “2.“ 2292.3 2.5.0:. “Em $.53 mEmu .0 >02 6.5;... .3 9: .EEm $2.200 5396 9,6 © E2 8qu “m 3 >02 S5633... "Nu. mem «33: r. a $3.53 , 0rd mum . . LC-3 ISA (Instruction Set Architecture) Memo - unit: 216 x 16 RAM Memory address register (MAR): 16 bits Memory data register (MDR): 16 bits word read from memory or word to write into memory Register file: general purpose registers R0, .. Processin unit: ., R7 each register has 16 bits , Other registers - e.g. PC, MAR - are not directly Note T 3\ addressable by the user, but are used by instrs. ALU Control unit: Program counter (PC): 16 bit address of next instruction. Instruction register (IR): 16 bit word from memory, interpreted as instruction. Condition codes NZP: Indicates whether last result was negative, zero, or positive. 1 bit each. Other components: Later «£3: E. “02:05 newto+owmn 6253.70; mowmohvum EoEos. o 2235. BfluoEE .8359. wommegm boEoEéoz 0 $650on 6:230 cm u_o sou—82 m_ Bo... mocoE gimme—294x . oumEoEg 52:9: .3359. oncogene no meg... . £353: EmEoEEoo MN “5-2. moab Ema . .o>_u_monnm .ohoNnN .m>=wmo:uz 2:3,. :0 comma 60300 223.28 Lao—030m $3030 955 "802 mghbhm—Pmm Emma. £9. £5; .mm cottoo Em ._._.m .._.w .<m._ in... ._n._ .3 #55965 Emu Bz dz< do< "mango Ame—gouge o: coscotoa on 3 20:28.0. xlillllllfiopzowxo on 8 20:03.52. £550:me mo :ozficomoae EmEm. lino—jou— :.o._.alo:bm:_ 3:098 :3 : 23:0:me ho “mm . llamm :o_yo:..._.u|mcl_ EEmoE wmmsmcfl ochmE 8:3 8 we. 0...: =< 950 w masoconEoo o_o=w_>.._wEEEmo.E 2:. Ammaomtzoma. Em 20.53.52: <2 ”.3 8TB ADD, AND, NOT Using Operate instructions — 12 A % ++g . 0’ " ('9. 090) E 3 [Whoa 154' 1: E :45 a, .E " a; E a 2 o In ._E. c E n: v Q to N V O z EMFE'QO? 0:332: + < .5++g+ 15:54:15 NN N N . mm oE EzEmgm mzz§z ii ii 1- iiig-i giiii EE EB? EEEEEE OEQEQ N 3! E II .- II; N $.- 4—! .. 3 .. 3 a 3 3 E a .3 5.3 =3 3 .3 cu '5 cu .cz as ea .. a at» 2|}:- 335 b mlb ow ow» mm a: Om 1514131211109 876543 210 DR <— SR1 + SR2,- set NZP DR 6- SR1 + sexmmms); set NZP DR (- SR1 AND SR2: set NZP 0101 DR e SR1 AND SEXT(imm5); set NZP IF ((n N)+(z- Z)+(p- 13)) 090° llmlSR Poms“; THEN pc <— pc + DEXTtpDoffsetm PC (- BaseR DR e NiLPD + SEXTSPCoffsetQN; _ Set NZ DR <- M[M[PC + SEXT(PCoffset9)]]; Set NZP DR <— M[BaseR + SEXT(offset6)]; Set NZP DR 6 PC + SEXT(PCfoset9); ‘Set NZP DR 6- NOT(SR); Set NZP PC(—R7 0011 mm PCoflsetQ M[PC + SEXT(PCfoset9)] (- SR "m PCoflsetg M[M[PC + SEXT(pDoffset9)]] <— SR superscript “+” denotes instructions that update the condition bits NZP In G/H ”/3 [08 AND (register) In: DR = SR1 AND SR2 . . REGISTER FILE 00000000000000“ 0000000000010001 R0 R1 R2 R3 R4 R5 Ex: AND R2, R5, R7 . 36 R2 <— R5 AND R7 ~ » » “7—001 I “(mm-m ~\ N W R3- ” 3,1- 16 "DR SKI SR3- ,___ J AND (immediate) ° 1 ° 1 “Elm DR = SR1 AND SEXT(imm5) REGISTER FILE ‘QID R4— R5 00000000000‘10‘001 Data is part of instr (2's compl form) sext(imm5): Sign extended leftmost, bit to' form a 16-bit word Example: I 11000 --> 1111 1111 1111 1000 k 5-bit 2‘s 16-bit 2's :mplement complement 6 of -8 of -8 Ex: AND R2, R5,#-8 4/ . R2 R5 AND SEXT(-8) . . . .1 z\2 A .. ._ \¢ £32.04 $92056 ..couo=bm£ 05 *0 525.098 EH 3.. .6 31.5 05 95 3v. . .cowoabms 90.. 93m m5 .6 0:685 bani 9: 02.0 .3 _ . _ $.53? neg... ... 33x . . . . 5:033:— .mm¢.uu< ... mziosz m_.o._ mEPm mEzE . 530235 3.. Ego? 9: League .05? 23:8 om 5&me new Ex. msmEoo E 3362 3355 “m5 mEzwmd Ommfiw Dm— mOmmMOOmn. at €225.34: 928:;02 8.. W32: .1... . ._\.. . .H. 0 m m m m m m . m u o - u w 2 m m m m w . P22. 3. i I .0. o o m u . m . .. . .. . I 3.3.... !. W»... m \ o. m w w . . . .. u 2.3!. mm... o ,o . m . , ) 9...... . . max. 5733‘» ’3.” o\.. on“ km. rm— MPm mean t l w. m 1.. m. x _ «lawlzuw .x. . a-.. .Em 38 * . fl + Hm. w + He w.&.:.£.fi2q53 .x. F-#.~m.~m RE .88 Cramp. Cam], .3 . .. n. he «a. e... P m #250 I... .\. .E E E on< «can 0 . 1. . L a... wwwxwmmwwwm. ddiflicae. LEE mm on... 58 R .m mm PR... HP 0.. .TM 223.. .x. 23%;. 92.... 88 m, w. m. M. . m melEEoo. lmjfiw O. wiluoom, 0.. .63». Wm. m. m, m, m, m, E :_ 853:8 m_ $828 mm m m m m m m . 08:3 20:80. beEmE E :3on 9: 28m. x. y. m m m w RP m _. 8 Esau h E0: whoa—:3: or: E5. A m A A A s WWWWW-WIW ................2 «ii : {\r. m. n.NZ.. .23.. . om. +..mm_. -- vex .m :52 28w . Amwuoo 8.2953 £5 msufim “mm . 2:: .mcosoca oum>so< . £3 3% «mafia mam—u w>os_ . 5:259: 3:09am 3% F m_ 83m t8: :25:me and. hop .m.m_ Es: ._o._u:oo p6 83m 83: wEEBfic 3 2.02.0 mm: .v mus—206.0 couwm . mmfluum Emigm . :25:me mm m: E v.53 ouoomo gamma mo: ..v m. .m Eggs. .. v mo: .N n I .‘ 0m 0 +A., mu F + on .v on . on v m<E —\ , :m DE n5 MOAmflM QM” WWVWWWWZ Qmfl SW” w.“ gmmtOUm om “cwEwu—OC— 0 203.5020 m w: 35 an: 300 . _. 5.32.” on. E mmwfium EoEwE E0: .295 :05”. . mmm QM” “Wmm mm #659: E0: :28:me :30". Jim: Luau. , ”mmm “Mm “Mmfi mm mum—Fan— awEEwmm< m..0>0 ZO_._.ODm_._.mZ_ :26:me 5.82 .351: ...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern