flat assembler
Message board for the users of flat assembler.

Index > Windows > fasminng MASM INC's

Author
Thread Post new topic Reply to topic
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle 13 Nov 2003, 10:34
How to use inc file from masm?
Hi Privalov ,what do you think about inc convertor? or macro which can do an interpretation MASM inc for Fasm?

I do not expect you all Friends-programmers to translate this file into fasm, I'll do it myself but I think about a simple tool to translate scripting-languages like include files or setups between similar platform or programs.


see this:


Description:
Download
Filename: bass.inc
Filesize: 28.52 KB
Downloaded: 898 Time(s)


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



Joined: 02 Oct 2003
Posts: 198
Location: St.Vincent & the Grenadines
silkodyssey 13 Nov 2003, 11:46
You can try vortex's inc converter available at http://board.win32asmcommunity.net/attachment.php?s=&postid=105073. I am not sure if its a general purpose inc converter though. I've used it to convert masm32 include files (with api prototypes) to fasm syntax. I don't know if it will convert structs and constants but i guess there's only one way to find out. Very Happy Anyway even if its not a complete solution I think it will help you.

_________________
silkodyssey


Last edited by silkodyssey on 13 Nov 2003, 13:15; edited 1 time in total
Post 13 Nov 2003, 11:46
View user's profile Send private message MSN Messenger Reply with quote
Betov



Joined: 17 Jun 2003
Posts: 98
Betov 13 Nov 2003, 13:13
For the Win32 Equates, someone could be interrested with Equates.zip, available at:

< http://betov.free.fr/Download.html >

It is a Win32 Equates only File, in the form of:

A0_REG 010
A1_REG 011
A2_REG 012
A3_REG 013
A4_REG 014
A5_REG 015
AADBE_ADD_ENTRY 01
AADBE_DEL_ENTRY 02
...

(53,316 Equates).

If i recall well, FASM Equates are in the form of:

A0_REG equ 010

... so, replacing all the spaces by ' equ ', say, in UltraEdit, should do it easy.

(For the RosAsm Structures, i am afraid they are in a form that would not fit with FASM,

[ABC:|abcA D|abcB D|abcC D
[ABCFLOAT:|abcfA D|abcfB D|abcfC D
[ABSTIME:|sec D|ms D
[ACCEL:|fVirt B|pad0 B|key W|cmd W
...

and they will not be as complete and as reliable as the Equates File is, before several weeks...).



Betov.
Post 13 Nov 2003, 13:13
View user's profile Send private message Visit poster's website Reply with quote
aaro



Joined: 21 Jun 2003
Posts: 107
Location: hel.fi
aaro 13 Nov 2003, 14:53
If you have c header file you could try this python script:
http://board.flatassembler.net/topic.php?t=460
It will convert structures, enums and defines in fasm format, it performed pretty well on direct3d headers, macros were nearly all that i had to convert by hand.
If you don't have python you can get it here:
http://www.python.org/
Post 13 Nov 2003, 14:53
View user's profile Send private message Reply with quote
Vortex



Joined: 17 Jun 2003
Posts: 318
Vortex 13 Nov 2003, 17:00
Hary Tuttle,

My inc2inc tool converts only the function prototypes.

You can try also my external scanner for Fasm which elimantes the use of API include files:

http://board.flatassembler.net/topic.php?t=72

_________________
Code it... That's all...
Post 13 Nov 2003, 17:00
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 13 Nov 2003, 17:11
Altough "equ"-defined equates will work with fasm, I recommend to use "=" operator to define numerical constants - it is processed faster and allows forward references (if you are lazy, you can do "equ fix =" at the beginning Wink)
Post 13 Nov 2003, 17:11
View user's profile Send private message Visit poster's website Reply with quote
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle 13 Nov 2003, 21:40
Hi Friends!

U R really GR8 coders!!!
thanx a lot!
Harry

_________________
Microsoft: brings power of yesterday to computers of today.
Post 13 Nov 2003, 21:40
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.