Previous 199869 Revisions Next

r21821 Wednesday 13th March, 2013 at 08:09:37 UTC by Fabio Priuli
as usual, pressing save *before* the commit would help. nw.
[src/mess/drivers]snes.c

trunk/src/mess/drivers/snes.c
r21820r21821
16161616   else if (m_slotcart->get_type() == SNES_CX4
16171617         && (offset < 0x400000 && (offset & 0xffff) >= 0x6000 && (offset & 0xffff) < 0x8000))    // hack until we emulate the real CPU
16181618      return CX4_read((offset & 0xffff) - 0x6000);
1619   else if (m_slotcart->get_type() == SNES_BANANA
1620          && (offset & 0x78000) == 0x8000)
1621   {
1622      return m_slotcart->m_cart->chip_read(space, offset);
1623   }
1624   else if (m_slotcart->get_type() == SNES_BUGS
1625          && (offset & 0x7f000) == 0xf000)
1626   {
1627      printf("read hi addr %X\n", offset);
1628//      return m_slotcart->m_cart->chip_read(space, offset);
1629   }
16301619   
16311620   if (offset < 0x400000)
16321621   {
r21820r21821
16871676   else if (m_type == SNES_SUFAMITURBO
16881677         && address >= 0x8000 && ((offset >= 0x600000 && offset < 0x640000) || (offset >= 0x700000 && offset < 0x740000)))
16891678   { m_slotcart->m_cart->write_h(space, offset, data); return; }
1690//   else if (m_slotcart->get_type() == SNES_BANANA
1691//          && (offset & 0x8000) == 0x8000)
1692//   {
1693//      printf("write addr hi %X data %X\n", offset, data);
1694//      m_slotcart->m_cart->chip_write(space, offset, data);
1695//      return;
1696//   }
1697   else if (m_slotcart->get_type() == SNES_BUGS
1698          && (offset & 0x7f000) == 0xf000)
1699   {
1700//      printf("write hi addr %X data %X\n", offset, data);
1701   }
17021679   
17031680   
17041681   if (offset < 0x400000)
r21820r21821
17351712   else if (m_slotcart->get_type() == SNES_CX4
17361713         && (offset < 0x400000 && (offset & 0xffff) >= 0x6000 && (offset & 0xffff) < 0x8000))    // hack until we emulate the real CPU
17371714      return CX4_read((offset & 0xffff) - 0x6000);
1738   else if (m_slotcart->get_type() == SNES_BUGS
1739          && (offset & 0x78000) == 0x8000)
1740   {
1741//      printf("read lo addr %X\n", offset);
1742//      return m_slotcart->m_cart->chip_read(space, offset);
1743   }
17441715   
17451716   
17461717   if (offset < 0x400000)
r21820r21821
17901761   if (m_type == SNES_SUFAMITURBO
17911762            && (offset & 0xffff) >= 0x8000 && ((offset >= 0x600000 && offset < 0x640000) || (offset >= 0x700000 && offset < 0x740000)))
17921763   { m_slotcart->m_cart->write_l(space, offset, data); return; }
1793   else if (m_slotcart->get_type() == SNES_20COL
1794          && offset >= 0x8000 && offset < 0x9000)
1795   { m_slotcart->m_cart->chip_write(space, offset, data); return; }
1796   else if (m_slotcart->get_type() == SNES_BANANA
1797            && (offset & 0x8000) == 0x8000)
1798   {
1799      printf("write addr lo %X data %X\n", offset, data);
1800      m_slotcart->m_cart->chip_write(space, offset, data);
1801      return;
1802   }
1803   else if (m_slotcart->get_type() == SNES_BUGS
1804          && (offset & 0x78000) == 0x8000)
1805   {
1806//      printf("write lo addr %X data %X\n", offset, data);
1807   }
18081764   
18091765   // other add-on writes matches the hi handler
18101766   snes20_hi_w(space, offset, data, 0xff);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team