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

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

View Full Document Right Arrow Icon
EEL 3801 - Computer Organization Spring, 2010 HW #2 Solution 2.1 The three binary representations are given as below: Decimal Sign-and-magnitude 1’s-complemen t 2’s-complement values 5 representation 0000101 representation 0000101 representation 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 overflow (d) 11011 (e) 11101 ( f ) 10110 + 00111 ——— 00010 + 11000 ——— 10101 + 10011 ——— 01001 no overflow no overflow overflow 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.)
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.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
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 04/02/2010 for the course EEL 3801 taught by Professor Froosh during the Spring '08 term at University of Central Florida.

Page1 / 5

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

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