Академический Документы
Профессиональный Документы
Культура Документы
1. 11 + 11
2. 100 + 10
3. 111 + 11
4. 110 + 100
BINARY SUBTRACTION
The four basic rules for subtracting binary digits
are as follows:
0-0=0
1-1=0
1-0=1
10 - 1 = 1 0 1 with a borrow of 1
EXAMPLES
Perform the following binary subtractions:
1. 11 01
2. 11 10
3. 110100-11111
BINARY MULTIPLICATION
The four basic rules for multiplying binary digits
are as follows:
0x0=0
0x1=0
1x0=0
1x1=1
EXAMPLES
Perform the following binary multiplications:
1. 11 x 11
2. 101 x 111
3. 1001 x 1011
1S AND 2S COMPLEMENTS OF BINARY NUMBERS
Example:
0 1 1 1 0 0 1 0 Binary Number
1 0 0 0 1 1 0 1 1s Complement
OBTAINING THE 2S COMPLEMENT OF A
BINARY NUMBER
1. -39
2. -25
3. -78
4. -55
ARITHMETIC OPERATIONS WITH SIGNED
NUMBERS
Addition
7+4
15 + -6
16 + - 24
-5 + -9
Perform each of the following subtractions of the
signed numbers:
1. 8 3
2. 12 (-9)
3. -25 (+19)
4. -120 (-30)
DIVISION
When two numbers are divided, both numbers must be in true (uncomplemented)
form. The basic steps in a division process are as follows:
Step 1. Determine if the signs of the dividend and divisor are the same or different.
This determines what the sign of the quotient will be. Initialize the quotient
to zero.
Step 2. Subtract the divisor from the dividend using 2s complement addition to get
the first partial remainder and add 1 to the quotient. If the partial
remainder is positive go to step 3. If the partial remainder is zero or
negative, the division is complete.
Step 3. Subtract the divisor from the partial remainder and add 1 to the quotient. If
the result is positive, repeat for the next remainder. If the result is zero or
negative, the division is complete.
Continue to subtract the divisor from the dividend and the partial remainder until
there is a zero or negative result.