Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Calling assembly routines from C

Share this post!
 Vote this!

Prerequisites for this tutorial


Tutorial introduction
This tutorial will be a basic demonstration of calling routines written in assembly from your C code. We will use NASM to compile our assembly code and GCC to compile our C code.

The assembly code
For the purpose of this tutorial, our assembly routine will be very simple, it will simply add two integers passed as parameters and return the result.  more...

0 comments:

Post a Comment