051.doc - King Fahd University of Petroleum Minerals Electrical Engineering Department EE390 Exam-1 Prob.1 Name Prob.2 Prob.3 Total I.D Section 1 Write

051.doc - King Fahd University of Petroleum Minerals...

• 3

This preview shows page 1 - 3 out of 3 pages.

King Fahd University of Petroleum & Minerals Electrical Engineering Department EE390 Exam-1 Prob.1 Prob.2 Prob.3 Total Name : I.D. Section 1. Write an efficient procedure called MUL11 to multiply AX by 11 (decimal) without using MUL instructions, (just using shift, Add, and Move). The result will be returned in AX. MAX 7 lines. MUL11 PROC MUL11 ENDP 2. For the given values shown in the table { assume the memory contents of the
addresses in between the given addresses (in the table) contain zero values }; Register contents Memory addresses (PA) Memory contents (Hex) Memory addresses (PA) Memory contents (Hex) (AX)= 0067 H (01100 H )= 10 H (01201 H )= 00 H (BX)= 0020 H (01101 H )= 00 H (01210 H )= 40 H (CX)= 0030 H (01120 H )= FF H (01211 H )= 00 H (DX)= 0040 H (01121 H )= FF H (01220 H )= 30 H (DS)= 0100 H (01130 H )= 08 H (01221 H )= 00 H (SS)= 1100 H (01131 H )= 00 H (01230 H )= 40 H (SI)= 0100 H (01150 H )= 02 H (01231 H )= 00 H (DI)= 0200 H (01151 H )= 00 H (01240 H )= 10 H (CF)= 1 (01200 H )= 30 H (01241 H )= 00 H What is the result produced in the destination operand by executing the instructions of each of the following two parts (each part starts from the same conditions above).

You've reached the end of your free preview.

Want to read all 3 pages?

• Spring '13
• Iqbal

What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern