Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Does it avoid use of underlining?

Answered: 1 week ago