Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Prog4
- ------------------------------------------------
- Dump of assembler code for function main:
- 0x08048439 <+0>: push ebp
- 0x0804843a <+1>: mov ebp,esp
- 0x0804843c <+3>: and esp,0xfffffff0
- 0x0804843f <+6>: sub esp,0x10
- 0x08048442 <+9>: mov DWORD PTR [esp],0x8048520
- 0x08048449 <+16>: call 0x8048414 <printbuf>
- 0x0804844e <+21>: mov eax,0x0
- 0x08048453 <+26>: leave
- 0x08048454 <+27>: ret
- End of assembler dump.
- Dump of assembler code for function printbuf:
- 0x08048414 <+0>: push ebp
- 0x08048415 <+1>: mov ebp,esp
- 0x08048417 <+3>: sub esp,0x28
- 0x0804841a <+6>: mov eax,DWORD PTR [ebp+0x8]
- 0x0804841d <+9>: mov DWORD PTR [esp+0x4],eax
- 0x08048421 <+13>: lea eax,[ebp-0x12]
- 0x08048424 <+16>: mov DWORD PTR [esp],eax
- 0x08048427 <+19>: call 0x8048340 <strcpy@plt>
- 0x0804842c <+24>: lea eax,[ebp-0x12]
- 0x0804842f <+27>: mov DWORD PTR [esp],eax
- 0x08048432 <+30>: call 0x8048350 <puts@plt>
- 0x08048437 <+35>: leave
- 0x08048438 <+36>: ret
- End of assembler dump.
- =============================================================================================================
- =============================================================================================================
- =============================================================================================================
- =============================================================================================================
- =============================================================================================================
- =============================================================================================================
- Prog5
- ------------------------------------------------
- Dump of assembler code for function main:
- 0x08048439 <+0>: push ebp
- 0x0804843a <+1>: mov ebp,esp
- 0x0804843c <+3>: and esp,0xfffffff0
- 0x0804843f <+6>: sub esp,0x10
- 0x08048442 <+9>: mov eax,DWORD PTR [ebp+0xc]
- 0x08048445 <+12>: add eax,0x4
- 0x08048448 <+15>: mov eax,DWORD PTR [eax]
- 0x0804844a <+17>: mov DWORD PTR [esp],eax
- 0x0804844d <+20>: call 0x8048414 <printbuf>
- 0x08048452 <+25>: mov eax,0x0
- 0x08048457 <+30>: leave
- 0x08048458 <+31>: ret
- End of assembler dump.
- Dump of assembler code for function printbuf:
- 0x08048414 <+0>: push ebp
- 0x08048415 <+1>: mov ebp,esp
- 0x08048417 <+3>: sub esp,0x28
- 0x0804841a <+6>: mov eax,DWORD PTR [ebp+0x8]
- 0x0804841d <+9>: mov DWORD PTR [esp+0x4],eax
- 0x08048421 <+13>: lea eax,[ebp-0x12]
- 0x08048424 <+16>: mov DWORD PTR [esp],eax
- 0x08048427 <+19>: call 0x8048340 <strcpy@plt>
- 0x0804842c <+24>: lea eax,[ebp-0x12]
- 0x0804842f <+27>: mov DWORD PTR [esp],eax
- 0x08048432 <+30>: call 0x8048350 <puts@plt>
- 0x08048437 <+35>: leave
- 0x08048438 <+36>: ret
- End of assembler dump.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement