Re: Getting NASM from C

From: T.M. Sommers (tms_at_nj.net)
Date: 05/27/04


Date: Thu, 27 May 2004 02:30:14 -0400

assemblyperson wrote:
> I have been trying to find the complete list of int 80h system calls
> together with information about how the registers need to be set up
> prior to the call in NASM under Debian Linux. I also wish not to
> learn the C programming language.

Your two goals are mutually exclusive. In Unix, the interface to
the system is defined in C, not assembly. You just have to live
with that.

> Man 2 write, for instance is unreadable unless you can program in C,
> and it never tells you what the registers are loaded with in terms of
> NASM.

Unix, including Linux, runs on many different platforms.
Therefore, the system cannot be defined or documented in terms of
the assembly language of one particular platform. Not every
platform has an EAX register, for instance.

> The system calls are
> not documented by the operating system itself (at least not on my
> machine).

They are, in section 2 of the man pages. They are just not
documented in terms of assembly language.

Have you looked at http://linuxassembly.org/ ?