An open API service indexing awesome lists of open source software.

https://github.com/willsams/jstout-programming

All of his notes and demos. http://tecmobowl.org/forums/topic/55469-nes-programming-info/
https://github.com/willsams/jstout-programming

6502 6502-assembly cc65 homebrew nes

Last synced: 6 months ago
JSON representation

All of his notes and demos. http://tecmobowl.org/forums/topic/55469-nes-programming-info/

Awesome Lists containing this project

README

          

# JStout's NES Programming Notes

The purpose of this repository is to have a place to reference [jstout's excellent notes][1]. Outside of structuring this repository and slight changes made, I've added nothing here.

This is still a work-in-progress as I will eventually get around to replacing the current sprites with new assets for CHRs generated with the help of [NES Screen Tool][2].

## Building the Demos

I use the assembler/linker provided by the [cc65 compiler][3], [Mesen][6] for debugging, and [NES Extract][7] for extracting PRG/CHR. Before compiling on Debian-based distros (or, on Windows via WSL), ensure you have the below packages installed:

```bash
sudo apt install cc65 build-essential
```

Each demo will have to be compiled individually. Just execute `make` within the directory of the demo's corresponding make file. Alternatively for debugging, the Linux version of [FCEUX][8] can be used as well. If on Debian, download the version from their website instead of using the very old version provided by your package manager.

## Editing

Not a requirement, but the code editor I use is [Visual Studio Code][4] with the Cole Campbell's [language support extension][5]. To install Visual Studio Code on Debian-based distros, execute:

```bash
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -o root -g root -m 644 packages.microsoft.gpg /etc/apt/trusted.gpg.d/
sudo sh -c 'echo "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/packages.microsoft.gpg] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
sudo apt update -y && sudo apt upgrade -y
sudo apt install apt-transport-https
sudo apt update -y
sudo apt install code
echo -e "export DOTNET_CLI_TELEMETRY_OPTOUT=1" >> ~/.bashrc
source ~/.bashrc
```

[1]: http://tecmobowl.org/forums/topic/55469-nes-programming-info/
[2]: https://shiru.untergrund.net/software.shtml
[3]: https://cc65.github.io/index.html
[4]: https://code.visualstudio.com
[5]: https://github.com/tlgkccampbell/code-ca65
[6]: https://mesen.ca/
[7]: https://github.com/WillSams/Nes-Extract
[8]: https://ci.appveyor.com/api/projects/zeromus/fceux/artifacts/fceux-2.4.0-amd64.deb?branch=master&job=Ubuntu