CS208 Introduction to Computer Systems Wednesday, 1 Feb 2023 + Assembly language questions - What is a register? - What is the difference between rax, eax, ax, ah, and al? - Describe one "conventional use" of a register? (we have briefly discussed conventional uses rdi, rsi, and rax so far) - What does the MOV instruction do? - What is the difference between MOVQ, MOVL, MOVW, and MOVB - The EFLAGS register contains a bunch of bits that are manipulated by various instructions. What are the meanings of the bits SF and ZF? - When you do "MOVQ %rax, %rbx", what happens (if anything) to SF and ZF? - What do the following instructions do? ADD x, y SUB x, y TEST x, y CMP x, y JMP x - Don't know the answers to the above? How could you find out? + Exercises: see today's LAB + gdb walkthrough