FA04-exam2

FA04-exam2 - UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
UC Davis 1 Hussain Al-Asaad U NIVERSITY OF C ALIFORNIA —D AVIS D EPARTMENT OF E LECTRICAL & C OMPUTER E NGINEERING EEC70—C OMPUTER S TRUCTURE & A SSEMBLY L ANGUAGE —F ALL 2004 E XAM II Student Information Instructions The exam is open book and notes. Print your name and your ID number. There are four problems in the exam. Solve all of them and show your work. If you need more space for your solutions, use the back of the sheets. Exam Grade Name ID Number Problem Maximum Points Student Score 13 0 23 0 33 0 41 0 Total 100
Background image of page 1

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

View Full DocumentRight Arrow Icon
UC Davis 2 Hussain Al-Asaad 1. S IMPLE P ROCEDURE (30 POINTS ) Write a simple procedure called divideby100 that divides the unsigned number in the reg- ister al by 100 and prints the result in the following format (d.dd), where d is a decimal digit between 0 and 9. For example, if we set al to 139 and we call the procedure (as shown below), then the procedure prints 1.39 on the screen. You may use the procedure WriteChar from the Irvine32 library.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/13/2012 for the course EEC 70 taught by Professor Wilken during the Fall '05 term at UC Davis.

Page1 / 5

FA04-exam2 - UNIVERSITY OF CALIFORNIA-DAVIS DEPARTMENT OF...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online