Step Into Labs

Step Into x64 Assembly · Module exam · Registers & Arithmetic

Exam: The Clock

Multiply, divide, keep the remainder and survive a register that changes under you.

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

Write the arithmetic core of a clock in assembly: turn hours, minutes and seconds into one number, split that number back into its parts, and pull out the low 16 bits the way a hardware register would report them. The harness reads the values from stdin and calls your three functions.

In this module exam

Missions

  1. Three functions, any input