wrong memmask mask

This commit is contained in:
Michaël Banaan Ananas 2014-04-03 21:38:31 +00:00
parent e3e6f6143a
commit 9b659f5b58

View File

@ -235,13 +235,13 @@ WRITE32_MEMBER(polygonet_state::shared_ram_write)
} }
/* write to the current dsp56k word */ /* write to the current dsp56k word */
if (mem_mask | (0xffff0000)) if (mem_mask & 0xffff0000)
{ {
m_dsp56k_shared_ram_16[(offset<<1)] = (m_shared_ram[offset] & 0xffff0000) >> 16 ; m_dsp56k_shared_ram_16[(offset<<1)] = (m_shared_ram[offset] & 0xffff0000) >> 16 ;
} }
/* write to the next dsp56k word */ /* write to the next dsp56k word */
if (mem_mask | (0x0000ffff)) if (mem_mask & 0x0000ffff)
{ {
m_dsp56k_shared_ram_16[(offset<<1)+1] = (m_shared_ram[offset] & 0x0000ffff) ; m_dsp56k_shared_ram_16[(offset<<1)+1] = (m_shared_ram[offset] & 0x0000ffff) ;
} }