Viewing File: <root>/src/mame/includes/ironhors.h

    1  /*************************************************************************
    2  
    3      IronHorse
    4  
    5  *************************************************************************/
    6  
    7  class ironhors_state : public driver_device
    8  {
    9  public:
   10      ironhors_state(const machine_config &mconfig, device_type type, const char *tag)
   11          : driver_device(mconfig, type, tag) ,
   12          m_interrupt_enable(*this, "int_enable"),
   13          m_scroll(*this, "scroll"),
   14          m_colorram(*this, "colorram"),
   15          m_videoram(*this, "videoram"),
   16          m_spriteram2(*this, "spriteram2"),
   17          m_spriteram(*this, "spriteram"){ }
   18  
   19      /* memory pointers */
   20      required_shared_ptr<UINT8> m_interrupt_enable;
   21      required_shared_ptr<UINT8> m_scroll;
   22      required_shared_ptr<UINT8> m_colorram;
   23      required_shared_ptr<UINT8> m_videoram;
   24      required_shared_ptr<UINT8> m_spriteram2;
   25      required_shared_ptr<UINT8> m_spriteram;
   26  
   27      /* video-related */
   28      tilemap_t    *m_bg_tilemap;
   29      int        m_palettebank;
   30      int        m_charbank;
   31      int        m_spriterambank;
   32  
   33      /* devices */
   34      cpu_device *m_maincpu;
   35      cpu_device *m_soundcpu;
   36      DECLARE_WRITE8_MEMBER(ironhors_sh_irqtrigger_w);
   37      DECLARE_WRITE8_MEMBER(ironhors_videoram_w);
   38      DECLARE_WRITE8_MEMBER(ironhors_colorram_w);
   39      DECLARE_WRITE8_MEMBER(ironhors_charbank_w);
   40      DECLARE_WRITE8_MEMBER(ironhors_palettebank_w);
   41      DECLARE_WRITE8_MEMBER(ironhors_flipscreen_w);
   42      DECLARE_WRITE8_MEMBER(ironhors_filter_w);
   43      DECLARE_READ8_MEMBER(farwest_soundlatch_r);
   44      TILE_GET_INFO_MEMBER(get_bg_tile_info);
   45      TILE_GET_INFO_MEMBER(farwest_get_bg_tile_info);
   46      virtual void machine_start();
   47      virtual void machine_reset();
   48      virtual void video_start();
   49      virtual void palette_init();
   50      DECLARE_VIDEO_START(farwest);
   51      UINT32 screen_update_ironhors(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
   52      UINT32 screen_update_farwest(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
   53      TIMER_DEVICE_CALLBACK_MEMBER(ironhors_irq);
   54      TIMER_DEVICE_CALLBACK_MEMBER(farwest_irq);
   55      void draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
   56      void farwest_draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect );
   57  };