Message board for the users of flat assembler.
> Main > Turning windows hello world eg into a proc in an obj
First, greetings to all.
Second, props to Tomasz Grysztar for fasm - awesome.
I can create a simple obj (MS COFF) for simple things like testing, setting bits, etc. Things that have no includes or macros.
I can also compile the "hello world" example (this makes me an ace, right? )
However I cannot turn that example into a proc in an obj. In fact I am a bit lost on the whole include & macro thing. (Do I lose my ace status? )
I wonder if someone would be kind enough to explain how to turn the example:
include 'win32ax.inc' .code start: invoke MessageBox,HWND_DESKTOP,"Hi! I'm the example program!","Win32 Assembly",MB_OK invoke ExitProcess,0 .end start
into a procedure in a linkable obj file, called, say, alert, with the title, message and flags (flag values or-ed together) passed in as three parameters.
It may give me an "aha" experience.
PS: I have searched and browsed and read the docs, but nothing has rung any bells
Edit: Right after posting this I found something. (Don't you hate that?) I don't understand it yet, but it seems to be along these lines. My apologies for this post.
|22 May 2006, 10:23||
no .end start nor .code
ill edit when i find a post for you...
one of the first threads on Windows-section
oh and .code is doable but dont get too comfortable with macros
|22 May 2006, 10:58||
.. dont get too comfortable with macros
I don't think there is too much danger of that. I don't really have a clue at the moment.
|22 May 2006, 11:54||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.