mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Don't need this switch case (nw)
This commit is contained in:
parent
6f4314a305
commit
96b93c78f7
@ -229,29 +229,13 @@ READ8_MEMBER( nb1412m2_device::rom_decrypt_r )
|
|||||||
{
|
{
|
||||||
uint8_t prot_adj;
|
uint8_t prot_adj;
|
||||||
|
|
||||||
// TODO: provided by commands 0x35 & 0x36 (maybe 0x32 too)
|
// all games but Mighty Guy uses this form as protection:
|
||||||
switch(m_data[m_adj_address])
|
// 0xff: -> 0x44
|
||||||
{
|
// Mighty Guy variants
|
||||||
// common, most games uses this
|
// 0x86: SFXs -> 0xbd
|
||||||
case 0xff:
|
// 0x94: BGM -> 0xaf
|
||||||
prot_adj = 0x44;
|
// 0x00: DAC -> 0x43
|
||||||
break;
|
prot_adj = (0x43 - m_data[m_adj_address]) & 0xff;
|
||||||
// Mighty Guy specific
|
|
||||||
case 0x86: // SFXs
|
|
||||||
prot_adj = 0xbd;
|
|
||||||
break;
|
|
||||||
case 0x94: // BGM
|
|
||||||
prot_adj = 0xaf; // 0xef
|
|
||||||
break;
|
|
||||||
case 0x00: // DAC
|
|
||||||
prot_adj = 0x43; // matches address 0x840 at POST (first valid 8-bit data for DAC)
|
|
||||||
//machine().debug_break();
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
prot_adj = 0;
|
|
||||||
popmessage("nb1412m2: prot adjust %02x, contact MAMEdev",m_data[m_adj_address]);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// printf("%02x %04x %04x %02x\n",m_data[m_adj_address],m_rom_address,m_adj_address,m_rom_op);
|
// printf("%02x %04x %04x %02x\n",m_data[m_adj_address],m_rom_address,m_adj_address,m_rom_op);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user