Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- format PE console 4.0
- entry main
- include 'win32ax.inc'
- section '.data' data readable writeable
- num1 dq 48.6
- num2 dq 17.1
- result dq ?
- fmt db "%g", 10
- szBuff db 32 dup (0)
- section '.code' code readable executable
- main:
- fld qword [num1]
- fld qword [num2]
- fdivp
- fstp qword [result]
- cinvoke printf, fmt, double [result]
- invoke ExitProcess, 0
- section '.idata' import data readable
- library kernel32,'kernel32.dll', msvcrt,'msvcrt.dll'
- import kernel32, ExitProcess,'ExitProcess'
- import msvcrt, printf, 'printf'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement