Quiz2.sp10

Quiz2.sp10 - Signature _______________________...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Signature _______________________ Name_________________ cs30x____ Student ID ______________________ Score: Quiz 2 CSE 30 Spring 2010 #1. Assume a signed 32-bit int variable x has some non-zero value stored in it. Write 5 different single statements (loops and function calls are not allowed) in C to set the value in variable x to zero. __________________________ __________________________ __________________________ __________________________ __________________________ #2. What is the value ( in hex ) of %o1 after each set of instructions: a) set 0xABCD1234, %o1 sra %o1, 20, %o1 Value in %o1 at this point is 0x ______________________________________________ b) set 0xABCD1234, %o1 set 0x1234ABCD, %o2 xor %o1, %o2, %o1 Value in %o1 at this point is 0x ______________________________________________ c) set 0xABCD1234, %o1 set 0x1234ABCD, %o2 and %o1, %o2, %o1 Value in %o1 at this point is 0x ______________________________________________ #3. What gdb command should you use to print the contents of a memory location where the address of the...
View Full Document

Page1 / 2

Quiz2.sp10 - Signature _______________________...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online