Page 1 of 1

Nasm

Posted: Sat Aug 12, 2006 3:40 am
by James
I cannot compile my work with NASM. Im either not doing it properly or it doesnt work.

My version is 0.98, I have all the C files etc, but not sure what to do with them!

Re:Nasm

Posted: Sat Aug 12, 2006 3:48 am
by Guest
Should you have attached or posted ur work so we can help !

Re:Nasm

Posted: Sat Aug 12, 2006 4:37 am
by James
So you could compile it for me?

Please, get it working.. Im being driven insane that I cant do it. I think its because, my friend had messed around with some of the files, changing comments etc, so that it was easier to read!

Re:Nasm

Posted: Sat Aug 12, 2006 6:56 am
by Kemp
Ok, your first step would be to tell us what you're doing and what the errors are, then we can start figuring it out. "It doesn't work" type posts aren't too useful for troubleshooting.

Re:Nasm

Posted: Sat Aug 12, 2006 7:16 am
by James
OK. It wont compile for me!

Re:Nasm

Posted: Sat Aug 12, 2006 7:25 am
by bluecode
What Kemp is trying to tell you, is that we need the exact error message ::)

Re:Nasm

Posted: Sat Aug 12, 2006 7:29 am
by James
nasm is not a recognised command

Re:Nasm

Posted: Sat Aug 12, 2006 7:33 am
by Kemp
Well that has nothing to do with nasm or your code. It means that nasm itself cannot be found (it isn't in your current directory, nor in one that is on your PATH).

Re:Nasm

Posted: Sat Aug 12, 2006 8:25 am
by GLneo
well if it helps here is a tutorial on PATH: "http://www.troubleshooters.com/linux/prepostpath.htm"
it is for linux but about the concept of PATH is the same for DOS.

Re:Nasm

Posted: Sat Aug 12, 2006 8:32 am
by James
never mind then! I will use another compiler! You wouldnt be able to help me with my other topic, which is about down on the page?

Re:Nasm

Posted: Sat Aug 12, 2006 9:13 am
by Kemp
Unless you understand what we told you, switching to another compiler will likely achieve nothing for you. Understand that this is a limitation of your environment, not the tool.

Re:Nasm

Posted: Sat Aug 12, 2006 10:10 am
by James
Well, I think I got it working.. Its compiled a script of mine!

Re:Nasm

Posted: Tue Aug 15, 2006 3:48 am
by DynatOS
James wrote: Well, I think I got it working.. Its compiled a script of mine!
Your first problem is, NASM is an Assembler, not a compiler.

Second, NASM assembles Assembly Language source files, not "scripts".

Third good Assembly Language programming requires deep knowledge of the architecture and good programming skills.

Most programmers would know how to navigate through a simple issues like directory navigation or environment variable paths.

Reorganize your priorities, if you are serious about programming ;)

Re:Nasm

Posted: Tue Aug 15, 2006 6:15 am
by James
Its all done now... Thanks to Combuster.. And I get confused by scripts and source files etc, I was in a rush!