Download Binary Number, Addition and Subtraction

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
● Binary Number
Count
Range
● Binary, Octal,
Conversion
Decimal,
● Fraction
● Signed Binary Number
● Binary Add/Subtract
Hexadecimal
Binary Number
Count
Decimal
Binary
%
Hexadecimal
$
0
0000
0
1
0001
1
2
0010
2
3
0011
3
4
0100
4
5
0101
5
6
0110
6
7
0111
7
8
1000
8
9
1001
9
10
1010
A
11
1011
B
12
1100
C
13
1101
D
14
1110
E
15
1111
F
% 1 1 0 1 = 13
Decimal
Binary
%
Hexadecimal
$
0
0000
0
1
0001
1
2
0010
2
3
0011
3
4
0100
4
5
0101
5
6
0110
6
7
0111
7
8
1000
8
9
1001
9
10
1010
A
11
1011
B
12
1100
C
13
1101
D
14
1110
E
15
1111
F
% 1 1 0 1 = 13 = $D
Decimal
Binary
%
Hexadecimal
$
0
0000
0
1
0001
1
2
0010
2
3
0011
3
4
0100
4
5
0101
5
6
0110
6
7
0111
7
8
1000
8
9
1001
9
10
1010
A
11
1011
B
12
1100
C
13
1101
D
14
1110
E
15
1111
F
Binary Number
Range
Decimal
Binary
%
Hexadecimal
$
0
0000
0
1
0001
1
2
0010
2
3
0011
3
4
0100
4
5
0101
5
6
0110
6
7
0111
7
8
1000
8
9
1001
9
10
1010
A
11
1011
B
12
1100
C
13
1101
D
14
1110
E
15
1111
F
Binary,
Octal,
Conversion
Decimal,
Hexadecimal
Decimal
Binary
Signed
Magnitude
7
0111
6
0110
5
0101
4
0100
3
0011
2
0010
1
0001
0
0000
-0
1000
-1
1001
-2
1010
-3
1011
-4
1100
-5
1101
-6
1110
-7
1111
Signed Binary Number
Decimal
Binary
Signed
Magnitude
Decimal
Binary
One’s
complement
7
0111
7
0111
6
0110
6
0110
5
0101
5
0101
4
0100
4
0100
3
0011
3
0011
2
0010
2
0010
1
0001
1
0001
0
0000
0
0000
-0
1000
-0
1111
-1
1001
-1
1110
-2
1010
-2
1101
-3
1011
-3
1100
-4
1100
-4
1011
-5
1101
-5
1010
-6
1110
-6
1001
-7
1111
-7
1000
Decimal
Binary
Signed
Magnitude
Decimal
Binary
One’s
complement
Decimal
Binary
Two’s
compliment
7
0111
7
0111
7
0111
6
0110
6
0110
6
0110
5
0101
5
0101
5
0101
4
0100
4
0100
4
0100
3
0011
3
0011
3
0011
2
0010
2
0010
2
0010
1
0001
1
0001
1
0001
0
0000
0
0000
0
0000
-0
1000
-0
1111
-1
1111
-1
1001
-1
1110
-2
1110
-2
1010
-2
1101
-3
1101
-3
1011
-3
1100
-4
1100
-4
1100
-4
1011
-5
1011
-5
1101
-5
1010
-6
1010
-6
1110
-6
1001
-7
1001
-7
1111
-7
1000
-8
1000
%1 0 1 1 = ?
Decimal
Binary
Two’s
compliment
7
0111
6
0110
5
0101
4
0100
3
0011
2
0010
1
0001
0
0000
-1
1111
-2
1110
-3
1101
-4
1100
-5
1011
-6
1010
-7
1001
-8
1000
Range
Decimal
Binary
Two’s
compliment
7
0111
6
0110
5
0101
4
0100
3
0011
2
0010
1
0001
0
0000
-1
1111
-2
1110
-3
1101
-4
1100
-5
1011
-6
1010
-7
1001
-8
1000
Binary Number
Sign Number
Add
Subtract
Convert the following decimal numbers into
8-bit 2’s complement numbers and perform the
additions/subtractions indicated.
(+ 70)
(+ 60)
+ (+ 60)
+ ( - 70)
C=
C=
V=
V=
Sum Correct? Y/N
Sum Correct? Y/N
+70 =
+60 =
+70 = 0100 0110
-70 = 1011 1010
+60 = 0011 1100
-60 = 1100 0100
Convert the following decimal numbers into
8-bit 2’s complement numbers and perform the
additions/subtractions indicated.
(+ 70)
(+ 60)
+ (+ 60)
+ ( - 70)
C=
C=
V=
V=
Sum Correct? Y/N
Sum Correct? Y/N
Convert the following decimal numbers into
8-bit 2’s complement numbers and perform the
additions/subtractions indicated.
(- 60)
(+ 70)
- (- 70)
- ( - 60)
C=
C=
V=
V=
Sum Correct? Y/N
Sum Correct? Y/N
Related documents