Hello ASMer's,
I'm new here and just starting out with ASM, so please forgive me if I sound noobish because......I am lol

. For my first trek into assembly I decided to use FASM because I heard it's very easy to learn (and it seems to be), but I have two questions and I hope someone can help. I decided to try and use the ShellExecute and ExitProcess API's to open the Google website. Here is my code:
| CODE |
format PE GUI entry start include "win32ax.inc"
section '.code' code import writeable readable executable
library shell32,"SHELL32.DLL",\ kernel32,"KERNEL32.DLL"
import shell32, ShellExecute, "ShellExecuteA" import kernel32, ExitProcess, "ExitProcess"
start: invoke ShellExecute,0,0,_URL,0,0,SW_SHOW invoke ExitProcess,0
_URL db "http://www.google.com",0 |
Now I have no problems with it, because it seems to work perfectly. What I wanted to ask you pros is, how can I use those two API's in FASM without using macros? I have a hard time with understanding how to push the arguments in pure assembly and just wanted to know the easiest way to do it. I get a bit confused with "mov eax" or "push eax". I just wanted an example if no one minded
Also, I have been trying to have FASM give me COFF file output with my code and not having any luck with it. I get an error using "format MS COFF". It says something is wrong with "entry point" and I'm not sure what that means.
Sorry if I am making you read too much, but those are the only two things I need help with. Any help is greatly appreciated because I really want to learn this. Thank you all so much for your time!
Jesse