Wow, that's amazing - I've now decided to learn some 6502 assembly by writing NES roms, so I'm even more stoked about this :D
Edit: This[1] is a pretty good tutorial, and the compiler being used is available for linux too.
[1]http://nintendoage.com/pub/faq/NA/index.html?load=nerdy_nigh...