ECE15A-Homework1-Winter2014 (1)

965erro02974bouedfeec

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 59174| ⇒ p r x 0 3 0 2 r o r 0 0 0 2 7 9 1 a s l t i f r n e apo .965%erro .02974 bouedfeec 2. A computer has a word length of 8 bits, including sign. Obtain 1’s and 2’s complement of the following binary numbers: (2p) (a) 10101010 1scmlmn ’ opeet 0000 fi) 1111(lp =141+4 ++66 =­5 8 2scmlmn ’ opeet 0000 fi+) 1111+1(lp1 =0001 1110 =241+4 ++66 =­6 8 (2p) (b) 01010011 1scmlmn ’ opeet 0001 1101 =121+4 ++66 =8 3 2scmlmn ’ opeet 0001 1101 =121+4 ++66 =8 3 (2p) (c) 00000001 1scmlmn ’ opeet 0000 0001 =1 2scmlmn ’ opeet 0000 0001 =1 (2p) (d) 10000000 1scmlmn ’ opeet 0111 fi) 1111(lp =12481+26 ++++63+4 =­2 17 2scmlmn ’ opeet 0111 fi 1 1111+1(lp+) =1000 0000 =­2 18 (2p) (e) 00000000 1scmlmn ’ opeet =0 2scmlmn ’ opeet =0 3. A computer has the word length of 16 bits, including sign. (5p) If 2’s complement is used to represent negative numbers, what range of integers can be stored in the computer? 1­ [ 26 1 ­ 1­, 26 1 1 ­] 1 5 1 5 [2 , ­ 2 ­] 1 [378,377 ­26 26] (5p) If 1’s complement is used to r...
View Full Document

Ask a homework question - tutors are online