These are the changes I made to fully support FASM 1.46 on RadASM. I'll keep working on new and better ways of doing stuff in fasm but for now it works pretty good. I pretty much cover all the changes in the new help file but I'll give the fasm users (and potential users) a good start. You'll have to do alot of the downloading yourself so the attachment stays small :

Instructions :

This is an example of Win32 programming using FASM.

You have to download the following files -

GoRC.exe
GoLink.exe


both of these tools are available from :

http://www.godevtool.com/

It's also a good idea to get Win32.hlp it can be found at (this is a very large file) :

http://info.borland.com/devsupport/delphi/downloads/

You need Fasm 1.46 with alink, it can be found here:

http://www.asmcommunity.net/board/index.php?topic=12852

Putting it all together

Unzip fasm 1.46 to a folder called C:\FASM, then unzip the FASM folder in my zip over it, you will be asked to overwrite files, answer yes. It updates a few includes and creates some folders. Copy GoRC and GoLink to the \FASM\BIN folder. Copy FASM.INI into the C:\RadASM folder, backup your old copy first as this will overwrite it.

The examples

\TestFasm - this is an example project, copy it to \RadASM\FASM\Projects
\TestDLL - this is an example DLL project, copy it to \RadASM\FASM\Projects

Using it

open the \TestFasm folder and double-click on TestFasm.RAP to try it out, be sure to compile the RC before building :)

When you create a project, the type Win9x Unicode requires that Unicows.dll (Microsoft Layer For Unicode) be in the C:\FASM\BIN folder

If you find that a function is missing when you compile a project add the dll that it is in to the list in C:\FASM\BIN\GFL.TXT

EDIT: be sure to get the updated INI at the bottom of this thread as well
Posted on 2003-05-07 19:33:59 by donkey
Forgot to mention, you will need to set the following environment variable (for FASM to find it's include path)

include=C:\FASM\INCLUDE
Posted on 2003-05-08 01:52:08 by donkey
Hi Donkey

Could you explain how to set the enviroment variable. I'm shure a lot does not know how to do that.

KetilO
Posted on 2003-05-08 02:39:15 by KetilO
Hi everybody,

Here's how to set an environment variable:

Right click on the my computer icon and select properties. In the advanced tab you will find a button that says "environment variables", In system variables add a new variable named include with a value of C:\FASM\INCLUDE.

EDIT: I'm sorry, I have a habit of assuming everyone runs Win2K.

In Win95 add the following line to autoexec.bat:
SET include=C:\FASM\INCLUDE

In Win98
Select run from the start menu and type MSCONFIG

In the Autoexec tab select new and type the Win95 line
Posted on 2003-05-08 07:37:29 by donkey
Hi Donkey

The version (Version 0.55a) of GoRc.exe I have does not handle quoted filenames.

RadASM handles this if the command line contains GORC.EXE

So the command should be:

4,OT,$B\GORC.EXE /r,1

KetilO

Edit:
Latest version (0.60) handles quoted filenames.
Posted on 2003-05-08 08:48:06 by KetilO
Hi Ketil,

I tried the .EXE and it works, why doesn't that work on all of the command lines ? On Assemble and Link the output was the same.

Hi Everyone

Here is the changed fasm.ini file, there was also an error in the section- the debug version of the link command which was supposed to be 13 said 3 instead, it was corrected.
Posted on 2003-05-08 09:52:45 by donkey

You need Fasm 1.46 with alink, it can be found here:

http://www.asmcommunity.net/board/...&threadid=12852


Can't download, any other place where i can get it?
Maybe someone could attach it here?
Thx
Posted on 2003-05-30 16:19:09 by Aaro
Hang on, I see what you mean ... I'll look for it.

Get it here, very temporarily I'll find the original somewhere:

<Url is no longer valid>
Posted on 2003-05-30 16:25:33 by donkey
Please post when you've gotten it so I can delete it from my webspace :)
Posted on 2003-05-30 16:34:57 by donkey
That was fast!
Thx a lot!
Posted on 2003-05-30 16:44:45 by Aaro