Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Maxim, and perfectionists everywhere, you'll love this...

Reply to topic
Author Message
finaldave
  • Guest
Reply with quote
Maxim, and perfectionists everywhere, you'll love this...
Post Posted: Wed Mar 20, 2002 9:04 pm

http://web.inter.nl.net/users/J.Kortink/sn76489.htm

The exact white noise sequence used in the PSG. It's currently unknown and we use ^=0x18000, but this is the true sequence some genius has found!

Yes, I know, I've a very sad man!
 
finaldave
  • Guest
Reply with quote
Post Posted: Wed Mar 20, 2002 9:10 pm
Quote
>
> http://web.inter.nl.net/users/J.Kortink/sn76489.htm

> The exact white noise sequence used in the PSG. It's currently unknown and we use ^=0x18000, but this is the true sequence some genius has found!

> Yes, I know, I've a very sad man!

Update, OG and ASG say it's "1 + x + x^14 + x^16"
What does that mean, the shift pattern is 0x14001 or something?
 
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14745
  • Location: London
Reply with quote
Hmm?
Post Posted: Thu Mar 21, 2002 6:49 pm
Quote
> > Yes, I know, I've a very sad man!

Well, I spent an hour or so trying to crack the scheme, by converting it to a bitmap and generating data on the fly with variable settings, but didn't get very far due to having forgotten all the getdibbits() stuff. But I digress.

Quote
> Update, OG and ASG say it's "1 + x + x^14 + x^16"
> What does that mean, the shift pattern is 0x14001 or something?

Who are OG and ASG?

Anyway...

We know it's a 16-bit shift register. And I know that for a 16-bit shift register there's only one feedback value that gets a sequence of 65536 values. The optimal feedback network for a given size of shift register is not mathematically determinable, only by trial and error, and there are tables out there for hardware makers.

So, look here and see the result. I have yet to test it though, and the initial value still needs looking at.

Maxim
  View user's profile Send private message Visit poster's website
finaldave
  • Guest
Reply with quote
Re: Hmm?
Post Posted: Thu Mar 21, 2002 10:29 pm
Quote
> > > Yes, I know, I've a very sad man!

> Well, I spent an hour or so trying to crack the scheme, by converting it to a bitmap and generating data on the fly with variable settings, but didn't get very far due to having forgotten all the getdibbits() stuff. But I digress.

> > Update, OG and ASG say it's "1 + x + x^14 + x^16"

> > What does that mean, the shift pattern is 0x14001 or something?

> Who are OG and ASG?

Olivier Galibert (working on lots of things in MAME) and Aaron Giles (working on thousands of things in MAME). They are interested in SN76496 for many games in MAME (e.g. System E) and MESS (Many systems, including some obscure thing called the Sega Master System ;). They calculated the algorithm for the PSG noise in just minutes using an algorithm known as Berlekamp-Massey...... these guys are amazing!

The information they have in the Mame source on the PSG is unbelievable by the way - that's how I found out about the shift register for the noise channel. And looks like the sn76496 code just got even MORE accurate!

Quote
> Anyway...

> We know it's a 16-bit shift register. And I know that for a 16-bit shift register there's only one feedback value that gets a sequence of 65536 values.

65535 actually, but I'll let you off just this once ;)
 
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14745
  • Location: London
Reply with quote
Continued on S8-dev *nt*
Post Posted: Fri Mar 22, 2002 9:50 am
No Text and no TV and no beer makes Homer go crazy
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!