diff options
author | 2013-02-11 07:44:56 +0000 | |
---|---|---|
committer | 2013-02-11 07:44:56 +0000 | |
commit | a440a8e0200a36491ae540f6f00beae59c148549 (patch) | |
tree | b4c31ebadaa2857396c37178674086420bf1658f /src/mess/drivers/megadriv.c | |
parent | 4b0b4e6b2fa7eb5105859f561354662d479f53be (diff) |
Cleanups and version bumpmame0148u1
Diffstat (limited to 'src/mess/drivers/megadriv.c')
-rw-r--r-- | src/mess/drivers/megadriv.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mess/drivers/megadriv.c b/src/mess/drivers/megadriv.c index f6c58d87705..ca9a6a5a609 100644 --- a/src/mess/drivers/megadriv.c +++ b/src/mess/drivers/megadriv.c @@ -297,7 +297,7 @@ static MACHINE_RESET( ms_megadriv ) static SLOT_INTERFACE_START(md_cart) SLOT_INTERFACE_INTERNAL("rom", MD_STD_ROM) SLOT_INTERFACE_INTERNAL("rom_svp", MD_STD_ROM) -// SLOT_INTERFACE_INTERNAL("rom_svp", MD_ROM_SVP) // not ready yet... +// SLOT_INTERFACE_INTERNAL("rom_svp", MD_ROM_SVP) // not ready yet... SLOT_INTERFACE_INTERNAL("rom_sk", MD_ROM_SK) // NVRAM handling SLOT_INTERFACE_INTERNAL("rom_sram", MD_ROM_SRAM) @@ -468,7 +468,7 @@ DEVICE_IMAGE_LOAD_MEMBER( md_base_state, _32x_cart ) UINT16 *ROM16; UINT32 *ROM32; int i; - + if (image.software_entry() == NULL) { length = image.length(); @@ -481,23 +481,23 @@ DEVICE_IMAGE_LOAD_MEMBER( md_base_state, _32x_cart ) temp_copy = auto_alloc_array(image.device().machine(), UINT8, length); memcpy(temp_copy, image.get_software_region("rom"), length); } - + /* Copy the cart image in the locations the driver expects */ // Notice that, by using pick_integer, we are sure the code works on both LE and BE machines ROM16 = (UINT16 *) image.device().machine().root_device().memregion("gamecart")->base(); for (i = 0; i < length; i += 2) ROM16[i / 2] = pick_integer_be(temp_copy, i, 2); - + ROM32 = (UINT32 *) image.device().machine().root_device().memregion("gamecart_sh2")->base(); for (i = 0; i < length; i += 4) ROM32[i / 4] = pick_integer_be(temp_copy, i, 4); - + ROM16 = (UINT16 *) image.device().machine().root_device().memregion("maincpu")->base(); for (i = 0x00; i < length; i += 2) ROM16[i / 2] = pick_integer_be(temp_copy, i, 2); - + auto_free(image.device().machine(), temp_copy); - + return IMAGE_INIT_PASS; } |