Are there any sites that give the basics of 6502 and programming with it? Im having trouble getting started with everything (SUPER NOOB) and it would be really helpful if I could find a staightforward tutorial on how to use 6502 and maybe even show a basic program made with it.
There are some tutorials linked here on nesdev under the "NES" section. I haven't looked at any of them, so I couldn't tell you which one is best, but I'm sure there's something you could learn from all of them.
Personally, I've learned all the stuff into an exellent 6502 book, there is thousand of them, and you don't need to be on you computer to read them (so you can read them everywhere)
Here's a nice doc that covers a lot of stuff.
http://www.geocities.com/oneelkruns/asm1step.html
You might also check out this doc too:
http://nesdev.com/nesguide.zip
It has some examples of opcode usage, not much info on addressing modes though.
Thanks for all the references, but im kinda stuck right now. When I try to open nbasic and nesasm they open and then close immediatly. Do you know how I can fix this?
Yeah. It's a command-line program, so all the parameters needed are given when you run it. You'd use a command like "nesasm file.asm" to do it. Also in windows, I think you have to create a shortcut to do it, but you can make it keep the window open after it's finished running.
I think it's best to use a text editor that can call other programs. I use ConTEXT myself.
http://www.context.cx/
if a commandline box (cmd.com or command.com) is directly opened it will stay open, and the programs run'ed from there, but i use .bat file myself