10 likes | 68 Views
2’s-Complement Add and Subtract Operations. (. +. 4. ). (a). 0 0 1 0. (. +. 2. ). (b). 0 1 0 0. (. ). +. 0 0 1 1. +. 3. +. 1 0 1 0. (. -. 6. ). (. -. 2. ). 0 1 0 1. (. +. 5. ). 1 1 1 0. (. ). +. 7. (c). 1 0 1 1. (. -. 5. ). (d). 0 1 1 1. +. 1 1 1 0.
E N D
2’s-Complement Add and Subtract Operations ( + 4 ) (a) 0 0 1 0 ( + 2 ) (b) 0 1 0 0 ( ) + 0 0 1 1 + 3 + 1 0 1 0 ( - 6 ) ( - 2 ) 0 1 0 1 ( + 5 ) 1 1 1 0 ( ) + 7 (c) 1 0 1 1 ( - 5 ) (d) 0 1 1 1 + 1 1 1 0 ( - 2 ) + 1 1 0 1 ( - 3 ) 1 0 0 1 ( - 7 ) 0 1 0 0 ( + 4 ) (e) 1 1 0 1 1 1 0 1 ( - 3 ) + 1 0 0 1 0 1 1 1 - ( - 7 ) 0 1 0 0 ( + 4 ) (f) 0 0 1 0 ( + 2 ) 0 0 1 0 ( ) - 0 1 0 0 + 4 + 1 1 0 0 1 1 1 0 ( - 2 ) 0 1 1 0 0 1 1 0 (g) ( + 6 ) ( + 3 ) 0 0 1 1 1 1 0 1 - + 0 0 1 1 ( + 3 ) 1 0 0 1 (h) 1 0 0 1 ( - 7 ) 0 1 0 1 - 1 0 1 1 ( - 5 ) + 1 1 1 0 ( - 2 ) 1 0 0 1 (i) ( - 7 ) 1 0 0 1 - 0 0 0 1 ( + 1 ) + 1 1 1 1 1 0 0 0 ( - 8 ) (j) 0 0 1 0 0 0 1 0 ( + 2 ) 1 1 0 1 0 0 1 1 - + ( - 3 ) ( ) 0 1 0 1 + 5 Page 31 Figure 2.4.2's-complement Add and Subtract operations.