BeBits Information Developer Central Submit Application Your Account Web Links Contact Us
BeBits
Please support our sponsors!
NASM Sample for BeIDE
version 1.0
contact publisher
home page
screenshots
version history
other reviews
send updates for this application
talkback
0 comments
 Published by Kevin H. Patterson
   Click here for more information about this publisher...
 Date Posted:   March 13th, 2001
 Last Updated:   March 13th, 2001
 License: Freeware
 Downloads: 1,495 total; 1 recently
 Page Views: 10,786 total
 User Rating: awaiting 10 votes Give this application a rating
 Jump to the Downloads section
About NASM Sample for BeIDE:
A NASM Sample Project for BeIDE Shows how to call Functions or Procedures written in Assembly from C++, using the BeIDE.

So, you wanna be an assembly c0d3r? Well...

I spent about 5 hours staying up 'til 1 AM trying to get NASM to work in a BeIDE Project... So I'll save you the trouble.

This package contains a (very) simple BeIDE Project that shows how to use 32-bit x86 Assembly code from a C++ program, using BeIDE and NASM for BeOS. In order to make any use of this, you will (obviously) need BeIDE (part of the BeOS Developer Tools), and NASM for BeOS. Links to these tools are at the bottom of this page.

Granted, my C++ skills currently leave a lot to be desired, and the included code is pretty basic. But hopefully it will give you the basic idea. I will update this application periodically to offer new examples, and (eventually) a do-it-yourself BeOS / C++ / NASM tutorial! But please humor me for now.

TIPS ON USING THIS:

1) Install The BeOS Developer's Toolkit, and verify that BeIDE is functioning properly.

2) Install NASM for BeOS.

3) YOU WILL NEED TO add a link to the nasm binary (/boot/home/config/bin/nasm) to the folder /boot/develop/BeIDE/tools/
I don't understand why the NASM installer doesn't do this, but BeIDE will FAIL to assemble any ASM source if it can't find the assembler. I think I will contact them about this.

4) After installing NASM, you need to FOLLOW THE DIRECTIONS in the NASM README FILE.

5) Assembly source code (.asm) files added to your project need to have the '.asm' extension.

6) In order to call an Function (or Procedure) written in assembly, from C++, you need to declare the function's prototype somewhere in your C++ program (preferably in an '.h' file). In order for the linker to find your function, you need to add the asm("functionname") modifier to the end of your function prototype. Please see the "Test.h" file in this project for an example.

7) You can find out about the details of C++, GCC, calling conventions and passing variables by searching the net for this information, using Keywords like C++, GCC, ASM, Assembler, and Linux.

Have Fun!!!

Please write some great Appz for BeOS now that you have become an assembly guru.

-Kevin H. Patterson
Latest Version
   
Details about this version:
Sample BeIDE Project and README file to get you started.
Requires the BeOS Developer's Toolkit, NASM for BeOS, and a knowledge of 32-bit Assembly Language for x86 systems.

 
Intel Version - requires R5   (7 KB) 1,495 downloads
 
 
Dev LinkLink reliability rating  [rating: 10]    Download this app  Report bad link Primary Location
 
Add Additional Location
  Source Included
 
Related Links:
Post your own comment to the Talkback for this application!
Report a problem with the listing for this application!
Like this app? Have questions or comments?
Why not tell the author? Use the "e-mail publisher" link to get in touch with the publisher; they usually love getting feedback.
 
BeGroovy
  Recent Downloads  -  # 681
Total Downloads  -  # 1,485
Total Views  -  # 1,186
User Ratings  -  N/A
  Dev. IDE Addons
Dev. Languages
Example Code
1.  QEMU - 9.62
2.  ScummVM - 9.50
3.  cpu_fix - 9.42
4.  Jukebox - 9.36
5.  Haiku AGP busm... - 9.35
6.  vim6 - 9.31
7.  Transmission - 9.27
8.  Beezer - 9.25
9.  BeeF - 9.25
10.  HandBrake - 9.24
1.  Ati Radeon Grap... - 410
2.  BeOS 5 Personal... - 231
3.  Realtek RTL8139... - 209
4.  USB Serial driver - 143
5.  ATI Rage 128 Pr... - 106
6.  VLC Media Player - 100
7.  Ensoniq AudioPCI... - 85
8.  Broadcom 440x 10... - 79
9.  Sound Blaster Pr... - 79
10.  S3 Trio 64 v2 DX... - 69
You are not logged in.
 Login or create an account...
Hosted by NetConnect

 
Unless otherwise noted, everything is copyright © 1999-2002 Fifth Ace Productions, LLC. All Rights Reserved.
For more legal trivia, take a gander at our
Legal Stuff page and our Privacy Statement.
Fifth Ace Productions