052.doc - King Fahd University of Petroleum Minerals Electrical Engineering Department EE-390 Exam-1(052 27th March 2006 Prob.1 Prob.2 Prob.3 Total

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

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

King Fahd University of Petroleum & Minerals Electrical Engineering Department EE-390; Exam-1(052); 27 th March, 2006 Prob.1 Prob.2 Prob.3 Total Answer the following questions in 1.15 hour Name : Section : 1 I.D. 1(a). Use String-instruction with “REP” prefix to a program that will copy five data words from memory location starting from DS:1050 H into a memory location starting from ES:2050 H . TITLE "Quiz3" .MODEL SMALL .STACK 032H .DATA .CODE MOV AX,@DATA MOV DS,AX ____________________________ ____________________________ ____________________________ ____________________________ ____________________________ MOV AX,4C00H INT 21H Dr. Sheikh Use only the given lines
Image of page 1
END 1(b). Execute the following program and find the required register and memory contents. use a subroutine and XLAT problem
Image of page 2
2(a). Write a program that will use indexed addressing mode to load the memory content of location DS:3456 H into Data Segment register (DS). Use the given displacement of 34 H . Use only two lines of programming code. Line 1: _____________________________________________ Line 2: ______________________________________________ 2(b). Write a program that will subtract the double-word stored in CX,DX register FROM the double-word stored in AX,BX and store the result in AX,DX using
Image of page 3
Image of page 4

You've reached the end of your free preview.

Want to read all 4 pages?

  • Spring '13
  • Iqbal

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors