Previous 15994 Revisions Next

r9671 Saturday 27th November, 2010 at 02:11:19 UTC by Justin Kerk
[GENESIS] Rename files for 8.3
[src/mess]mess.mak
[src/mess/machine]gen_pcb.c* gen_pcb.h* genesis.c genesis_pcb.c genesis_pcb.h

src/mess/machine/genesis_pcb.c
r9670r9671
1/*****************************************************************************************
2
3    Genesis/MegaDrive Cart PCBs Emulation
4
5****************************************************************************************/
6
7#include "emu.h"
8#include "genesis_pcb.h"
9
10typedef struct _md_pcb  md_pcb;
11struct _md_pcb
12{
13   const char              *pcb_name;
14   int                     pcb_id;
15};
16
17// Here, we take the feature attribute from .xml (i.e. the PCB name) and we assign a unique ID to it
18static const md_pcb pcb_list[] =
19{
20   /* Standard Sega PCB (one rom) */
21   {"171-5703", STD_ROM},
22   {"171-5927", STD_ROM},
23   {"171-5978B", STD_ROM},
24   {"171-5978BA", STD_ROM},
25   {"171-6329A", STD_ROM},
26
27   /* Sega PCB with two roms */
28   {"171-5841", STD_ROM},
29
30   /* Sega PCB with Serial EEPROM */
31   {"171-5878", SEGA_5878},
32   {"171-6584A", SEGA_6584A},
33
34   /* Sega PCB with sram */
35   {"171-5921", SEGA_5921},
36   {"171-6278A", SEGA_6278A},
37
38   /* Sega PCB with fram */
39   {"171-6658A", SEGA_6658A},
40
41   /* Namcot PCB (blob epoxy chip) */
42   {"837-8861", STD_ROM},
43
44   /* Codemasters PCB */
45   {"SRJCV1-2", CM_JCART},
46   {"SRJCV2-1", CM_JCART_SEPROM},
47   {"SRJCV2-2", CM_JCART_SEPROM}
48};
49
50int md_get_pcb_id(const char *pcb)
51{
52   int   i;
53
54   for (i = 0; i < ARRAY_LENGTH(pcb_list); i++)
55   {
56      if (!mame_stricmp(pcb_list[i].pcb_name, pcb))
57         return pcb_list[i].pcb_id;
58   }
59
60   return STD_ROM;
61}
src/mess/machine/genesis_pcb.h
r9670r9671
1#ifndef __GENESIS_PCB_H
2# define __GENESIS_PCB_H
3
4/* PCB */
5enum
6  {
7    STD_ROM = 0,
8
9    /* Sega PCB */
10    SEGA_5878, SEGA_6584A, SEGA_5921, SEGA_6278A, SEGA_6658A,
11
12    /* Codemasters PCB (J-Carts and SEPROM) */
13    CM_JCART, CM_JCART_SEPROM
14  };
15
16int md_get_pcb_id(const char *pcb);
17
18#endif
19
src/mess/machine/gen_pcb.h
r0r9671
1#ifndef __GENESIS_PCB_H
2# define __GENESIS_PCB_H
3
4/* PCB */
5enum
6  {
7    STD_ROM = 0,
8
9    /* Sega PCB */
10    SEGA_5878, SEGA_6584A, SEGA_5921, SEGA_6278A, SEGA_6658A,
11
12    /* Codemasters PCB (J-Carts and SEPROM) */
13    CM_JCART, CM_JCART_SEPROM
14  };
15
16int md_get_pcb_id(const char *pcb);
17
18#endif
19
src/mess/machine/genesis.c
r9670r9671
5050
5151#include "devices/cartslot.h"
5252#include "includes/genesis.h"
53#include "genesis_pcb.h"
53#include "gen_pcb.h"
5454
5555
5656#define MAX_MD_CART_SIZE 0x500000
src/mess/machine/gen_pcb.c
r0r9671
1/*****************************************************************************************
2
3    Genesis/MegaDrive Cart PCBs Emulation
4
5****************************************************************************************/
6
7#include "emu.h"
8#include "gen_pcb.h"
9
10typedef struct _md_pcb  md_pcb;
11struct _md_pcb
12{
13   const char              *pcb_name;
14   int                     pcb_id;
15};
16
17// Here, we take the feature attribute from .xml (i.e. the PCB name) and we assign a unique ID to it
18static const md_pcb pcb_list[] =
19{
20   /* Standard Sega PCB (one rom) */
21   {"171-5703", STD_ROM},
22   {"171-5927", STD_ROM},
23   {"171-5978B", STD_ROM},
24   {"171-5978BA", STD_ROM},
25   {"171-6329A", STD_ROM},
26
27   /* Sega PCB with two roms */
28   {"171-5841", STD_ROM},
29
30   /* Sega PCB with Serial EEPROM */
31   {"171-5878", SEGA_5878},
32   {"171-6584A", SEGA_6584A},
33
34   /* Sega PCB with sram */
35   {"171-5921", SEGA_5921},
36   {"171-6278A", SEGA_6278A},
37
38   /* Sega PCB with fram */
39   {"171-6658A", SEGA_6658A},
40
41   /* Namcot PCB (blob epoxy chip) */
42   {"837-8861", STD_ROM},
43
44   /* Codemasters PCB */
45   {"SRJCV1-2", CM_JCART},
46   {"SRJCV2-1", CM_JCART_SEPROM},
47   {"SRJCV2-2", CM_JCART_SEPROM}
48};
49
50int md_get_pcb_id(const char *pcb)
51{
52   int   i;
53
54   for (i = 0; i < ARRAY_LENGTH(pcb_list); i++)
55   {
56      if (!mame_stricmp(pcb_list[i].pcb_name, pcb))
57         return pcb_list[i].pcb_id;
58   }
59
60   return STD_ROM;
61}
src/mess/mess.mak
r9670r9671
13421342$(MESSOBJ)/sega.a:            \
13431343   $(MESS_DRIVERS)/genesis.o   \
13441344   $(MESS_MACHINE)/genesis.o   \
1345   $(MESS_MACHINE)/genesis_pcb.o   \
1345   $(MESS_MACHINE)/gen_pcb.o   \
13461346   $(MESS_DRIVERS)/saturn.o   \
13471347   $(MAME_MACHINE)/stvcd.o      \
13481348   $(MAME_MACHINE)/scudsp.o   \

Previous 15994 Revisions Next


© 1998-2018 The MESS Team