need help with 6502 assembly

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

Post Reply
sogilbert
Posts: 5
Joined: Tue Nov 19, 2019 4:43 am

need help with 6502 assembly

Post by sogilbert »

Hey guys I only know how to program C (and even then I don't know much) so could you recommend a tutorial for 6502 assembly?
Pokun
Posts: 2681
Joined: Tue May 28, 2013 5:49 am
Location: Hokkaido, Japan

Re: need help with 6502 assembly

Post by Pokun »

6502.org has lots of resources. Easy 6502 is good and allows you to program in the web browser. To get started with Nes development, the Nerdy Nights tutorial is hard to beat. I suggest to use both tutorials.

Popular assemblers includes asm6, ca65 and nesasm (although nesasm is the least popular around here). I don't know where the latest nesasm can be found, but pceas can be found here (check the link under "Latest HuC build" and grab pceas.exe from the bin directory). Pceas is the same assembler as neasm but for PC Engine, just rename it to "nesasm.exe" and it will work for Nes. I don't know if all the updates to it (which includes removing the 8 kB bank requirement) will work when used as nesasm though but I hope so. Nesasm is a Nes-specific assembler though, if you want a general 6502 assembler, go for asm6 or ca65.

If you are going to use ca65 you just download cc65 and grab the assembler (ca65.exe) and linker (ld65.exe) from the bin directory.

Asm6 (and the fork asm6f) is the most straightforward one and easiest to use. It's the one I prefer myself.
sogilbert
Posts: 5
Joined: Tue Nov 19, 2019 4:43 am

Re: need help with 6502 assembly

Post by sogilbert »

Thanks for the help I really appreciated it :D
Oziphantom
Posts: 1565
Joined: Tue Feb 07, 2017 2:03 am

Re: need help with 6502 assembly

Post by Oziphantom »

6502 is used in a lot of personal computers to which there are a pile of books on the subject. Sadly Bombjack.org is down but this is the "classical text" https://doc.lagout.org/programmation/as ... -11%5D.pdf
kzurawel
Posts: 5
Joined: Thu Feb 07, 2019 11:31 am

Re: need help with 6502 assembly

Post by kzurawel »

Still very much in progress, but I've been working on a book / tutorial series for people new to assembly development. Hopefully it's enough to get you started!

https://book.famicom.party
Garth
Posts: 246
Joined: Wed Nov 30, 2016 4:45 pm
Location: Southern California
Contact:

Re: need help with 6502 assembly

Post by Garth »

Oziphantom wrote: Fri Nov 22, 2019 3:21 amSadly Bombjack.org is down
Here's an archived version:
https://web.archive.org/web/20191024144 ... bjack.org/
http://WilsonMinesCo.com/ lots of 6502 resources
Post Reply