Question: Name: Date: 2 7 April 2 0 0 9 Number: EENG 4 1 0 / INFE 4 1 0 - MICROPROCESSORS I Midterm Exam

Name:
Date: 27 April 2009
Number:
EENG410/INFE410- MICROPROCESSORS I Midterm Exam
\table[[2,],[3,],[4,],[T,]]
Instructor: Dr. Hasan Demirel
Read the Following Instructions Carefully:
The duration of the exam is strictly 100 minutes. No extra time will be given.
Answer each question to a separate sheet on your answers booklet.
Return the question sheet along with your answers booklet.
QUESTIONS
(%18) What will be the values of the specified registers and flags after the execution of the following instructions?b) MOV AX,29FEHMOV CX,8C03HSHL AH, CLSBB AX, CXAX=?, CX=?,CF=?, PF=?, AF=?, SF=?, ZF=?c)(%7) Write a sequence of instructions that counts number of 1s in registers AX and BX. Then, the content of the register with the higher number of 1s is copied into register DX.2.(%25) Write the definition of a subroutine which would Capitalize Each Word in a given sentence in the following data segment. Note that, in a capitalized word, only the first letter is uppercase and rest of the letters is lowercase.Hint: Lowercase characters are ordered between ' a '(61H) and ' z '(7AH) in the in the ASCII Code table. For lowercase letters, bit 5(d5) of the ASCII code is 1 where for uppercase letters it is 0. For example,
\table[[Letter,Binary,ASCII],[h',01101000,68H
 Name: Date: 27 April 2009 Number: EENG410/INFE410- MICROPROCESSORS I Midterm Exam

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!