14.08.2013 Views

Lucidi in formato PDF - Dipartimento di Matematica e Informatica

Lucidi in formato PDF - Dipartimento di Matematica e Informatica

Lucidi in formato PDF - Dipartimento di Matematica e Informatica

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Complemento a uno<br />

• Rispetto alla rappresentazione con bit <strong>di</strong> segno<br />

abbiamo che:<br />

– se il bit <strong>di</strong> segno è 1 (numero negativo), tutti i bit<br />

restanti subiscono l’operazione <strong>di</strong> complemento a 1,<br />

ovvero, ogni 1 viene mutato <strong>in</strong> 0 e viceversa.<br />

Rappr.<br />

b<strong>in</strong>aria<br />

00001010<br />

10101101<br />

11111111<br />

00000000<br />

Valore<br />

10<br />

173<br />

255<br />

0<br />

Segno<br />

+<br />

-<br />

-<br />

+<br />

7 bit<br />

0001010<br />

0101101<br />

1111111<br />

0000000<br />

Compl.<br />

No<br />

Sì<br />

Sì<br />

No<br />

7 bit<br />

0001010<br />

1010010<br />

0000000<br />

0000000<br />

Valore<br />

rappr.<br />

+10<br />

-82<br />

-0<br />

+0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!