CSE
Quiz1.fa07

# SPARC Architecture, Assembly Language Programming, and C (2nd Edition)

• Homework Help
• PresidentHackerCaribou10582
• 2

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

Signature __________________ Name_______________ cs30x____ Student ID _________________ Score: Quiz 1 CSE 30 Fall 2007 #1. Show the representation of - 305 10 in the following representation schemes (assume 16-bit words): a) sign magnitude b) one’s-complement c) two’s complement #2. Convert 284 10 into (assume 16-bit words): a) binary b) octal c) hexadecimal #3. Fill in the Condition Code bits for the following addition instructions (8-bit two’s-complement numbers): 01101010 11001011 + 00010101 + 00110101 ----------

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

This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ---------- N Z V C N Z V C----------------- ----------------- | | | | | | | | | | ----------------- ----------------- (over) #4. Powers of 2 256K = 2 _____ 2 36 = _______ (in terms of K, M, G, etc.) #5. In a Big-Endian architecture, show how the bytes are laid out in memory for the following statement (write the hexadecimal values of the bytes in the appropriate memory locations): long john = 0x18765309; 0 1 2 3 What is the hex value of the least significant byte? ________...
View Full Document

• Winter '08
• Ord
• Binary numeral system, student id, 8-bit, 16-bit, 2 256K

{[ snackBarMessage ]}

### What students are saying

• 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.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern