C to assembly compiler and assembly code interpreter.

Input micro-C code

See here what our compiler can and cannot (e.g. if and while loops are supported, system output (scanf, printf) and for loops are not).


{{cpu.asmcode.findLine(cpu.instructionPointer).line}}
{{cpu.asmcode.findLine(cpu.instructionPointer).description.description}}


stack
{{location.address}} {{showOutput(location.value)}}

stack registers
Base pointer %14 {{cpu.stack.bp}}
Stack pointer %15 {{cpu.stack.sp}}

memory
{{location.address}} {{showOutput(location.value)}}

global variables
{{location.address}} {{location.name}} {{showOutput(location.value)}}
none defined
flags
ZF PF SF CF OF
{{value}}

registers
%{{$index}} {{showOutput(value)}}