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:
|format PE GUI|
section '.code' code import writeable readable executable
import shell32, ShellExecute, "ShellExecuteA"
import kernel32, ExitProcess, "ExitProcess"
_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!