|
|
|
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 |
 |
|
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 |
|
 |
|
 |
 |
| |
  |
[rating: 10] |
|
 |
Primary Location |
|
|
| Add Additional Location |
 |
|
 |
|
| Source Included |
 |
 |
 |
 |
 |
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.
|
|
|