This repository serves as a learning hub for NES assembly development. If you're a beginner like me, you maybe can find valuable resources to help you understand and improve NES programming here.
- Clone this repo to your local machine;
- Navigate to the desired study topic;
To generate the rom file you will need to install an assembler. I am currently using the assembler CC65. I work on a macbook so I install it using Homebrew
brew install cc65
In some project folder I have included a shell script called ca65.sh
. This script is responsible for generating the ROM. Here is the script content:
ca65 $1.s -o $1.o
ld65 -C memory_map.cfg $1.o -o $1.nes
rm $1.o
A important thing is that you will probably face an permisson error when trying to run the script. To quickly solve that you can just run this command before executing the script:
chmod +x ca65.sh
in othe other projects I have used makefile to generating the ROM, so you can just run the command make
to generate the rom, and them make run
to execute.
It is important to say that my makefiles tries to execute the rom with FCEUX emulator, so you should install it:
brew install fceux
And of course you should install make:
brew install make