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

Info icon This 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
Image of page 1

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

View Full Document Right Arrow Icon
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------ ------ -------- ------- (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? (2 of 2) [2/8/2008 12:40:53 PM]...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern