Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assembler code to C

Status
Not open for further replies.

rbulus

Programmer
May 8, 2007
1
0
0
US
Hi, i have this assembler code, and i can not figure out the C code. The input should be " " null character, i know it for the push line:

08048dc3 <phase_6>:
8048dc3: 55 push %ebp
8048dc4: 89 e5 mov %esp,%ebp
8048dc6: 83 ec 08 sub $0x8,%esp
8048dc9: 6a 00 push $0x0
8048dcb: 6a 0a push $0xa
8048dcd: 6a 00 push $0x0
8048dcf: ff 75 08 pushl 0x8(%ebp)
8048dd2: e8 31 fa ff ff call 8048808 <__strtol_internal@plt>
8048dd7: a3 6c a6 04 08 mov %eax,0x804a66c
8048ddc: 68 6c a6 04 08 push $0x804a66c
8048de1: e8 7f ff ff ff call 8048d65 <fun6>
8048de6: ba 03 00 00 00 mov $0x3,%edx
8048deb: 83 c4 14 add $0x14,%esp
8048dee: 8b 40 08 mov 0x8(%eax),%eax
8048df1: 4a dec %edx
8048df2: 75 fa jne 8048dee <phase_6+0x2b>
8048df4: 8b 00 mov (%eax),%eax
8048df6: 3b 05 6c a6 04 08 cmp 0x804a66c,%eax
8048dfc: 74 05 je 8048e03 <phase_6+0x40>
8048dfe: e8 3d 06 00 00 call 8049440 <explode_bomb>
8048e03: c9 leave
8048e04: c3 ret

My real problem is i can not figure out the C source code to find the real solution. Any help will be appreciate.
 
Code:
call   8049440 <explode_bomb>

I do so hope this is for a game...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top