Shiru's NES programming examples (with Makefiles)
Branch: master
Clone or download
jmk Merge pull request #1 from ethagnawl/master
Makefile and nes.cfg now compatible with cc65 2.17
Latest commit d6d3480 Dec 11, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Added .gitignore. Aug 6, 2013
Makefile Makefile and nes.cfg now compatible with cc65 2.17 Dec 3, 2018
crt0.s Initial import. Jul 31, 2013
example1.c Initial import. Jul 31, 2013
example2.c Initial import. Jul 31, 2013
example3.c Initial import. Jul 31, 2013
example4.c Initial import. Jul 31, 2013
example5.c Initial import. Jul 31, 2013
famitone.s Initial import. Jul 31, 2013
music.s
nes.cfg
neslib.h Initial import. Jul 31, 2013
neslib.s Initial import. Jul 31, 2013
readme.md Fixed whitespace. Aug 6, 2013
runtime.lib Initial import. Jul 31, 2013
sounds.s Initial import. Jul 31, 2013
test.h Initial import. Jul 31, 2013
tileset.chr

readme.md

Note: These examples are from Shiru's NES programming tutorial; I merely wrote a minimal Makefile so I could mess around on Mac OS X. The original readme follows.


This is a set of very simple examples of programming NES software in C using CC65 compiler and my low level code library. To get more information you can check out my article on this topic: http://shiru.untergrund.net/articles/programming_nes_games_in_c.htm

How to compile: download CC65 from http://cc65.org/, unpack into a directory, unpack this folder into that directory (where /bin/ etc is located), run compile_all.bat

Examples:

  1. outputs some text
  2. moving balls using sprites
  3. pad polling and nametable updating when rendering is enabled
  4. metasprites, two pads polling, collision detection
  5. unpacking a RLE-packed nametable created with NES Screen Tool into the VRAM

mailto:shiru@mail.ru
http://shiru.untergrund.net