Задание 4.
Выполнить деление, используя метод без восстановления остатка и со сдвигом делителя. При выполнении операций использовать дополнительный код.
Решение
0
| .1
| 1
| 0
| 0
| 1
| 1
|
| 0
| .
| 1
| 1
| 1
| 0
| 0
| 0
|
|
|
|
|
|
|
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| .
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
|
|
|
|
| -
| 1
| 0
| 1
| 1
| 1
| 0
| 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1
| 1
| 1
| 0
| 0
| 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| -
| 1
| 0
| 0
| 1
| 0
| 0
| 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1
| 1
| 1
| 0
| 0
| 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| -
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1
| 1
| 1
| 0
| 0
| 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| -
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1
| 1
| 1
| 0
| 0
| 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| -
| 1
| 0
| 0
| 0
| 0
| 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1
| 1
| 1
| 0
| 0
| 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1
| 0
| 0
|
| Ответ: 0.111010010012 Задание 5.
Выполнить умножение методом анализа двух разрядов множителя одновременно, начиная с младших разрядов.
Использовать дополнительный код.
Решение
1
| 1
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
| 1
|
| +
|
|
|
|
|
|
|
|
|
|
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 1
|
|
|
|
|
|
|
|
|
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
|
|
|
|
|
|
|
|
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 1
|
|
|
|
|
|
|
|
|
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
|
|
|
|
|
|
|
|
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 1
|
|
|
|
|
|
|
|
|
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
|
|
|
|
|
|
|
|
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 1
|
|
|
|
|
|
|
|
|
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 1
|
|
|
|
|
|
|
|
|
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
|
|
|
|
|
|
|
|
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 1
|
|
|
|
|
|
|
|
|
|
| 1
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 1
| Отчет: 100111001010010110012 |