This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CS 61C, Midterm, Fall 1999 CS61C MIDTERM EXAM FALL 1999 1. Facts, Figures and Bit [12 points] a. Describe the set of numbers that are represented by a 64-bit two's complement integer. b. Add the following 16-bit integers by hand, show binary result and translate it to hexadecimal. 0001011011100101 +0011101001101100 c. Multiply the following 16-bit unsigned integers by hand, show binary result and translate to hexadecimal 0000000001101111 +0000000000001010 d. Encode the value 17.25 10 according to the single precision IEEE Floating-Point standard and show its representation in hexadecimal. e. For each of the following utilities, specify what it takes as input and what it produces as output. Describe one key function it performs in this translation. ● Compiler ● Assembler ● Linker ● Loader f. The C character string "UCB" appears in memory. The first character is word aligned on a little endian machine. Given that the ASCII code for 'A' is 65, what binary bit pattern appears in the word. 2. Logical Operations  Write a sequence of no more than six MIPS instruction that extracts bits 17:11 of register $s0 and inserts them into bits 8:2 of register $s1, leaving all the remaining bits of $s1 unchanged. You may use t-registers as temporaries. t-registers as temporaries....
View Full Document
This note was uploaded on 09/26/2009 for the course CS 61CL taught by Professor Clancy during the Fall '08 term at Berkeley.
- Fall '08
- Computer Science