Lesson 14: Making Decisions, Maybe
Outline:
- Data movement, cont’d
- recap:
mov movz/movs/movabsqpush/pop(briefly)
- recap:
- Arithmetic operations
- operations
- unary ops
- binary ops
- shift ops
- recap: condition codes
setXX
- operations
- Translating conditional code from C to x86-64
- recap:
cmpandtest - jumping around
- handout on translating
if/else,do-while,while,forto x86-64
- recap:
Reading assignment (to be completed by the next class):
- Bryant & O’Halloran Sec. 3.6.7 (p. 228–232)
- Bryant & O’Halloran Sec. 3.7.1-3.7.2 (p. 238–245)