src/mess/drivers/vboy.c
| r15916 | r15917 | |
| 2 | 2 | |
| 3 | 3 | Nintendo Virtual Boy |
| 4 | 4 | |
| 5 | | 12/05/2009 Skeleton driver. |
| 5 | driver by Miodrag Milanovic & Angelo Salese |
| 6 | 6 | |
| 7 | 7 | Great info at http://www.goliathindustries.com/vb/ |
| 8 | 8 | and http://www.vr32.de/modules/dokuwiki/doku.php? |
| 9 | 9 | |
| 10 | 10 | 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? |
| 13 | 13 | |
| 14 | 14 | ****************************************************************************/ |
| 15 | 15 | |
| r15916 | r15917 | |
| 218 | 218 | { |
| 219 | 219 | switch(offset << 1) { |
| 220 | 220 | case 0x00: //INTPND |
| 221 | | return m_vip_regs.INTPND & m_vip_regs.INTENB; |
| 221 | return m_vip_regs.INTPND; |
| 222 | 222 | case 0x02: //INTENB |
| 223 | 223 | return m_vip_regs.INTENB; |
| 224 | 224 | case 0x04: //INTCLR |
| r15916 | r15917 | |
| 836 | 836 | } |
| 837 | 837 | } |
| 838 | 838 | |
| 839 | | static TIMER_DEVICE_CALLBACK( timer_100ms_tick ) |
| 839 | static TIMER_DEVICE_CALLBACK( timer_100us_tick ) |
| 840 | 840 | { |
| 841 | 841 | vboy_state *state = timer.machine().driver_data<vboy_state>(); |
| 842 | 842 | |
| r15916 | r15917 | |
| 960 | 960 | |
| 961 | 961 | MCFG_MACHINE_RESET(vboy) |
| 962 | 962 | |
| 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)) |
| 964 | 964 | MCFG_TIMER_ADD_PERIODIC("timer_20us", timer_20us_tick, attotime::from_usec(20)) |
| 965 | 965 | |
| 966 | 966 | /* video hardware */ |