flat assembler
Message board for the users of flat assembler.

Index > Unix > FASM for BeOS

Author
Thread Post new topic Reply to topic
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 28 Jun 2004, 00:13
Hello everyone!

This is a version of FASM that can be used with BeOS. It's now at version 1.56. The icon that theuserbl contributed can optionally be added to the binary. I've tested this under BeOS R5 Pro; reports on using it with Haiku or Zeta would be appreciated as well.

To build and install it, run make. This should work under GCC 2.9x and 3.x, but I haven't tried it under the 3.x versions yet. If you want the icon to be added to the binary, also run make icon before installing it.

I'll try not to take as long between updates in the future.


Description: FASM 1.56 for BeOS
Download
Filename: fasm156-crc.tar.gz
Filesize: 262.44 KB
Downloaded: 1209 Time(s)


_________________
Charles Childers, Programmer


Last edited by crc on 07 Jan 2005, 11:32; edited 2 times in total
Post 28 Jun 2004, 00:13
View user's profile Send private message Visit poster's website Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 28 Jun 2004, 00:30
The latest version can now be found at BeBits! See http://www.bebits.com/app/3917 for the BeBits page on FASM
Post 28 Jun 2004, 00:30
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8351
Location: Kraków, Poland
Tomasz Grysztar 28 Jun 2004, 08:55
One small note: I think you should pass the parameter that you've got in AL on the entry to "exit_program" routine to the "exit" call. Because without this it's not possible to check whether there were some errors from outside the program.
Post 28 Jun 2004, 08:55
View user's profile Send private message Visit poster's website Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 02 Jul 2004, 07:50
I'm making headway with the exit routine, but it's not quite there yet. Is there an easy way for me to print the exit code BEFORE exiting, so I can isolate the problem more easily?
Post 02 Jul 2004, 07:50
View user's profile Send private message Visit poster's website Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 18 Sep 2004, 11:44
I updated the attachment in the first post to version 1.55. There are a few additional improvements to the build process as well. See the updated text for details.
Post 18 Sep 2004, 11:44
View user's profile Send private message Visit poster's website Reply with quote
stanks



Joined: 01 Dec 2003
Posts: 36
Location: Croatia
stanks 19 Dec 2004, 13:16
Hi

I build fasm from source for BeOS, but when i run it i receive error "fasm has encountered an error which prevents it from continuing. The BeOS will terminate the application and clean up". Details shows this:
"
Thread Name: fasm
Error: segment violation

Team ID: 597 Thread ID: 3440
EIP: 0x80005f1f
"

What should i do?

Thanks

stanks
Post 19 Dec 2004, 13:16
View user's profile Send private message ICQ Number Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 19 Dec 2004, 13:27
What version of BeOS are you using?
Post 19 Dec 2004, 13:27
View user's profile Send private message Visit poster's website Reply with quote
stanks



Joined: 01 Dec 2003
Posts: 36
Location: Croatia
stanks 19 Dec 2004, 13:58
BeOS R5 MaxEdition v3.1
Post 19 Dec 2004, 13:58
View user's profile Send private message ICQ Number Reply with quote
stanks



Joined: 01 Dec 2003
Posts: 36
Location: Croatia
stanks 19 Dec 2004, 14:01
gcc v2.9
Post 19 Dec 2004, 14:01
View user's profile Send private message ICQ Number Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 19 Dec 2004, 20:58
Try this:

In source/BeOS/system.inc change:

Code:
exit_program:
        ccall   free,[additional_memory]
        mov     esp,[stack_frame]
        pop     ebp
  cmp eax, 8
  jnz .a
  mov eax, 0
.a:     push dword eax
        call exit
        ret    


to:

Code:
exit_program:
        push dword 0
        call exit
        ret    


Recompile and the new binary should work properly. I'll see about fixing the exit function when I start on the port of FASM 1.56 for BeOS in a week or so.
Post 19 Dec 2004, 20:58
View user's profile Send private message Visit poster's website Reply with quote
stanks



Joined: 01 Dec 2003
Posts: 36
Location: Croatia
stanks 20 Dec 2004, 19:11
Still same problem.
Post 20 Dec 2004, 19:11
View user's profile Send private message ICQ Number Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 21 Dec 2004, 01:24
Now I'm very confused. That *should* have worked Sad
Post 21 Dec 2004, 01:24
View user's profile Send private message Visit poster's website Reply with quote
stanks



Joined: 01 Dec 2003
Posts: 36
Location: Croatia
stanks 21 Dec 2004, 05:04
Maybe the problem is with my BeOS installation. I don't know either.
Post 21 Dec 2004, 05:04
View user's profile Send private message ICQ Number Reply with quote
stanks



Joined: 01 Dec 2003
Posts: 36
Location: Croatia
stanks 21 Dec 2004, 05:32
This is happening (probably) when fasm have to show usage info. Maybe i can help? How to debug it under BeOS?
Post 21 Dec 2004, 05:32
View user's profile Send private message ICQ Number Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 07 Jan 2005, 01:50
Try this: http://www.retroforth.org/dev/fasm156-crc.tar.gz

If it fully rebuilds, you'll have a working copy of Fasm 1.56 for BeOS.
Post 07 Jan 2005, 01:50
View user's profile Send private message Visit poster's website Reply with quote
stanks



Joined: 01 Dec 2003
Posts: 36
Location: Croatia
stanks 07 Jan 2005, 08:32
New fresh installation of BeOS but same problem. np ... v1.53 works ok.

stanks
Post 07 Jan 2005, 08:32
View user's profile Send private message ICQ Number Reply with quote
hamoz



Joined: 14 Dec 2006
Posts: 29
hamoz 21 Feb 2007, 01:23
hello,

ANYONE can you tell me exactly how to make fasm executable

to run on BeOS.......

thanks

newbie Cool
Post 21 Feb 2007, 01:23
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 11 Mar 2007, 20:28
hamoz, try this in a Terminal:

Code:
wget http://flatassembler.net/fasm-1.67.tar.gz
tar xzvf fasm-1.67.tar.gz
cd fasm
gcc fasm.o -o fasm
    


That should create a FASM binary that you can use. I'll revive my build farm in a few weeks; then I should be able to provide current FASM binaries for BSD and BeOS users. (My current contract job is nearly done; it's tied me up for the last few months)
Post 11 Mar 2007, 20:28
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:  


< 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.