15-213/18-243 Introduction to Computer Systems
Lecture 3: Integers

  • Reading: Ch 2.2-2.3
  • Slides: 03-integers
  • Code: none
  • Concepts:
    • Unsigned and signed (two's complement) integers
    • Casting
    • Expansion and truncation
    • Addition, negation, multiplication, shifting
  • Previous lecture: Bits and Bytes
  • Next lecture: Floating Point