Previous 15994 Revisions Next

r15917 Thursday 16th August, 2012 at 04:07:52 UTC by Angelo Salese
Fixed a silly bug with interrupt flags, makes SD Gundam and Virtual Tetris to boot
[src/mess/drivers]vboy.c

src/mess/drivers/vboy.c
r15916r15917
22
33    Nintendo Virtual Boy
44
5 12/05/2009 Skeleton driver.
5   driver by Miodrag Milanovic & Angelo Salese
66
77    Great info at http://www.goliathindustries.com/vb/
88    and http://www.vr32.de/modules/dokuwiki/doku.php?
99
1010    TODO:
11    - finish V810 irq support;
12    - understand irqs on this HW;
11    - fix graphics (many things to add!)
12   - vleague / vproyak: keeps going into auto pause with 100 usec timer?
1313
1414****************************************************************************/
1515
r15916r15917
218218{
219219   switch(offset << 1) {
220220      case 0x00:   //INTPND
221               return m_vip_regs.INTPND & m_vip_regs.INTENB;
221               return m_vip_regs.INTPND;
222222      case 0x02:   //INTENB
223223               return m_vip_regs.INTENB;
224224      case 0x04:   //INTCLR
r15916r15917
836836   }
837837}
838838
839static TIMER_DEVICE_CALLBACK( timer_100ms_tick )
839static TIMER_DEVICE_CALLBACK( timer_100us_tick )
840840{
841841   vboy_state *state = timer.machine().driver_data<vboy_state>();
842842
r15916r15917
960960
961961   MCFG_MACHINE_RESET(vboy)
962962
963   MCFG_TIMER_ADD_PERIODIC("timer_100ms", timer_100ms_tick, attotime::from_msec(100)) // otherwise vproyak / vleague keeps going into auto pause
963   MCFG_TIMER_ADD_PERIODIC("timer_100us", timer_100us_tick, attotime::from_usec(100))
964964   MCFG_TIMER_ADD_PERIODIC("timer_20us", timer_20us_tick, attotime::from_usec(20))
965965
966966   /* video hardware */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team