Previous 199869 Revisions Next

r27521 Friday 7th February, 2014 at 09:25:22 UTC by Robbbert
fixed compile error
[src/mess/machine]nes_nxrom.c

trunk/src/mess/machine/nes_nxrom.c
r27520r27521
564564{
565565   int mirr = get_mirroring();
566566   if (mirr == PPU_MIRROR_HIGH)
567      m_ciram[offset & 0x3ff + 0x000] = data;
567      m_ciram[(offset & 0x3ff) + 0x000] = data;
568568   else if (mirr == PPU_MIRROR_LOW)
569      m_ciram[offset & 0x3ff + 0x400] = data;
569      m_ciram[(offset & 0x3ff) + 0x400] = data;
570570   else
571571      m_ciram[offset & 0x7ff] = data;   // not sure here, since there is no software to test...
572572}
r27520r27521
575575{
576576   int mirr = get_mirroring();
577577   if (mirr == PPU_MIRROR_HIGH)
578      return m_ciram[offset & 0x3ff + 0x000];
578      return m_ciram[(offset & 0x3ff) + 0x000];
579579   else if (mirr == PPU_MIRROR_LOW)
580      return m_ciram[offset & 0x3ff + 0x400];
580      return m_ciram[(offset & 0x3ff) + 0x400];
581581   else
582582      return m_ciram[offset & 0x7ff];   // not sure here, since there is no software to test...
583583}

Previous 199869 Revisions Next


© 1997-2024 The MAME Team