Quiz1.fa07

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

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 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 ----------
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
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

This homework help was uploaded on 02/11/2008 for the course CSE 30 taught by Professor Ord during the Winter '08 term at UCSD.

Page1 / 2

Quiz1.fa07 - N Z V C N Z V C | | | | | | | | | |(over#4...

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