This is not the current version of the class.

Assembly 2: Arithmetic, calling convention, control flow

Overview

We finish our discussion of assembly address modes and arithmetic instructions, then discuss calling conventions and control flow in machine code.

Full lecture notes on assemblyTextbook readings

Data operands and address modes

Arithmetic instructions

f08.s

Arithmetic (computation) instructions

f09.s, f10.s

f11.s

Moving into register slices

f12.s

f13.s, f14.s

f15.s, f16.s, f17.s

More data formats

f18.s

The lea instruction

Calling convention

Elements of a calling convention

Let’s explore: cc01.cccc03.cc

Arguments

Return values