I am trying to convert this binary to C but I am having trouble with the while loop. What does
sub esp, 8
mean? as well as push [ebp+_a]
? I am able to get the esp 8 sometimes while changing the print statement. Why is this the case?
What I have so far.
#include <stdio.h>
int main(int argc, char *argv[])
{
int a = 9;
while (a) {
printf("%d, ");
--a;
}
puts("FIRE!");
return 0;
}