Title: CSE 351 23au / LS9 X86-64 Programming III

Q: Status bits part of the CPU state that indicate information about the most recently executed assembly instructions are known as ___
A: condition codes

Q: What are the four condition codes we are focusing on?
A: Carry flag
Zero flag
Sign flag
Overflow flag

Q: In the simplest case, a conditional in assembly is made up of the ___ and a ___
A: Instruction - that sets/changes the condition codes (arithmetic, logical, "cmp", "test")
Conditional jump instruction ("j*)

Q: The instruction that explicitly sets the condition code that produces a result equivalent to the and instruction is ___
A: "test"

Q: The instruction that explicitly sets the condition code that produces a result equivalent to the sub instruction is ___
A: compare (cmp)

Q: True or false: The jump family of instructions will jump our program to the specified target if the condition is not met
A: False, if the condition is not met, we do not jump

Q: True or false: The set family of instructions the value of the 1-byte dst register to the value of the chosen condition (0 or 1)
A: True

Q: Labels are the target operands of which instruction?
A: jump instruction

Q: True or false: Labels are only chosen by the compiler
A: False, sometimes labels are the names of functions or defined variables from the source code which is written by you, the programmer

Q: What is the special-purpose register that holds the address of the next instruction to execute?
A: %rip