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
- int main() {
- int a = 5;
- int b = 3;
- int c = a + b;
- return c;
- }
generated assembly— ▸ is the next instruction; it maps to the ▸ C line above
- mov eax, 5
- add eax, 3
- imul eax, eax
- sub eax, 40
- cmp eax, 0
step 0
Loading emulator…