Author Topic: d_neogeo.cpp matching MAME .92  (Read 14235 times)

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
d_neogeo.cpp matching MAME .92
« on: February 21, 2005, 02:41:37 AM »
Here's my d_neogeo.cpp that closely matches MAME .92
Let me know of any bugs, incorrectnesses

Known Items
 - I am not using the xxx-m1_decrypted.bin naming scheme. It's stupid.


Offline neo04

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +1/-0
d_neogeo.cpp matching MAME .92
« Reply #1 on: February 21, 2005, 07:10:04 AM »
Quote
Known Items
- I am not using the xxx-m1_decrypted.bin naming scheme. It's stupid.

indeed... :D

Offline netbug

  • Newbies
  • *
  • Posts: 37
  • Karma: +1/-0
  • Member
Updated FerchogtX's tmnt drivers for 0.2.95.23
« Reply #2 on: February 21, 2005, 08:15:32 AM »
Other former bugs  were not fixed now.You can delete drivers Chinese name by yourself. :D

Offline FerchogtX

  • FBNeo Dev
  • ******
  • Posts: 375
  • Karma: +7/-0
  • FB Alpha Team ;)
    • FB Alpha Plus! Web Site
d_neogeo.cpp matching MAME .92
« Reply #3 on: March 01, 2005, 12:25:00 AM »
Which drivers have specificaly changed?... i compared with 0.2.95.23 src and i don't notice any change XD...
See ya!!!!! :D

Good and evil co-exist because of the balance, lies are not part of it...

FB Alpha Plus! site infos updated, see the latest info clicking on my profile link...

Offline netbug

  • Newbies
  • *
  • Posts: 37
  • Karma: +1/-0
  • Member
d_neogeo.cpp matching MAME .92
« Reply #4 on: March 01, 2005, 03:07:54 AM »
Quote from: FerchogtX
Which drivers have specificaly changed?... i compared with 0.2.95.23 src and i don't notice any change XD...
See ya!!!!! :D


Oh,my God,That's too terrible.....Your former version can't work anyway
in new environment while not to be fixed,so to speak.

There were three old function improvements I have marked in d_tmnt.cpp
1.// old function fixed (3-1) most importantly fixed
SekSetIRQLine(5, SEK_IRQSTATUS_AUTO);

2.//old function fixed (3-2)
  SekInit(0,0x68000);   // Allocate 68000

3.//old function fixed (3-3)
  SekExt[0][0].ReadByte[0] = TmntReadByte;
   :D :D

Offline FerchogtX

  • FBNeo Dev
  • ******
  • Posts: 375
  • Karma: +7/-0
  • FB Alpha Team ;)
    • FB Alpha Plus! Web Site
d_neogeo.cpp matching MAME .92
« Reply #5 on: March 01, 2005, 06:16:36 PM »
netbug... the question was adressed to IQ_132, not for you, OF COURSE i know that you improved some things, i saw it XD thanks for the explanation anyway :)
See ya!!!!! :D
P.D.... Netbug... do you know how to fix the 256 KB s1 rom loading prob in fba?... this type of roms doesn't display correctly in the emu

Good and evil co-exist because of the balance, lies are not part of it...

FB Alpha Plus! site infos updated, see the latest info clicking on my profile link...

Offline netbug

  • Newbies
  • *
  • Posts: 37
  • Karma: +1/-0
  • Member
d_neogeo.cpp matching MAME .92
« Reply #6 on: March 01, 2005, 07:32:43 PM »
What's your meaning of 256 KB s1 rom?This promblem only exists in
"Crouching Tiger Hidden Dragon 2003 Super Plus" driver,otherwise,
it works fine in new version with 128k s1 rom now!So.....

Code: [Select]
// Crouching Tiger Hidden Dragon 2003 Super Plus

static struct BurnRomInfo ct2003spRomDesc[] = {
{ "5003-p1sp.bin",0x100000, 0x96EE06BC, 1 | BRF_ESS | BRF_PRG }, //  0 68K code
{ "5003-p2sp.bin",0x200000, 0x2332EE0C, 1 | BRF_ESS | BRF_PRG }, //  1
{ "5003-p3sp.bin",0x200000, 0x017919AA, 1 | BRF_ESS | BRF_PRG }, //  2

{ "5003-s1sp.bin",0x020000, 0xC5061AAF, 2 | BRF_GRA }, //  3 Text layer tiles

{ "5003-c1.bin",  0x800000, 0x29FD9108, 3 | BRF_GRA }, //  4 Sprite data
{ "5003-c2.bin",  0x800000, 0xF58D4D3E, 3 | BRF_GRA }, //  5
{ "5003-c3.bin",  0x800000, 0x71B3172D, 3 | BRF_GRA }, //  6
{ "5003-c4.bin",  0x800000, 0x564C70C1, 3 | BRF_GRA }, //  7
{ "5003-c5.bin",  0x800000, 0x8EF8AEF9, 3 | BRF_GRA }, //  8
{ "5003-c6.bin",  0x800000, 0x8A0FD440, 3 | BRF_GRA }, //  9
{ "5003-c7.bin",  0x800000, 0x6F1EFFAB, 3 | BRF_GRA }, // 10
{ "5003-c8.bin",  0x800000, 0x39550D3A, 3 | BRF_GRA }, // 11

{ "5003-m1.bin",  0x020000, 0x526CCCAB, 4 | BRF_ESS | BRF_PRG }, // 12 Z80 code

{ "5003-v1.bin",  0x400000, 0x83D49ECF, 5 | BRF_SND }, // 13 Sound data
{ "5003-v2.bin",  0x400000, 0x003F1843, 5 | BRF_SND }, // 14
{ "5003-v3.bin",  0x400000, 0x2AE38DBE, 5 | BRF_SND }, // 15
{ "5003-v4.bin",  0x400000, 0x26EC4DD9, 5 | BRF_SND }, // 16
};

STDROMPICKEXT(ct2003sp, ct2003sp, neogeo);
STD_ROM_FN(ct2003sp);

static void ct2003spSMADecrypt()
{
unsigned char *src = Neo68KROM;
unsigned char *dst = (unsigned char*)malloc(0x500000);
int sec[] = {0x400000,0x000000,0x100000,0x200000,0x300000};
if (dst) {
 memcpy(dst,src,0x500000);

 for(int i = 0; i < 5; ++i)
      memcpy(src+i*0x100000,dst+sec[i],0x100000);

 free(dst);
}
}

static int ct2003spInit()
{
nNeoTextROMFixType = 7;
return NeoSMAInit(ct2003spSMADecrypt,cthdWriteWordBankswitch,0,0);
}

struct BurnDriver BurnDrvct2003sp = {
"ct2003sp","ct2003nd", "neogeo", "2003",
"Crouching Tiger Hidden Dragon 2003 Super Plus\0",NULL , "Phenixsoft", "Neo Geo",
NULL, NULL, NULL, NULL,
BDF_GAME_WORKING | BDF_BOOTLEG | BDF_CLONE, 2, HARDWARE_SNK_NEOGEO,
NULL, ct2003spRomInfo, ct2003spRomName, neogeoInputInfo, neogeoDIPInfo,
ct2003spInit, NeoExit, NeoFrame, NeoRender, NeoScan, &NeoRecalcPalette,
nNeoScreenWidth, 224, 4, 3
};
« Last Edit: May 10, 2005, 12:23:17 PM by iq_132 »

Offline FerchogtX

  • FBNeo Dev
  • ******
  • Posts: 375
  • Karma: +7/-0
  • FB Alpha Team ;)
    • FB Alpha Plus! Web Site
d_neogeo.cpp matching MAME .92
« Reply #7 on: March 06, 2005, 09:55:34 PM »
But that is emulating another set..., the real thing is to emulate the 256 KB s1 rom man, mame can do it, do you know how to fix that? :D
See ya!!!!! :D
P.D. do you figured out how to fix also the fba skin bug in win9x/ME? as you know the "preview blitter" option doesn't work on these O.S.... :(

Good and evil co-exist because of the balance, lies are not part of it...

FB Alpha Plus! site infos updated, see the latest info clicking on my profile link...

Offline iq_132

  • Administrator
  • *****
  • Posts: 3724
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
d_neogeo.cpp matching MAME .92
« Reply #8 on: March 06, 2005, 11:15:23 PM »
What's different is that the sets match MAME's more closely.
I've removed games that MAME doesn't support, added the comments that are in MAME's drivers for the games, and put them in the order the same as they are in the MAME source.
Quite a lot of work, actually.


Offline FerchogtX

  • FBNeo Dev
  • ******
  • Posts: 375
  • Karma: +7/-0
  • FB Alpha Team ;)
    • FB Alpha Plus! Web Site
d_neogeo.cpp matching MAME .92
« Reply #9 on: March 06, 2005, 11:36:47 PM »
Quote from: iq_132
What's different is that the sets match MAME's more closely.
I've removed games that MAME doesn't support, added the comments that are in MAME's drivers for the games, and put them in the order the same as they are in the MAME source.
Quite a lot of work, actually.

I thought that maybe one or 2 CRC's were different, at least that i understood when i saw that matching mame 0.92 XD..., anyway I noticed that you reordered the drivers and added comments XD, and of course that is a LOT OF WORK and EFFORT, almost 500 games reordered? that's really a lot of work.
Thanks for the answer IQ... i hope you don't get mad :( I just missunderstood the post
See ya!!!!! :D

Good and evil co-exist because of the balance, lies are not part of it...

FB Alpha Plus! site infos updated, see the latest info clicking on my profile link...

Offline netbug

  • Newbies
  • *
  • Posts: 37
  • Karma: +1/-0
  • Member
d_neogeo.cpp matching MAME .92
« Reply #10 on: March 07, 2005, 12:10:08 AM »
Thanks for your notice!It's frustrating to
learn of missing some code last time.I re-download
those roms(pbobblen/aof/wh1/wh1h/kotm2) and
have succeeded on the last trial a moment age.
At last maybe other bugs exist in my code,
please tell me.

This following code is much more better than yesterday's.
BTW,there was a mixed-audio missing in the code I
have posted last night while running pbobblen/pbobblna.
.Now,you can get rid of those bugs.
neo_run.cpp (maybe finally code)

find : (1-1)
if (pInfo->nADPCMBNum == 0) {
nYM2610ADPCMASize *= pName[FindType(pName) + 1] - '1';
} else {
nYM2610ADPCMASize *= pName[FindType(pName) + 2] - '1';
}


replace with: (1-1)
/*
if (pInfo->nADPCMBNum == 0) {
nYM2610ADPCMASize *= pName[FindType(pName) + 1] - '1';
} else {
nYM2610ADPCMASize *= pName[FindType(pName) + 2] - '1';
}*/

if ((!strcmp(BurnDrvGetTextA(DRV_NAME), "pbobblen")) || (!strcmp(BurnDrvGetTextA(DRV_NAME), "pbobblna"))) {
nYM2610ADPCMASize *= 3;
} else {
nYM2610ADPCMASize *=pInfo->nADPCMANum-1;
} :mad:  :D

Offline FerchogtX

  • FBNeo Dev
  • ******
  • Posts: 375
  • Karma: +7/-0
  • FB Alpha Team ;)
    • FB Alpha Plus! Web Site
d_neogeo.cpp matching MAME .92
« Reply #11 on: March 07, 2005, 08:13:09 PM »
Thanks for the fix netbug, I'll test it and tell you :)
See ya!!!!!! :D

Good and evil co-exist because of the balance, lies are not part of it...

FB Alpha Plus! site infos updated, see the latest info clicking on my profile link...

Offline netbug

  • Newbies
  • *
  • Posts: 37
  • Karma: +1/-0
  • Member
d_neogeo.cpp matching MAME .92
« Reply #12 on: March 07, 2005, 10:02:16 PM »
hi,guy,I have updated my code this morning. :)

Offline Shoometsu

  • Jr. Member
  • **
  • Posts: 66
  • Karma: +0/-0
  • I finally have an avatar XD
d_neogeo.cpp matching MAME .92
« Reply #13 on: March 13, 2005, 07:31:42 PM »
Quote from: netbug
Other former bugs  were not fixed now.You can delete drivers Chinese name by yourself. :D


compiling 0.2.95.23 there are some gfx glitches in normal build, but with a debug build I can't see any gfx glitches but a small aside the logo in title screen. why :confused:
<- Who are you?

Offline netbug

  • Newbies
  • *
  • Posts: 37
  • Karma: +1/-0
  • Member
d_neogeo.cpp matching MAME .92
« Reply #14 on: March 13, 2005, 07:51:33 PM »
Fixing gfx glitches and former bugs in tmnt drivers is beyond my capacity
at present.Just wait for official support or some great men
post the fixed code. :)  ;)
At last I'm terribly hungry now and must breakfast on the street immediately
See you :D  ;)  :mad:  :D  :mad: