09.07.2015 Views

CPSC 121: Models of Computation Module 10: A ... - Ugrad.cs.ubc.ca

CPSC 121: Models of Computation Module 10: A ... - Ugrad.cs.ubc.ca

CPSC 121: Models of Computation Module 10: A ... - Ugrad.cs.ubc.ca

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.

<strong>Module</strong> <strong>10</strong>: A Working ComputerMemoryEach memory lo<strong>ca</strong>tion contains a fixed number <strong>of</strong>bits.Most commonly this number is 8.Values that use more than 8 bits are stored in multipleconsecutive memory lo<strong>ca</strong>tions.Characters use 8 bits (ASCII) or 16/32 (Unicode).Integers use 32 or 64 bits.Floating point numbers use 32, 64 or 80 bits.<strong>CPSC</strong> <strong>121</strong> – 2012W T2 15<strong>Module</strong> <strong>10</strong>: A Working ComputerArithmetic and Logic UnitPerforms arithmetic and logi<strong>ca</strong>l operations (+, -, *, /,and, or, etc).Control UnitDecides which instructions to execute.Executes these instructions sequentially.Not quite true, but this is how it appears to the user.<strong>CPSC</strong> <strong>121</strong> – 2012W T2 16

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

Saved successfully!

Ooh no, something went wrong!