Assignment com ar and org
Assignment com ar and org
Addition: The sum of two signed binary numbers is calculated using two's complement
representation. Overflow may occur if the result exceeds the allowable range for signed numbers.
0101 (5)
+ 1101 (-3)
-------
10010
Since this result is in 5 bits, discard the leftmost bit, resulting in 0010, which equals +2. The
result is correct: 5 + (-3) = 2.
0111 (7)
+ 1110 (-2)
-------
10101
Again, discard the leftmost bit to get 0101, which equals +5. The result is correct: 7 - 2 = 5.
1110
× 1101
-------
1110 (1110 × 1)
00000 (shifted left)
11100 (1110 × 1, shifted left again)
+00000 (shifted left again)
--------
10101110 (product)
Since this is an 8-bit result, and we only need 4 bits, the final result is 0110, which equals +6.
The result is correct: -2 × -3 = 6.
Division: Binary division works like decimal division, with signed numbers handled using
two's complement. It involves repeatedly subtracting the divisor from the dividend.
-6 ÷ 2 = -3
• Description: Uses one bus for all data transfers between the CPU, memory, and I/O
devices.
• Performance Efficiency: Can be slower because only one component can use the bus at
a time, leading to potential delays and bottlenecks.
• Description: Uses two separate buses—one for memory and one for I/O operations.
• Performance Efficiency: Generally faster because both buses can be used
simultaneously, reducing delays and improving overall performance.