Quiz2.sp09

Quiz2.sp09 - Name_ cs30x_ Score: Signature _ Student ID _...

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

View Full Document Right Arrow Icon
Signature _______________________ Name_________________ cs30x____ Student ID ______________________ Score: Quiz 2 CSE 30 Spring 2009 #1. In a SPARC assembly instruction which takes 3 operands (src1, src2, and a destination), which is the only operand which can be an immediate constant (for example, 5 or -99)? _____________ What is the range of values that can be used as an immediate constant in such an operand? _________________ If a constant value outside of this range is needed, what instruction must you use to properly put this constant value into a register to be used as the operand in such an instruction? ___________ What value do you get when you read from register %g0? ____________ #2. What is the value ( in hex ) of %o1 after each set of instructions: a) set 0xCABAFEED, %o1 sra %o1, 12, %o1 Value in %o1 at this point is 0x ______________________________________________ b) set 0xCABAFEED, %o1 set 0x4D3C2B1A, %o2 xor %o1, %o2, %o1 Value in %o1 at this point is 0x ______________________________________________ c)
Background image of page 1

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

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

This note was uploaded on 08/31/2011 for the course CSE 30 taught by Professor Ord during the Fall '08 term at UCSD.

Page1 / 2

Quiz2.sp09 - Name_ cs30x_ Score: Signature _ Student ID _...

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