Sample Exercises for Quiz 1

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
Sample Exercises for Quiz 1 Sample Exercises for Quiz 1 Overview of compilation process & C Runtime Environment Powers of 2, von Neumann Machine, Flynn Classifications, Typical Instruction Cycle Overview of Stack, Accumulator, Load/Store Architectures SPARC Data Types, Byte Ordering (Big-Endian vs. Little-Endian) Number Conversions, Signed Integer Representations, and Binary Addition How does one decorate a 31-year-old's birthday cake with only five candles? Perform the following number system conversions: 1101011 2 = ? 10 F3A5 16 = ? 10 174003 8 = ? 10 AB3D 16 = ? 10 10110111 2 = ? 10 7156 8 = ? 10 Perform the following number system conversions: 1101011 2 = ? 16 174003 8 = ? 2 10110111 2 = ? 16 F3A5 16 = ? 2 11011001 2 = ? 8 AB3D 16 = ? 2 Perform the following number system conversions: 125 10 = ? 2 3489 10 = ? 8 209 10 = ? 2 9714 10 = ? 8 132 10 = ? 2 23851 10 = ? 16 57190 10 = ? 16 1435 10 = ? 8 65113 10 = ? 16 Add the following pairs of binary numbers, showing all carries: 110101 101110 11011101 1110010 +11001 +100101
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: +1100011 +1101101------ ------ -------- -------http://ieng9.ucsd.edu/~cs30x/Exercises1.html (1 of 2) [2/8/2008 12:40:53 PM] Sample Exercises for Quiz 1 Give the 8-bit signed-magnitude, one's-complement, two's-complement, and BCD (however many bits) representation for each of the following decimal numbers: 18 115 79 -49 -3 -100 Fill in the ICC (Integer Condition Code) bits for the following 8-bit two's-complement additions [ NZVC bits]: 11010110 10111001 01011101 00100110 +10101001 +11010110 +00100001 +01011010--------- --------- --------- ---------What do each of the Condition Code bits mean? What does it mean if the bit is a 0? What does it mean if the bit is a 1? Why do HFC, IBM, and TWA come before Haag, Iacocca, and Taaffe, respectively, in the phone book? http://ieng9.ucsd.edu/~cs30x/Exercises1.html (2 of 2) [2/8/2008 12:40:53 PM]...
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

Sample Exercises for Quiz 1 - +1100011 +1101101------...

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