Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .intel_syntax noprefix
- .section .text
- .balign 16
- .globl _MYASMFUNC@8
- _MYASMFUNC@8:
- push ebp
- mov ebp, esp
- sub esp, 4
- push ebx
- push esi
- push edi
- mov dword ptr [ebp-4], 0
- .L_0004:
- mov eax, [ebp+8]
- add eax, [ebp+12]
- mov [ebp-4], eax
- .L_0005:
- mov eax, dword ptr [ebp-4]
- pop edi
- pop esi
- pop ebx
- mov esp, ebp
- pop ebp
- ret 8
- .balign 16
- .globl _main
- _main:
- push ebp
- mov ebp, esp
- and esp, 0xFFFFFFF0
- sub esp, 12
- mov dword ptr [ebp-4], 0
- call ___main
- push 0
- push dword ptr [ebp+12]
- push dword ptr [ebp+8]
- call _fb_Init@12
- .L_0002:
- push 1
- push 7
- push 42
- call _MYASMFUNC@8
- push eax
- push 0
- call _fb_PrintInt@12
- push -1
- call _fb_Sleep@4
- .L_0003:
- push 0
- call _fb_End@4
- mov eax, dword ptr [ebp-4]
- mov esp, ebp
- pop ebp
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement