|
Post by roolandoo on Nov 30, 2020 18:22:59 GMT
Hi,
I have no idea of assembler but I need to use the User Routine in MPAGD:
1.) For me, it is essential to use MPAGDMusicizer to add music, but when I use it, the selected user routine stops working.
Is the use of MPAGDMusicizer incompatible with user routines?
2.) How can I chain several small routines in the same .ASM file and then select them with USER 1, USER 2, ...?
Greetings and thanks.
|
|
|
Post by oss003 on Nov 30, 2020 18:42:18 GMT
Save this in USER.ASM and you can expand it with more routines if you want. Call it from AGD with USER 0 for routine0, USER 1 for routine1, etc
user cp 0 jr nz,chk1 jp routine0 chk1 cp 1 jr nz,chk2 jp routine1 chk2 ret
routine0 [your code] ret routine1 [your code] ret
|
|
|
Post by roolandoo on Nov 30, 2020 18:49:19 GMT
|
|
|
Post by ramon on Dec 1, 2020 8:59:51 GMT
|
|
|
Post by roolandoo on Dec 1, 2020 11:30:20 GMT
Thanks ramon but now my main problem is that I can't use any user routines because the MPAGDMusicizer tool that I use to inject the AY music disables any user routines that I have enabled. Gracias ramon pero ahora mi problema principal es que no puedo usar ninguna rutina de usuario porque la herramienta MPAGDMusicizer, que utilizo para inyectar la música AY en el juego, desactiva cualquier rutina de usuario que tenga activada.
|
|
|
Post by ramon on Dec 1, 2020 12:44:16 GMT
Puedes indicarme dónde puedo encontrar esa herramienta? Yo conozco el AGD Musicizer. Seguro que puedo ayudarte. Ahora uso una herramienta a partir del AGD musicizer. Si tengo más información podemos arreglarlo.
|
|
|
Post by roolandoo on Dec 1, 2020 15:53:51 GMT
|
|
|
Post by ramon on Dec 1, 2020 17:56:41 GMT
Creo que el punto crítico está en el paso 4 del archivo Readme. que incluye el paquete. Una herramienta muy elegante, por cierto. Según las instrucciones tienes que Exportar el proyecto, lo llamaremos miproyecto.agd. Todo bien. Ahora copia el archivo miproyecto.agd en el directorio del MPAGDMusicizer. Bien. Imaginemos que tu rutina User se llama EfectoCortina.asm. Pues vas al directorio "asm" del MPAGDMusicizer. Editas el archivo User.asm para que te quede así:
user include "EfectoCortina.asm" ret
Debes incluir en la carpeta "asm" todas las rutinas que estén incluidas en este archivo (en nuestro caso solo EfectoCortina.asm). No funciona de otra forma por que el MPAGD musicizer reconstruye el juego aquí y allá. Te va a ir bien. Cuéntame.
;----
I think the critical point is in step 4 of the Readme file included in the package. A very elegant tool, by the way.
According to the instructions you have to Export the project, we will call it myproject.agd. Good. Now copy the file myproject.agd into the MPAGDMusicizer directory. all good. Let's say your User routine is called CurtainEffect.asm. Well, you go to the "asm" directory of the MPAGDMusicizer. Edit the User.asm file so it looks like this:
user include "CurtainEffect.asm" ret
You must include in the "asm" folder all the routines that are included in this file (in our case only CurtainEffect.asm). It doesn't work otherwise because the MPAGD musicizer rebuilds the game here and there. You will be fine. Tell me.
|
|
|
Post by roolandoo on Dec 1, 2020 20:08:18 GMT
ramon Funciona!!! Perfecto, muchísimas gracias. Eres un crack!! ------------------- ramon It works !!! Perfect, thank you very much. You are great !!
|
|
|
Post by ramon on Dec 1, 2020 20:40:08 GMT
Adelante colega!
|
|