Previous 15994 Revisions Next

r6366 Thursday 12th November, 2009 at 12:59:51 UTC by Fabio Priuli
[32X] Added code to load carts in the system. Games are playable like in HazeMD.
[src/mess/drivers]genesis.c
[src/mess/includes]genesis.h
[src/mess/machine]genesis.c

src/mess/includes/genesis.h
r6365r6366
1414MACHINE_RESET( md_mappers );
1515
1616MACHINE_DRIVER_EXTERN( genesis_cartslot );
17MACHINE_DRIVER_EXTERN( _32x_cartslot );
1718MACHINE_DRIVER_EXTERN( pico_cartslot );
1819
1920#endif /* GENESIS_H_ */
src/mess/machine/genesis.c
r6365r6366
12741274   return INIT_PASS;
12751275}
12761276
1277
12781277/******* Image unloading (with SRAM saving) *******/
12791278
12801279static DEVICE_IMAGE_UNLOAD( genesis_cart )
r6365r6366
12871286   }
12881287}
12891288
1290
1289   
12911290/******* Cart getinfo *******/
12921291
12931292MACHINE_DRIVER_START( genesis_cartslot )
r6365r6366
12981297   MDRV_CARTSLOT_UNLOAD(genesis_cart)
12991298MACHINE_DRIVER_END
13001299
1300MACHINE_DRIVER_START( _32x_cartslot )
1301   MDRV_CARTSLOT_ADD("cart")
1302   MDRV_CARTSLOT_EXTENSION_LIST("32x,bin")
1303   MDRV_CARTSLOT_MANDATORY
1304MACHINE_DRIVER_END
1305
13011306MACHINE_DRIVER_START( pico_cartslot )
13021307   MDRV_CARTSLOT_ADD("cart")
13031308   MDRV_CARTSLOT_EXTENSION_LIST("bin")
src/mess/drivers/genesis.c
r6365r6366
394394
395395static DRIVER_INIT( mess_md_common )
396396{
397   megadrive_io_read_data_port_ptr   = mess_md_io_read_data_port;
397   megadrive_io_read_data_port_ptr = mess_md_io_read_data_port;
398398   megadrive_io_write_data_port_ptr = mess_md_io_write_data_port;
399399}
400400
r6365r6366
433433   DRIVER_INIT_CALL(mess_md_common);
434434}
435435
436static MACHINE_DRIVER_START( ms_32x )
437   MDRV_IMPORT_FROM( genesis_32x )
438
439   MDRV_IMPORT_FROM( _32x_cartslot )
440MACHINE_DRIVER_END
441
442
436443ROM_START( 32x )
437444   ROM_REGION16_BE( 0x400000, "gamecart", ROMREGION_ERASE00 ) /* 68000 Code */
445   ROM_CART_LOAD("cart", 0x000000, 0x400000, ROM_NOMIRROR)
438446
439   ROM_REGION32_BE( 0x400000, "gamecart_sh2", 0 ) /* Copy for the SH2 */
440   ROM_COPY( "gamecart", 0x000000, 0x000000, 0x400000)
447   ROM_REGION32_BE( 0x400000, "gamecart_sh2", ROMREGION_ERASE00 ) /* Copy for the SH2 */
448   ROM_CART_LOAD("cart", 0x000000, 0x400000, ROM_NOMIRROR)
441449
442450   ROM_REGION16_BE( 0x400000, "32x_68k_bios", 0 ) /* 68000 Code */
443451   ROM_LOAD( "32x_g_bios.bin", 0x000000,  0x000100, CRC(5c12eae8) SHA1(dbebd76a448447cb6e524ac3cb0fd19fc065d944) )
444452
445453   ROM_REGION16_BE( 0x400000, "maincpu", ROMREGION_ERASE00 )
446454   // temp, rom should only be visible here when one of the regs is set, tempo needs it
447   ROM_COPY( "gamecart", 0x0, 0x0, 0x400000)
455   ROM_CART_LOAD("cart", 0x000000, 0x400000, ROM_NOMIRROR)
448456   ROM_COPY( "32x_68k_bios", 0x0, 0x0, 0x100)
449457
450458   ROM_REGION( 0x400000, "32x_master_sh2", 0 ) /* SH2 Code */
r6365r6366
821829CONS( 1993, picoj,      pico,      0,      pico,            pico,   md_jpn,    0,   "Sega",   "Pico (Japan, NTSC)", 0)
822830
823831/* Not Working */
824CONS( 1994, 32x,        0,         0,      genesis_32x,     md_sel, mess_32x,  0,   "Sega",   "32X", GAME_NOT_WORKING )
832CONS( 1994, 32x,        0,         0,      ms_32x,          md_sel, mess_32x,  0,   "Sega",   "32X", GAME_NOT_WORKING )
825833CONS( 1992, segacd,     0,         0,      genesis_scd,     md,     genesis,   0,   "Sega",   "Sega CD (USA, NTSC)", GAME_NOT_WORKING )
826834CONS( 1993, megacd,     segacd,    0,      genesis_scd,     md,     md_eur,    0,   "Sega",   "Mega-CD (Europe, PAL)", GAME_NOT_WORKING )
827835CONS( 1991, megacdj,    segacd,    0,      genesis_scd,     md,     md_jpn,    0,   "Sega",   "Mega-CD (Japan, NTSC)", GAME_NOT_WORKING )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team