1.Let a = 0 X D3 and b = 0 X A9.
(a) Assuming that a and b are two unsigned integers, find a + b,a − b, a ×
b, a/b, and a%b. Represent the result using unsigned 16-bitrepresentation.
(b) Assuming that a and a are two two’s complement 8-bit signedintegers,
find a+b, a−b, a×b, a/b, and a%b. Represent the result usingtwo’s complement
16-bit representation.
(c) Write-down the results of parts a and b in Hexadecimalbase.
(d) Write-down the results of parts a and b in Octal base.
1.Let a = 0 X D3 and b = 0 X A9. (a) Assuming that a and b are two unsigned integers, find a + b, a − b, a × b, a/b, and
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am