flat assembler
Message board for the users of flat assembler.

Index > Windows > MASM to FASM function prototype converter

Goto page 1, 2  Next
Author
Thread Post new topic Reply to topic
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 19 Nov 2003, 18:13
Hi friends,

Here is the the latest release of my tool inc2inc V1.04. The converter translates Masm include files to Fasm style function declarations.

Note that to avoid duplicate code sections, the text section should be declared as:

Code:
section '.text' code readable executable
    


The attachment includes a Win32 GUI template from Privalov and a console example which uses Hutch's masm32 static library.

The feature of this release is that it uses modified stdcall and cinvoke macros to allow indirect function calls.


Description: MASM to FASM function prototype converter V1.04
Download
Filename: in2in104.zip
Filesize: 30.55 KB
Downloaded: 1224 Time(s)


_________________
Code it... That's all...
Post 19 Nov 2003, 18:13
View user's profile Send private message Visit poster's website Reply with quote
Yawgmoth



Joined: 20 Aug 2003
Posts: 37
Yawgmoth 19 Nov 2003, 21:32
Have you thought of extending the program to convert ALL masm files to fasm?
Post 19 Nov 2003, 21:32
View user's profile Send private message Reply with quote
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle 20 Nov 2003, 10:15
Hi Vortex!

this is a great work.

keep it cool! Master!


Harry

_________________
Microsoft: brings power of yesterday to computers of today.
Post 20 Nov 2003, 10:15
View user's profile Send private message Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 20 Nov 2003, 18:30
Hi Yawgmoth,

Converting all the Masm files with the help of a tool is a difficult task. I think the best is to do this manually.

Hi HarryTuttle,

Thanks for your kind words.

_________________
Code it... That's all...
Post 20 Nov 2003, 18:30
View user's profile Send private message Visit poster's website Reply with quote
Yawgmoth



Joined: 20 Aug 2003
Posts: 37
Yawgmoth 21 Nov 2003, 00:15
Vortex, I don't follow your logic. Wouldn't converting masm files to fasm be easier WITH a tool than doing by hand?
Post 21 Nov 2003, 00:15
View user's profile Send private message Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey 21 Nov 2003, 03:30
Yawgmoth,

What do you mean by all masm files? Do you mean only the structures and equates in addition to the function prototypes or would the tool need to convert code also?

_________________
silkodyssey
Post 21 Nov 2003, 03:30
View user's profile Send private message MSN Messenger Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 21 Nov 2003, 10:11
Yawgmoth,

Same question, what do you mean with converting all Masm files?

_________________
Code it... That's all...
Post 21 Nov 2003, 10:11
View user's profile Send private message Visit poster's website Reply with quote
Yawgmoth



Joined: 20 Aug 2003
Posts: 37
Yawgmoth 21 Nov 2003, 16:11
I mean converting assemby files written in masm syntax into assembly files written is fasm syntax, so that you could get some masm source code, run it thru the program, and then compile the file in fasm with no other modifications.
Post 21 Nov 2003, 16:11
View user's profile Send private message Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey 21 Nov 2003, 16:16
That would be a lot of work because masm is a huge language Very Happy

_________________
silkodyssey
Post 21 Nov 2003, 16:16
View user's profile Send private message MSN Messenger Reply with quote
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle 21 Nov 2003, 20:16
language like language ,always assembly but the MASM's syntax is more complicated for those people who always have been using FASM...like me;)

_________________
Microsoft: brings power of yesterday to computers of today.
Post 21 Nov 2003, 20:16
View user's profile Send private message Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey 21 Nov 2003, 21:24
Masm has a lot of features that the other assemblers don't. With the effort required to create a tool to convert masm code to fasm code, vortex could write his own assembler Very Happy

_________________
silkodyssey
Post 21 Nov 2003, 21:24
View user's profile Send private message MSN Messenger Reply with quote
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9 22 Nov 2003, 06:20
Fighting! Vortex Smile

GO! GO! FASM Very Happy

--
i want c# compiler written in fasm :O
Post 22 Nov 2003, 06:20
View user's profile Send private message Reply with quote
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle 22 Nov 2003, 20:33
maybe you are right and vortex could write the new assembler with all MASM and FASM features....
maybe it is less complicated than full syntax converter...
but 4 me it is better to write pure asm code with FASM instead of almost like C MASM constructions ....

regards

Harry

_________________
Microsoft: brings power of yesterday to computers of today.
Post 22 Nov 2003, 20:33
View user's profile Send private message Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey 22 Nov 2003, 20:38
What would be nice is a more high level version of fasm with built in high level control structures like masm (.if and friends ). Very Happy

_________________
silkodyssey
Post 22 Nov 2003, 20:38
View user's profile Send private message MSN Messenger Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 23 Nov 2003, 12:04
silkodyssey,that's a nice idea.

_________________
Code it... That's all...
Post 23 Nov 2003, 12:04
View user's profile Send private message Visit poster's website Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 02 Dec 2003, 18:30
Version 1.05

This new version declares external functions with the extrndef macro:

Code:
extrndef '_MessageBoxA@16',MessageBox
    


Code:
macro extrndef decorated_name,name
{
if used name
extrn decorated_name as name : dword
end if
}
    


Description:
Download
Filename: in2in105.zip
Filesize: 23.79 KB
Downloaded: 894 Time(s)


_________________
Code it... That's all...
Post 02 Dec 2003, 18:30
View user's profile Send private message Visit poster's website Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 18 May 2004, 20:17
Hi friends,

Examples, macro files stdcall.inc + cdecl.inc revised to work with Fasm V1.52


Description: MASM to FASM function prototype converter V1.051
Download
Filename: i2i1051.zip
Filesize: 25.99 KB
Downloaded: 914 Time(s)


_________________
Code it... That's all...
Post 18 May 2004, 20:17
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 19 May 2004, 05:15
silkodyssey - why do you want these features built-in?
Aren't macros enough?
Post 19 May 2004, 05:15
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
silkodyssey



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey 11 Sep 2004, 12:55
Quote:

silkodyssey - why do you want these features built-in?
Aren't macros enough?


I don't know what I was thinking then Very Happy. I've grown to like fasm as it is and I don't use the HLL macros.

_________________
silkodyssey
Post 11 Sep 2004, 12:55
View user's profile Send private message MSN Messenger Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 07 Aug 2005, 17:38
Version 1.06
========

- No need anymore to use modified stdcall.inc and cdecl.inc

- Examples assembled with Fasm 1.63.6


Description: MASM to FASM function prototype converter V1.06
Download
Filename: in2in106.zip
Filesize: 26.09 KB
Downloaded: 847 Time(s)


_________________
Code it... That's all...
Post 07 Aug 2005, 17:38
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2  Next

< 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.