Skip to content

x86 CPU simulator

Write C, compile it to x86 assembly in your browser, and step through every instruction: registers, flags, stack, heap, micro-operations and the system bus.

C source — click a line number for a breakpoint
  1. int main() {
  2. int a = 5;
  3. int b = 3;
  4. int c = a + b;
  5. return c;
  6. }
generated assembly— ▸ is the next instruction; it maps to the ▸ C line above
  1. mov eax, 5
  2. add eax, 3
  3. imul eax, eax
  4. sub eax, 40
  5. cmp eax, 0
step 0
Loading emulator…