Presentation is loading. Please wait.

Presentation is loading. Please wait.

P EMBAGIAN B ILANGAN B ULAT B INER B AGAIMANA MEMBAGI BILANGAN DALAM ARITMATIKA KOMPUTER BIL. BULAT POSITIF DAN BIL. BULAT NEGATIF Riky2208 4576 Yohanes.

Similar presentations


Presentation on theme: "P EMBAGIAN B ILANGAN B ULAT B INER B AGAIMANA MEMBAGI BILANGAN DALAM ARITMATIKA KOMPUTER BIL. BULAT POSITIF DAN BIL. BULAT NEGATIF Riky2208 4576 Yohanes."— Presentation transcript:

1 P EMBAGIAN B ILANGAN B ULAT B INER B AGAIMANA MEMBAGI BILANGAN DALAM ARITMATIKA KOMPUTER BIL. BULAT POSITIF DAN BIL. BULAT NEGATIF Riky Yohanes J.N Andi.S Anton.M

2 Review Representation of there 3 types integer sign : 1.Sign-magnitude 2.Complement 1 3.Complement 2

3 Sign-Magnitude Representation BinaryDecimal Sign-Magnitude uses the most-significant-bit as the sign bit. The rest of the bits represent the number in the "Binary" format.

4 1’ S & 2’ S C OMPLEMENT

5 Binary Division To perform binary division follow the following steps: 1. Align the divisor (Y) with the most significant end of the dividend. Let the portion of the dividend from its MSB to its bit aligned with the LSB of the divisor be denoted X. 2. Compare X and Y. a) If X >= Y, the quotient bit is 1 and perform the subtraction X-Y. b) If X < Y, the quotient bit is 0 and do not perform any subtractions. 3. Shift Y one bit to the right and go to step 2.

6 Binary Division Another example : Quotient  Reminder 

7 More examples 4.8 : : : : : : -8

8 Terima kasih


Download ppt "P EMBAGIAN B ILANGAN B ULAT B INER B AGAIMANA MEMBAGI BILANGAN DALAM ARITMATIKA KOMPUTER BIL. BULAT POSITIF DAN BIL. BULAT NEGATIF Riky2208 4576 Yohanes."

Similar presentations


Ads by Google