Author Topic: Mahjong Final Romance 2 ( For Mame source 103 and later )  (Read 12698 times)

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Mahjong Final Romance 2 ( For Mame source 103 and later )
« on: January 09, 2006, 06:55:24 AM »
Thanks to IQ for the FIX ( Patch )

Code: [Select]
Mahjong Final Romance 2

----------------------------------------------------------------------------------------------

DRIVERS\NEOGEO.C
----------------------------------------------------------------------------------------------

ROM_START( fr2ch )
ROM_REGION( 0x100000, REGION_CPU1, 0 )
ROM_LOAD16_WORD_SWAP( "098-p1ch.bin", 0x000000, 0x100000, CRC(a2527a5f) SHA1(1f6e3c7de9154c0026360ee6fa0bd211ed541af1) )

NEO_SFIX_128K( "098-s1ch.bin", CRC(764AC7AA) SHA1(cc40ad276e63084ebf3c3ee224083762a47c3cf8) )

NEO_BIOS_SOUND_64K( "098-m1ch.bin", CRC(a455fa31) SHA1(82ccc5e2e5869a46da7533ed10ac5eab549a0063) )

ROM_REGION( 0x100000, REGION_SOUND1, 0 )
ROM_LOAD( "098-v1ch.bin", 0x000000, 0x100000, CRC(92e175f0) SHA1(788a9cce9028f16d6734bff163beb1a19305b8be) )

NO_DELTAT_REGION

ROM_REGION( 0x600000, REGION_GFX3, 0 )
ROM_LOAD16_BYTE( "098-c1ch.bin", 0x000000, 0x100000, CRC(025a7896) SHA1(35744760b83e92b41440bbdd7e07a704397ba5b6) )
ROM_LOAD16_BYTE( "098-c2ch.bin", 0x000001, 0x100000, CRC(1d2066b0) SHA1(1e33dadd3e513d9ea7ae0f64cb58a096440fe932) )
ROM_LOAD16_BYTE( "098-c3ch.bin", 0x200000, 0x100000, CRC(19bd72a0) SHA1(8636222e4704d876aa22cd3ded9fba2631cb164d) )
ROM_LOAD16_BYTE( "098-c4ch.bin", 0x200001, 0x100000, CRC(46f89956) SHA1(8bfd49e792692553a061245760f97cd07cb718c4) )
ROM_LOAD16_BYTE( "098-c5ch.bin", 0x400000, 0x100000, CRC(c75dd306) SHA1(fb54cf8f7c22de99edc812b6ffef8b1a663ee65f) )
ROM_LOAD16_BYTE( "098-c6ch.bin", 0x400001, 0x100000, CRC(aeaaa9eb) SHA1(ac3f75d144e910e30df0eb5bb09b8015a7adfa01) )
ROM_END



DRIVER_INIT( fr2ch )
{
install_fr2ch_fix();
init_neogeo();
}


GAMEB( 1995, fr2ch,    neogeo,   neogeo, neogeo, neogeo,  fr2ch,    ROT0, "hack / bootleg",   "Mahjong Final Romance 2 (hacked Neo CD converson)", 0 )

----------------------------------------------------------------------------------------------

INCLUDES\NEOGEO.H
----------------------------------------------------------------------------------------------

ADD THIS AFTER /* machine/neoboot.c */

void install_fr2ch_fix(void);



----------------------------------------------------------------------------------------------

MACHINE\NEOBOOT.C
----------------------------------------------------------------------------------------------


/************************ Mahjong Final Romance 2 (Bootleg) *************************
todo: emulate, not patch!
*************************************************************************************/
/* patch by iq_132 */
void install_fr2ch_fix(void)
{
/* Patch out bios call.. 0xC0056A */
UINT16 *mem16 = (UINT16*)memory_region(REGION_CPU1);
mem16[0x1BF2/2] = 0x4E71;
mem16[0x1BF4/2] = 0x4E71;
mem16[0x1BF6/2] = 0x4E71;
}
« Last Edit: January 10, 2006, 08:48:26 PM by James33 »
IQ Forum Member

Offline Ashura-X

  • Member
  • ***
  • Posts: 138
  • Karma: +0/-0
Re: Mahjong Final Romance 2 ( For Mame source 103 and later )
« Reply #1 on: January 09, 2006, 07:22:17 AM »
Nice !
Thank you for share the code  :biggrin:

Online iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Mahjong Final Romance 2 ( For Mame source 103 and later )
« Reply #2 on: January 09, 2006, 03:17:56 PM »
You can also use the mame-style code
Code: [Select]
void install_fr2ch_fix(void)
{
/* Patch out bios call.. 0xC0056A */
UINT16 *mem16 = (UINT16*)memory_region(REGION_CPU1);
mem16[0x1BF2/2] = 0x4E71;
mem16[0x1BF4/2] = 0x4E71;
mem16[0x1BF6/2] = 0x4E71;
}


Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: Mahjong Final Romance 2 ( For Mame source 103 and later )
« Reply #3 on: January 09, 2006, 06:53:01 PM »
How come the credits box is white on the bottom to the right side of the screen?  :biggrin:

Online iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Mahjong Final Romance 2 ( For Mame source 103 and later )
« Reply #4 on: January 09, 2006, 07:10:26 PM »
Because the Neo-Geo CD is based on AES (console) hardware.  This means that it isn't suppose to be run in MVS (arcade) mode.
If you want to see it look & run correctly, run the game in AES mode.


Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: Mahjong Final Romance 2 ( For Mame source 103 and later )
« Reply #5 on: January 09, 2006, 09:06:59 PM »
Because the Neo-Geo CD is based on AES (console) hardware.  This means that it isn't suppose to be run in MVS (arcade) mode.
If you want to see it look & run correctly, run the game in AES mode.

Hmmm...All I see is the MVS bios list in the Mame32. How can I change it into AES? Do I need extra drivers for the extra bios roms?
« Last Edit: January 09, 2006, 09:08:51 PM by KingHanco »

Online iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Mahjong Final Romance 2 ( For Mame source 103 and later )
« Reply #6 on: January 09, 2006, 09:32:37 PM »
Use the uni-bios and set it to console mode.


Offline KingHanco

  • Sr. Member
  • ****
  • Posts: 401
  • Karma: +0/-4
  • "Special " Member
Re: Mahjong Final Romance 2 ( For Mame source 103 and later )
« Reply #7 on: January 09, 2006, 09:39:03 PM »
Use the uni-bios and set it to console mode.

Huh???

There isn't a console mode in game or Mame32 option.

Could it be Mame disabled all uni-bio?

Code: [Select]
SYSTEM_BIOS_START( neogeo )
SYSTEM_BIOS_ADD( 0, "euro",       "Europe MVS (Ver. 2)" )
SYSTEM_BIOS_ADD( 1, "euro-s1",    "Europe MVS (Ver. 1)" )
SYSTEM_BIOS_ADD( 2, "us",         "US MVS (Ver. 2?)" )
SYSTEM_BIOS_ADD( 3, "us-e",       "US MVS (Ver. 1)" )
SYSTEM_BIOS_ADD( 4, "asia",       "Asia MVS (Ver. 3)" )
SYSTEM_BIOS_ADD( 5, "japan",      "Japan MVS (Ver. 3)" )
SYSTEM_BIOS_ADD( 6, "japan-s2",   "Japan MVS (Ver. 2)" )
SYSTEM_BIOS_ADD( 7, "japan-s1",   "Japan MVS (Ver. 1)" )

//  SYSTEM_BIOS_ADD( 8, "uni-bios.10","Unibios MVS (Hack, Ver. 1.0)" )
//  SYSTEM_BIOS_ADD( 9, "uni-bios.11","Unibios MVS (Hack, Ver. 1.1)" )
//  SYSTEM_BIOS_ADD(10, "debug",      "Debug MVS (Hack?)" )
//  SYSTEM_BIOS_ADD(11, "asia-aes",   "Asia AES" )
SYSTEM_BIOS_END

#define ROM_LOAD16_WORD_SWAP_BIOS(bios,name,offset,length,hash) \
ROMX_LOAD(name, offset, length, hash, ROM_GROUPWORD | ROM_REVERSE | ROM_BIOS(bios+1)) /* Note '+1' */

#define NEOGEO_BIOS \
ROM_LOAD16_WORD_SWAP_BIOS( 0, "sp-s2.sp1",    0x00000, 0x020000, CRC(9036d879) SHA1(4f5ed7105b7128794654ce82b51723e16e389543) ) /* Europe, 1 Slot, has also been found on a 4 Slot (the old hacks were designed for this one) */ \
ROM_LOAD16_WORD_SWAP_BIOS( 1, "sp-s.sp1",     0x00000, 0x020000, CRC(c7f2fa45) SHA1(09576ff20b4d6b365e78e6a5698ea450262697cd) ) /* Europe, 4 Slot */ \
ROM_LOAD16_WORD_SWAP_BIOS( 2, "usa_2slt.bin", 0x00000, 0x020000, CRC(e72943de) SHA1(5c6bba07d2ec8ac95776aa3511109f5e1e2e92eb) ) /* US, 2 Slot */ \
ROM_LOAD16_WORD_SWAP_BIOS( 3, "sp-e.sp1",     0x00000, 0x020000, CRC(2723a5b5) SHA1(5dbff7531cf04886cde3ef022fb5ca687573dcb8) ) /* US, 6 Slot (V5?) */ \
ROM_LOAD16_WORD_SWAP_BIOS( 4, "asia-s3.rom",  0x00000, 0x020000, CRC(91b64be3) SHA1(720a3e20d26818632aedf2c2fd16c54f213543e1) ) /* Asia */ \
ROM_LOAD16_WORD_SWAP_BIOS( 5, "vs-bios.rom",  0x00000, 0x020000, CRC(f0e8f27d) SHA1(ecf01eda815909f1facec62abf3594eaa8d11075) ) /* Japan, Ver 6 VS Bios */ \
ROM_LOAD16_WORD_SWAP_BIOS( 6, "sp-j2.rom",    0x00000, 0x020000, CRC(acede59c) SHA1(b6f97acd282fd7e94d9426078a90f059b5e9dd91) ) /* Japan, Older */ \
ROM_LOAD16_WORD_SWAP_BIOS( 7, "sp1.jipan.1024",0x00000, 0x020000,  CRC(9fb0abe4) SHA1(18a987ce2229df79a8cf6a84f968f0e42ce4e59d) ) /* Japan, Older */ \

//  ROM_LOAD16_WORD_SWAP_BIOS( 8, "uni-bios.10",  0x00000, 0x020000, CRC(0ce453a0) SHA1(3b4c0cd26c176fc6b26c3a2f95143dd478f6abf9) ) /* Universe Bios v1.0 (hack) */
//  ROM_LOAD16_WORD_SWAP_BIOS( 9, "uni-bios.11",  0x00000, 0x020000, CRC(5dda0d84) SHA1(4153d533c02926a2577e49c32657214781ff29b7) ) /* Universe Bios v1.1 (hack) */
//  ROM_LOAD16_WORD_SWAP_BIOS(10, "neodebug.rom", 0x00000, 0x020000, CRC(698ebb7d) SHA1(081c49aa8cc7dad5939833dc1b18338321ea0a07) ) /* Debug (Development) Bios */
//  ROM_LOAD16_WORD_SWAP_BIOS(11, "aes-bios.bin", 0x00000, 0x020000, CRC(d27a71f1) SHA1(1b3b22092f30c4d1b2c15f04d1670eb1e9fbea07) ) /* AES Console (Asia?) Bios */

Ok I will replace all of those to Mame Plus ones.
« Last Edit: January 09, 2006, 09:46:37 PM by KingHanco »

Offline James33

  • Expert
  • *****
  • Posts: 532
  • Karma: +3/-0
  • The Mame Man
    • Emulation Zone
Re: Mahjong Final Romance 2 ( For Mame source 103 and later )
« Reply #8 on: January 09, 2006, 10:11:11 PM »
I have the game working on Nebula and Kawaks



Code: [Select]
System: NEO
RomName: fr2cd
Game: Mahjong Final Romance 2 (hacked Neo CD converson)


[Program]
098-p1.bin,0,100000,F4D95791,0


[Text]
098-s1.bin,0,20000,764AC7AA,0


[Z80]
098-m1.bin,0,10000,A455FA31,0


[Samples]
098-v1.bin,0,100000,92E175F0,0


[Graphics]
098-c1.bin,0,100000,25A7896,0
098-c2.bin,1,100000,1D2066B0,0
098-c3.bin,200000,100000,19BD72A0,0
098-c4.bin,200001,100000,46F89956,0
098-c5.bin,400000,100000,C75DD306,0
098-c6.bin,400001,100000,AEAAA9EB,0


[System]
CartridgeID: 098
GfxCrypt: 0
GfxKey: 0
ButLayout: 9
Fix: 0

« Last Edit: January 10, 2006, 08:20:22 PM by James33 »
IQ Forum Member

Offline rock23

  • New Member
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Mahjong Final Romance 2 ( For Mame source 103 and later )
« Reply #9 on: January 10, 2006, 01:28:28 PM »
I have the game working on Nebula and Kawaks



Code: [Select]
System: NEO
RomName: fr2cd
Game: Mahjong Final Romance 2 (hacked Neo CD converson)


[Program]
098-p1.bin,0,100000,F4D95791,0


[Text]
098-s1.bin,0,20000,764AC7AA,0


[Z80]
098-m1.bin,0,10000,A455FA31,0


[Samples]
098-v1.bin,0,100000,92E175F0,0


[Graphics]
098-c1.bin,0,300000,29BF9AF0,0
098-c2.bin,1,300000,3CF46F63,0


[System]
CartridgeID: 098
GfxCrypt: 0
GfxKey: 0
ButLayout: 9
Fix: 0



fix of p1 ROM ? :confused:
« Last Edit: January 10, 2006, 01:30:42 PM by rock23 »

Online iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: Mahjong Final Romance 2 ( For Mame source 103 and later )
« Reply #10 on: January 10, 2006, 02:27:17 PM »
Yeah, just open the p1 up in winhex and change these offsets:

0x1BF2 = 71
0x1BF3 = 4E
0x1BF4 = 71
0x1BF5 = 4E
0x1BF6 = 71
0x1BF7 = 4E


Offline KaNyErO

  • Member
  • ***
  • Posts: 142
  • Karma: +4/-0
Re: Mahjong Final Romance 2 ( For Mame source 103 and later )
« Reply #11 on: January 10, 2006, 04:36:42 PM »
Here is the set for nebula with proper C roms layout, to get them just split the ones you have in 1 mb parts.

Code: [Select]
System: Neo
RomName: fr2cdd
Game: Mahjong Final Romance 2 Cd Hack Conversion

[Program]
098-p1.bin,0,100000,F4D95791,0

[Text]
098-s1.bin,0,20000,764AC7AA,0

[Z80]
098-m1.bin,0,10000,A455FA31,0

[Samples]
098-v1.bin,0,100000,92E175F0,0

[Graphics]
098-c1.bin,0,100000,25A7896,0
098-c2.bin,1,100000,1D2066B0,0
098-c3.bin,200000,100000,19BD72A0,0
098-c4.bin,200001,100000,46F89956,0
098-c5.bin,400000,100000,C75DD306,0
098-c6.bin,400001,100000,AEAAA9EB,0

[System]
CartridgeID: 098
GfxCrypt: 0
GfxKey: 0
ButLayout: 9
Fix: 0

Offline rock23

  • New Member
  • *
  • Posts: 9
  • Karma: +0/-0
Re: Mahjong Final Romance 2 ( For Mame source 103 and later )
« Reply #12 on: January 10, 2006, 05:22:34 PM »
Yeah, just open the p1 up in winhex and change these offsets:

0x1BF2 = 71
0x1BF3 = 4E
0x1BF4 = 71
0x1BF5 = 4E
0x1BF6 = 71
0x1BF7 = 4E



Thanks to IQ for the FIX  :wink: :wink: :wink:
« Last Edit: January 10, 2006, 05:26:59 PM by rock23 »