From d82b3dadabebb9cac548dad14064edc34e79567f Mon Sep 17 00:00:00 2001 From: Ivan Vangelista Date: Sun, 1 Sep 2019 07:44:52 +0200 Subject: goldstar.cpp: removed debug helpers I accidentally left in in my last commit (nw) segacrp2_device: fixed shortname for 315_5136 (nw) --- src/mame/drivers/goldstar.cpp | 31 +++++-------------------------- src/mame/includes/goldstar.h | 1 - src/mame/machine/segacrp2_device.cpp | 2 +- 3 files changed, 6 insertions(+), 28 deletions(-) diff --git a/src/mame/drivers/goldstar.cpp b/src/mame/drivers/goldstar.cpp index 242ac6b37c5..18e57a043d8 100644 --- a/src/mame/drivers/goldstar.cpp +++ b/src/mame/drivers/goldstar.cpp @@ -1145,11 +1145,6 @@ void goldstar_state::ladylinr_map(address_map &map) map(0xf800, 0xffff).ram(); } -void goldstar_state::ladylinrb_decrypted_opcodes_map(address_map &map) -{ - map(0x0000, 0x7fff).rom().share("decrypted_opcodes"); -} - void goldstar_state::wcat3_map(address_map &map) { map(0x0000, 0x7fff).rom(); @@ -9241,7 +9236,7 @@ void goldstar_state::ladylinrb(machine_config &config) { ladylinr(config); - m_maincpu->set_addrmap(AS_OPCODES, &goldstar_state::ladylinrb_decrypted_opcodes_map); + m_maincpu->set_addrmap(AS_OPCODES, &goldstar_state::common_decrypted_opcodes_map); } @@ -16631,32 +16626,16 @@ void goldstar_state::init_ladylinrc() uint8_t xor_v = x & 0x07; - int mask = 0x3700; - switch(i & 0x03) { - case 0x00: x ^= xor_table_00[row][xor_v]; if (x == ROM[i] && x != 0xcd && i >= mask && i < 0x3c80) logerror("0x00 addr: %04x, rom: %02x, xored: %02x\n", i, ROM[i], x); break; - case 0x01: x ^= xor_table_01[row][xor_v]; if (x == ROM[i] && x != 0xcd && i >= mask && i < 0x3c80) logerror("0x01 addr: %04x, rom: %02x, xored: %02x\n", i, ROM[i], x); break; - case 0x02: x ^= xor_table_02[row][xor_v]; if (x == ROM[i] && x != 0xcd && i >= mask && i < 0x3c80) logerror("0x02 addr: %04x, rom: %02x, xored: %02x\n", i, ROM[i], x); break; - case 0x03: x ^= xor_table_01[row][xor_v]; if (x == ROM[i] && x != 0xcd && i >= mask && i < 0x3c80) logerror("0x01 addr: %04x, rom: %02x, xored: %02x\n", i, ROM[i], x); break; + case 0x00: x ^= xor_table_00[row][xor_v]; break; + case 0x01: x ^= xor_table_01[row][xor_v]; break; + case 0x02: x ^= xor_table_02[row][xor_v]; break; + case 0x03: x ^= xor_table_01[row][xor_v]; break; } m_decrypted_opcodes[i] = x; } - - for (int i = 0x3c80; i < 0x8000; i++) - m_decrypted_opcodes[i] = ROM[i]; - - { - char filename[256]; - sprintf(filename,"decrypted_opcodes_%s", machine().system().name); - FILE *fp = fopen(filename, "w+b"); - if (fp) - { - fwrite(m_decrypted_opcodes, 0x8000, 1, fp); - fclose(fp); - } - } } diff --git a/src/mame/includes/goldstar.h b/src/mame/includes/goldstar.h index da7fb724259..fedc1aa78da 100644 --- a/src/mame/includes/goldstar.h +++ b/src/mame/includes/goldstar.h @@ -85,7 +85,6 @@ public: void goldstar_readport(address_map &map); void kkotnoli_map(address_map &map); void ladylinr_map(address_map &map); - void ladylinrb_decrypted_opcodes_map(address_map &map); void lucky8_map(address_map &map); void common_decrypted_opcodes_map(address_map &map); void mbstar_map(address_map &map); diff --git a/src/mame/machine/segacrp2_device.cpp b/src/mame/machine/segacrp2_device.cpp index f811dddb668..09573756add 100644 --- a/src/mame/machine/segacrp2_device.cpp +++ b/src/mame/machine/segacrp2_device.cpp @@ -85,7 +85,7 @@ static void decode(uint8_t *rom, uint8_t *decrypted, } } -DEFINE_DEVICE_TYPE(NEC_315_5136, nec_315_5136_device, "nec_315_5179", "Nec 315-5136") +DEFINE_DEVICE_TYPE(NEC_315_5136, nec_315_5136_device, "nec_315_5136", "Nec 315-5136") DEFINE_DEVICE_TYPE(SEGA_315_5179, sega_315_5179_device, "sega_315_5179", "Sega 315-5179") DEFINE_DEVICE_TYPE(SEGA_315_5178, sega_315_5178_device, "sega_315_5178", "Sega 315-5178") DEFINE_DEVICE_TYPE(SEGA_315_5177, sega_315_5177_device, "sega_315_5177", "Sega 315-5177") // also seen as 317-5000 -- cgit v1.2.3