edited by
634 views
1 votes
1 votes

Consider the addition of the two numbers 10001110 and 10000000 in an 8-bit ALU. Which of the following best summarizes the result and the status of the Z(zero), S(sign), C(carry) and O(overflow) flags? Assume that the numbers are represented in 2's Complement format and that S=1 if the result is negative.

a) Sum = 100001110, Z = 0, C = 1, O = 0, S = 1

b) Sum = 00001110, Z = 0, C = 0, O = 1, S = 0

c) Sum = 100001110, Z = 0, C = 0, O =1, S = 0

d) Sum = 100001110, Z = 0, C = 1, O =1, S = 0

edited by

1 Answer

Best answer
1 votes
1 votes
A           10001110
B           10000000
SUM :  100001110

Z = 0     C = 1    S = 0
selected by

Related questions

1 votes
1 votes
0 answers
1
Gupta731 asked Nov 9, 2018
1,125 views
Let X = X2X1X0 and Y= Y1Y0 be unsigned positive 3 digit and 2 digit numbers respectively. The output function 'f' = 1 only when X>Y otherwise '0'. Then the value of outpu...
2 votes
2 votes
1 answer
4
Epsilon95 asked May 10, 2017
1,284 views
From the 7 symbols (0-6) how many different codes we can construct?(a) 8! (b) 8(c) 7! (d) 7 provide an explanation, answer is (a)