Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %include "io.inc"
- section .data
- two dd 2.0
- four dd 4.0
- format_double db "%f", 0
- section .text
- CEXTERN printf
- global CMAIN
- CMAIN:
- mov ebp, esp; for correct debugging
- push ebp
- mov ebp, esp
- sub esp, 8
- finit
- fld dword[four]
- fld dword[two]
- faddp
- fstp dword[esp + 4]
- mov [esp], dword format_double
- call printf
- leave
- xor eax, eax
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement