How do I edit a .GEN file with GEN80 (Development Foros MSX)MSX Resource Center MSXdev 2008 - MSX1 development bonanza!           
                       
English Nederlands Español Português Russian                  
 Noticias
   Página principal
  Almacén de noticias
  Temas de noticias

 Recursos
   Foros MSX
  Artículos
  Analisis
  Informe de ferias/RUs
  Álbum de fotos
  Ferias y encuentros
  Encuestas
  Enlaces
  Buscar

 Software
   Descargas
  Tienda Online

 MRC
   Quiénes somos
  Únete a nuestro equipo
  Donar
  Políticas
  Contacta con nosotros
  Enlázanos
  Estadísticas

 Buscar
 
  

  

 Login
 

Login

Contraseña




¿Aún no tienes una cuenta? ¡Conviértete en miembro del MSX Resource Center! ¡Únete a nosotros!.


 Estadísticas
 

Hay 118 invitados y 3 miembros en línea

Eres un usuario anónimo.
 

Foros MSX


Foros MSX

Development - How do I edit a .GEN file with GEN80

Ir a la página ( Página anterior 1 | 2 )
Autor

How do I edit a .GEN file with GEN80

ro
msx guru
Mensajes: 2329
Publicado: Marzo 18 2004, 16:01   
I think you problem is that first you give the DI instructions which turns ints off.
In the scroller you call #fd9f which jumps to the FST routine. FST replayer probably uses the instruction EI at the end (which is typical STUPID, but hey we're talking FAC software here eh )

So what happens: The ints are enabled again and imediatly the ISR jumps AGAIN to #FD9F. Hence the dubble replayer call (resulting in dubble speed playback)
Now when you remove the #FD9F call from your scroller the INTS are never enabled again and FD9F will not be called again. (resulting in no music at all)

The solution is to remove the FD9F call and use DI and EI together whenever you write VDP regs.

e.g.
..
DI
out (vdp),reg
out (vdp),reg
etc.
EI
..

And to improve your source code it like this:

start:
call scrollroutine
call interrupt 'polling for int.
jr start



liquid
msx friend
Mensajes: 11
Publicado: Marzo 19 2004, 19:43   
It was too difficult to do, so I whiped out the FST routine and replaced it for Moonblaster replay routine. Now it works great!
No speedup music anymore!

By the way, I have to learn more about ASM coding anyway.
Any tips for good articles or books e.g.?

But Ro, thanks for your time!!!

Greets Liquid
GuyveR800
msx guru
Mensajes: 3048
Publicado: Marzo 19 2004, 19:50   
Here's a tip: visit #msxdev on irc.rizon.net
liquid
msx friend
Mensajes: 11
Publicado: Marzo 19 2004, 20:04   
Thanx I will!!!
ro
msx guru
Mensajes: 2329
Publicado: Marzo 19 2004, 20:19   
hehe, who said coding in ASM is e.z.

'Cuz MB is smart enough NOT to Enable Ints (EI) you're trouble free, for the scroller atleast.

goodluck
 
Ir a la página ( Página anterior 1 | 2 )
 







(c) 1994 - 2008 Fundación MSX Resource Center. MSX es una marca registrada de MSX Licensing Corporation