quiz2 - ================================= movl x 0x16(x...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 220: Computer Systems II: Architecture and Programming Fall 2009 - Section A0 Quiz #2 - 2009/09/30 Name: ______________________________ ================================================================================ 1: Circle which one (1) of the following represents how the number 0x87654321 would be stored in the memory of a 386 computer (each hexadecimal pair represents one byte in the computer's memory): a) 0x78 0x56 0x34 0x12 b) 0x87 0x65 0x43 0x21 c) 0x21 0x43 0x65 0x87 d) 0x12 0x34 0x56 0x78 ================================================================================ 2: Assuming ebx contains a 0x10, and edi contains a 7, what actual memory offset (address) will be written to by the following instruction:
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ================================= movl %edx, 0x16(%ebx, %edi, 2) ================================= ================================================================================ 3: Circle which one (1) of the following is the number of times the loop instruction will jump in the section of code shown below: ======================== movl $6, %ecx begin: decl %ecx loop begin ======================== a) 1 b) 2 c) 3 d) 4 e) 5 f) 6 g) 7 h) 8 ================================================================================ 4: Compute the following hexadecimal quotient (ignore any remainder): 0x5550 / 0x28--------...
View Full Document

{[ snackBarMessage ]}

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