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: 335
Vortex
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: 558 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
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
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: 335
Vortex
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
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: 205
Location: St.Vincent & the Grenadines
silkodyssey
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: 335
Vortex
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
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: 205
Location: St.Vincent & the Grenadines
silkodyssey
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
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: 205
Location: St.Vincent & the Grenadines
silkodyssey
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
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
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: 205
Location: St.Vincent & the Grenadines
silkodyssey
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: 335
Vortex
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: 335
Vortex
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: 308 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: 335
Vortex
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: 333 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: 7106
Location: Slovakia
vid
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: 205
Location: St.Vincent & the Grenadines
silkodyssey
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: 335
Vortex
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: 285 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-2019, Tomasz Grysztar.

Powered by rwasa.