Skip to content

natebarney/playvgm-f256k

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlayVGM

This is a (so-far) rudimentary player for OPL2/OPL3 VGM files on the Foenix F256K.

Music Files

You can find VGM files to use with this at vgmrips.net, specifically the YMF262 (OPL3) and YM3812 (OPL2) sections.

The player doesn't yet know how to parse VGM or GD3 headers, nor can it handle compressed VGZ files, so any files downloaded from the links above need to be uncompressed and have their headers stripped. The included python script convert.py can be used to do this.

Usage

At some point I may add a nicer text UI, but for now, to use the player, first load the processed VGM file into memory at $010000, and then invoke the player, like this:

bload "example.bin", $010000
/- playvgm.pgx

Currently, the player will loop forever until the computer is reset.

Building

The player was written using ca65 assembly syntax. To build it, you will need the following build dependencies to be installed:

Once these are installed (and available on your shell's search path), you can build the player by navigating to the repository root and issuing the command:

make

This will produce the player binary in a file named playvgm.pgx.