Here's my adaptation of the ArkosTracker playroutine to the as-z80 syntax, so you can use it in your SDCC cross-development projects. In addition to the syntax changes, there are some other minor changes like changing the player from
http://www.kameli.net/~marq/kode/ArkosTrackerPlayer_MSX.s
http://www.kameli.net/~marq/kode/ArkosTrackerPlayer_MSX.h
Maybe I should have made a proper release package with examples and everything, but I'll just make a forum post here, and see if anyone is interested, and if there are any questions.
Excerpt from the .h header file:
extern unsigned char *PLY_SongPtr; extern void PLY_Init(void); extern void PLY_Play(void); extern void PLY_SendRegisters(void); // Two-phase player! first call PLY_Play() and then PLY_SendRegisters(). extern void PLY_Stop(void);
How to use in your own programs
1. set PLY_SongPtr to point to your binary song data that you've exported form Arkos Tracker
2. call PLY_Init()
3. call PLY_Play() and PLY_SendRegisters() at 50Hz or 60Hz rate or something
4. call PLY_Stop() when you're done
Questions?