Top Banner
PEMBAGIAN BILANGAN BULAT BINER BAGAIMANA MEMBAGI BILANGAN DALAM ARITMATIKA KOMPUTER BIL. BULAT POSITIF DAN BIL. BULAT NEGATIF Riky 2208 4576 Yohanes J.N. 2208 4539 Andi .S 2204 3575 Anton .M 2202 3039
8

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.

Jan 14, 2016

Download

Documents

Anjali Bain
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 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.

PEMBAGIAN BILANGAN BULAT BINER

BAGAIMANA MEMBAGI BILANGAN DALAM ARITMATIKA KOMPUTERBIL. BULAT POSITIF DAN BIL. BULAT NEGATIF

Riky 2208 4576

Yohanes J.N. 2208 4539

Andi .S 2204 3575

Anton .M 2202 3039

Page 2: 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.

ReviewReviewRepresentation of there 3 types

integer sign :1. Sign-magnitude2. Complement 13. Complement 2

Page 3: 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.

Sign-Magnitude Representation

Binary Decimal

0111 +7

0110 +6

0101 +5

0100 +4

0011 +3

0010 +2

0001 +1

0000 +0

1000 -0

1001 -1

1010 -2

1011 -3

1100 -4

1101 -5

1110 -6

1111 -7

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

Page 4: 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.

1’S & 2’S COMPLEMENT

Page 5: 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.

Binary Division

Binary DivisionTo perform binary division follow the following steps:1. Align the divisor (Y) with the most significant end of the dividend. Let the portion ofthe 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.

Page 6: 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.

Binary DivisionBinary Division

Another example :

Quotient

Reminder

Page 7: 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.

More examples

4. 8 : -17

5. -40 : -5

6. -125 : 20

1. 16 : 4

2. 7 : 21

3. 23 : -8

Page 8: 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.

Terima kasihTerima kasih