Previous 199869 Revisions Next

r18695 Wednesday 24th October, 2012 at 20:51:40 UTC by hap
some notes + reverted recent change to c361_r (was getting slowdowns in ram checks)
[src/mame/drivers]namcos23.c

trunk/src/mame/drivers/namcos23.c
r18694r18695
12381238#define S23_HSYNC      (16666150)
12391239#define S23_MODECLOCK   (130205)
12401240
1241#define MAIN_VBLANK_IRQ   1
1242#define MAIN_C361_IRQ   2
1243#define MAIN_SUBCPU_IRQ   4
1244#define MAIN_C435_IRQ   8
1245#define MAIN_C422_IRQ   16
1241#define MAIN_VBLANK_IRQ   0x01
1242#define MAIN_C361_IRQ   0x02
1243#define MAIN_SUBCPU_IRQ   0x04
1244#define MAIN_C435_IRQ   0x08
1245#define MAIN_C422_IRQ   0x10
1246#define MAIN_C450_IRQ   0x20
1247#define MAIN_C451_IRQ   0x40
12461248
12471249enum { MODEL, FLUSH };
12481250
r18694r18695
14841486   // level 5: C422
14851487   if (changed & MAIN_C422_IRQ)
14861488      m_maincpu->set_input_line(MIPS3_IRQ3, (cause & MAIN_C422_IRQ) ? ASSERT_LINE : CLEAR_LINE);
1489
1490   // crszone(sys23ev2) has a different configuration, are they hardwired or configured by software? (where?)..
1491   // level 3: C422/subcpu
1492   // level 4: vblank
1493   // level 5: C451/C361
1494   // level 6: C450
14871495}
14881496
14891497static UINT16 nthword( const UINT32 *pSource, int offs )
r18694r18695
18621870{
18631871   switch (offset)
18641872   {
1873      // current raster position
1874      // how does it work exactly? it's not understood in namcos22 either (also has a c361)
18651875      case 5:
18661876         update_main_interrupts(m_main_irqcause & ~MAIN_C361_IRQ);
1867         return machine().primary_screen->vblank() ? 0x1ff : machine().primary_screen->vpos();
1877         return machine().primary_screen->vpos()*2 | (machine().primary_screen->vblank() ? 1 : 0);
18681878      case 6:
18691879         update_main_interrupts(m_main_irqcause & ~MAIN_C361_IRQ);
1870         return machine().primary_screen->vblank() ? ~0 : 0;
1880         return machine().primary_screen->vblank() ? 1 : 0;
18711881   }
18721882
18731883   logerror("c361_r %x @ %04x (%08x, %08x)\n", offset, mem_mask, space.device().safe_pc(), (unsigned int)space.device().state().state_int(MIPS3_R31));

Previous 199869 Revisions Next


© 1997-2024 The MAME Team