Not sure where to ask this, so I'll ask in this fourm

If you are having problems finding or using cheats for an Emulator (particularly MAME/MESS) or have found a trick that you wish to share this is the place to do it. But please read the Cheat FAQ first.
Post Reply
pasky13
Posts: 27
Joined: Wed Nov 08, 2006 8:31 am

Not sure where to ask this, so I'll ask in this fourm

Post by pasky13 »

Please move if this isn't appropriate for this area.

I want to load some CPS2 games into IDA http://www.hex-rays.com/idapro/.

Which files should I actually load if I want to see the games code? Everytime I look into the rom zip files they are split files but I'm unsure which to load up. I understand they first need to be decrypted, but what rom file is what? Do I have to merge them or?

Would really like some insight, thanks.
User avatar
Pugsy
Posts: 3675
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 15 times
Contact:

Re: Not sure where to ask this, so I'll ask in this fourm

Post by Pugsy »

It's probably better to use the DASM command in the MAME debugger

Type: "help dasm" in the debugger for more info

Eg:-
dasm program.asm,0,fffff,0
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.264 XML cheat collection (3 APRIL 2024) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/SxsQUJoT#jBdz6GLm_ ... QzFGSMms2c (ZIP Archive 3.8 MB)
pasky13
Posts: 27
Joined: Wed Nov 08, 2006 8:31 am

Re: Not sure where to ask this, so I'll ask in this fourm

Post by pasky13 »

Ah, I really wanted to use IDA for its visual disassembler tree view though. I take it you're unsure as well?
User avatar
Pugsy
Posts: 3675
Joined: Fri Aug 17, 2001 12:59 am
Location: North Wales, UK.
Has thanked: 1 time
Been thanked: 15 times
Contact:

Re: Not sure where to ask this, so I'll ask in this fourm

Post by Pugsy »

pasky13 wrote:I take it you're unsure as well?
Not at all finding were ROMs load is really really simple.

It's really clear from the source which files are program code and which are gfx+sound. It even tells you where in memory it is located so you only have to merge the files or parse them seperately.

for instance for the game mshvsf we can see that mvs.05a has a start address of 0x100000

From cps2.c:-

Code: Select all

ROM_START( mshvsf )
	ROM_REGION( CODE_SIZE, "maincpu", 0 )      /* 68000 code */
	ROM_LOAD16_WORD_SWAP( "mvse.03f", 0x000000, 0x80000, CRC(b72dc199) SHA1(61bd581ea4b969298f8a39fe03023b5456cac750) )
	ROM_LOAD16_WORD_SWAP( "mvse.04f", 0x080000, 0x80000, CRC(6ef799f9) SHA1(2d45dbf7bc277b84c6bcd9615ab3b80c42af7781) )
	ROM_LOAD16_WORD_SWAP( "mvs.05a",  0x100000, 0x80000, CRC(1a5de0cb) SHA1(738a27f83704c208d36d73bf766d861ef2d51a89) )
	ROM_LOAD16_WORD_SWAP( "mvs.06a",  0x180000, 0x80000, CRC(959f3030) SHA1(fbbaa915324815246738f3426232e623f039ce26) )
	ROM_LOAD16_WORD_SWAP( "mvs.07b",  0x200000, 0x80000, CRC(7f915bdb) SHA1(683da09c5ba55e31b59aa95a8e13c45dc574ab3c) )
	ROM_LOAD16_WORD_SWAP( "mvs.08a",  0x280000, 0x80000, CRC(c2813884) SHA1(49e5d4bc48f90c8146cb6aafb9240aff0119f1a7) )
	ROM_LOAD16_WORD_SWAP( "mvs.09b",  0x300000, 0x80000, CRC(3ba08818) SHA1(9ab132a3cac55fcccebe6c99b6fb0ba1305f8f6e) )
	ROM_LOAD16_WORD_SWAP( "mvs.10b",  0x380000, 0x80000, CRC(cf0dba98) SHA1(f4c1f8a6e7a79ecc6241d5268b3039f8a09ea516) )
Pugsy

Servicing your cheating needs since 1985 8)

Grab the latest cheat collection:
MAME 0.264 XML cheat collection (3 APRIL 2024) from http://www.mamecheat.co.uk or direct from:-
https://mega.nz/file/SxsQUJoT#jBdz6GLm_ ... QzFGSMms2c (ZIP Archive 3.8 MB)
pasky13
Posts: 27
Joined: Wed Nov 08, 2006 8:31 am

Re: Not sure where to ask this, so I'll ask in this fourm

Post by pasky13 »

Thanks pugsy.
Post Reply