trunk/src/mame/includes/armedf.h
| r31275 | r31276 | |
| 5 | 5 | public: |
| 6 | 6 | armedf_state(const machine_config &mconfig, device_type type, const char *tag) |
| 7 | 7 | : driver_device(mconfig, type, tag), |
| 8 | m_maincpu(*this, "maincpu"), |
| 9 | m_extra(*this, "extra"), |
| 10 | m_gfxdecode(*this, "gfxdecode"), |
| 11 | m_palette(*this, "palette"), |
| 8 | 12 | m_spriteram(*this, "spriteram"), |
| 9 | 13 | m_spr_pal_clut(*this, "spr_pal_clut"), |
| 10 | 14 | m_fg_videoram(*this, "fg_videoram"), |
| 11 | | m_bg_videoram(*this, "bg_videoram"), |
| 12 | | m_maincpu(*this, "maincpu"), |
| 13 | | m_extra(*this, "extra"), |
| 14 | | m_gfxdecode(*this, "gfxdecode"), |
| 15 | | m_palette(*this, "palette") { } |
| 15 | m_bg_videoram(*this, "bg_videoram") |
| 16 | { } |
| 16 | 17 | |
| 18 | /* devices */ |
| 19 | required_device<cpu_device> m_maincpu; |
| 20 | optional_device<cpu_device> m_extra; |
| 21 | required_device<gfxdecode_device> m_gfxdecode; |
| 22 | required_device<palette_device> m_palette; |
| 23 | required_device<buffered_spriteram16_device> m_spriteram; |
| 24 | |
| 17 | 25 | /* memory pointers */ |
| 18 | | UINT8 * m_text_videoram; |
| 19 | | required_device<buffered_spriteram16_device> m_spriteram; |
| 26 | UINT8 *m_text_videoram; |
| 20 | 27 | required_shared_ptr<UINT16> m_spr_pal_clut; |
| 21 | 28 | required_shared_ptr<UINT16> m_fg_videoram; |
| 22 | 29 | required_shared_ptr<UINT16> m_bg_videoram; |
| r31275 | r31276 | |
| 88 | 95 | void armedf_drawgfx(bitmap_ind16 &dest_bmp,const rectangle &clip,gfx_element *gfx, |
| 89 | 96 | UINT32 code,UINT32 color, UINT32 clut,int flipx,int flipy,int offsx,int offsy, |
| 90 | 97 | int transparent_color); |
| 91 | | |
| 92 | | required_device<cpu_device> m_maincpu; |
| 93 | | optional_device<cpu_device> m_extra; |
| 94 | | required_device<gfxdecode_device> m_gfxdecode; |
| 95 | | required_device<palette_device> m_palette; |
| 96 | 98 | }; |
| 97 | 99 | |
| 98 | 100 | class bigfghtr_state : public armedf_state |
trunk/src/mame/video/armedf.c
| r31275 | r31276 | |
| 128 | 128 | |
| 129 | 129 | m_text_videoram = auto_alloc_array(machine(), UINT8, 0x1000); |
| 130 | 130 | memset(m_text_videoram, 0x00, 0x1000); |
| 131 | |
| 132 | save_pointer(NAME(m_text_videoram), 0x1000); |
| 131 | 133 | } |
| 132 | 134 | |
| 133 | 135 | VIDEO_START_MEMBER(armedf_state,armedf) |
| r31275 | r31276 | |
| 148 | 150 | |
| 149 | 151 | m_text_videoram = auto_alloc_array(machine(), UINT8, 0x1000); |
| 150 | 152 | memset(m_text_videoram, 0x00, 0x1000); |
| 153 | |
| 154 | save_pointer(NAME(m_text_videoram), 0x1000); |
| 151 | 155 | } |
| 152 | 156 | |
| 153 | 157 | /*************************************************************************** |