NESASM

Are you new to 6502, NES, or even programming in general? Post any of your questions here. Remember - the only dumb question is the question that remains unasked.

Moderator: Moderators

User avatar
qtoyoda
Posts: 60
Joined: Sun Feb 13, 2011 5:04 pm
Location: Canada

NESASM

Post by qtoyoda »

hey i would like to download nesasm, but i couldnt find a download for windows 7, a like would be appriciated

thx
User avatar
67726e
Posts: 129
Joined: Sat Apr 03, 2010 5:45 pm
Location: South Carolina
Contact:

Post by 67726e »

http://nespowerpak.com/nesasm/

There should be a copy of the executable in that folder.
User avatar
qtoyoda
Posts: 60
Joined: Sun Feb 13, 2011 5:04 pm
Location: Canada

Post 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)
User avatar
67726e
Posts: 129
Joined: Sat Apr 03, 2010 5:45 pm
Location: South Carolina
Contact:

Post 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.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Post 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.
User avatar
qtoyoda
Posts: 60
Joined: Sun Feb 13, 2011 5:04 pm
Location: Canada

Post 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
3gengames
Formerly 65024U
Posts: 2281
Joined: Sat Mar 27, 2010 12:57 pm

Post 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.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Post 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.
User avatar
qtoyoda
Posts: 60
Joined: Sun Feb 13, 2011 5:04 pm
Location: Canada

Post 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
User avatar
67726e
Posts: 129
Joined: Sat Apr 03, 2010 5:45 pm
Location: South Carolina
Contact:

Post 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.
3gengames
Formerly 65024U
Posts: 2281
Joined: Sat Mar 27, 2010 12:57 pm

Post 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
User avatar
qtoyoda
Posts: 60
Joined: Sun Feb 13, 2011 5:04 pm
Location: Canada

Post 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.
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

User avatar
Kasumi
Posts: 1293
Joined: Wed Apr 02, 2008 2:09 pm

Post 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.
User avatar
qtoyoda
Posts: 60
Joined: Sun Feb 13, 2011 5:04 pm
Location: Canada

Post 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?
Post Reply