Videoplayer by Ikari ASM source code

Go down

Videoplayer by Ikari ASM source code

Post by Conn on Tue 3 Jul 2018 - 17:46

I transcribed the video player code by Ikari into ASM source code, so it can be implemented into msu projects. I hope it works (I tested, but...)....
it's little to adjust (I tried to keep it simple), but advanced asm knowledge is needed in any case to use it.
Attachments
videoplayer.zip You don't have permission to download attachments.(20 Kb) Downloaded 20 times


Last edited by Conn on Mon 9 Jul 2018 - 20:00; edited 3 times in total
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Videoplayer by Ikari ASM source code

Post by Conn on Tue 3 Jul 2018 - 17:58

And here's again the tutorial how to convert any avi video files into msu.
Attachments
make_video.zip You don't have permission to download attachments.(59 Kb) Downloaded 20 times
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Videoplayer by Ikari ASM source code

Post by pepillopev on Tue 3 Jul 2018 - 18:34

@Conn Thanks Conn for saving me the time to dissect it from OOTW or ALTTP.

pepillopev



Since : 2017-10-16

Back to top Go down

Re: Videoplayer by Ikari ASM source code

Post by Colines on Tue 3 Jul 2018 - 20:19

pepillopev wrote:Saving me the time to dissect it from OOTW or ALTTP.
Oh, no! Ikari had already made previously available the MSU player code's inner working, no need to vanish with your sanity Wink
https://github.com/mrehkopf/sd2snes/tree/develop/snes/msu1

Though indeed, Conn offering it in a compact and more friendly readable way certainly helps a lot!!!

Awesome work as always Conn =D
avatar
Colines
Wish Fairy
Wish Fairy

Since : 2015-05-24

Back to top Go down

Re: Videoplayer by Ikari ASM source code

Post by Conn on Wed 4 Jul 2018 - 3:23

Oh yeah, I would not know how to handle those files Ikari provided...

I tested my code successfully, but there are many problems if you like to return into the ingame routines again after running it. It nearly overwrites all registers, and leaves the hdma channel activated and such.

Ah well, if anybody wants to implement it, I'm here to assist. E.g., you can run the ingame JSL to set the registers again and other stuff like this.
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Videoplayer by Ikari ASM source code

Post by Conn on Mon 9 Jul 2018 - 15:10

When doing some stuff for PEV, I noticed this bug:

STA $2004  
STZ $2005  
LDA $2000  
AND #$40        
BNE $F9  ; $F9 is the correct value here, in the old version it was $F8. If it is set incorrectly, sd2snes will crash at that place (no prob with emus though, therefore it was undetected).

Everybody who wants to use the videoplayer, please redownload the fixed patch from first post.
(pev, this is fixed in the version I just sent you already, no worries).

Also I added a code to prevent autofire when needing to button press for the video (so it doesn't immediately skip the video).
avatar
Conn



Since : 2013-06-30

Back to top Go down

Re: Videoplayer by Ikari ASM source code

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum