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

@ -215,33 +215,33 @@ WRITE32_MEMBER(polygonet_state::shared_ram_write)
if (mem_mask == 0xffff0000) if (mem_mask == 0xffff0000)
{ {
logerror("68k WRITING %04x to shared ram %x (@%x)\n", (m_shared_ram[offset] & 0xffff0000) >> 16, logerror("68k WRITING %04x to shared ram %x (@%x)\n", (m_shared_ram[offset] & 0xffff0000) >> 16,
0xc000 + (offset<<1), 0xc000 + (offset<<1),
space.device().safe_pc()); space.device().safe_pc());
} }
else if (mem_mask == 0x0000ffff) else if (mem_mask == 0x0000ffff)
{ {
logerror("68k WRITING %04x to shared ram %x (@%x)\n", (m_shared_ram[offset] & 0x0000ffff), logerror("68k WRITING %04x to shared ram %x (@%x)\n", (m_shared_ram[offset] & 0x0000ffff),
0xc000 +((offset<<1)+1), 0xc000 +((offset<<1)+1),
space.device().safe_pc()); space.device().safe_pc());
} }
else else
{ {
logerror("68k WRITING %04x & %04x to shared ram %x & %x [%08x] (@%x)\n", (m_shared_ram[offset] & 0xffff0000) >> 16, logerror("68k WRITING %04x & %04x to shared ram %x & %x [%08x] (@%x)\n", (m_shared_ram[offset] & 0xffff0000) >> 16,
(m_shared_ram[offset] & 0x0000ffff), (m_shared_ram[offset] & 0x0000ffff),
0xc000 + (offset<<1), 0xc000 + (offset<<1),
0xc000 +((offset<<1)+1), 0xc000 +((offset<<1)+1),
mem_mask, mem_mask,
space.device().safe_pc()); space.device().safe_pc());
} }
/* 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) ;
} }