topic 2a- binary Flashcards
what number base is binary
base 2
what number base is denary
base 10
what number base is hexadecimal
base 16
what are the three steps to changing a negative number to binary using twos compliment?
1) work out the positive number in binary
2) swap the 1’s and 0’s
3) add 1
how do you convert from denary to binary
binary number line method
0+0=
0+1=
1+1=
1+1+1=
0
1
0 carry 1
1 carry 1
what does a left logical shift of one position do
-moves each bit to the left by one
-fills the vacant LSB with zero
what does a right logical binary shift of one position do
-moves each bit to the right by one
-fills the vacant MSB with a zero
what does a left arithmetic binary shift of one position do
-moves each bit to the left by one
-fills the vacant LSB with a zero
-is identical to a left logical binary shift
what does a right arithmetic shift of one position do
-moves each bit to the right by one
-fills the MSB with the previous MSB which has also been shifted one position to the right
what is one use of logical binary shifts
to multiply and divide unsigned numbers by powers of 2