05.08.2014 Views

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

Lecture Notes for Computer Architecture II - St. Cloud State University

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.

Number Systems<br />

Numbers<br />

+ ve numbers only memory addresses<br />

unsigned numbers<br />

+ and - numbers necessary <strong>for</strong> arithmetic operations<br />

signed numbers<br />

Most significant bit 0 positive<br />

Most significant bit 1 negative number<br />

Page | 63<br />

3 bit machine<br />

000 111 only positive numbers<br />

<br />

0 7<br />

positive and negative numbers<br />

0 3 -1 -3<br />

000 011 111 100<br />

<strong>Computer</strong> can be defined as<br />

- adding machine in a limited space<br />

Addition with limited space<br />

Consider 4 bit register<br />

+3 0011 -3 1101<br />

ok +2 0010 -2 1110 ok<br />

0101 1011<br />

+5 0101<br />

problem +4 0100<br />

1001<br />

overflow<br />

result is negative number

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

Saved successfully!

Ooh no, something went wrong!