Computer Science 61CL - Fall 1997 - Culler - Midterm 1

Computer Science 61CL - Fall 1997 - Culler - Midterm 1 -...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CS61C, Midterm #1, Fall 1997 CS61C, Fall 1997 Midterm #1 Problem #1 (3 points) Convert the eight-bit binary value 11110000 to: (a) hexadecimal. (b) decimal, interpreting it as a unsigned value. (c) decimal, interpreting it as a twos complement signed value. Problem #2 (3 points) Decode the following binary numbers as MIPS instructions and give the equivalent MIPS assembly language (MAL) statements. address value 0x40 10001100101101110000000000100100 0x44 00000010111001001011000000100011 0x48 00011110110000001111111111110000 Problem #3 (2 points) Why did the MIPS designers use PC-relative branch addressing (One sentance is enough!) Problem #4 (4 points) file:///C|/Documents%20and%20Settings/Jason%20Rafte. ..0-%20Fall%201997%20-%20Culler%20-%20Midterm%201.htm (1 of 4)1/27/2007 6:35:29 PM
Background image of page 1

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

View Full DocumentRight Arrow Icon
CS61C, Midterm #1, Fall 1997 Consider this C struct definition: struct foo { int *p; int a[3]; struct foo *sf; } baz; Suppose that register $16 contains the address of baz. For each of the following C statements, indicate which of the MAL code fragments below (A-H) could
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the 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.

Page1 / 4

Computer Science 61CL - Fall 1997 - Culler - Midterm 1 -...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online