WSR
From WSdev Wiki
Jump to navigationJump to search
The WSR file format is used for storing music routines from WonderSwan software, not unlike the NSF format. It was initally defined and implemented by the in_wsr Winamp plugin.
Its format is based on the ROM header format, with files expected to be a multiple of 64 KiB in size. However, the footer at the end of the file is 32 bytes long, not 16:
Offset | Length | Contents |
---|---|---|
$00 | 4 | Magic string: WSRF |
$04 | 1 | Version number; currently $00 |
$05 | 1 | Starting song number |
$06 | 10 | Reserved |
$10 | 16 | ROM header |
The JMP instruction in the ROM header points to the song playback routine; AX is set to the song number.
References
- in_wsr.txt - the original specification