CS208 Introduction to Computer Systems Wednesday, 4 February 2026 + Exam - Possible: 43; High: 43; mean: 32; median: 34.5 - Submit corrections (or not) on paper at beginning of class Friday (see web page for instructions) - Exam score = (original score + corrected score) / 2 + Recap - register basics - rax(64), eax(32), ax(16), al(8) - roles: rdi (first function parameter), rsi (2nd), rax (return value), etc. - instruction basics - movq(64), movl(32), movw(16), movb(8) - add - sub - jmp + cmp, test, and jxx - EFLAGS - ZF - SF - CF - What does ADDL do to flags? - CMP and some JXX's - TEST + The assignment + Addressing modes - $, (), a(b, c, d),... - LEA + Compiler Explorer - https://godbolt.org/ - Let's do some experiments - what does simple arithmetic (+, -, *, /, %, |, ^, &, ~) look like? - what does an if-else look like? - what does a loop look like?