I am relatively new to fasm and I like to make a little project.
My vision is to create a DLL file with fasm which has two basic functions.
And addition function and a multiplication function.
Both function should accept two integer values and return the result, something like this :
Later on I want to call the DLL from C# by using PInvoke/DLLImport.
Furthermore I want the DLL to work on both, x86 and x64 systems, - so I guess it needs to be built using x86 commands/registers, right (?)
Can someone give me some resources (not the finals solution please otherwise I won't learn anything) to get started to build a small DLL only with the stuff I need.
If you want to target x86 and x64, you're going to want to write 32-bit code. You'll find a DLL example in the Examples\DLL folder. It includes the source for a DLL, and the source for an EXE that imports it. That should get you off the ground.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum