Previous 199869 Revisions Next

r20884 Sunday 10th February, 2013 at 10:07:11 UTC by Fabio Priuli
minor update. nw.
[src/mess/machine]md_rom.c md_slot.h

trunk/src/mess/machine/md_slot.h
r20883r20884
55 TYPE DEFINITIONS
66 ***************************************************************************/
77
8#define MD_ADDR(a)  rom_bank_map[(a / 0x10000) & 0x3f] * 0x10000 + (a & 0xffff)
8#define MD_ADDR(a)  rom_bank_map[((a) / 0x10000) & 0x3f] * 0x10000 + ((a) & 0xffff)
99
1010/* PCB */
1111enum
trunk/src/mess/machine/md_rom.c
r20883r20884
518518   if (offset == 0x400002/2)   return 0x0f00;
519519   if (offset == 0x400004/2)   return 0xc900;
520520   if (offset == 0x400006/2)   return 0x1800;
521   return m_rom[offset];
521   return m_rom[MD_ADDR(offset)];
522522}
523523
524524/*-------------------------------------------------
r20883r20884
531531   if (offset == 0x400002/2)   return 0x0f00;
532532   if (offset == 0x400004/2)   return 0xaa00;
533533   if (offset == 0x400006/2)   return 0xf000;
534   return m_rom[offset];
534   return m_rom[MD_ADDR(offset)];
535535}
536536
537537/*-------------------------------------------------
r20883r20884
544544   if (offset == 0x400002/2)   return 0x9800;
545545   if (offset == 0x400004/2)   return 0xc900;
546546   if (offset == 0x400006/2)   return 0x1800;
547   return m_rom[offset];
547   return m_rom[MD_ADDR(offset)];
548548}
549549
550550/*-------------------------------------------------
r20883r20884
559559   if (offset == 0x488880/2)   return 0xaa00;
560560   if (offset == 0x4a8820/2)   return 0x0a00;
561561   if (offset == 0x4f8820/2)   return 0x0000;
562   return m_rom[offset];
562   return m_rom[MD_ADDR(offset)];
563563}
564564
565565/*-------------------------------------------------
r20883r20884
582582{
583583   if (offset == 0x400002/2)   return m_prot1_data;
584584   if (offset == 0x400006/2)   return m_prot2_data;
585   return m_rom[offset];
585   return m_rom[MD_ADDR(offset)];
586586}
587587
588588WRITE16_MEMBER(md_rom_lion2_device::write)
r20883r20884
677677{
678678   if (offset == 0x400000/2)   return 0x9000;
679679   if (offset == 0x401000/2)   return 0xd300;
680   return m_rom[offset];
680   return m_rom[MD_ADDR(offset)];
681681}
682682
683683
r20883r20884
689689{
690690   if (offset == 0x400000/2)   return 0x5500;
691691   if (offset == 0x400002/2)   return 0x0f00;
692   return m_rom[offset];
692   return m_rom[MD_ADDR(offset)];
693693}
694694
695695/*-------------------------------------------------
r20883r20884
701701   if (offset == 0x400002/2)   return 0x9800;
702702   if (offset == 0x400004/2)   return 0xc900;
703703   if (offset == 0x400006/2)   return 0xf000;
704   return m_rom[offset];
704   return m_rom[MD_ADDR(offset)];
705705}
706706
707707/*-------------------------------------------------
r20883r20884
712712{
713713   if (offset < 0x8000/2)
714714      return m_rom[offset + (m_bank * 0x8000)/2];
715   return m_rom[offset];
715   return m_rom[MD_ADDR(offset)];
716716}
717717
718718WRITE16_MEMBER(md_rom_pokestad_device::write)
r20883r20884
759759{
760760   if (offset == 0x400000/2)   return 0x55 << 8;
761761   if (offset == 0x400004/2)   return -0x56 << 8;
762   return m_rom[offset];
762   return m_rom[MD_ADDR(offset)];
763763}
764764
765765/*-------------------------------------------------
r20883r20884
782782{
783783   if ((offset >= 0x400000/2) && (offset < 0x400008/2))
784784      return m_latch;
785   return m_rom[offset];
785   return m_rom[MD_ADDR(offset)];
786786}
787787
788788WRITE16_MEMBER(md_rom_squir_device::write)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team