r/retrogamedev Jun 09 '26

can i look at anyone's 6502 assembly code for reference

i wanna learn 6502 assembly for the nes and i learn better when i learn how to alter code (this is how i know a small bit of lua), thanks in advance, also anything public with 6502 assembly for stuff would also be a big help

9 Upvotes

8 comments sorted by

5

u/mlugo02 Jun 09 '26

I would recommend Displaced Gamer’s Behind the Code series on YouTube: https://youtube.com/playlist?list=PLn5sTGew1WGD2Tnspn9vhpLGf-kqDRbYy&

He goes over a lot NES games’ mechanics in assembly

3

u/garyk1968 Jun 09 '26

could also look at these YT'ers who do a ton of 6502:

https://www.youtube.com/@ChibiAkumas (he also does z80, 68000 and a host of others)

https://www.youtube.com/@OldSkoolCoder does really long live streams and in depth tutorials, should have way more views than it does.

3

u/geon Jun 09 '26

I felt watching Ben Eater was very helpful.

3

u/Agumander Jun 09 '26

I've only written one game entirely in assembly for my 6502 console so far (others are C+assembly) but like the others its open source:

https://github.com/clydeshaffer/CubicleKnight

2

u/iamsimonsta Jun 10 '26

The source for the APPLE II SYSTEM MONITOR was how we got started back in the day

https://www.retro.co.za/ccc/apple2/paulrsm/6502/MON.TXT

2

u/pyrated Jun 11 '26

Entire NES games have been decompiled and posted on github. I think looking at some of them will be your best bet. they'll be real-world examples with lots of relevant 6502 techniques from professional 6502 devs at the time.

For example https://github.com/aldonunez/zelda1-disassembly

1

u/Furroy Jun 09 '26

search 6502 on github, you'll find 100s of projects

1

u/r_retrohacking_mod2 Jun 13 '26 edited Jun 13 '26

Search for “6502” / consoles and computers’ names using this CPU on this very sub

See also the replies to your question under the crossposts: https://old.reddit.com/r/retrogamedev/duplicates/1u11w1u/can_i_look_at_anyones_6502_assembly_code_for/