WIP: CPS 1.5 on CPS2 hardware

PCB problems and fixes
User avatar
leonardoliveira
Please Continue...
Posts: 692
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: WIP: CPS 1.5 on CPS2 hardware

Post by leonardoliveira »

AM_RANGE(0x804030, 0x804031) AM_READ(cps2_qsound_volume_r) < This register is a readable return value from the two Toshiba chips which controls the analog volume.

Don't worry about that as it's just used to draw the volume gauge at the sound test screen. :awe:
Image
User avatar
leonardoliveira
Please Continue...
Posts: 692
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: WIP: CPS 1.5 on CPS2 hardware

Post by leonardoliveira »

Asure wrote:@Leo: This one is modded at 0x674 to cmpi.b #$0, D0
Turns out that check is about waiting for the Z80 to put "0x77" at 0xCFFF at it's own memory (that range is shared by Z80 and 68000) so it knows the Z80 is running.

My "decrypted" Z80 rom is not making any sounds yet but apparently it's talking to the 68000 correctly because with it in the zip the game boots with the original " cmpi.b #$77, D0" instruction.

I still need to check if/how the Q sound hardware is mapped to the Z80 memory on CPS-Q hardware.

I also want to mod ZN1/ZN2 sound roms for running on the CPS2. :awe:

Now I'm off to the bed. Tomorrow I'll tinker more with this.
Image
User avatar
leonardoliveira
Please Continue...
Posts: 692
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: WIP: CPS 1.5 on CPS2 hardware

Post by leonardoliveira »

We're now getting somewhere with the sound driver:

Code: Select all

Offset      0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F

00000000   FF FF AA FF AA AA FF AA  AA FF AA AA FF AA AA FF   ÿÿªÿªªÿªªÿªªÿªªÿ
00000010   AA FF FF FF AA FF AA AA  FF AA AA 00 00 00 00 00   ªÿÿÿªÿªªÿªª.....
00000020   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
00000030   00 00 00 00 00 00 00 00  FF FF FF FF AA AA FF FF   ........ÿÿÿÿªªÿÿ
00000040   AA AA FF AA FF AA AA FF  AA AA FF FF AA AA FF AA   ªªÿªÿªªÿªªÿÿªªÿª
00000050   AA FF AA FF FF AA AA FF  FF AA FF AA AA FF FF AA   ªÿªÿÿªªÿÿªÿªªÿÿª
00000060   AA FF AA AA FF FF FF AA  FF AA AA FF AA AA FF AA   ªÿªªÿÿÿªÿªªÿªªÿª
00000070   AA FF FF FF FF FF FF AA  FF AA FF AA AA FF AA AA   ªÿÿÿÿÿÿªÿªÿªªÿªª
00000080   FF AA AA FF FF AA FF FF  AA FF AA FF AA FF AA AA   ÿªªÿÿªÿÿªÿªÿªÿªª
00000090   FF AA AA FF AA AA FF FF  AA FF FF AA FF AA FF AA   ÿªªÿªªÿÿªÿÿªÿªÿª
000000A0   AA FF AA AA FF AA FF AA  AA FF AA AA FF AA AA FF   ªÿªªÿªÿªªÿªªÿªªÿ
000000B0   AA AA FF AA FF FF FF FF  FF FF FF FF AA AA FF AA   ªªÿªÿÿÿÿÿÿÿÿªªÿª
000000C0   AA FF AA AA FF AA FF FF  FF FF FF FF FF FF AA AA   ªÿªªÿªÿÿÿÿÿÿÿÿªª
000000D0   FF AA AA FF AA AA FF FF  AA AA FF FF AA AA FF AA   ÿªªÿªªÿÿªªÿÿªªÿª
000000E0   AA FF AA FF AA AA FF FF  AA AA FF AA FF FF AA FF   ªÿªÿªªÿÿªªÿªÿÿªÿ
000000F0   FF AA AA FF FF FF FF AA  AA FF FF AA AA FF AA AA   ÿªªÿÿÿÿªªÿÿªªÿªª
00000100   FF FF AA FF FF AA AA FF  FF AA FF FF AA FF FF AA   ÿÿªÿÿªªÿÿªÿÿªÿÿª
00000110   FF AA AA FF AA AA FF FF  AA FF AA AA FF AA AA FF   ÿªªÿªªÿÿªÿªªÿªªÿ
00000120   FF AA FF FF AA FF AA AA  FF AA AA FF AA AA FF AA   ÿªÿÿªÿªªÿªªÿªªÿª
00000130   FF AA AA FF FF FF FF AA  FF FF AA AA FF AA AA FF   ÿªªÿÿÿÿªÿÿªªÿªªÿ
00000140   AA AA FF FF AA AA FF FF  AA AA FF AA AA FF AA AA   ªªÿÿªªÿÿªªÿªªÿªª
00000150   FF FF FF FF AA FF AA AA  FF AA AA FF FF AA AA 00   ÿÿÿÿªÿªªÿªªÿÿªª.
00000160   00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
00000170   00 00 FF AA AA FF FF AA  AA FF AA AA FF FF AA AA   ..ÿªªÿÿªªÿªªÿÿªª
00000180   FF FF FF FF AA AA FF AA  AA FF AA AA FF AA AA FF   ÿÿÿÿªªÿªªÿªªÿªªÿ
00000190   AA AA FF AA AA FF FF FF  AA FF FF AA AA FF FF AA   ªªÿªªÿÿÿªÿÿªªÿÿª
000001A0   FF AA AA FF AA FF AA AA  FF FF FF FF FF AA FF FF   ÿªªÿªÿªªÿÿÿÿÿªÿÿ
000001B0   AA AA FF AA AA FF FF FF  FF FF AA FF FF AA FF FF   ªªÿªªÿÿÿÿÿªÿÿªÿÿ
000001C0   FF FF 00 FF FF FF FF AA  AA FF FF FF FF FF FF FF   ÿÿ.ÿÿÿÿªªÿÿÿÿÿÿÿ
000001D0   FF FF FF AA FF FF FF FF  FF AA AA FF AA AA FF AA   ÿÿÿªÿÿÿÿÿªªÿªªÿª
000001E0   AA FF FF AA AA FF AA FF  AA AA FF AA AA FF FF AA   ªÿÿªªÿªÿªªÿªªÿÿª
000001F0   AA FF AA FF FF FF AA FF  FF AA AA FF AA AA FF FF   ªÿªÿÿÿªÿÿªªÿªªÿÿ
This is going to save me a whole lot of time.
Image
neocps1
Banned
Posts: 83
Joined: May 5th, 2012, 8:55 am
Location: France

Re: WIP: CPS 1.5 on CPS2 hardware

Post by neocps1 »

Now running on real hardware :

User avatar
leonardoliveira
Please Continue...
Posts: 692
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: WIP: CPS 1.5 on CPS2 hardware

Post by leonardoliveira »

That's awesome man. :awe:

Very tempting too, dangling the carrot in front of us like that. :lol:
Image
User avatar
emphatic
Breastfeeds when required
Posts: 5909
Joined: April 7th, 2009, 4:14 pm
Location: Alingsås, Sweden
eBay: jorgen_sjolander
Initials: JOR

Re: WIP: CPS 1.5 on CPS2 hardware

Post by emphatic »

Wow! :-o
neocps1
Banned
Posts: 83
Joined: May 5th, 2012, 8:55 am
Location: France

Re: WIP: CPS 1.5 on CPS2 hardware

Post by neocps1 »

leonardoliveira wrote:That's awesome man. :awe:

Very tempting too, dangling the carrot in front of us like that. :lol:

consider it as a contest / competition :awe:
User avatar
leonardoliveira
Please Continue...
Posts: 692
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: WIP: CPS 1.5 on CPS2 hardware

Post by leonardoliveira »

neocps1 wrote:
leonardoliveira wrote:That's awesome man. :awe:

Very tempting too, dangling the carrot in front of us like that. :lol:

consider it as a contest / competition :awe:
I'm enjoying it because it's encouraging us to look into how the games work under the hood.
And you're awesome for making it happen nonetheless. I heard on the forum you've been working on this for quite a while now?

I want to do things like add the YM2151 and OKI ADPCM to the CPS2 so we can enjoy these games with their original sound. :awe:

So yes, we will keep working this out and hopefully get something out of it.
Image
neocps1
Banned
Posts: 83
Joined: May 5th, 2012, 8:55 am
Location: France

Re: WIP: CPS 1.5 on CPS2 hardware

Post by neocps1 »

Adding ym and oki is useless. you will find by yourself soon enough
User avatar
leonardoliveira
Please Continue...
Posts: 692
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: WIP: CPS 1.5 on CPS2 hardware

Post by leonardoliveira »

neocps1 wrote:Adding ym and oki is useless. you will find by yourself soon enough
Why ? I plan on using the original sound programs.

The only thing that worry me for now are the difference on clock speed for the CPU . :roll:
Image
fluxcore
Please Continue...
Posts: 40
Joined: January 13th, 2014, 9:18 am
Location: New Zealand

Re: WIP: CPS 1.5 on CPS2 hardware

Post by fluxcore »

Awesome work, guys. The SF2CE isn't 100% (see the score board after demo gameplay, for one), but it's pretty dang close!

I hope some of the 'gotta find out how the game works underneath' gets documented, rather than secreted away - some people would find it immensely interesting, and undoubtedly would be very useful for future work. I understand some people simply like to hoard knowledge though :(
neocps1
Banned
Posts: 83
Joined: May 5th, 2012, 8:55 am
Location: France

Re: WIP: CPS 1.5 on CPS2 hardware

Post by neocps1 »

i prefer to let you try. this way maybe you will have new ideas ?

after all, like azure said, "it cannot be that hard" ;)
User avatar
leonardoliveira
Please Continue...
Posts: 692
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: WIP: CPS 1.5 on CPS2 hardware

Post by leonardoliveira »

neocps1 wrote:i prefer to let you try. this way maybe you will have new ideas ?

after all, like azure said, "it cannot be that hard" ;)

Decrypting the Q-SOUND rom is being enough of a challenge so far. :lol:
So I totally get where you're coming from with that.

I plan on adding the real chips. Since the Z80 in the A Board is socketed we could just put a CPU to CPU socket board and have the Z80 moved to the new board.
That's pretty much how new features would be added to Commodore computers (C64, Amiga)...
In it have the sound chips added. Even if it's just FM synth, it's still something (Ghouls and Ghosts/Daimakaimura need only FM synth, no ?)
Image
neocps1
Banned
Posts: 83
Joined: May 5th, 2012, 8:55 am
Location: France

Re: WIP: CPS 1.5 on CPS2 hardware

Post by neocps1 »

Now with sound using super street fighter 2 QSound program and roms. Took a while since I had to make
the match between sf2ce and ssf2t sound codes :mad:

User avatar
geotrig
Potato!
Posts: 7794
Joined: December 5th, 2008, 1:14 pm
Location: ._.
eBay: ._.

Re: WIP: CPS 1.5 on CPS2 hardware

Post by geotrig »

:awe: awesome stuff ,is that chun-li laugh at 57secs

id love to have these skills
Image

<trk>:I remember catching a big fat one and my friend said "throw it back in, that one already tastes like wood"
neocps1
Banned
Posts: 83
Joined: May 5th, 2012, 8:55 am
Location: France

Re: WIP: CPS 1.5 on CPS2 hardware

Post by neocps1 »

geotrig wrote::awe: awesome stuff ,is that chun-li laugh at 57secs

id love to have these skills
you're right ! The sound code match table is not perfect yet, but good enough to play
User avatar
geotrig
Potato!
Posts: 7794
Joined: December 5th, 2008, 1:14 pm
Location: ._.
eBay: ._.

Re: WIP: CPS 1.5 on CPS2 hardware

Post by geotrig »

neocps1 wrote:
geotrig wrote::awe: awesome stuff ,is that chun-li laugh at 57secs

id love to have these skills
you're right ! The sound code match table is not perfect yet, but good enough to play
:thumbup:
pretty good match ,good stuff ,it also make Edna honda more interesting :lol:
Image

<trk>:I remember catching a big fat one and my friend said "throw it back in, that one already tastes like wood"
User avatar
leonardoliveira
Please Continue...
Posts: 692
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: WIP: CPS 1.5 on CPS2 hardware

Post by leonardoliveira »

neocps1 wrote:Now with sound using super street fighter 2 QSound program and roms. Took a while since I had to make
the match between sf2ce and ssf2t sound codes :mad:


I assume it was easier mod the 68000 program side, right ?

+1 on making that work too.
Image
neocps1
Banned
Posts: 83
Joined: May 5th, 2012, 8:55 am
Location: France

Re: WIP: CPS 1.5 on CPS2 hardware

Post by neocps1 »

what other solution without modifying the hardware ?
User avatar
leonardoliveira
Please Continue...
Posts: 692
Joined: August 30th, 2012, 5:53 am
Location: Brazil
Initials: leo

Re: WIP: CPS 1.5 on CPS2 hardware

Post by leonardoliveira »

neocps1 wrote:what other solution without modifying the hardware ?
You can either mod the Z80 driver so sound codes match the sound commands the 68000 sends or you can mod the commands the 68000 send so they match what the Z80 driver expect.

It's just a matter of choice... lol
Image