{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# Hw 2 sol - EEL 3801 Computer Organization Spring 2010 HW#2...

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

EEL 3801 - Computer Organization Spring, 2010 HW #2 Solution 2.1 The three binary representations a re given as below: Decimal Sign-and-magnitude 1’s-complemen t 2’s-complemen t values 5 represen tation 0000101 represen tation 0000101 represen tation 0000101 2 1000010 1111101 1111110 14 0001110 0001110 0001110 10 1001010 1110101 1110110 26 0011010 0011010 0011010 19 1010011 1101100 1101101 51 0110011 0110011 0110011 43 1101011 1010100 1010101 2.2-(a) (a) 00101 ( b ) 00111 ( c ) 10010 + 01010 ——— 01111 + 01101 ——— 10100 + 01011 ——— 11101 no overflow overflow no o v erflow (d) 11011 ( e ) 11101 ( f ) 10110 + 00111 ——— 00010 + 11000 ——— 10101 + 10011 ——— 01001 no overflow no overflow o v erflow 2.3 No. Any binary pattern can be interpreted as a number or as an instruction. 2.5 Byte contents in hex, starting at location 1000, will be 4A, 6F, 68, 6E, 73, 6F, 6E. The two words at 1000 and 1004 will be 4A6F686E and 736F6EXX. Byte 1007 (shown as XX) is unchanged. (See Section 2.6.3 for hex notation.)

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

View Full Document
2.8 A program for the expression is: Load A Multiply B Store RESULT Load C Multiply D Add RESULT Store RESULT 2.13 1220, part of the instruction, 5830, 4599, 1200 2.15 Assume that the subroutine can change the contents of any register used to pass parameters. Subroutine LShiftL #2,R4 Use R4 to contain distance in bytes (Stride) between successive elements in a column.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern