45|1
22|0
11|1
5|1
2|0
1|1 ^
45(10) = 101101(2)
6 bit base 2 [0,2^6-1]=[0,63]
CA2 [-2^(6-1),2^(6-1)-1]=[-32,31]
6 bit in CA2 non sono sufficienti per rappresentare 45
7 bit CA2 [-2^(7-1),2^(7-1)-1]=[-64,63]
45 = 0101101(CA2)
complementare per trovare il negativo
1010010 +
1 =
1010011 = -45(CA2)
21|1
10|0
5|1
2|0
1|1 ^
21(10)=10101(2)=0010101(CA2)
1101010 +
1 =
1101011 = -21(CA2)
-45-21=-45+(-21)
1010011 -
1101011 =
[1] 0111110 = overflow