Scorrimenti (Shift)
Scorrimenti (Shift)
Scorrimenti (Shift)
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Esempio<br />
0 0 ........ 0 1 1 0 6 = 4+2<br />
0 ........ 0 1 1 0 0 12 = 8+4<br />
Si noti che se a31 e a30 non fossero uguali allora il numero che si<br />
otterrebbe moltiplicando per 2 quello memorizzato NON sarebbe<br />
piu’ rappresentabile.<br />
Esempio:<br />
Con 4 bit possiamo rappresentare gli interi tra - 23 a 23 – 1<br />
0011 ( = 3) 0110 (= 6) OK<br />
0100 ( = 4) 1000??? NO : il numero “con segno” 8<br />
non puo’ essere<br />
rappresentato con 4 bit<br />
1100 ( = - 4) 1000 (= -8) OK<br />
1011 ( = -5) 0110 ??? NO : -10 non puo’ essere<br />
rappresentato con 4 bit