flat assembler
Message board for the users of flat assembler.
Index
> Windows > how to make a dll for dummies in fasm?? :-p |
Author |
|
jhoan100 19 Aug 2009, 04:53
Is there a basic tutorial to create a dll whit fasm?
|
|||
19 Aug 2009, 04:53 |
|
windwakr 19 Aug 2009, 05:16
Welcome to the FASM board! Always nice to see new people here.
This particular question would go better in the Windows forum, as DLL's are a Windows thing and not macros. Have you checked the example directory of FASM? There is a DLL example in there. Hmm, I've done a search of the boards and can't find a DLL tutorial, but maybe someone else can. You should check out the iczelion windows assembly tutorials. There's FASM versions of the code in there floating around on the forums somewhere, maybe someone else can help you find them. |
|||
19 Aug 2009, 05:16 |
|
sacio 07 Oct 2009, 16:24
Sorry for hijacking your thread jhoan100, but my question is so related that making a new thread would be flooding.
I'm new to FASM, and assembly in general (only coded a little for 8 bit AVRs) and want to make simple dll to play with. I've looked at the DLL example which came with FASM, and understands most of the important code. But say I want to pass 2 integers to a proc, do some calculation and then return the result. How can I return something from a proc in a DLL? Newb alert, be kind and thanks in advance! Great forum by the way |
|||
07 Oct 2009, 16:24 |
|
revolution 07 Oct 2009, 16:29
Normally return values are passed in EAX.
Just use: Code: mov eax,my_return_value retn 8 |
|||
07 Oct 2009, 16:29 |
|
sacio 07 Oct 2009, 17:08
Alright! That cleared things up a bit. Thanks revolution!
|
|||
07 Oct 2009, 17:08 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.