Lecture 3 Flashcards
1
Q
Which part of the computer does all the calculations, and where is it located?
A
- ALU
- In the CPU
2
Q
What are the two main parts of an ALU?
A
- Integer unit
- Floating point unit
3
Q
Define “carry overflow”
A
When the result of a calculation contains too many digits for the hardware.
1001+111010111
4
Q
How can you tell if overflow has occurred in Two’s Complement?
A
If two numbers with the same sign are added, then overflow occurs **iff **the result has the opposite sign.