Previous 199869 Revisions Next

r30899 Monday 9th June, 2014 at 00:05:17 UTC by Angelo Salese
Added Vertical Display bit in Magic Card, nw
[src/mame/drivers]magicard.c

trunk/src/mame/drivers/magicard.c
r30898r30899
187187      m_scc68070_dma_ch2_regs(*this, "scc_dma2_regs"),
188188      m_scc68070_mmu_regs(*this, "scc_mmu_regs"),
189189      m_maincpu(*this, "maincpu"),
190      m_screen(*this, "screen"),
190191      m_palette(*this, "palette")  { }
191192
192193   required_shared_ptr<UINT16> m_magicram;
r30898r30899
224225   UINT32 screen_update_magicard(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
225226   INTERRUPT_GEN_MEMBER(magicard_irq);
226227   required_device<cpu_device> m_maincpu;
228   required_device<screen_device> m_screen;
227229   required_device<palette_device> m_palette;
228230};
229231
r30898r30899
503505{
504506   switch(offset)
505507   {
506//      case 0/2:
507//          return machine().rand(); //TODO
508      case 0/2:
509      {
510         UINT8 vdisp;
511         vdisp = m_screen->vpos() < 256;
512
513             return (m_pcab_vregs[offset] & 0xff7f) | vdisp<<7; //TODO
514      }
508515   }
509516
510517   //printf("[%04x]\n",offset*2);
r30898r30899
651658
652659static ADDRESS_MAP_START( magicard_mem, AS_PROGRAM, 16, magicard_state )
653660//  ADDRESS_MAP_GLOBAL_MASK(0x1fffff)
654   AM_RANGE(0x00000000, 0x0017ffff) AM_MIRROR(0x7fe00000) AM_RAM AM_SHARE("magicram") /*only 0-7ffff accessed in Magic Card*/
661   AM_RANGE(0x00000000, 0x001ffbff) AM_MIRROR(0x7fe00000) AM_RAM AM_SHARE("magicram") /*only 0-7ffff accessed in Magic Card*/
655662   AM_RANGE(0x00180000, 0x001ffbff) AM_MIRROR(0x7fe00000) AM_RAM AM_REGION("maincpu", 0)
656663   /* 001ffc00-001ffdff System I/O */
657664   AM_RANGE(0x001ffc00, 0x001ffc01) AM_MIRROR(0x7fe00000) AM_READ(test_r)
r30898r30899
717724   MCFG_CPU_VBLANK_INT_DRIVER("screen", magicard_state,  magicard_irq) /* no interrupts? (it erases the vectors..) */
718725
719726   MCFG_SCREEN_ADD("screen", RASTER)
720   MCFG_SCREEN_REFRESH_RATE(60)
727   MCFG_SCREEN_REFRESH_RATE(50)
721728   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
722729   MCFG_SCREEN_SIZE(400, 300)
723730   MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 0, 256-1) //dynamic resolution,TODO

Previous 199869 Revisions Next


© 1997-2024 The MAME Team