Signed binary(1.4.1 c) Flashcards

1
Q

Sign and magnitude

A

uses 0 to represent positive and 1 to represent negative
e.g -54 = 1011 0110

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the leading bit in sign and magnitude represent?

A

the sign while the remaining bits represent the absolute sign

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Sign and magnitude largest value

A

127 = 0111 1111

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Sign and magnitude smallest value

A

-127 = 1111 1111

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How many values are there in sign and magnitude?

A

254 values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Sign and magnitude oddities

A

1000 0000 and 0000 0000 both represent zero but one is negative and the other is positive
where some values are lost

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Adding in sign and magnitude

A

doesn’t work properly
e.g -6 + 8 = -14
1000 0110 + 0000 1000 = 1000 1110

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Twos complement

A

take the standard column value for a binary number and make the most significant bit negative
128 64 32 16 8 4 2 1
-128 64 32 16 8 4 2 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Converting in twos complement

A

write the binary
flip the numbers
add 1
e.g. -27
27 = 0001 1011
flip = 1110 0100
add 1 = 0000 0001
-27 = 1110 0101

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which is used twos complement or sign and magnitude?

A

twos complement
easier to implement binary adding circuit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly