flat assembler
Message board for the users of flat assembler.

Index > Windows > DLL over intermediate language with C#

Author
Thread Post new topic Reply to topic
catafest



Joined: 05 Aug 2010
Posts: 129
catafest 15 Mar 2015, 12:34
I saw some tutorials about how to use Intermediate language over C#.
My question is:

What is the correct fasm format (maybe one example and skils/formats/infos ) to make some functions under dll file and also to use with Intermediate language over C#?
Post 15 Mar 2015, 12:34
View user's profile Send private message Visit poster's website Yahoo Messenger Reply with quote
l_inc



Joined: 23 Oct 2009
Posts: 881
l_inc 15 Mar 2015, 13:06
catafest
Please, elaborate. What exactly do you want to achieve?

_________________
Faith is a superposition of knowledge and fallacy
Post 15 Mar 2015, 13:06
View user's profile Send private message Reply with quote
catafest



Joined: 05 Aug 2010
Posts: 129
catafest 15 Mar 2015, 17:49
l_inc wrote:
catafest
Please, elaborate. What exactly do you want to achieve?

I try today LinqPad and this help me to see something more about assembling language under C# App.
Can be this a good help over fasm coding with C# example ?
For example I see one tutorial how has this source code :
Code:
 .maxstack 2
    .entrypoint
    
    ldstr "The sum of 50 and 30 is = "
    call void [mscorlib]System.Console::Write (string)
    
    ldc.i4.s 50
    ldc.i4 30    
    add
    call void [mscorlib]System.Console::Write (int32)
    ret    

as you can see somethis it's like fasm :
.maxstack 2
Post 15 Mar 2015, 17:49
View user's profile Send private message Visit poster's website Yahoo Messenger Reply with quote
l_inc



Joined: 23 Oct 2009
Posts: 881
l_inc 15 Mar 2015, 18:04
catafest
OK. So you want to write code using the .net byte code assembly language. It is possible to do with fasm, but you'd need to create a set of macros for that. Here's an example of this for Java bytecode.

However to clarify my concerns:
1) It is possible to call the native x86/x64 code written in fasm from your C# code, if you compile your fasm source into a separate dll.
2) It is possible to link the native x86/x64 code written in fasm together with your C# project, if you compile your fasm source into an object file.

_________________
Faith is a superposition of knowledge and fallacy
Post 15 Mar 2015, 18:04
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.