Opis formatu masz ponizej:
ú AYM
This format has been developed to allow replaying of original musics for AY
whose playing routines has been created for Z80 processor. Every file contains
original Z80 code and data needed to play music on AY 3-891x sound chip. If you
know what this is for and are able to dig musics yourself, feel free to send
them to me! Here is the format used:
AYM file format (created by Roman Dolejsi, comments send to [email protected])
-------------------------------------------------------------------------------
name size pos info
---------------------------
'AYM0' dword 00 ... identifier (AY Music, format revision 0)
name db 28 04 ... music name
author db 16 20 ... music author name
init word 30 ... music init entry (A = music number)
play word 32 ... interrupt player entry
musmin byte 34 ... min music number
musmax byte 35 ... max music number (musmax - musmin = number of musics)
muspos byte 36 ... starting music number
regpos byte 37 ... reg in which musnum is stored when entering init (00-0B)
AFreg word 38 ... AF register before entering init routine
BCreg word 3A ... BC register
DEreg word 3C ... DE register
HLreg word 3E ... HL register
IXreg word 40 ... IX register
IYreg word 42 ... IY register
blocks byte 44 ... number of memory blocks
from pos 45h, rest of the file contains memory blocks each carrying this:
begin word b+00 ... where in the memory this block begins (64k addr space)
size word b+02 ... how long is this block
bdata [size] b+04 ... block of Z80 music code data for AY-3-8910
(currently for ZX128 envir.: FFFD=Ctrl, BFFD=Data,
and for Amstrad CPC envir.: F6=Switch, F4=Ctrl/Data)