Autor
| KSS format
|
stilton msx friend Mensajes: 9 | Publicado: Marzo 10 2004, 23:08   |
Could anyone explain the KSS format for me? I do have the spec sheet, but I am a beginning z80 asm coder, so I'm a little lost. Since this data is ripped from rom files, is it actual code? I guess I am confused because there are converters for moonsound and other non-ripped formats.
What I am interested in doing is making a converter to the vgm log format - my main interest is in the Sega Master System, and I thought it would be fun to play MSX music on the SMS with PSG and FM. So my basic question is: how would I go about getting all PSG and FM commands in the kss file? Would I have to disassemble it?
stilton
|
|
NYYRIKKI msx master Mensajes: 1509 | Publicado: Marzo 10 2004, 23:44   |
Here is a very good document about KSS format:
www.purose.net/befis/download/nezplug/kssspec.txt
another good place to look is:
www102.sakura.ne.jp/~ok/dsa/msxplug_doc.html
Actually I have made a KSS player for MSX using these documents. (It included Z80 emulator)
... what this document does not tell is that actually HALT command is used to end interrupt and stack is used to store the end of interrupt routine. I made this by writeing following bytes to #F37A:
DEFB #7C,#F3,#76,#18,#FE
... and initializing SP to same address. This is same code as used in MSXplug.
~NYYRIKKI
|
|
NYYRIKKI msx master Mensajes: 1509 | Publicado: Marzo 10 2004, 23:54   |
Oops, I didn't read your question well enough... Yes, it is actual code. You need to emulate Z80 and MSX memory layout to get the I/O data for FM/PSG.
|
|
|
|
|