SNES Code Library

This section contains SNES library code written by various RSR programmers.  All code herein is public domain and can be freely used, distributed, modified, mutliated, fed to goats, etc.  We'll be adding code as we clean it up, so check every week or so and there may be something new and useful.

Initialization and General stuff:

Generic initialization code: SNESINIT.ASM.TXT

ROM to VRAM copy code using DMA: LOADVRAM.ASM.TXT

Load palette color data: LOADPAL.ASM.TXT

Simple demo ROM w/source demonstrationg these library calls: DEMOROM.ZIP

Random Number Generation:  RANDOM.ASM.TXT, and demo: RNDDEMO.ZIP

Mouse Input: MOUSE.ASM.TXT, and demo: MOUSE.ZIP

SPC700 MUSIC:

MSS Music player for SPC700:  SPCPLAY.ASM.TXT

MSS Music player macros for 65816:  MSSPLAY.ASM.TXT

Simple demo ROM w/source using MSSPLAY:  MSSDEMO.ZIP

 

Compression:

Huffman Decompression lib:  HUFFMAN.ASM.TXT

Huffman Compression utility w/source for DOS/Win: SNESHuffman.ZIP

Simple demo ROM w/source using Huffman decompression for tile gfx: HUFFDEMO.ZIP

 

Text and Strings:

Simple PrintF command:  STRINGS.ASM.TXT

Simple demo ROM w/source using STRINGS.ASM: STRDEMO.ZIP