Page 1 of 3

NESASM

Posted: Sun Feb 13, 2011 5:24 pm
by qtoyoda
hey i would like to download nesasm, but i couldnt find a download for windows 7, a like would be appriciated

thx

Posted: Sun Feb 13, 2011 5:59 pm
by 67726e
http://nespowerpak.com/nesasm/

There should be a copy of the executable in that folder.

Posted: Sun Feb 13, 2011 6:03 pm
by qtoyoda
Thanks, so i got the .exe file, but when i open it, the program flashes then closes, am i doing something wrong? (sorry im really new at this stuff)

Posted: Sun Feb 13, 2011 6:10 pm
by 67726e
Yeah, your problem is it isn't a GUI program. You have to call it from the command line. Try opening command prompt and traversing to the directory of your source file. Then type:

Code: Select all

nesasm3 source.asm
Of course replace source.asm with the name of your actual source file. If you do not know how to do any of the above, find a command line tutorial on Google.

Posted: Sun Feb 13, 2011 6:32 pm
by tokumaru
You can also make a file with the .BAT extension and type the following in it:

Code: Select all

nesasm3 source.asm
pause
Save it to the same folder as the assembler and source code. When you double-click the .BAT file it will open a command prompt and execute those commands. PAUSE will keep the window from closing right away, so you can see any messages the assembler outputs.

Posted: Sun Feb 13, 2011 6:35 pm
by qtoyoda
Alright this is out of my level of understanding at all, i dont know what the "source.asm" is ... so i think im gonna give up on this

Posted: Sun Feb 13, 2011 6:39 pm
by 3gengames
The program for your game is called the source, you put your file name there that you want to make into a NES rom. save those 2 lines into a BAT file by saving from notepad, and clicking save as ALL FILES and typing in NAME.BAT in the file name area.

Posted: Sun Feb 13, 2011 6:50 pm
by tokumaru
qtoyoda wrote:Alright this is out of my level of understanding at all, i dont know what the "source.asm" is
Not all programs have an user interface. Before there was Windows, there was DOS, and back then, most programs didn't have a user interface. In order to use these command line programs, you have to call them with the set of parameters necessary for it to do its work. In the case of an assembler it needs to be given the source code of the program it's supposed to assemble. In the example we called it "source.asm", but you can call it whatever you want.

So, first put the assembler (nesasm3.exe) and the source code of the program you want to assemble (whatever.asm) in the same folder. Open Notepad and type this:

Code: Select all

nesasm3 whatever.asm
pause
Save this (like 3gengames said) to the same folder as the other 2 files. now you can double click this batch file to assemble the source code into a ROM.
... so i think im gonna give up on this
I'm gonna be honest with you: If these first steps are too complicated for you, programming a NES game won't be easy. Nothing is impossible though, so if you are up to it I suggest you keep trying for a little longer, and see if you can get the hang of it.

Posted: Sun Feb 13, 2011 7:19 pm
by qtoyoda
Alright thanks :) ya im only 14 so my brain might not even be capable of understanding some of this stuff haha, but maybe in the future ill take a shot at it ! thanks u guys for helping out a bit

Posted: Sun Feb 13, 2011 7:24 pm
by 67726e
If you really want to work with the NES I would personally suggest getting into modding it. I started back when I was 13 and it actually spurred my interest in computers. I'm actually writing a 6502 assembler at the moment so you could say I've learned something about the NES since then.

I don't want it to be a shameless promotion of my site, but I run http://nesmods.com. I've got some tutorials on modding and a few resources. If you wanna give that a shot I wouldn't mind helping you out.

Posted: Sun Feb 13, 2011 7:25 pm
by 3gengames
Same here, NES forced me to learn 6502 on top of 6809 and I'm only 17. You just have to work at it and keep pushing forward. My first few programs were horrid, but I learned from each one and now am working on a semi-full fledged game! :D

Posted: Sun Feb 13, 2011 7:33 pm
by qtoyoda
nice site man :) thats a good idea to get into modding first, i think i will try some of ur tutorials ! my goal is to make my own nes rpg and then produce that on an actual nes cartrige :) one day, I have another discussion going about that... trying to figure out what eprom burner to get, but back to this, what is the best way to learn to understand code ? and then eventually hwo to program? is there any guide or tutorial to coding? thanks a million u guys.

Posted: Sun Feb 13, 2011 7:37 pm
by tepples

Posted: Sun Feb 13, 2011 8:16 pm
by Kasumi
And this is a list of actual tutorials specific to NES: http://www.nintendoage.com/forum/messag ... eadid=7155

Edit: It does help to start with a high level programming language first, though.

Posted: Sun Feb 13, 2011 8:37 pm
by qtoyoda
alright i will get on reading those and hopefully understanding them :) Nes mods guy, do you have to know code to do some siimple mods on nes games ? and if you mod games you can make them into .ips files correct?