Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Solved Final Exam for Computer Based Systems in Engineering Professors | ECEN 3213, Exams of Electrical and Electronics Engineering

Material Type: Exam; Professor: Johnson; Subject: Electrical and Computer Engineering ; University: Oklahoma State University - Stillwater; Term: Spring 2004;

Typology: Exams

2010/2011

Uploaded on 07/18/2011

koofers-user-dna
koofers-user-dna 🇺🇸

10 documents

1 / 7

Toggle sidebar

Related documents


Partial preview of the text

Download Solved Final Exam for Computer Based Systems in Engineering Professors | ECEN 3213 and more Exams Electrical and Electronics Engineering in PDF only on Docsity! BH ECEN €263 Advanced Blgttal Computer Design & ECEN 3213 Spring ‘04 Final Exam WRITE YOUR NAME HERE Answt~ All questions mast be answered on test paper! Open Book, Open Notes All questions are for the 68HC711E9 microprocessor. 1. (10 pts.) Convert the following numbers to the number represemution requested. Assume that all numbers are represented in one byte. a. convert SEE to unsigned decimal 128 48 FEE =D he ot _ 223g ¢ b. convert SEE to signed decimal te 48 FEE ete ine 238 —- qosival® -= ~1o-272 7th s. convert 97 to hexadecimal as 97 =64t32 41 = Zatiove = $6 I _,_ & convert -97 to hexadecimal a8 472 (6tz ri) = ~yellogdal =o jaaltliz £$49F 2. (10 pta.) The instructions in the table are executed in the order shown. Fill out the fol- lowing table by giving the contents of the A-register (in hexadecimal or binary) and the values of the binary values of the NZVC flags after each of the instructions is executed. instruction. contents of A NZVC Ida #3 fF D 7-7) ts adda #510 Jov ove! ah copa #17 $5 P igad 8D - bil = FOP t IEE anda #$FO 400 O19d = HFe ECEN 3213 Sormg "Od Fival Exam Miay 7, 2004 pie | of? @ BCEN 8253 Advanced Digital Computer Dasign & 3, (15 pts.) Write assembly code for the following peeudo-code. Assume this is part of a larger program and that Avar and Bvar have been defined as bytes in RAM. “Hf (Aver < Bvar) \, Avar=Avart 1; if (Avar = Bat} { ” Avar = Aver & $55; Bvar = Byar | §CC; } if (Avar > Bvar) Bvar = Byar +1; \da, Avar Cpa Byar bkt Ince . he & He te re done Inca tnee * Ave it done Aver 4 Aver t ond te t sla tan ovew Sti bunt AgSs Avax— bya atte Bar ECEN 3243 Spring “04 Final Exam May 7, 2004 page 2 of 7 Ys HB ECEN @283 Advanced Digttal Computer Design & 7. (15 pts.) Fill in the table to show the stack address and contents at the break points indi- cated (before the instructions executes) in the following code. ea Ida #503 psha Ida #5E5 SUB rie ——— Part a. Show the stack address and contents after the jsr and before the pshx., men ory memory address data <— SP TLE dnd se I s o FE | takasm ECEN 3215 Spring “04 Firm) Exant ‘May 7, 2004 pega Sof 7 Mm ECEN #243 Advanced Blgital Computer Design @ b. Show the stack address and contents after the sta and before the pula... memory memory address data cape ex Aves E U3 - E ” "-@. Show the stack address and contents after the rts and before the stop.. memory memory address date ECEN 3213 Spring “04 Final Exaxe May 7, 2004 page 6 0f7 @ EFCEN 6253 Advanced Digital Computer Perign & 8. (10 pts.) Provide short definitions for the following terms. 4, interrupt vector Address adcccted Lh taredr dertupt whik Conhuns the Stan sing address of dle interrupt 5 svi whin. = Let fo ™ Dr the wt aproge-t, b. interrupt service routine } A ml af tole termartd Sy MC Had $ entuune eA chons for pespinding & Ae berry t ¢. How is rti different than rts Sine te Stmph st) mah ry sey Grcludig Pe) to be pusher onty the stack | ree pmsh pectore. all nadhars fmm the stack (richer pe), Smee jse omy pusks PC ont He stuk, rts only recdures PO fren de sted, —t ECEN 3213 Spring "04 Fie! Exam May 7.2004 page 7 of?
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved