Previous 15994 Revisions Next

r8553 Tuesday 20th July, 2010 at 20:34:47 UTC by Wilbert Pol
[3DO] Starting using the actual screen to return hcnt and vcnt.
[src/mess/drivers]3do.c
[src/mess/includes]3do.h
[src/mess/machine]3do.c

src/mess/machine/3do.c
r8552r8553
9191
9292
9393typedef struct {
94   screen_device *screen;
95
9496   UINT32   revision;      /* 03400000 */
9597   UINT32   csysbits;      /* 03400004 */
9698   UINT32   vint0;         /* 03400008 */
r8552r8553
661663   case 0x0028/4:
662664      return clio.cstatbits;
663665   case 0x0030/4:
664      return clio.hcnt;
666      return clio.screen->hpos();
665667   case 0x0034/4:
666      {
667         static const UINT32 irq_sequence[3] = { 0, 4, 12 };
668         static int counter = 0;
669
670         return irq_sequence[(counter++)%3];
671      }
672      return clio.vcnt;
668      return clio.screen->vpos();
673669   case 0x0038/4:
674670      return clio.seed;
675671   case 0x003c/4:
r8552r8553
933929   }
934930}
935931
936void _3do_clio_init( running_machine *machine )
932void _3do_clio_init( running_machine *machine, screen_device *screen )
937933{
938934   memset( &clio, 0, sizeof(CLIO) );
935   clio.screen = screen;
939936   clio.revision = 0x02022000 /* 0x04000000 */;
940937   clio.cstatbits = 0x01;   /* bit 0 = reset of clio caused by power on */
941938   clio.unclerev = 0x03800000;
src/mess/includes/3do.h
r8552r8553
3636
3737READ32_HANDLER( _3do_clio_r );
3838WRITE32_HANDLER( _3do_clio_w );
39void _3do_clio_init( running_machine *machine );
39void _3do_clio_init( running_machine *machine, screen_device *screen );
4040
4141
42
4243#endif /* _3DO_H_ */
src/mess/drivers/3do.c
r8552r8553
149149
150150   _3do_slow2_init(machine);
151151   _3do_madam_init(machine);
152   _3do_clio_init(machine);
152   _3do_clio_init(machine, downcast<screen_device *>(devtag_get_device(machine,"screen")));
153153}
154154
155155

Previous 15994 Revisions Next


© 1998-2018 The MESS Team