src/mess/drivers/pv1000.c
| r15638 | r15639 | |
| 17 | 17 | { |
| 18 | 18 | public: |
| 19 | 19 | pv1000_state(const machine_config &mconfig, device_type type, const char *tag) |
| 20 | | : driver_device(mconfig, type, tag) , |
| 21 | | m_p_videoram(*this, "p_videoram"){ } |
| 20 | : driver_device(mconfig, type, tag), |
| 21 | m_maincpu(*this, "maincpu"), |
| 22 | m_screen(*this, "screen"), |
| 23 | m_p_videoram(*this, "p_videoram") |
| 24 | { } |
| 22 | 25 | |
| 23 | 26 | DECLARE_WRITE8_MEMBER(pv1000_io_w); |
| 24 | 27 | DECLARE_READ8_MEMBER(pv1000_io_r); |
| r15638 | r15639 | |
| 36 | 39 | emu_timer *m_irq_on_timer; |
| 37 | 40 | emu_timer *m_irq_off_timer; |
| 38 | 41 | |
| 39 | | device_t *m_maincpu; |
| 40 | | screen_device *m_screen; |
| 42 | required_device<cpu_device> m_maincpu; |
| 43 | required_device<screen_device> m_screen; |
| 41 | 44 | required_shared_ptr<UINT8> m_p_videoram; |
| 42 | 45 | }; |
| 43 | 46 | |
| r15638 | r15639 | |
| 332 | 335 | |
| 333 | 336 | state->m_irq_on_timer = machine.scheduler().timer_alloc(FUNC(d65010_irq_on_cb)); |
| 334 | 337 | state->m_irq_off_timer = machine.scheduler().timer_alloc(FUNC(d65010_irq_off_cb)); |
| 335 | | state->m_maincpu = machine.device( "maincpu" ); |
| 336 | | state->m_screen = machine.device<screen_device>("screen" ); |
| 337 | 338 | } |
| 338 | 339 | |
| 339 | 340 | |