Step Into Labs

Step Into x64 Assembly · Lesson 2 · Registers & Arithmetic

Arithmetic

add, sub, imul, neg, lea as a calculator, and signed division with cqo and idiv.

Part of Step Into x64 Assembly. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.

Most x64 arithmetic instructions take two operands and store the result in the first:

In this lesson

Missions

  1. Add three numbers
  2. A polynomial
  3. One lea
  4. Quotient and remainder