031.doc - King Fahd University of Petroleum Minerals Electrical Engineering Department EE-390 Exam-1 Prob.1 Prob.2 Name Prob.3 Total I.D Problem No 1

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

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

King Fahd University of Petroleum & Minerals Electrical Engineering Department EE-390; Exam-1 Prob.1 Prob.2 Prob.3 Total Name : I.D. Problem No. 1 Write a program to compare two memory blocks A and B in the data segment. The range for memory block A is 2000h-203Fh and the range for memory block B is 4000h-403Fh. The program needs to count the number of mismatches in these two memory blocks and this number will be loaded into the memory location 1000h as a binary number. A mismatch occurs when the two corresponding memory locations (for example 2000h and 4000h) have different byte values in them. MAIN PROC FAR MOV AX, @DATA MOV DS, AX ;your program will fit below MOV AH, 4Ch
Image of page 1
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 3 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