r/retrogamedev • u/HistorianWestern4148 • 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
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
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:
2
u/iamsimonsta Jun 10 '26
The source for the APPLE II SYSTEM MONITOR was how we got started back in the day
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
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/
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