Skip to content

A simple Hello World style program for the Nintendo Entertainment System

License

Notifications You must be signed in to change notification settings

matthewjustice/hello-nes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hello-nes

A simple "Hello World" style program for the Nintendo Entertainment System. It demonstrates initializing the NES, drawing a background, reading from controllers, and drawing / controlling a sprite.

NES development is new to me, so I decided to start with a simple Hello World project. I tried to keep it simple and add plenty of comments. I hope others find it useful.

Getting Starting

Here's what you need to get started with this code.

Tools

The code uses the ca65 macro assembler and ld65 linker. Install cc65 to get both tools and include them in your path.

The graphics are contained in CHR files, and I found YY-CHR.NET useful for editing these files.

For debugging, I like Mesen. It can import the hello.nes.dbg file that is generated at build time to show the code's labels.

Building

On Windows, just run build.cmd. The same commands in that file should work on Linux; I didn't just include a shell script. I probably should add a makefile. In any case, a successful build should produce hello.nes - run that in the NES emulator / debugger of your choice.

Thanks

I didn't figure this out in a vacuum! The following resources helped me a bunch. Thanks to the community of people who made this material available.

Author

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A simple Hello World style program for the Nintendo Entertainment System

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published