shankle
Yes, it should show the result on the screen. If you just double-click the resulting exe, then probably the console window quickly flashes and disappers and you can't see what is in it. If so, then you can tell it to wait till you press any key, using the "system" function.
DATA SECTION
n1 DQ 1.00416
n2 DQ 15.0
n3 DQ 0
CODE SECTION
Start:
fld Q[n1] ; Load n1 into the ST0 register on the FPU stack.
fdiv Q[n2] ; Divide it by n2 directly from memory.
fstp Q[n3] ; Pop the result off the stack to memory.
#if x64 ; Show the result.
invoke msvcrt:printf, "%g / %g = %g", [n1], [n2], [n3]
invoke msvcrt:system, "echo. & pause"
#else
invoke msvcrt:printf, "%g / %g = %g", [n1], [n1+4], [n2], [n2+4], [n3], [n3+4]
add esp,1Ch
invoke msvcrt:system, "echo. & pause"
add esp,4
#endif
ret
rrr314159
GoLink looks for imported functions directly in DLLs, so the "msvcrt" prefix is the name of the DLL. The ".dll" extension can be omitted. DLLs can also be bound with the #dynamiclinkfile directive in source code or specified on GoLink's command line, in that case the prefix is not needed.