flat assembler
Message board for the users of flat assembler.

Index > IDE Development > FASM with RadASM..

Author
Thread Post new topic Reply to topic
Ignat



Joined: 28 Feb 2004
Posts: 5
Ignat 28 Feb 2004, 11:09
Hi, people!
First I want to sorry of my bad English - I'm RUSSAIN programmer and for isn't very easy to speak English..
I'm an ASM beginner.. Yes, I know a lot of High Level Languages (like C++, Delphi, VB, Java, C# etc..)..
I studied TASM/MASM so I cann't say that I donno anything.. Smile
But.. You know, using MASM for win32-applications I usually write my projects in RadASM (I like it's form designer..). I can compile my project and link it with a .RES. It's important option for me (remember? I'm a begginer and came from Delphi,VC++).
A few time ago I started to learn FASM. Why? Hm.. They say it's a good assembler and while using it I understood it. To be honest, I enjoyed it! Smile
But.. one trouble.. I want to use FORM DESIGNER from RadASM (http://www.visualassembler.com) (it's a pity that "standart" fasmw.exe doesn't contain it..).. Then came the troubles..
RadASM cann't find fasm files (it want to have them in /fasm/bin, include-files in fasm/include).. OK.. I create these folders and copy there fasm.exe (in /fasm/bin), all include files (to /fasm/include).. Ok.. Now I can assemble it and get .OBJ file.. Then I try to buid it - nothing! Error! RadASM ask me to give him linker! (I've not seen it in fasm-package.. may be you should add linker's and resource-compilers to that package?). I made some research ( Smile ) and found out that I need GoLinker (and GoRC..). OK. I found them and add them to /fasm/bin directory . Clicking "build" -> "the file isn't in COFF format or corrupted!". I tryed to find out how to make GoLinker to "understand" PE - but nothing..
Please, don't laugh at me! I'm just a beginner!
Can you explain me what I should do? May be I need to download some special fasm-package? May be I need to set some options in GoLinker? (or may be I don't need to use it..)..
Anybody, who used FASM on RadASM - HELP!
May be, you can send me the "right" package (with all files I need? I'll be very happy..)..
May be I should make some changes in fasm.ini (I mean in RadASM-package..).
OK.. Thanks for attention.

P.S. If I wrote topic not in the right part of forum - sorry..

_________________
If the ship don't know where to go - it has no fair wind...
Post 28 Feb 2004, 11:09
View user's profile Send private message ICQ Number Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 28 Feb 2004, 12:31
Hi.
So, I am not a RadAsm user but AFAIK, RadAsm assumes that you will use two-stage build process -> source->object->executable. FASM can create COFF object files, but also FASM can create directly executable files in one stage process: source->executable. Most of the FASM programmers uses this approach, because it is (IMHO) more convenient and compilation is really fast. So, probably you can't use RadAsm with sources that are for direct exe creating ("format PE" directive) or at least there should be some settings in RadAsm to skip link stage.

My advice is: Try FASMW with some external resource editor. FASM can link binary resources in resource section, so you are not forced to create resources via macroses anymore.
Another althernative is the project Fresh. It have some advanced features, but it is in pre-alpha stage now.

Regards
Post 28 Feb 2004, 12:31
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 28 Feb 2004, 13:45
Hi, I send you the settings needed for RadAsm to do what you want. Modify the files to reflect your directories. You will need fasm.exe, golink.exe and radasm.exe

I suggest you however to take a look at fresh because despite is an alpha version, it can do things you cannot do with radasm.


Description:
Download
Filename: radasm_fasm.zip
Filesize: 10.64 KB
Downloaded: 795 Time(s)

Post 28 Feb 2004, 13:45
View user's profile Send private message Yahoo Messenger Reply with quote
Ignat



Joined: 28 Feb 2004
Posts: 5
Ignat 28 Feb 2004, 17:49
Oh, thank you very much!
Let's see.. Smile

_________________
If the ship don't know where to go - it has no fair wind...
Post 28 Feb 2004, 17:49
View user's profile Send private message ICQ Number Reply with quote
Fungos Bauux



Joined: 19 Jan 2005
Posts: 31
Location: CWB
Fungos Bauux 19 Jan 2005, 15:51
pelaillo can you send your settings to me too? I have the same probleams that Ignat.

Thanks
Post 19 Jan 2005, 15:51
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 19 Jan 2005, 16:30
Yes, my latest modified settings could be downloaded from here:

http://www.geocities.com/pelaillo/prg/radfasm_ini.zip

I kept this updated, however I will try to fix my home page as soon as possible.
Post 19 Jan 2005, 16:30
View user's profile Send private message Yahoo Messenger Reply with quote
Fungos Bauux



Joined: 19 Jan 2005
Posts: 31
Location: CWB
Fungos Bauux 01 Feb 2005, 12:59
When I try to build the TestFasm project that already comes with RadASM i got this message:

--
GORC /r "TestFasm.rc"

Make error(s) occured.
Total compile time 1859 ms
--

I tried to use your ini pelaillo, but nothing happens... I changed everything on fasm.ini that call the command GORC /r,1 to full path to GORC.exe .. but dont work too.. I think that its running gorc, but getting error from GORC execution, but in TestFasm.rc only have one line:

--
#include <Res\MainDlgDlg.rc>
--

And in this file (within radasm\fasm\ directory) I got this:

--
#define IDD_DLG1 1000
#define IDC_BTN1 101
#define IDC_BTN2 102
#define IDC_STC1 1003
IDD_DLG1 DIALOGEX 6,6,194,106
CAPTION "Desktop configuration"
FONT 8,"MS Sans Serif"
STYLE 0x10CF0000
EXSTYLE 0x00000000
BEGIN
PUSHBUTTON "OK",IDC_BTN1,46,66,46,24,NOT 0x00820000|0x50010000,0x00000000
PUSHBUTTON "Cancel",IDC_BTN2,98,66,46,24,NOT 0x00820000|0x50010000,0x00000000
LTEXT "Do you need additional place for the beer?",IDC_STC1,32,24,136,19,NOT 0x00830000|0x50000000,0x00000000
END
--

I really dont have any clue for this.. I know about Fresh.. but I like to try RadASM cause I will use MASM and NASM too...
Post 01 Feb 2005, 12:59
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 01 Feb 2005, 16:07
What is the error from GoRC? (Try to launch GoRC from command line if nothing is catched by RadAsm)

Fasm does not need an external linker in order to link resources. You could produce a RES file by means of ResHacker.

I will look for a complete example about this. (but I think there are already several examples here on the board)
Post 01 Feb 2005, 16:07
View user's profile Send private message Yahoo Messenger 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.