flat assembler
Message board for the users of flat assembler.

Index > Main > 40 OpenGL examples in Masm to be converted in Fasm

Author
Thread Post new topic Reply to topic
psykhaze



Joined: 18 Nov 2012
Posts: 4
Location: France
psykhaze 18 Nov 2012, 15:46
Hi everybody,
I am a newbie in assembly language Cool and i found a bunch of tutorials in openGL for Masm http://franck.charlet.pagesperso-orange.fr/Ogl_Asm.zip . As i prefer Fasm to Masm, i tried to compile these examples but i couldn't compile any of the examples,due to syntaxic problems betweem Masm and Fasm.
I have been hacking around for a day and i feel like lost because of no results. I have a lot of free time and i can work on the subject but i need support.

May somebody help me? Rolling Eyes
I think these tutorials should be useful for everybody once ported.
Thanks for the answers Smile
Post 18 Nov 2012, 15:46
View user's profile Send private message MSN Messenger Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 18 Nov 2012, 16:24
Hi.
If you ask specific questions, someone will answer them. Probably. Smile
Post 18 Nov 2012, 16:24
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
psykhaze



Joined: 18 Nov 2012
Posts: 4
Location: France
psykhaze 18 Nov 2012, 19:34
I have first some problems of syntax regarding the general includes
(i must put quotes and relink the files)
I also i tried Apiresolve/inc2inc to port ole32 and oleaut32 which weren't there. I have problems with preprocessor directives like ifdef or ifndef or ifidn or else and endif . Wich proper syntax must i use ? is there kind of soft wich could corect masm syntax to fasm?
Post 18 Nov 2012, 19:34
View user's profile Send private message MSN Messenger Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 767
tthsqe 18 Nov 2012, 20:43
If you post the actually asm file here (not link to it) and it is not too long I might be able to help you convert it.
Post 18 Nov 2012, 20:43
View user's profile Send private message Reply with quote
psykhaze



Joined: 18 Nov 2012
Posts: 4
Location: France
psykhaze 18 Nov 2012, 20:54
Here is one of the files that gives me headaches, it is a bunch of type conversion used in many others sources of the examples.
Let's start with the beginning Smile


Description: macros file
Download
Filename: Macros.asm
Filesize: 3.55 KB
Downloaded: 499 Time(s)

Post 18 Nov 2012, 20:54
View user's profile Send private message MSN Messenger Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 18 Nov 2012, 22:41
Well, this file uses MASM syntax. You can't compile it with FASM. You have to read about FASM macro syntax and convert needed macros into the FASM syntax.
IMHO, some of these definitions will not be needed for FASM sources, but you must analyze then one by one.
Also, for tutorials (IMHO) you should avoid excessive use of complex macro definitions.
Post 18 Nov 2012, 22:41
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
nop



Joined: 01 Sep 2008
Posts: 165
Location: right here left there
nop 19 Nov 2012, 22:22
JohnFound wrote:
Well, this file uses MASM syntax. You can't compile it with FASM.
i think he kinda knew that already Razz
Post 19 Nov 2012, 22:22
View user's profile Send private message Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 767
tthsqe 20 Nov 2012, 07:37
psykhaze,
if you post a asm file for a working program (not a link, and not a bunch of macros), i can prob. help you
smaller programs are preferable
Post 20 Nov 2012, 07:37
View user's profile Send private message Reply with quote
psykhaze



Joined: 18 Nov 2012
Posts: 4
Location: France
psykhaze 21 Nov 2012, 16:25
mmmh well,thank you tthsqe,but the architecture of these tutorials include a framework i think a bit complicated to be simply be converted alone.If you are interested we can work on this,perhaps.I leave an exmaple program with all files needed i had under the hand.(the framework i talked about includes direct input and direct sound routines and many things i don't like etc).Anyway these example in opengl would fit for sure as very good tutorials at my advice.Thanks in advance to anyone motivated to help with the conversion Smile


Description:
Download
Filename: example.zip
Filesize: 255.04 KB
Downloaded: 496 Time(s)

Post 21 Nov 2012, 16:25
View user's profile Send private message MSN Messenger Reply with quote
tthsqe



Joined: 20 May 2009
Posts: 767
tthsqe 22 Nov 2012, 03:52
hmm, i still don't see an working program (.exe) in there.
I'll keep looking and see if i can figure out what is going on in these files, like Alpha_Blend_Texture.

Have you played with the opengl demo included with fasm?
You should be able build things from the ground up using those examples as a guide.

converting that much code should be a long task...
Post 22 Nov 2012, 03:52
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.