Author Topic: What I've been working on (iq_132's work in progress)  (Read 720682 times)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: What I've been working on (iq_132's work in progress)
« Reply #120 on: May 13, 2009, 02:43:36 AM »
I got all bored and stumbled into looking at IGS' Tarzan.

I went ahead and decrypted 0228-u21.bin. Currently marked as graphics, but once you're decrypted the data, it seems to be program data. 

Code: [Select]
int i;
int size = 0x80000;
UINT8 *src = ...;

for (i = 0; i < size; i++) {
UINT8 x = 0;

if ((i & 0x00011) == 0x00011) x ^= 0x01;
if ((i & 0x02180) == 0x00000) x ^= 0x01;
if ((i & 0x001a0) != 0x00020) x ^= 0x20;
if ((i & 0x00260) != 0x00200) x ^= 0x40;

if ((i & 0x00060) != 0x00000 && (i & 0x00260) != 0x00240) {
x ^= 0x80;
}

src[i] ^= x;
}

Next, I was looking around and found a partial dump for "Super Tarzan," which is not in MAME atm. The PCB has a custom IGS cpu (IGS025?) and a Z180.  I'm betting that Tarzan uses the same setup. ^^ I went ahead and decrypted the program rom for this as well, "v100i.u9."

Code: [Select]
int i;
int size = 0x40000;
UINT8 *src = ...;

for (i = 0; i < size; i++) {
UINT8 x = 0;

if ((i & 0x00011) == 0x00011) x ^= 0x01;
if ((i & 0x02180) == 0x00000) x ^= 0x01;
if ((i & 0x000a0) != 0x00000) x ^= 0x20;
if ((i & 0x001a0) == 0x00000) x ^= 0x20;
if ((i & 0x00060) != 0x00020) x ^= 0x40;
if ((i & 0x00260) == 0x00220) x ^= 0x40;
if ((i & 0x00020) == 0x00020) x ^= 0x80;
if ((i & 0x001a0) == 0x00080) x ^= 0x80;

src[i] ^= x;
}

I probably won't be submitting a diff to the MAMEDevs as I'm lazy, busy, and indifferent [also the reason the decrypt code isn't completely simplified], so anyone that wants to, please do :).
« Last Edit: May 13, 2009, 08:24:57 AM by iq_132 »


kev

  • Guest
Re: What I've been working on (iq_132's work in progress)
« Reply #121 on: May 13, 2009, 04:05:30 AM »
Shit I dropped my phone and deleted a post from this thread. Very sorry, I will be more careful :)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: What I've been working on (iq_132's work in progress)
« Reply #122 on: May 13, 2009, 08:44:32 AM »
lol, damn it kev!  :D No biggie, I do need to set up "deleted posts go to recycling bin" in the admin panel so that deleted posts can be restored.


kev

  • Guest
Re: What I've been working on (iq_132's work in progress)
« Reply #123 on: May 13, 2009, 10:58:10 AM »
Or perhaps I shouldn't browse the site whilst on my iphone when I am logged in. :)



Also, Good work on konami looking forward to trying out some of the games once I get the latest source building.

Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: What I've been working on (iq_132's work in progress)
« Reply #124 on: May 13, 2009, 11:13:38 AM »
Also, Good work on konami looking forward to trying out some of the games once I get the latest source building.

Should be easier to do now with the guides. Also I'm nearly done fixing up the ZET interface for MAME's Z80 core so I should be able to rip DOZE and CZ80 out as they really won't be needed anymore. FBA will get a little bit more portable then with a C 68K core and C Z80 core as the defaults.

I've had to change plenty of drivers (just some of the misc drivers left giving me problems) - interupt handling is pretty different between the two cores. MAME's core wants things done properly - at least most of the time. :)
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: What I've been working on (iq_132's work in progress)
« Reply #125 on: May 13, 2009, 04:15:27 PM »
Should be easier to do now with the guides. Also I'm nearly done fixing up the ZET interface for MAME's Z80 core so I should be able to rip DOZE and CZ80 out as they really won't be needed anymore. FBA will get a little bit more portable then with a C 68K core and C Z80 core as the defaults.

I've had to change plenty of drivers (just some of the misc drivers left giving me problems) - interupt handling is pretty different between the two cores. MAME's core wants things done properly - at least most of the time. :)

No joke, I am incredibly stoked (excited) about that. :) Does it help Kangaroo any?

Or perhaps I shouldn't browse the site whilst on my iphone when I am logged in. :)

Also, Good work on konami looking forward to trying out some of the games once I get the latest source building.

Not a bad idea either lol.   I'll try to have them posted soonish, I just have some more cleaning/tweaking/etc to do before I won't be embarrassed. :D


Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: What I've been working on (iq_132's work in progress)
« Reply #126 on: May 14, 2009, 01:13:00 AM »
Still some color issues (and missing a sound core), but it's pretty good. ^^

*edit*
Adjusted the board settings.  Deleted stuff can now be un-deleted (mods, see Trash Bin).
« Last Edit: May 14, 2009, 10:41:23 PM by iq_132 »


Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: What I've been working on (iq_132's work in progress)
« Reply #127 on: May 14, 2009, 08:59:23 AM »
No joke, I am incredibly stoked (excited) about that. :) Does it help Kangaroo any?

Yup - Kangaroo now seems fine.
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: What I've been working on (iq_132's work in progress)
« Reply #128 on: May 14, 2009, 09:30:21 AM »
Nice!! You just made my day. :)


Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: What I've been working on (iq_132's work in progress)
« Reply #129 on: May 14, 2009, 10:40:09 AM »
Down to a handfull on drivers giving me problems now. I've added savestate and cheat support and the few games I've tested for those work ok. I'll zip it up and post the source in the usual place later along with which drivers are still having issues.

I think I'm about ready to rip out Doze and CZ80 now though. :)
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline KaNyErO

  • Member
  • ***
  • Posts: 142
  • Karma: +4/-0
Re: What I've been working on (iq_132's work in progress)
« Reply #130 on: May 14, 2009, 11:09:26 AM »
I have a question: With such a lot of changes in fba, will it become slower =. I remember having an old version of fba running cps1/2/neogeo games at full speed in a celeron 333 cpu or something like that,

Thanks a lot

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: What I've been working on (iq_132's work in progress)
« Reply #131 on: May 14, 2009, 12:07:42 PM »
I did some work on eeprom handling so Xmen and Simpsons work a little better (I'm still stuck on a couple of bad roms in the test mode for simpsons though and XMen's backgrounds are still the wrong color. :().


Offline Barry Harris

  • dontbeabarry
  • *
  • Posts: 1785
  • Karma: +0/-65535
  • I'm Barry Harris and I like to f*** people over
Re: What I've been working on (iq_132's work in progress)
« Reply #132 on: May 14, 2009, 02:15:55 PM »
I have a question: With such a lot of changes in fba, will it become slower =. I remember having an old version of fba running cps1/2/neogeo games at full speed in a celeron 333 cpu or something like that,

Thanks a lot

The Z80 is only for sound in those games - it won't make much difference. Especially not with todays hardware - but if FBA was playable before it still should be.
Account of Barry Harris; the traitor.
Send me an e-mail at barry@fbalpha.com letting me know how big of a piece of sh** I am.

Offline iq_132

  • Administrator
  • *****
  • Posts: 3728
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: What I've been working on (iq_132's work in progress)
« Reply #133 on: May 14, 2009, 10:35:21 PM »
So I went back and looked at the K052109 in MAME and realized there's a kludge for X-Men.  I added it to fba and sure enough...


Offline kenshiro

  • Expert
  • *****
  • Posts: 145
  • Karma: +21/-0
Re: What I've been working on (iq_132's work in progress)
« Reply #134 on: May 15, 2009, 06:24:53 AM »
Nice iq :smilie:

Moooo! :biggrin: