Midterm.fall07

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

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

View Full Document Right Arrow Icon
1 Name _________________________ Student ID __________________ Signature_______________________ cs30x_______ CSE 30 Fall 2007 Midterm Exam 1. Number Systems ___________________ (15 points) 2. Binary Addition/Condition Code Bits/Overflow Detection ___________________ (12 points) 3. Branching ___________________ (20 points) 4. Bit Operations / C Runtime Environment ___________________ (17 points) 5. Parameter Passing and Return Values (Stack Variables) ___________________ (12 points) 6. Local Variables, The Stack and Return Values ___________________ (15 points) 7. Load/Store/Memory ___________________ (9 points) SubTotal ___________________ (100 points) Extra Credit ___________________ (6 points) Total ___________________
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 1. Number Systems Convert 0xF939 (2’s complement, 16-bit word) to the following. (6 points) binary ____________________________________ octal 0 ___________________________________ decimal ____________________________________ Convert -328 to the following (assume 16-bit word). Express answers in hexadecimal. (6 points) sign-magnitude 0x _______________________________________________ 1’s complement 0x _______________________________________________ 2’s complement 0x _______________________________________________ Convert +477 to the following (assume 16-bit word). Express answers in hexadecimal. (3 points) sign-magnitude 0x _______________________________________________ 1’s complement 0x _______________________________________________ 2’s complement 0x _______________________________________________ 2. Binary Addition/Condition Code Bits/Overflow Detection
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 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 / 10

Midterm.fall07 - Name _ Student ID _ Signature_ cs30x_ CSE...

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