CPE129_hw14_soln - CPE 129 Homework 14 Solutions W...

Info icon This preview shows pages 1–2. Sign up to view the full content.

CPE 129 Homework 14 Solutions W. Pilkington 1. Determine the 2’s complement of each of the following binary numbers (find the opposite-signed number); and then express the value of the result in decimal (base 10). a. ( 1 0 1 0 1 ) 2 RC b. ( 0 1 0 1 1 ) 2 RC c. ( 1 0 1 0 0 1 ) 2 RC d. ( 0 0 1 1 1 0) 2 RC e. ( 1 1 0 0 1 1 0 1 ) 2 RC a) (10101) 2RC => 1+ (01010 ) 2DRC = (01011) 2RC = (+ 11) 10 b) (01011) 2RC => 1+ (10100) 2DRC = (10101) 2RC = (- 11) 10 c) (101001) 2RC => 1+ (010110) 2DRC = (010111) 2RC = (+ 23) 10 d) (001110) 2RC => 1+ (110001) 2DRC = (110010) 2RC = (- 14) 10 e) (1101101) 2RC => 1+ (00110010) 2DRC = (00110011) 2RC = (+ 51) 10
Image of page 1

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