More with NASM

This is a discussion on More with NASM within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I downloaded the NASM 32 bit windows binaries, it included NASM.exe and ndisasm.exe, now how do I compile .asm files ...

  1. #1
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949

    More with NASM

    I downloaded the NASM 32 bit windows binaries, it included NASM.exe and ndisasm.exe, now how do I compile .asm files into .exe executables? Also, where are some good NASM tutorials? Thanks !
    Do not make direct eye contact with me.

  2. #2
    Wen Resu
    Join Date
    May 2003
    Posts
    219
    In nasm fodler
    nasm.exe somefile.asm -o output.exe

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    There's all the information you need on building for various platforms within the documentation provided with NASM.

    Failing that, there's up to date documentation and good information on the sourceforge site that you already know about.

    Again...failing that there's a wealth of info on google

  4. #4
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    I tried Iamiens way with this code:
    Code:
    section .data
    	msg db 'Yay, my first NASM program!!!',0x0A
    	len equ $ - msg
    section .text
    	global _start
    	_start:
    		mov eax, 4
    		mov ebx, 1
    		mov ecx, msg
    		mov edx, len
    		int 0x80
    		mov eax, 1
    		int 0x80
    Compiled fine, but came up with an error on run. Compiled like this:
    NASM test.asm -o test.exe
    Anyone know the problem? And I'll look on Google some more...
    Do not make direct eye contact with me.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 04-26-2009, 06:59 AM
  2. Nasm
    By audinue in forum Tech Board
    Replies: 3
    Last Post: 01-13-2009, 02:07 PM
  3. What's wrong with my Allegro?
    By kooma in forum Game Programming
    Replies: 4
    Last Post: 12-28-2007, 02:42 AM
  4. Asm + C++
    By JaWiB in forum C++ Programming
    Replies: 17
    Last Post: 06-26-2003, 04:13 PM
  5. Getting a return value from a DLL in (N)ASM
    By dirkduck in forum C++ Programming
    Replies: 2
    Last Post: 08-02-2002, 03:13 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21