Autor Tema: PT3 Player *1744 bytes*  (Leído 24471 veces)

0 Usuarios y 1 Visitante están viendo este tema.

nerlaska

  • Karoshi Excellent Member
  • ******
  • Mensajes: 1102
  • Programador
    • NERLASKA Studio :: Desarrollo de Videojuegos ::
    • Email
Re: PT3 Player *1744 bytes*
« Respuesta #30 en: 23 de Enero de 2007, 10:38:16 am »
Taking a look to VT2 Pascal sources .. you will find all the info about PT3 Format.
And extend this format for adding new channels is very easy .. and extend for adding SCC is very easy.
Good luck!
MSX4EVER2GETHER
www.nerlaska.com

nrgo

  • Karoshi Newbie
  • *
  • Mensajes: 6
Re: PT3 Player *1744 bytes*
« Respuesta #31 en: 11 de Septiembre de 2008, 08:55:14 pm »
Hi to all!
PT3 format and replayer are very interesting!
Since I've made some games in Turbo Pascal with MSXPad IDE, I'm interested in PT3 routines to load, play, stop, etc music and SFX in this environment.
I love PT3 and not FM Music because of the need of a memory mapper and other resource consuming things... (I'm always talking about TP and Lammassaari's libraries).

Can you help me? I'm not so skilled in ASM programming, but it would be very simple to write such routines in Pascal, for ex. using the InLine function. Also think about the possibility to use all the MSX's 64KB RAM, because programs runs on MSX-DOS.

It would be great if I'll be possible to use PT3 in C language.

Thankyou in advance for your help.

nerlaska

  • Karoshi Excellent Member
  • ******
  • Mensajes: 1102
  • Programador
    • NERLASKA Studio :: Desarrollo de Videojuegos ::
    • Email
Re: PT3 Player *1744 bytes*
« Respuesta #32 en: 12 de Septiembre de 2008, 06:44:22 am »
You can find in this forum sources in C for playing PT3 and AFX
Take a look into Snippets
MSX4EVER2GETHER
www.nerlaska.com

pitpan

  • Karoshi Forum's Guru
  • *******
  • Mensajes: 1812
Re: PT3 Player *1744 bytes*
« Respuesta #33 en: 12 de Septiembre de 2008, 08:22:26 am »
There *might* be a problem: IIRC the PT3 replayer written in assembler uses self-modifying code. I'm not sure if it can be easily ported thus to Turbo Pascal inlines. But you'd better try and tell us the results.

Porting the C source to Pascal shouldn't be that hard, but AFAIK pointer handling in Pascal is not so direct as in C. Good luck with your quest!

ARTRAG

  • Visitante
Re: PT3 Player *1744 bytes*
« Respuesta #34 en: 12 de Septiembre de 2008, 11:14:36 am »
There are many not self modifying version of the player both on Bulba AY site and on Sapphire blog.
If you want asm, start from that. They are not that compact, but they work fine.

PS
In my experience Pascal or C does not count.
If you execute your code in RAM, ASM self modifying code should work fine, even if included with inlines.

SapphiRe_MSX

  • Visitante
Re: PT3 Player *1744 bytes*
« Respuesta #35 en: 12 de Septiembre de 2008, 12:35:24 pm »
There *might* be a problem: IIRC the PT3 replayer written in assembler uses self-modifying code. I'm not sure if it can be easily ported thus to Turbo Pascal inlines. But you'd better try and tell us the results.

Robsy, as ARTRAG said, there's a PT3 replayer version that works in ROM on my blog. You heard it on last Barcelona's RU :D

Regards
--
Sph.

pitpan

  • Karoshi Forum's Guru
  • *******
  • Mensajes: 1812
Re: PT3 Player *1744 bytes*
« Respuesta #36 en: 12 de Septiembre de 2008, 01:56:13 pm »
The problem with the Pascal INLINEs is that you do not include assembler, but opcdes in hex. Therefore, it is not very convenient when it comes to selfreferencing, specially when you don't know where the code would be located.

And yes, I just considered the Dioniso replayer, not the Sapphire one. Blame on me!

ARTRAG

  • Visitante
Re: PT3 Player *1744 bytes*
« Respuesta #37 en: 12 de Septiembre de 2008, 02:06:22 pm »
If you cannot process symbols in INLINE, the linking could place your code anywhere without permitting you any control on what to modify....
Better to avoid self modifying code in this case