quiz2 - ================================= movl %edx,...

Info iconThis 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:
Background 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

Ask a homework question - tutors are online