CS208 Introduction to Computer Systems Monday, 10 April 2023 + Upcoming schedule - Programming assignment #3: 4/12 - Online quiz (posted today; take as often as you want): 4/16 - In-class exam: 4/19 - Note: new OAR rules--student has to request exam 72 hours ahead + Today - integers - questions about the bits assignment + Two's complement integers - Negate: complement all bits, then add 1 - This is weird; why do we do this? - Practice with 8-bit numbers - 0xED (interpreted as 8-bit 2's comp) = ? base ten - -29 = 0b...? - Say things like this - "the bit pattern 11111011, interpreted as an 8-bit two's complement integer, represents -5" - "the hexadecimal expression of the bit pattern 11111011 is 0xFB" + integer lab: 15-20 minutes - introduce yourself to somebody next to you - pick one person's computer - do this lab together + integers in C - typecasting & promotion - chaos when printing a single byte - chaos when doing bit manipulations on