Using a 5bit twos complement system set up below the sum 15
Using a 5-bit two\'s complement system, set up below the sum +15 + (-16). Do it!! Interpret the answer in decimal: Which of the following ALU flags would be set to a \"1\" by this addition?
Solution
15->01111
-16->10000
15+(-16)=11111=>-1
V -> No over flow (false)
C-> Carry flag (false) because no carry
N->negative flage true, as -1 is the result
Z-> Zero flag flase
