Previous 15994 Revisions Next

r9276 Wednesday 29th September, 2010 at 08:22:53 UTC by Angelo Salese
[Megadrive]: initial work in supporting serial EEPROM
[src/mess/machine]genesis.c

src/mess/machine/genesis.c
r9275r9276
44
55  Machine file to handle emulation of the Sega Mega Drive & Genesis.
66
7   i2c games mapping table:
78
9   game name                         |   SDA_IN   |  SDA_OUT   |     SCL    |  SIZE_MASK     | PAGE_MASK |
10   ----------------------------------|------------|------------|------------|----------------|-----------|
11   NBA Jam                           | 0x200001-0 | 0x200001-0*| 0x200000-1*| 0x00ff (24C02) |   0x03    | x
12    NBA Jam TE                        | 0x200001-0 | 0x200001-0 | 0x200000-0 | 0x00ff (24C02) |   0x03    | x
13    NFL Quarterback Club              | 0x200001-0 | 0x200001-0 | 0x200000-0 | 0x00ff (24C02) |   0x03    | x
14    NFL Quarterback Club 96           | 0x200001-0 | 0x200001-0 | 0x200000-0 | 0x07ff (24C16) |   0x07    | x
15    College Slam                      | 0x200001-0 | 0x200001-0 | 0x200000-0 | 0x1fff (24C64) |   0x07    |
16    Frank Thomas Big Hurt Baseball    | 0x200001-0 | 0x200001-0 | 0x200000-0 | 0x1fff (24C64) |   0x07    |
17    NHLPA Hockey 93                   | 0x200001-7 | 0x200001-7 | 0x200001-6 | 0x007f (24C01) |   0x03    |
18    Rings of Power                    | 0x200001-7 | 0x200001-7 | 0x200001-6 | 0x007f (24C01) |   0x03    |
19    Evander Holyfield's Boxing        | 0x200001-0 | 0x200001-0 | 0x200001-1 | 0x007f (24C01) |   0x03    |
20    Greatest Heavyweights of the Ring | 0x200001-0 | 0x200001-0 | 0x200001-1 | 0x007f (24C01) |   0x03    |
21    Wonder Boy V                      | 0x200001-0 | 0x200001-0 | 0x200001-1 | 0x007f (24C01) |   0x03    |
22    Sports Talk Baseball              | 0x200001-0 | 0x200001-0 | 0x200001-1 | 0x007f (24C01) |   0x03    |
23    Megaman - the Wily Wars           | 0x200001-0 | 0x200001-0 | 0x200001-1 | 0x007f (24C01) |   0x03    | **
24    Micro Machines 2                  | 0x300000-0 | 0x380001-7 | 0x300000-1 | 0x03ff (24C08) |   0x0f    |
25    Micro Machines Military           | 0x300000-0 | 0x380001-7 | 0x300000-1 | 0x03ff (24C08) |   0x0f    |
26    Micro Machines 96                 | 0x300000-0 | 0x380001-7 | 0x300000-1 | 0x07ff (24C16) |   0x0f    |
27    Brian Lara Cricket 96             | 0x300000-0 | 0x380001-7 | 0x300000-1 | 0x1fff (24C64) |   0x??*   |
28    ----------------------------------|------------|------------|------------|----------------|-----------|
29
30   * Notes: check these
31   ** original Rockman Mega World (J) set uses normal backup RAM
32
833    2008-09: Moved here cart code and custom mapper handlers. Hopefully,
934        it will make painless the future merging with HazeMD
1035    2008-10: Fixed SRAM, matching as much as possible HazeMD. Some game is
r9275r9276
3459enum t_cart_type
3560{
3661   STANDARD = 0,
62   NBA_JAM,            /* NBA Jam */
63   NBA_JAM_TE,            /* NBA Jam TE / NFL Quarterback Club */
64   NFL_QB_96,            /* NFL Quarterback Club '96 */
65
3766   SSF2,               /* Super Street Fighter 2 */
38   LIONK3,            /* Lion King 3 */
67   LIONK3,               /* Lion King 3 */
3968   SKINGKONG,            /* Super King Kong 99 */
40   SDK99,            /* Super Donkey Kong 99 */
69   SDK99,               /* Super Donkey Kong 99 */
4170   REDCLIFF,            /* Romance of the Three Kingdoms - Battle of Red Cliffs, already decoded from .mdx format */
4271   REDCL_EN,            /* The encoded version... */
43   RADICA,            /* Radica TV games.. these probably should be a seperate driver since they are a seperate 'console' */
44   KOF99,            /* King of Fighters '99 */
72   RADICA,               /* Radica TV games.. these probably should be a seperate driver since they are a seperate 'console' */
73   KOF99,               /* King of Fighters '99 */
4574   SOULBLAD,            /* Soul Blade */
4675   MJLOVER,            /* Mahjong Lover */
4776   SQUIRRELK,            /* Squirrel King */
48   SMOUSE,            /* Smart Mouse */
77   SMOUSE,               /* Smart Mouse */
4978   SMB,               /* Super Mario Bros. */
5079   SMB2,               /* Super Mario Bros. 2 */
51   KAIJU,            /* Pokemon Stadium */
80   KAIJU,               /* Pokemon Stadium */
5281   CHINFIGHT3,            /* Chinese Fighters 3 */
53   LIONK2,            /* Lion King 2 */
82   LIONK2,               /* Lion King 2 */
5483   BUGSLIFE,            /* A Bug's Life */
55   ELFWOR,            /* Elf Wor */
84   ELFWOR,               /* Elf Wor */
5685   ROCKMANX3,            /* Rockman X3 */
5786   SBUBBOB,            /* Super Bubble Bobble */
58   KOF98,            /* King of Fighters '98 */
87   KOF98,               /* King of Fighters '98 */
5988   REALTEC,            /* Whac a Critter/Mallet legend, Defend the Earth, Funnyworld/Ballonboy */
6089   SUP19IN1,            /* Super 19 in 1 */
6190   SUP15IN1            /* Super 15 in 1 */
r9275r9276
11281157         soulb_sig[]      = { 0x33, 0xfc, 0x00, 0x0c, 0x00, 0xff }, // move.w  #$C,($FF020A).l (what happens if check fails)
11291158         s19in1_sig[]   = { 0x13, 0xc0, 0x00, 0xa1, 0x30, 0x38 };
11301159
1160      //printf("%08x\n",genesis_last_loaded_image_length);
1161
11311162      switch (genesis_last_loaded_image_length)
11321163      {
11331164         case 0x80000:
r9275r9276
11901221
11911222            if (!allendianmemcmp(&ROM[0x17bb2], &s15in1_sig[0], sizeof(s15in1_sig)))
11921223               cart_type = SUP15IN1;
1224
1225            if (!allendianmemcmp((char *)&ROM[0x0180], "GM T-081326", 11)) // NBA Jam
1226               cart_type = NBA_JAM;
1227
11931228            break;
11941229
11951230         case 0x200005:
r9275r9276
12031238
12041239            if (!allendianmemcmp(&ROM[0x1fd0d2], &kof99_sig[0], sizeof(kof99_sig)))
12051240               cart_type = KOF99;
1241
1242            if (!allendianmemcmp((char *)&ROM[0x0180], "GM T-81406", 10)) // NBA Jam TE
1243               cart_type = NBA_JAM_TE;
1244
1245            if (!allendianmemcmp((char *)&ROM[0x0180], "GM T-81276", 10)) // NFL Quarterback Club
1246               cart_type = NBA_JAM_TE;
1247
12061248            break;
12071249
12081250         case 0x400000:
r9275r9276
12151257
12161258            if (!allendianmemcmp(&ROM[0x1e700], &s19in1_sig[0], sizeof(s19in1_sig)))
12171259               cart_type = SUP19IN1;
1260
1261            if (!allendianmemcmp((char *)&ROM[0x0180], "GM T-81586", 10)) // NFL Quarterback Club 96
1262               cart_type = NFL_QB_96;
12181263            break;
12191264
12201265         case 0x500000:

Previous 15994 Revisions Next


© 1998-2018 The MESS Team