Extract sprites from iNES ROM files.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/nes-sprites
.gitignore
README.md
sprites.go
sprites.png

README.md

nes-sprites

Extract sprites from iNES ROM files. Sprites are represented by 16 bytes which are splitted in two channels (the first 8 bytes and the second 8 bytes). Adding the bits from the nth byte of each channel results in a pixels color index (from 0 to 3).

An example implementation can be found in /cmd/nes-sprites/main.go. The following sprites are extracted from Super Mario Bros.

$ go install github.com/BakeRolls/nes-sprites/...
$ nes-sprites mariobros1.nes

Sprites

The format is described at Sadistech and N3S. Note that this package only reads CHR ROM and not CHR RAM.