summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatarGravatar Ivan Vangelista <mesgnet@yahoo.it>2019-09-01 07:44:52 +0200
committerGravatarGravatar Ivan Vangelista <mesgnet@yahoo.it>2019-09-01 07:44:52 +0200
commitd82b3dadabebb9cac548dad14064edc34e79567f (patch)
tree4ff3daaf7c031bb4f0bddf6ae7ad789e958003c9
parent857616904ee9a1e9413889a86bb1c1b4721da4bf (diff)
goldstar.cpp: removed debug helpers I accidentally left in in my last commit (nw)
segacrp2_device: fixed shortname for 315_5136 (nw)
-rw-r--r--src/mame/drivers/goldstar.cpp31
-rw-r--r--src/mame/includes/goldstar.h1
-rw-r--r--src/mame/machine/segacrp2_device.cpp2
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