Lecture 2 Objectives
At the end of today's class you should
KNOW:
- That most modern computers use two's complement representation of
signed integers
- How to determine if overflow occurs when adding unsigned integers
- How to determine if overflow occurs when adding signed integers
- That some integer multiplications and divisions can be accomplished
by shifting and addition
BE ABLE TO:
- Give the binary representation of a signed integer in two's complement form
- Given a two's complement binary number, determine the signed integer it
represents
- Determine when the addition of two integers (signed or unsigned) will result in overflow
Sample Exam Question:
Represent -34 decimal as an 8-bit binary, two's complement number.