trunk/src/mess/machine/nes_nxrom.c
r27520 | r27521 | |
564 | 564 | { |
565 | 565 | int mirr = get_mirroring(); |
566 | 566 | if (mirr == PPU_MIRROR_HIGH) |
567 | | m_ciram[offset & 0x3ff + 0x000] = data; |
| 567 | m_ciram[(offset & 0x3ff) + 0x000] = data; |
568 | 568 | else if (mirr == PPU_MIRROR_LOW) |
569 | | m_ciram[offset & 0x3ff + 0x400] = data; |
| 569 | m_ciram[(offset & 0x3ff) + 0x400] = data; |
570 | 570 | else |
571 | 571 | m_ciram[offset & 0x7ff] = data; // not sure here, since there is no software to test... |
572 | 572 | } |
r27520 | r27521 | |
575 | 575 | { |
576 | 576 | int mirr = get_mirroring(); |
577 | 577 | if (mirr == PPU_MIRROR_HIGH) |
578 | | return m_ciram[offset & 0x3ff + 0x000]; |
| 578 | return m_ciram[(offset & 0x3ff) + 0x000]; |
579 | 579 | else if (mirr == PPU_MIRROR_LOW) |
580 | | return m_ciram[offset & 0x3ff + 0x400]; |
| 580 | return m_ciram[(offset & 0x3ff) + 0x400]; |
581 | 581 | else |
582 | 582 | return m_ciram[offset & 0x7ff]; // not sure here, since there is no software to test... |
583 | 583 | } |