Setting up NASM with Windows

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
James

Setting up NASM with Windows

Post by James »

I have had to get rid of NASM, as it broke on me!

I have windows xp and need to know how to install NASM 98.83

I have unpacked all the files from the .zip to C:\Nasm

Any help is much appreciated thanks ;)
Kemp

Re:Setting up NASM with Windows

Post by Kemp »

Did you read the very short and to-the-point related info in the NASM Manual? Specifically section 1.3.1 - Installing NASM under MS-DOS or Windows.
James

Re:Setting up NASM with Windows

Post by James »

Yes, but I cannot find any .exes in my unpacked folder!

What I need is a step by step. Really detailed instructions..
Tolga

Re:Setting up NASM with Windows

Post by Tolga »

Are you sure that you downloaded true file? Because there are exe files of nasm in package.
James

Re:Setting up NASM with Windows

Post by James »

Can you give me the link to the version I need please?
User avatar
gaf
Member
Member
Posts: 349
Joined: Thu Oct 21, 2004 11:00 pm
Location: Munich, Germany

Re:Setting up NASM with Windows

Post by gaf »

Most probably you just downloaded the wrong package. Get the win32 binaries from sourceforge, unzip the files to c:\nasm and then run nasmw.exe from a DOS prompt.

cheers,
gaf
James

Re:Setting up NASM with Windows

Post by James »

OK. I did this in command prompt

Code: Select all

cd C:\Nasm
start nasmw.exe
The window flashed and I typed 'exit' into the dos window

Has that been it?
Kemp

Re:Setting up NASM with Windows

Post by Kemp »

At this juncture I'd suggest you get a lot more experience with the tools and techniques related to programming, and do a lot of userland programming before even considering writing an OS. I'm noticing a lot of gaps in your knowledge along with a general unwillingness to experiment and explore under your own steam. Related to that I'd also suggest reading as much of everything as you can, it'll be good practice for when you have to read vast amounts of (sometimes terrible) documentation for the various devices in a PC (or your intended target platform).

In answer to your question, you run NASM with various commandline parameters in order to assemble your program, invoking it on its own (to my knowledge) should merely result in it giving an error or giving you a list of possible parameters (or both).
James

Re:Setting up NASM with Windows

Post by James »

I tried to compile one of .asm files and it said nasm was an un-recognised command

Nasm is a new tool for me. Once I get used to it, I will be able to work better!
Tolga

Re:Setting up NASM with Windows

Post by Tolga »

I found.

http://uk.geocities.com/rob_anderton/nasmide.zip

This is NasmIDE. Using this, you can compile easily.


Cheers,
Tolga
Candamir

Re:Setting up NASM with Windows

Post by Candamir »

James wrote: I tried to compile one of .asm files and it said nasm was an un-recognised command
That's because the file isn't called nasm.exe but nasmw.exe (NASM for Windows). If you still want to use 'nasm' instead of 'nasmw', just edit the file name. It works!

Candamir

PS: I also recommend to add the NASM directory to your path.
James

Re:Setting up NASM with Windows

Post by James »

Well I am using the nasmide but need to get that working!
Post Reply