P2 T1 L5 - Binary Multiplication Flashcards
1
Q
How do you do binary subtraction using 2’s complement?
(start from denary make into binary)
(4 steps)
A
- convert num 2 with “-“ sign (e.g. convert -2 to 1110)
- convert num 1
- add both numbers
- remove the first digit (MSB)
2
Q
100
011
___
How do you do binary multiplication?
(3 steps)
A
e.g
100
011
___
1 . We start with the first digit, in this case 1, and multiply 100 by 1, which gives the exact same number.
100
011
___
100
- Then we move to the second digit and proceed to do the same. Since it’s also 1, the number will remain intact, we just need to shift the number one digit to the left
100 011 \_\_\_ 100 100
- Later, since the last digit is a 0, we can skip it and start with the addition:
100 011 \_\_\_ 100 100 \_\_\_\_ 1100