previous | start | next

IA32 Assembler for: assignment statements (1)

int sum(int a, int b)
{
  int ans;
  ans = a + b;
  return ans;
}

Assignment typically uses the mov instruction.

Addition is the addl instruction.



previous | start | next