mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
goldstar.cpp: removed debug helpers I accidentally left in in my last commit (nw)
segacrp2_device: fixed shortname for 315_5136 (nw)
This commit is contained in:
parent
857616904e
commit
d82b3dadab
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user