Functions
WYZ_Initialize
void WYZ_Initialize(
u16 song,
u16 inst,
u16 fx,
u16 freq
) __sdcccall(0)

Initialize the Player

Parameters
song
u16

Songs data index memory address

inst
u16

Instruments data index memory address

fx
u16

FXs data index memory address

freq
u16

Notes Table memory address

WYZ_Pause
void WYZ_Pause() __naked

Pause song playback

WYZ_Resume
void WYZ_Resume()

Resume song playback

WYZ_SetLoop
void WYZ_SetLoop(
u8 loop
)

Change loop mode

Parameters
loop
u8

FALSE = 0, TRUE = 1

WYZ_IsFinished
bool WYZ_IsFinished()

Indicates whether the song has finished playing

Returns

TRUE if finished

WYZ_PlayFX
void WYZ_PlayFX(
u8 numSound
)

Play Sound Effect

Parameters

FX number

WYZ_PlayAY
void WYZ_PlayAY()

Send data from AYREGS buffer to AY registers.  Execute on each interruption of VBLANK

WYZ_PlaySong
void WYZ_PlaySong(
u8 numSong,
bool loop
) __sdcccall(0)

Start song playback

Parameters
numSong
u8

Song number

loop
bool

Loop status

WYZ_Decode
void WYZ_Decode()

Process the next step in the song sequence