push ebp mov ebp, esp pushad mov edx, 10 ; program crashes with this instruction mov eax, 9 mov ebx, 2 idiv ebx push edx ; remainder push eax ; quotient push format call _printf add esp, 12 popad mov esp, ebp pop ebp ret