Author Topic: IQ's PGM WIP  (Read 280214 times)

Offline moozooh

  • New Member
  • *
  • Posts: 2
  • Karma: +1/-0
Re: IQ's PGM WIP
« Reply #180 on: December 11, 2010, 10:36:58 PM »
Thanks a lot for the releases! They surely were unexpected considering the earlier debate.

Btw, what made you decide in favor of doing so? I thought there were some legal worries in that regard, so did they go away or something?

Offline iq_132

  • Administrator
  • *****
  • Posts: 3725
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: IQ's PGM WIP
« Reply #181 on: December 12, 2010, 08:35:17 AM »
Thanks a lot for the releases! They surely were unexpected considering the earlier debate.

Btw, what made you decide in favor of doing so? I thought there were some legal worries in that regard, so did they go away or something?
Well, at this point Cave has ignored the roms being added to MAME (and being somewhat playable). The assumption is that they don't care.  If they/we get a c&d or a complaint we will remove the drivers from the official builds.


Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
Re: IQ's PGM WIP
« Reply #182 on: December 13, 2010, 01:36:24 PM »
Found a bug on the current PGM WIP code. KOV will keep looping over and over after the character has been selected. Confirmed on a windows build too

Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
Re: IQ's PGM WIP
« Reply #183 on: December 13, 2010, 02:04:51 PM »
fixed it

in pgm_prot.cpp use this code
Code: [Select]
static void pgm_kov_asic27_w(unsigned short offset, unsigned short data)
{
if(offset==0) {
unsigned short realkey;
realkey=ASIC27KEY>>8;
realkey|=ASIC27KEY;
data^=realkey;
ASIC27REGS[0]=data;
return;
}
if(offset==2) {
unsigned short realkey;

ASIC27KEY=data&0xff00;

realkey=ASIC27KEY>>8;
realkey|=ASIC27KEY;
data^=realkey;
ASIC27REGS[1]=data;

ASICPARAMS[ASIC27REGS[1]&0xff]=ASIC27REGS[0];
if(ASIC27REGS[1]==0xE7) {
unsigned int E0R=(ASICPARAMS[0xE7]>>12)&0xf;
E0REGS[E0R]&=0xffff;
E0REGS[E0R]|=ASIC27REGS[0]<<16;
}
if(ASIC27REGS[1]==0xE5) {
unsigned int E0R=(ASICPARAMS[0xE7]>>12)&0xf;
E0REGS[E0R]&=0xff0000;
E0REGS[E0R]|=ASIC27REGS[0];
}
ASIC27RCNT=0;
}
}

Offline JacKc

  • FBNeo Dev
  • ******
  • Posts: 1677
  • Karma: +56/-0
  • Hasta la vista, Baby !
Re: IQ's PGM WIP
« Reply #184 on: December 13, 2010, 04:49:11 PM »
Thanks Lantus for the fix...Iv'e noticed also in the current PGM WIP code that olds, olds100 and olds100a are stuck at the calendar screen and a minor graphical bug on drgw2 and clones. Also some problem with latest ics2115.h sent by iq_132 (sounds and BGM for some games are too high, crackles and very distorded).
« Last Edit: December 13, 2010, 04:52:48 PM by JacKc »


Offline CaptainCPS

  • FBNeo Dev
  • ******
  • Posts: 1513
  • Karma: +127/-0
  • FB Alpha Team
    • CaptainCPS's Home
Re: IQ's PGM WIP
« Reply #185 on: December 13, 2010, 05:50:06 PM »

@Lantus, thanks for sharing the KOV fix  :wink: I appreciate it! ^^

SeeYaa!
 :biggrin:
« Last Edit: December 13, 2010, 11:15:23 PM by CaptainCPS-X »

Offline Shin

  • New Member
  • *
  • Posts: 3
  • Karma: +0/-0
Re: IQ's PGM WIP
« Reply #186 on: December 15, 2010, 08:50:57 AM »
Amazing work you guys ! and thanks a lot for porting it that fast into FBANext ^^

from what I gather, DDP2 - BeeStrom won't be playable untile the protection scheme is known or bypassed ?
Any progress on dumping gfx&snd from EspGaluda?

Offline iq_132

  • Administrator
  • *****
  • Posts: 3725
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: IQ's PGM WIP
« Reply #187 on: December 15, 2010, 02:59:14 PM »
Thanks Lantus for the fix...Iv'e noticed also in the current PGM WIP code that olds, olds100 and olds100a are stuck at the calendar screen and a minor graphical bug on drgw2 and clones. Also some problem with latest ics2115.h sent by iq_132 (sounds and BGM for some games are too high, crackles and very distorded).

Drgw2 fix:

Find this (in pgm_draw.cpp)
Code: [Select]
if (xgrow) xzom = (0x10 - xzom) * 2;
if (ygrow) yzom = (0x10 - yzom) * 2;

unsigned int xzoom = (zoomtable[xzom] << 16) | zoomtable[xzom + 1];
unsigned int yzoom = (zoomtable[yzom] << 16) | zoomtable[yzom + 1];

Replace with:

Code: [Select]
if (xgrow) xzom = 0x10 - xzom;
if (ygrow) yzom = 0x10 - yzom;

unsigned int xzoom = (zoomtable[xzom*2] << 16) | zoomtable[xzom*2 + 1];
unsigned int yzoom = (zoomtable[yzom*2] << 16) | zoomtable[yzom*2 + 1];


Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
Re: IQ's PGM WIP
« Reply #188 on: December 15, 2010, 08:10:18 PM »
thanks iq :)

fix works great. Did you take a look at kov2p yet? Its stuck on the calender screen on bootup

Offline iq_132

  • Administrator
  • *****
  • Posts: 3725
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: IQ's PGM WIP
« Reply #189 on: December 16, 2010, 01:28:58 AM »
thanks iq :)

fix works great. Did you take a look at kov2p yet? Its stuck on the calender screen on bootup
Might be an endian-related issue.  Try the init from the previous sources (with the different patches). I can't reproduce it on pc. :S


Offline iq_132

  • Administrator
  • *****
  • Posts: 3725
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: IQ's PGM WIP
« Reply #190 on: December 16, 2010, 11:23:43 PM »
Here's a little video of Espgaluda. Thanks to Haze for sharing the dump with me. :)

http://www.youtube.com/watch?v=IpkxVXAF7WQ
« Last Edit: December 16, 2010, 11:27:56 PM by iq_132 »


Offline RetroRepair

  • New Member
  • *
  • Posts: 2
  • Karma: +1/-0
Re: IQ's PGM WIP
« Reply #191 on: December 17, 2010, 12:21:33 AM »
Now we're talkin'  :cool:

Shame it was a bad dump, but much nicer than ESPKetsuda: http://www.youtube.com/watch?v=BtZT4Do00wI

:D

Offline CaptainCPS

  • FBNeo Dev
  • ******
  • Posts: 1513
  • Karma: +127/-0
  • FB Alpha Team
    • CaptainCPS's Home
Re: IQ's PGM WIP
« Reply #192 on: December 17, 2010, 12:49:36 AM »
Great stuff IQ! ^^ I love the video! BGM of the game is cool too! :D

SeeYaa!
 :biggrin:

Offline JacKc

  • FBNeo Dev
  • ******
  • Posts: 1677
  • Karma: +56/-0
  • Hasta la vista, Baby !
Re: IQ's PGM WIP
« Reply #193 on: December 17, 2010, 05:34:00 AM »
Wow...Very good news. Shame the graphic roms were bad dumps...Hope someone could redump them !


Offline lantus

  • Expert
  • *****
  • Posts: 162
  • Karma: +32/-0
Re: IQ's PGM WIP
« Reply #194 on: December 17, 2010, 11:30:32 AM »
ah very cool stuff iq :)