This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: sign bit. Any carry out from the sign bit is ignored. No comparison or subtraction is needed. Examples: Add (6) + (+13) using signed 2’s complement form with 8 bits. Repeat for (+6) + (13) Answer Æ 00000110 ) 6 ( ≡ + and 00001101 ) 13 ( ≡ + 11111010 ) 6 ( ≡ − ∴ and 11110011 ) 13 ( ≡ − . 6 Æ 11111010 +13 Æ 00001101 100000111 Æ Answer is +7 Also, +6 Æ 00000110 13 Æ 11110011 11111001 Æ Answer is – 7 Sign bit Sign bit Carry out EE200(class 21) Prof. M.M. Dawoud 14 Arithmetic Subtraction: Take the 2’s complement of the subtrahend, including the sign bit, and add it to the minuend. A carry out is discarded. ) ( ) ( ) ( ) ( B A B A ∓ + ± = ± − ± Example: Perform the subtraction (6)  (13) using signed 2’s complement representation with 8 bits. (6) 11111010 Æ (6) 11111010 (13) 11110011 Æ +(+13) 00001101 100000111 Æ Answer is +7 Carry out Sign bit...
View
Full
Document
 Spring '09
 prof.ahmed
 Addition, Subtraction, Elementary arithmetic, 8 bits, sign bit, Prof. M.M. Dawoud

Click to edit the document details