Here is a first release of rNES, a library for NES apps and games development, written in C for cc65.

http://nesdev.parodius.com/bbs/viewtopic.php?t=4814