Hello, can you please assist me in understanding this question. Question 4 For e
ID: 3704517 • Letter: H
Question
Hello, can you please assist me in understanding this question.
Question 4
For each of the following, suppose that two 8-bit binary numbers have been added. In each case the 8-bit output is given and the values of the N, V and C flags. For each case give the correct answer as a decimal number:
(i) if the result is interpreted as the sum of unsigned integers; (i) if the result is interpreted as the sum of signed integers. 8-bit outputN (a)0010 00100 1 (b) | | 0 | 0 1001 1100 1 1100 1101 1 (d)0111 1011 0 0011 00111 1Explanation / Answer
C->Carry bit
The carry bit is used to signify that we do not have enough bits to represent the result of a computation using unsigned arithmetic
V->Overflow
The overflow bit is set when the two inputs have the same sign, but the output lacks this same sign. In an unsigned setting, because there are no such things as negative numbers, this distinction is meaningless.
N->determines sign
(a) Unsigned according to definition of carry bit
(b) Signed integers
(c) Signed integers but the result cannot be fit to 8 bits
(d) Signed or unsigned
(e) Unsigned but the result cannot be fit to 8 bits
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.