Search found 2959 matches

by Stef
Thu Jul 18, 2019 12:21 pm
Forum: SGDK
Topic: 4 PCM example
Replies: 3
Views: 90

Re: 4 PCM example

At least that proves that it's possible ;)
by Stef
Thu Jul 18, 2019 12:17 pm
Forum: Controls
Topic: Mega Mouse unused nibbles research
Replies: 22
Views: 302

Re: Mega Mouse unused nibbles research

joytest.zipI couldn't tell you why it was hanging, but it was. And the new code fixes the issue. The new functions for checking and setting latched counters is a good idea in any case. Here's the joytest main.c file - I changed it a bit to make it clear that you can compile with it set to auto dete...
by Stef
Wed Jul 17, 2019 11:08 am
Forum: Controls
Topic: Mega Mouse unused nibbles research
Replies: 22
Views: 302

Re: Mega Mouse unused nibbles research

After having checked my code, the HV counter latching shouldn't have been a problem as i didn't used the HV Counter for passive wait in usual code, i'm using it mainly for CPU usage statistics.. Anyway i modified the getSubTick() method to take care of that, hoping it will be enough to resolve these...
by Stef
Wed Jul 17, 2019 10:13 am
Forum: Controls
Topic: Mega Mouse unused nibbles research
Replies: 22
Views: 302

Re: Mega Mouse unused nibbles research

@Chilly Willy> Thanks for having investigated the issue. I will change the timer code to take care of that :) I have to admit i don't know too much about that HV latching, i though it was "temporary", just the time you read out the HV value from the Int2 callback then the latch was released (probabl...
by Stef
Wed Jul 17, 2019 9:47 am
Forum: SGDK
Topic: 4 PCM example
Replies: 3
Views: 90

Re: 4 PCM example

Unfortunately DefleMask do not allow to use the 4 PCM channels from the XGM driver. I only know one japanese guy using several PCM channels in Megadrive music (and this is quite recent). For that he uses a custom made tool based on MML that it convert to XGM : https://www.youtube.com/watch?v=CFaXGos...
by Stef
Tue Jul 16, 2019 8:42 am
Forum: Controls
Topic: Mega Mouse unused nibbles research
Replies: 22
Views: 302

Re: Mega Mouse unused nibbles research

Oh i meant the 23 dec 2014 commit : https://github.com/Stephane-D/SGDK/commit/037f7a192f908b42c844e79b418aa63b709117c4#diff-9448328387d39802f36cc14809afa177 From the changelog: * added Sega Phaser support (Chilly Willy). * updated Joy sample to add Phaser test (Chilly Willy). And you can see that ma...
by Stef
Mon Jul 15, 2019 7:46 am
Forum: Controls
Topic: Mega Mouse unused nibbles research
Replies: 22
Views: 302

Re: Mega Mouse unused nibbles research

I just pushed changes so it now ignores the FF part of the header :-) Still someone reported (in SGDK Discord server) that menacer support (and probably justifier as well) is broken is last SGDK. It looks like that joytest binary from December 13th 2014 is ok, but I saw you pushed important changes ...
by Stef
Fri Jul 12, 2019 7:44 pm
Forum: SGDK
Topic: Internal XGM specs ?
Replies: 5
Views: 191

Re: Internal XGM specs ?

No way to add that really, at least good luck trying to fit that in.. One of the reason I want to rewrite the driver is to reduce file size ;-)
by Stef
Fri Jul 12, 2019 8:30 am
Forum: SGDK
Topic: Internal XGM specs ?
Replies: 5
Views: 191

Re: Internal XGM specs ?

To be honest i don't think you can modify the current XGM driver to add new feature. It already fills up all the Z80 RAM so it becomes almost impossible to push new features into it. I'm myself thinking about rewriting a new XGM driver (derived from current but still rewrite from scratch) to add new...
by Stef
Thu Jul 11, 2019 10:28 am
Forum: SGDK
Topic: Internal XGM specs ?
Replies: 5
Views: 191

Re: Internal XGM specs ?

Salut Tryphon :)

Yes, internally the XGM is compiled to XGC format (a bit different but not much).
But what do you want to generate XGC format directly ? XGM is simpler to generate and you can always use the xgmtools (available in SGDK) to convert from XGM to XGC.
by Stef
Sun Jun 23, 2019 8:21 am
Forum: SGDK
Topic: Using fade_out
Replies: 2
Views: 143

Re: Using fade_out

Palette fade methods from SGDK 1.4 are somehow broken, be sure to use last sources from the github repository :)
by Stef
Tue Jun 18, 2019 9:31 pm
Forum: Sound
Topic: How DAC works ?
Replies: 8
Views: 352

Re: How DAC works ?

24x, that is *really* loud !
Ok i can understand the difference, YM2612 has gap in sound multiplexing.. maybe the YM3438 process the multiplexing differently (without any gap).
It's interesting to learn than DAC register can be updated that quickly, even if at that rate the Z80 can't follow ^^
by Stef
Tue Jun 18, 2019 7:48 am
Forum: Sound
Topic: How DAC works ?
Replies: 8
Views: 352

Re: How DAC works ?

Is not amplification always just 6x base DAC volume as all YM channels output DAC instead of just channel 5 ? That could also be used to do stereo DAC by setting ch0-2 to LEFT and ch3-5 to RIGHT.. but then you need to be perfect sync for DAC update which is almost impossible to do (and it requires u...
by Stef
Mon Jun 17, 2019 1:41 pm
Forum: SGDK
Topic: Compile Error with var type.
Replies: 2
Views: 167

Re: Compile Error with var type.

Do you have

Code: Select all

#include "genesis.h"
in the headers inclusion part of your code ?
Also how do you compile (command line / ide) ?
by Stef
Tue Jun 11, 2019 8:17 am
Forum: Sound
Topic: Why change TL before key on ?
Replies: 2
Views: 221

Re: Why change TL before key on ?

TL parameter is changed "live" so it will affect immediately the sound generation. Don't forget KEY OFF doesn't mean you immediately stop sound, it just a "release key" event so depending the RR (Release Rate) the operator can still output signal / sound (and if i remember correctly frequency settin...