Search found 5 matches
- Fri Aug 14, 2020 11:31 pm
- Forum: Sound
- Topic: Sega CD Mode 1 support functions for SGDK
- Replies: 25
- Views: 85225
Re: Sega CD Mode 1 support functions for SGDK
So, I managed to fix the library, and I'll be updating it soon and distributing it. A couple things - I looked up the MegaCD documentation, and managed to add fade routines- SetVolume: move.w #0x0400,%d1 /*MaxVolume*/ move.w #0x0085,%d0 /*FDRSET EQU $0085*/ jsr 0x5F22.w /* call CDBIOS function */ mo...
- Fri Jun 05, 2020 5:44 pm
- Forum: Sound
- Topic: Sega CD Mode 1 support functions for SGDK
- Replies: 25
- Views: 85225
Re: Sega CD Mode 1 support functions for SGDK
I think there might be an issue with the KOS decompile.
I had to change
to
This suggests that the kos decomp asm isn't compiling the same, which doesn't make a ton of sense.
I had to change
Code: Select all
bra.b Kos_Decomp_Loop
Code: Select all
bra.w Kos_Decomp_Loop
- Thu Jun 04, 2020 3:42 am
- Forum: Sound
- Topic: Sega CD Mode 1 support functions for SGDK
- Replies: 25
- Views: 85225
Re: Sega CD Mode 1 support functions for SGDK
As I mentioned, I'm probably far too unskilled to make that level of change. I really just changed how it handled registers. I'm super curious how he got it working, since there are so many issues with this code. Is there any way I could get help on this?
- Sat May 30, 2020 11:24 pm
- Forum: Sound
- Topic: Sega CD Mode 1 support functions for SGDK
- Replies: 25
- Views: 85225
Re: Sega CD Mode 1 support functions for SGDK
Thanks Chilly Willy. Its odd, because he demonstrated it working, but that seems like a big error. Sadly, even with that change, its still not working. He replaced this code: write_long((uint32_t)&vblank_vector, (uint32_t)&gen_lvl2); With this code: *reg_cpu = (*reg_cpu & 0xEFFF) | SEGACD_CPU_IEN_MA...
- Fri May 29, 2020 1:06 am
- Forum: Sound
- Topic: Sega CD Mode 1 support functions for SGDK
- Replies: 25
- Views: 85225
Re: Sega CD Mode 1 support functions for SGDK
Hi all, I've taken mikejmoffitt's code, and ported it so it compiles with the native SGDK, rather than his alternate compiler. However, it currently fails at the load Sub CPU on my CDX. The CD spins, but it gives me a "Sub CPU fails to load." I'm hoping someone can help figure out why this code isn'...