Previous 199869 Revisions Next

r20577 Monday 28th January, 2013 at 09:39:13 UTC by David Haywood
avoid some lazy tag lookups (nw)
[src/mame/drivers]backfire.c cbuster.c cninja.c crospang.c darkseal.c dblewing.c deco156.c deco32.c dietgo.c esd16.c funkyjet.c gotcha.c lemmings.c mirage.c nmg5.c pktgaldx.c silvmil.c simpl156.c supbtime.c tumbleb.c tumblep.c
[src/mame/includes]cbuster.h cninja.h crospang.h darkseal.h deco32.h dietgo.h esd16.h funkyjet.h gotcha.h lemmings.h pktgaldx.h simpl156.h supbtime.h tumbleb.h tumblep.h
[src/mame/video]cbuster.c cninja.c crospang.c darkseal.c deco32.c dietgo.c esd16.c funkyjet.c gotcha.c lemmings.c pktgaldx.c simpl156.c supbtime.c tumbleb.c tumblep.c

trunk/src/mame/drivers/esd16.c
r20576r20577
7171#include "sound/okim6295.h"
7272#include "sound/3812intf.h"
7373#include "includes/esd16.h"
74#include "video/decospr.h"
7574
75
7676/***************************************************************************
7777
7878
trunk/src/mame/drivers/gotcha.c
r20576r20577
6363#include "sound/2151intf.h"
6464#include "sound/okim6295.h"
6565#include "includes/gotcha.h"
66#include "video/decospr.h"
6766
68
6967WRITE16_MEMBER(gotcha_state::gotcha_lamps_w)
7068{
7169#if 0
trunk/src/mame/drivers/pktgaldx.c
r20576r20577
5959#include "video/deco16ic.h"
6060#include "sound/okim6295.h"
6161#include "includes/pktgaldx.h"
62#include "video/decospr.h"
6362#include "video/decocomn.h"
6463
6564/**********************************************************************************/
trunk/src/mame/drivers/crospang.c
r20576r20577
3636#include "sound/okim6295.h"
3737#include "sound/3812intf.h"
3838#include "includes/crospang.h"
39#include "video/decospr.h"
4039
40
4141WRITE16_MEMBER(crospang_state::crospang_soundlatch_w)
4242{
4343   if(ACCESSING_BITS_0_7)
trunk/src/mame/drivers/deco156.c
r20576r20577
3030      : driver_device(mconfig, type, tag),
3131         m_maincpu(*this, "maincpu"),
3232         m_deco_tilegen1(*this, "tilegen1"),
33         m_oki2(*this, "oki2") { }
33         m_oki2(*this, "oki2"),
34         m_sprgen(*this, "spritegen")
35   { }
3436
3537   /* devices */
3638   required_device<arm_device> m_maincpu;
3739   required_device<deco16ic_device> m_deco_tilegen1;
3840   optional_device<okim6295_device> m_oki2;
41   optional_device<decospr_device> m_sprgen;
3942
4043   /* memory */
4144   UINT16   m_pf1_rowscroll[0x800/2];
r20576r20577
8184   deco16ic_pf_update(m_deco_tilegen1, m_pf1_rowscroll, m_pf2_rowscroll);
8285
8386   deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0);
84   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x800);
87   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x800);
8588   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
8689   return 0;
8790}
trunk/src/mame/drivers/dblewing.c
r20576r20577
3333      : driver_device(mconfig, type, tag) ,
3434      m_pf1_rowscroll(*this, "pf1_rowscroll"),
3535      m_pf2_rowscroll(*this, "pf2_rowscroll"),
36      m_spriteram(*this, "spriteram"){ }
36      m_spriteram(*this, "spriteram"),
37      m_sprgen(*this, "spritegen")
38   { }
3739
3840   /* memory pointers */
3941   required_shared_ptr<UINT16> m_pf1_rowscroll;
4042   required_shared_ptr<UINT16> m_pf2_rowscroll;
4143   required_shared_ptr<UINT16> m_spriteram;
44   optional_device<decospr_device> m_sprgen;
4245
4346   /* protection */
4447   UINT16 m_008_data;
r20576r20577
116119
117120   deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 2);
118121   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 4);
119   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
122   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
120123   return 0;
121124}
122125
trunk/src/mame/drivers/tumbleb.c
r20576r20577
303303#include "sound/3812intf.h"
304304#include "sound/okim6295.h"
305305#include "includes/tumbleb.h"
306#include "video/decospr.h"
307306
307
308308#define TUMBLEP_HACK    0
309309#define FNCYWLD_HACK    0
310310
trunk/src/mame/drivers/darkseal.c
r20576r20577
2020#include "sound/2151intf.h"
2121#include "sound/okim6295.h"
2222#include "includes/darkseal.h"
23#include "video/decospr.h"
2423#include "video/deco16ic.h"
2524
2625/******************************************************************************/
trunk/src/mame/drivers/silvmil.c
r20576r20577
3030      : driver_device(mconfig, type, tag),
3131         m_bg_videoram(*this, "bg_videoram"),
3232         m_fg_videoram(*this, "fg_videoram"),
33         m_spriteram(*this, "spriteram")  {
33         m_spriteram(*this, "spriteram"),
34         m_sprgen(*this, "spritegen")
35   {
3436   }
3537
3638   /* memory pointers */
3739   required_shared_ptr<UINT16> m_bg_videoram;
3840   required_shared_ptr<UINT16> m_fg_videoram;
3941   required_shared_ptr<UINT16> m_spriteram;
42   optional_device<decospr_device> m_sprgen;
4043
4144   /* video-related */
4245   tilemap_t   *m_bg_layer;
r20576r20577
151154{
152155   m_bg_layer->draw(bitmap, cliprect, 0, 0);
153156   m_fg_layer->draw(bitmap, cliprect, 0, 0);
154   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
157   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
155158   return 0;
156159}
157160
trunk/src/mame/drivers/mirage.c
r20576r20577
5353         m_oki_bgm(*this, "oki_bgm"),
5454         m_spriteram(*this, "spriteram") ,
5555      m_pf1_rowscroll(*this, "pf1_rowscroll"),
56      m_pf2_rowscroll(*this, "pf2_rowscroll"){ }
56      m_pf2_rowscroll(*this, "pf2_rowscroll"),
57      m_sprgen(*this, "spritegen")
58   { }
5759
5860
5961   /* misc */
r20576r20577
6870   /* memory pointers */
6971   required_shared_ptr<UINT16> m_pf1_rowscroll;
7072   required_shared_ptr<UINT16> m_pf2_rowscroll;
73   optional_device<decospr_device> m_sprgen;
7174//  UINT16 *  m_paletteram;    // currently this uses generic palette handling (in decocomn.c)
7275   DECLARE_WRITE16_MEMBER(mirage_mux_w);
7376   DECLARE_READ16_MEMBER(mirage_input_r);
r20576r20577
8285
8386void miragemi_state::video_start()
8487{
85   machine().device<decospr_device>("spritegen")->alloc_sprite_bitmap();
88   m_sprgen->alloc_sprite_bitmap();
8689}
8790
8891UINT32 miragemi_state::screen_update_mirage(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
r20576r20577
9295
9396   flip_screen_set(BIT(flip, 7));
9497
95   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram->buffer(), 0x400);
98   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram->buffer(), 0x400);
9699
97100   deco16ic_pf_update(m_deco_tilegen1, m_pf1_rowscroll, m_pf2_rowscroll);
98101
99102   bitmap.fill(256, cliprect); /* not verified */
100103
101104   deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0);
102   machine().device<decospr_device>("spritegen")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0800, 0x0800, 0x200, 0x1ff);
105   m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0800, 0x0800, 0x200, 0x1ff);
103106   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
104   machine().device<decospr_device>("spritegen")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0000, 0x0800, 0x200, 0x1ff);
107   m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0000, 0x0800, 0x200, 0x1ff);
105108
106109   return 0;
107110}
trunk/src/mame/drivers/dietgo.c
r20576r20577
1313#include "includes/decoprot.h"
1414#include "includes/dietgo.h"
1515#include "video/deco16ic.h"
16#include "video/decospr.h"
1716#include "video/decocomn.h"
1817
1918static ADDRESS_MAP_START( dietgo_map, AS_PROGRAM, 16, dietgo_state )
trunk/src/mame/drivers/supbtime.c
r20576r20577
2727#include "sound/okim6295.h"
2828#include "video/deco16ic.h"
2929#include "includes/supbtime.h"
30#include "video/decospr.h"
3130
3231/******************************************************************************/
3332
trunk/src/mame/drivers/cbuster.c
r20576r20577
2424#include "sound/2151intf.h"
2525#include "sound/okim6295.h"
2626#include "video/deco16ic.h"
27#include "video/decospr.h"
2827
28
2929WRITE16_MEMBER(cbuster_state::twocrude_control_w)
3030{
3131   switch (offset << 1)
trunk/src/mame/drivers/backfire.c
r20576r20577
2828      : driver_device(mconfig, type, tag) ,
2929      m_mainram(*this, "mainram"),
3030      m_left_priority(*this, "left_priority"),
31      m_right_priority(*this, "right_priority"){ }
31      m_right_priority(*this, "right_priority"),
32      m_sprgen(*this, "spritegen")
33   { }
3234
3335   /* memory pointers */
3436   UINT16 *  m_spriteram_1;
r20576r20577
3638   required_shared_ptr<UINT32> m_mainram;
3739   required_shared_ptr<UINT32> m_left_priority;
3840   required_shared_ptr<UINT32> m_right_priority;
41   optional_device<decospr_device> m_sprgen;
3942
4043   /* video related */
4144   bitmap_ind16  *m_left;
r20576r20577
127130   {
128131      deco16ic_tilemap_1_draw(m_deco_tilegen2, bitmap, cliprect, 0, 1);
129132      deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 2);
130      machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram_1, 0x800);
133      m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram_1, 0x800);
131134   }
132135   else if (m_left_priority[0] == 2)
133136   {
134137      deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 2);
135138      deco16ic_tilemap_1_draw(m_deco_tilegen2, bitmap, cliprect, 0, 4);
136      machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram_1, 0x800);
139      m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram_1, 0x800);
137140   }
138141   else
139142      popmessage( "unknown left priority %08x", m_left_priority[0]);
trunk/src/mame/drivers/deco32.c
r20576r20577
235235#include "includes/deco32.h"
236236#include "sound/2151intf.h"
237237#include "sound/okim6295.h"
238#include "video/decospr.h"
239238#include "video/deco16ic.h"
240239
241240/**********************************************************************************/
trunk/src/mame/drivers/simpl156.c
r20576r20577
9595#include "machine/eeprom.h"
9696#include "sound/okim6295.h"
9797#include "video/deco16ic.h"
98#include "video/decospr.h"
9998
10099static INPUT_PORTS_START( simpl156 )
101100   PORT_START("IN0")
trunk/src/mame/drivers/tumblep.c
r20576r20577
4848#include "sound/okim6295.h"
4949#include "includes/tumblep.h"
5050#include "video/deco16ic.h"
51#include "video/decospr.h"
5251
52
5353#define TUMBLEP_HACK    0
5454
5555/******************************************************************************/
trunk/src/mame/drivers/lemmings.c
r20576r20577
2121#include "sound/2151intf.h"
2222#include "sound/okim6295.h"
2323#include "includes/lemmings.h"
24#include "video/decospr.h"
2524
2625WRITE16_MEMBER(lemmings_state::lemmings_control_w)
2726{
trunk/src/mame/drivers/funkyjet.c
r20576r20577
9696#include "sound/2151intf.h"
9797#include "sound/okim6295.h"
9898#include "video/deco16ic.h"
99#include "video/decospr.h"
10099
100
101101/******************************************************************************/
102102
103103static ADDRESS_MAP_START( funkyjet_map, AS_PROGRAM, 16, funkyjet_state )
trunk/src/mame/drivers/nmg5.c
r20576r20577
235235      m_scroll_ram(*this, "scroll_ram"),
236236      m_bg_videoram(*this, "bg_videoram"),
237237      m_fg_videoram(*this, "fg_videoram"),
238      m_bitmap(*this, "bitmap"){ }
238      m_bitmap(*this, "bitmap"),
239      m_sprgen(*this, "spritegen")
240   { }
239241
240242   /* memory pointers */
241243   required_shared_ptr<UINT16> m_spriteram;
r20576r20577
243245   required_shared_ptr<UINT16> m_bg_videoram;
244246   required_shared_ptr<UINT16> m_fg_videoram;
245247   required_shared_ptr<UINT16> m_bitmap;
248   optional_device<decospr_device> m_sprgen;
246249//  UINT16 *  m_paletteram;    // currently this uses generic palette handling
247250
248251   /* video-related */
r20576r20577
892895
893896   if (m_priority_reg == 0)
894897   {
895      machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
898      m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
896899      m_fg_tilemap->draw(bitmap, cliprect, 0, 0);
897900      draw_bitmap(machine(), bitmap);
898901   }
899902   else if (m_priority_reg == 1)
900903   {
901904      draw_bitmap(machine(), bitmap);
902      machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
905      m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
903906      m_fg_tilemap->draw(bitmap, cliprect, 0, 0);
904907   }
905908   else if (m_priority_reg == 2)
906909   {
907      machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
910      m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
908911      draw_bitmap(machine(), bitmap);
909912      m_fg_tilemap->draw(bitmap, cliprect, 0, 0);
910913   }
911914   else if (m_priority_reg == 3)
912915   {
913916      m_fg_tilemap->draw(bitmap, cliprect, 0, 0);
914      machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
917      m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
915918      draw_bitmap(machine(), bitmap);
916919   }
917920   else if (m_priority_reg == 7)
918921   {
919922      m_fg_tilemap->draw(bitmap, cliprect, 0, 0);
920923      draw_bitmap(machine(), bitmap);
921      machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
924      m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
922925   }
923926   return 0;
924927}
trunk/src/mame/drivers/cninja.c
r20576r20577
5151#include "sound/2151intf.h"
5252#include "sound/okim6295.h"
5353#include "video/deco16ic.h"
54#include "video/decospr.h"
5554#include "video/decocomn.h"
5655
5756WRITE16_MEMBER(cninja_state::cninja_sound_w)
trunk/src/mame/video/pktgaldx.c
r20576r20577
11#include "emu.h"
22#include "video/deco16ic.h"
33#include "includes/pktgaldx.h"
4#include "video/decospr.h"
54
65/* Video on the orginal */
76
r20576r20577
1716   machine().priority_bitmap.fill(0);
1817
1918   deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
20   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400, true);
19   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400, true);
2120   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
2221   return 0;
2322}
trunk/src/mame/video/deco32.c
r20576r20577
11#include "emu.h"
22#include "includes/deco32.h"
3#include "video/decospr.h"
43#include "video/deco16ic.h"
54
65/******************************************************************************/
r20576r20577
518517VIDEO_START_MEMBER(deco32_state,fghthist)
519518{
520519   m_dirty_palette = auto_alloc_array(machine(), UINT8, 4096);
521   machine().device<decospr_device>("spritegen")->alloc_sprite_bitmap();
520   m_sprgen->alloc_sprite_bitmap();
522521   m_has_ace_ram=0;
523522}
524523
r20576r20577
599598
600599   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 4);
601600
602   machine().device<decospr_device>("spritegen")->set_alt_format(true);
603   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram16_buffered, 0x400);
601   m_sprgen->set_alt_format(true);
602   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram16_buffered, 0x400);
604603
605604   return 0;
606605}
r20576r20577
655654   deco16ic_pf_update(m_deco_tilegen1, m_pf1_rowscroll, m_pf2_rowscroll);
656655   deco16ic_pf_update(m_deco_tilegen2, m_pf3_rowscroll, m_pf4_rowscroll);
657656
658   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram16_buffered, 0x800, true);
657   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram16_buffered, 0x800, true);
659658
660659   /* Draw screen */
661660   deco16ic_tilemap_2_draw(m_deco_tilegen2, bitmap, cliprect, 0, 1);
r20576r20577
663662   if(m_pri&1)
664663   {
665664      deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 2);
666      machine().device<decospr_device>("spritegen")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0800, 0x0800, 1024, 0x1ff);
665      m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0800, 0x0800, 1024, 0x1ff);
667666      deco16ic_tilemap_1_draw(m_deco_tilegen2, bitmap, cliprect, 0, 4);
668667   }
669668   else
670669   {
671670      deco16ic_tilemap_1_draw(m_deco_tilegen2, bitmap, cliprect, 0, 2);
672      machine().device<decospr_device>("spritegen")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0800, 0x0800, 1024, 0x1ff);
671      m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0800, 0x0800, 1024, 0x1ff);
673672      deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 4);
674673   }
675674
676   machine().device<decospr_device>("spritegen")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0000, 0x0800, 1024, 0x1ff);
675   m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0000, 0x0800, 1024, 0x1ff);
677676
678677   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
679678   return 0;
trunk/src/mame/video/crospang.c
r20576r20577
1111
1212#include "emu.h"
1313#include "includes/crospang.h"
14#include "video/decospr.h"
1514
15
1616WRITE16_MEMBER(crospang_state::bestri_tilebank_w)
1717{
1818   m_bestri_tilebank = (data>>10) & 0xf;
r20576r20577
114114{
115115   m_bg_layer->draw(bitmap, cliprect, 0, 0);
116116   m_fg_layer->draw(bitmap, cliprect, 0, 0);
117   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
117   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
118118   return 0;
119119}
trunk/src/mame/video/tumblep.c
r20576r20577
1616#include "emu.h"
1717#include "video/deco16ic.h"
1818#include "includes/tumblep.h"
19#include "video/decospr.h"
2019
2120
2221UINT32 tumblep_state::screen_update_tumblep(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
r20576r20577
3231   deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0);
3332   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
3433
35   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
34   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
3635   return 0;
3736}
trunk/src/mame/video/simpl156.c
r20576r20577
55#include "emu.h"
66#include "includes/simpl156.h"
77#include "video/deco16ic.h"
8#include "video/decospr.h"
98
109
10
1111void simpl156_state::video_start()
1212{
1313   /* allocate the ram as 16-bit (we do it here because the CPU is 32-bit) */
r20576r20577
3838   //FIXME: flip_screen_x should not be written!
3939   flip_screen_set_no_update(1);
4040
41   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x1400/4); // 0x1400/4 seems right for charlien (doesn't initialize any more RAM, so will draw a garbage 0 with more)
41   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x1400/4); // 0x1400/4 seems right for charlien (doesn't initialize any more RAM, so will draw a garbage 0 with more)
4242   return 0;
4343}
trunk/src/mame/video/tumbleb.c
r20576r20577
1616
1717#include "emu.h"
1818#include "includes/tumbleb.h"
19#include "video/decospr.h"
2019
2120/******************************************************************************/
2221
r20576r20577
434433
435434   tumbleb_draw_common(machine(),bitmap,cliprect, offs2, -16, offs, 0);
436435
437   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, m_spriteram.bytes()/2);
436   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, m_spriteram.bytes()/2);
438437   return 0;
439438}
440439
r20576r20577
493492   m_pf2_tilemap->draw(bitmap, cliprect, 0, 0);
494493   m_pf1_alt_tilemap->draw(bitmap, cliprect, 0, 0);
495494
496   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, m_spriteram.bytes()/2);
495   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, m_spriteram.bytes()/2);
497496   return 0;
498497}
trunk/src/mame/video/darkseal.c
r20576r20577
2020
2121#include "emu.h"
2222#include "includes/darkseal.h"
23#include "video/decospr.h"
2423#include "video/deco16ic.h"
2524
2625/***************************************************************************/
r20576r20577
7271   deco16ic_tilemap_2_draw(m_deco_tilegen2, bitmap, cliprect, 0, 0);
7372
7473   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
75   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram->buffer(), 0x400);
74   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram->buffer(), 0x400);
7675   deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
7776
7877   return 0;
trunk/src/mame/video/lemmings.c
r20576r20577
1414
1515#include "emu.h"
1616#include "includes/lemmings.h"
17#include "video/decospr.h"
1817
18
1919/******************************************************************************/
2020
2121TILE_GET_INFO_MEMBER(lemmings_state::get_tile_info)
r20576r20577
3838
3939   machine().gfx[2]->set_source(m_vram_buffer);
4040
41   machine().device<decospr_device>("spritegen")->alloc_sprite_bitmap();
41   m_sprgen->alloc_sprite_bitmap();
4242   machine().device<decospr_device>("spritegen2")->alloc_sprite_bitmap();
4343
4444   save_item(NAME(m_bitmap0));
r20576r20577
135135   rect.max_y = cliprect.max_y;
136136   rect.min_y = cliprect.min_y;
137137
138   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_sprite_triple_buffer_1, 0x400, true);
138   m_sprgen->draw_sprites(bitmap, cliprect, m_sprite_triple_buffer_1, 0x400, true);
139139   machine().device<decospr_device>("spritegen2")->draw_sprites(bitmap, cliprect, m_sprite_triple_buffer_0, 0x400, true);
140140
141141   bitmap.fill(get_black_pen(machine()), cliprect);
142   machine().device<decospr_device>("spritegen")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0800, 0x0800, 0x300, 0xff);
142   m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0800, 0x0800, 0x300, 0xff);
143143
144144   /* Pixel layer can be windowed in hardware (two player mode) */
145145   if ((m_control_data[6] & 2) == 0)
r20576r20577
158158   }
159159
160160   machine().device<decospr_device>("spritegen2")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0800, 0x0800, 0x200, 0xff);
161   machine().device<decospr_device>("spritegen")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0000, 0x0800, 0x300, 0xff);
161   m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0000, 0x0800, 0x300, 0xff);
162162   m_vram_tilemap->draw(bitmap, cliprect, 0, 0);
163163   machine().device<decospr_device>("spritegen2")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0000, 0x0800, 0x200, 0xff);
164164   return 0;
trunk/src/mame/video/funkyjet.c
r20576r20577
77#include "emu.h"
88#include "includes/funkyjet.h"
99#include "video/deco16ic.h"
10#include "video/decospr.h"
1110
1211/******************************************************************************/
1312
r20576r20577
2221   bitmap.fill(768, cliprect);
2322   deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0);
2423   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
25   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
24   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
2625   return 0;
2726}
trunk/src/mame/video/cninja.c
r20576r20577
77#include "emu.h"
88#include "video/deco16ic.h"
99#include "includes/cninja.h"
10#include "video/decospr.h"
1110#include "video/decocomn.h"
1211
1312/******************************************************************************/
r20576r20577
139138   deco16ic_tilemap_1_draw(m_deco_tilegen2, bitmap, cliprect, 0, 2);
140139   deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, TILEMAP_DRAW_LAYER1, 2);
141140   deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, TILEMAP_DRAW_LAYER0, 4);
142   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram->buffer(), 0x400);
141   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram->buffer(), 0x400);
143142   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
144143   return 0;
145144}
r20576r20577
183182   deco16ic_tilemap_2_draw(m_deco_tilegen2, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 1);
184183   deco16ic_tilemap_1_draw(m_deco_tilegen2, bitmap, cliprect, 0, 2);
185184   deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 4);
186   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram->buffer(), 0x400);
185   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram->buffer(), 0x400);
187186   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
188187   return 0;
189188}
r20576r20577
234233         break;
235234   }
236235
237   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram->buffer(), 0x400);
236   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram->buffer(), 0x400);
238237   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
239238   return 0;
240239}
trunk/src/mame/video/dietgo.c
r20576r20577
11#include "emu.h"
22#include "video/deco16ic.h"
33#include "includes/dietgo.h"
4#include "video/decospr.h"
54
65UINT32 dietgo_state::screen_update_dietgo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
76{
r20576r20577
1615   deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0);
1716   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
1817
19   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
18   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
2019   return 0;
2120}
trunk/src/mame/video/esd16.c
r20576r20577
3535
3636#include "emu.h"
3737#include "includes/esd16.h"
38#include "video/decospr.h"
3938
39
4040/***************************************************************************
4141
4242                                    Tilemaps
r20576r20577
217217
218218   }
219219
220   if (layers_ctrl & 4) machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
220   if (layers_ctrl & 4) m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
221221
222222//  popmessage("%04x %04x %04x %04x %04x",head_unknown1[0],head_layersize[0],head_unknown3[0],head_unknown4[0],head_unknown5[0]);
223223   return 0;
trunk/src/mame/video/gotcha.c
r20576r20577
11#include "emu.h"
22#include "includes/gotcha.h"
3#include "video/decospr.h"
43
4
55/***************************************************************************
66
77  Callbacks for the TileMap code
r20576r20577
103103{
104104   m_bg_tilemap->draw(bitmap, cliprect, 0, 0);
105105   m_fg_tilemap->draw(bitmap, cliprect, 0, 0);
106   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
106   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
107107   return 0;
108108}
trunk/src/mame/video/supbtime.c
r20576r20577
1515#include "emu.h"
1616#include "video/deco16ic.h"
1717#include "includes/supbtime.h"
18#include "video/decospr.h"
1918
19
2020/******************************************************************************/
2121
2222/******************************************************************************/
r20576r20577
3232   bitmap.fill(768, cliprect);
3333
3434   deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
35   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
35   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400);
3636   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
3737   return 0;
3838}
trunk/src/mame/video/cbuster.c
r20576r20577
77#include "emu.h"
88#include "includes/cbuster.h"
99#include "video/deco16ic.h"
10#include "video/decospr.h"
1110
1211/******************************************************************************/
1312
r20576r20577
4544
4645void cbuster_state::video_start()
4746{
48   machine().device<decospr_device>("spritegen")->alloc_sprite_bitmap();
47   m_sprgen->alloc_sprite_bitmap();
4948}
5049
5150UINT32 cbuster_state::screen_update_twocrude(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
r20576r20577
5554
5655   flip_screen_set(!BIT(flip, 7));
5756
58   machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram16_buffer, 0x400);
57   m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram16_buffer, 0x400);
5958
6059
6160   deco16ic_pf_update(m_deco_tilegen1, m_pf1_rowscroll, m_pf2_rowscroll);
r20576r20577
6362
6463   /* Draw playfields & sprites */
6564   deco16ic_tilemap_2_draw(m_deco_tilegen2, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0);
66   machine().device<decospr_device>("spritegen")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0800, 0x0900, 0x100, 0x0ff);
67   machine().device<decospr_device>("spritegen")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0900, 0x0900, 0x500, 0x0ff);
65   m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0800, 0x0900, 0x100, 0x0ff);
66   m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0900, 0x0900, 0x500, 0x0ff);
6867
6968   if (m_pri)
7069   {
r20576r20577
7776      deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
7877   }
7978
80   machine().device<decospr_device>("spritegen")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0000, 0x0900, 0x100, 0x0ff);
81   machine().device<decospr_device>("spritegen")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0100, 0x0900, 0x500, 0x0ff);
79   m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0000, 0x0900, 0x100, 0x0ff);
80   m_sprgen->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0100, 0x0900, 0x500, 0x0ff);
8281   deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0);
8382   return 0;
8483}
trunk/src/mame/includes/crospang.h
r20576r20577
44
55*************************************************************************/
66
7#include "video/decospr.h"
8
79class crospang_state : public driver_device
810{
911public:
r20576r20577
1113      : driver_device(mconfig, type, tag) ,
1214      m_fg_videoram(*this, "fg_videoram"),
1315      m_bg_videoram(*this, "bg_videoram"),
14      m_spriteram(*this, "spriteram"){ }
16      m_spriteram(*this, "spriteram"),
17      m_sprgen(*this, "spritegen")
18   { }
1519
1620   /* memory pointers */
1721   required_shared_ptr<UINT16> m_fg_videoram;
1822   required_shared_ptr<UINT16> m_bg_videoram;
1923   required_shared_ptr<UINT16> m_spriteram;
24   optional_device<decospr_device> m_sprgen;
2025//  UINT16 *  m_paletteram;       // currently this uses generic palette handling
2126
2227   /* video-related */
trunk/src/mame/includes/deco32.h
r20576r20577
11#include "audio/decobsmt.h"
22#include "video/bufsprite.h"
3#include "video/decospr.h"
34
45class deco32_state : public driver_device
56{
r20576r20577
1415      m_pf2_rowscroll32(*this, "pf2_rowscroll32"),
1516      m_pf3_rowscroll32(*this, "pf3_rowscroll32"),
1617      m_pf4_rowscroll32(*this, "pf4_rowscroll32"),
17      m_ace_ram(*this, "ace_ram"){ }
18      m_ace_ram(*this, "ace_ram"),
19      m_sprgen(*this, "spritegen")
20   { }
1821
1922   required_device<cpu_device> m_maincpu;
2023   optional_device<decobsmt_device> m_decobsmt;
r20576r20577
2730   required_shared_ptr<UINT32> m_pf4_rowscroll32;
2831
2932   optional_shared_ptr<UINT32> m_ace_ram;
33   optional_device<decospr_device> m_sprgen;
3034
3135   int m_raster_enable;
3236   timer_device *m_raster_irq_timer;
trunk/src/mame/includes/simpl156.h
r20576r20577
77#include "machine/eeprom.h"
88#include "sound/okim6295.h"
99#include "video/deco16ic.h"
10#include "video/decospr.h"
1011
1112class simpl156_state : public driver_device
1213{
r20576r20577
1819         m_eeprom(*this, "eeprom"),
1920         m_okimusic(*this, "okimusic") ,
2021      m_mainram(*this, "mainram"),
21      m_systemram(*this, "systemram"){ }
22      m_systemram(*this, "systemram"),
23      m_sprgen(*this, "spritegen")
24   { }
2225
2326   /* devices */
2427   required_device<cpu_device> m_maincpu;
r20576r20577
3033   UINT16 *  m_pf2_rowscroll;
3134   required_shared_ptr<UINT32> m_mainram;
3235   required_shared_ptr<UINT32> m_systemram;
36   optional_device<decospr_device> m_sprgen;
3337   UINT16 *m_spriteram;
3438   size_t m_spriteram_size;
3539
trunk/src/mame/includes/tumblep.h
r20576r20577
44
55*************************************************************************/
66
7#include "video/decospr.h"
8
79class tumblep_state : public driver_device
810{
911public:
r20576r20577
1113      : driver_device(mconfig, type, tag) ,
1214      m_spriteram(*this, "spriteram"),
1315      m_pf1_rowscroll(*this, "pf1_rowscroll"),
14      m_pf2_rowscroll(*this, "pf2_rowscroll"){ }
16      m_pf2_rowscroll(*this, "pf2_rowscroll"),
17      m_sprgen(*this, "spritegen")
18   { }
1519
1620   /* memory pointers */
1721   required_shared_ptr<UINT16> m_spriteram;
1822   required_shared_ptr<UINT16> m_pf1_rowscroll;
1923   required_shared_ptr<UINT16> m_pf2_rowscroll;
24   optional_device<decospr_device> m_sprgen;
2025//  UINT16 *  m_paletteram;    // currently this uses generic palette handling (in decocomn.c)
2126
2227   /* devices */
trunk/src/mame/includes/tumbleb.h
r20576r20577
11
2#include "video/decospr.h"
3
4
25class tumbleb_state : public driver_device
36{
47public:
r20576r20577
811      m_spriteram(*this, "spriteram"),
912      m_pf1_data(*this, "pf1_data"),
1013      m_pf2_data(*this, "pf2_data"),
11      m_control(*this, "control")
14      m_control(*this, "control"),
15      m_sprgen(*this, "spritegen")
1216   { }
1317
1418   /* memory pointers */
r20576r20577
1721   required_shared_ptr<UINT16> m_pf1_data;
1822   required_shared_ptr<UINT16> m_pf2_data;
1923   optional_shared_ptr<UINT16> m_control;
24   optional_device<decospr_device> m_sprgen;
2025//  UINT16 *    m_paletteram;    // currently this uses generic palette handling
2126
2227   /* misc */
trunk/src/mame/includes/darkseal.h
r20576r20577
11#include "video/deco16ic.h"
22#include "video/bufsprite.h"
3#include "video/decospr.h"
34
45class darkseal_state : public driver_device
56{
r20576r20577
1112         m_spriteram(*this, "spriteram") ,
1213      m_ram(*this, "ram"),
1314      m_pf1_rowscroll(*this, "pf1_rowscroll"),
14      m_pf3_rowscroll(*this, "pf3_rowscroll"){ }
15      m_pf3_rowscroll(*this, "pf3_rowscroll"),
16      m_sprgen(*this, "spritegen")
17   { }
1518
1619   required_device<deco16ic_device> m_deco_tilegen1;
1720   required_device<deco16ic_device> m_deco_tilegen2;
r20576r20577
2124   //UINT16 *m_pf2_rowscroll;
2225   required_shared_ptr<UINT16> m_pf3_rowscroll;
2326   //UINT16 *m_pf4_rowscroll;
27   optional_device<decospr_device> m_sprgen;
2428
2529
2630   int m_flipscreen;
trunk/src/mame/includes/lemmings.h
r20576r20577
11#include "video/bufsprite.h"
2#include "video/decospr.h"
23
34class lemmings_state : public driver_device
45{
r20576r20577
1213      m_control_data(*this, "control_data"),
1314      m_vram_data(*this, "vram_data"),
1415      m_pixel_0_data(*this, "pixel_0_data"),
15      m_pixel_1_data(*this, "pixel_1_data"){ }
16      m_pixel_1_data(*this, "pixel_1_data"),
17      m_sprgen(*this, "spritegen")
18   { }
1619
1720   /* video-related */
1821   bitmap_ind16 m_bitmap0;
r20576r20577
3033   required_shared_ptr<UINT16> m_vram_data;
3134   required_shared_ptr<UINT16> m_pixel_0_data;
3235   required_shared_ptr<UINT16> m_pixel_1_data;
36   optional_device<decospr_device> m_sprgen;
3337
3438   DECLARE_WRITE16_MEMBER(lemmings_control_w);
3539   DECLARE_READ16_MEMBER(lemmings_trackball_r);
trunk/src/mame/includes/funkyjet.h
r20576r20577
44
55*************************************************************************/
66
7#include "video/decospr.h"
8
79class funkyjet_state : public driver_device
810{
911public:
r20576r20577
1113      : driver_device(mconfig, type, tag) ,
1214      m_spriteram(*this, "spriteram"),
1315      m_pf1_rowscroll(*this, "pf1_rowscroll"),
14      m_pf2_rowscroll(*this, "pf2_rowscroll"){ }
16      m_pf2_rowscroll(*this, "pf2_rowscroll"),
17      m_sprgen(*this, "spritegen")
18   { }
1519
1620   /* memory pointers */
1721   required_shared_ptr<UINT16> m_spriteram;
1822   required_shared_ptr<UINT16> m_pf1_rowscroll;
1923   required_shared_ptr<UINT16> m_pf2_rowscroll;
24   optional_device<decospr_device> m_sprgen;
2025//  UINT16 *  paletteram;    // currently this uses generic palette handling (in decocomn.c)
2126
2227   /* devices */
trunk/src/mame/includes/cninja.h
r20576r20577
88#include "video/deco16ic.h"
99#include "video/decocomn.h"
1010#include "video/bufsprite.h"
11#include "video/decospr.h"
1112
1213class cninja_state : public driver_device
1314{
r20576r20577
2728      m_pf2_rowscroll(*this, "pf2_rowscroll"),
2829      m_pf3_rowscroll(*this, "pf3_rowscroll"),
2930      m_pf4_rowscroll(*this, "pf4_rowscroll"),
30      m_ram(*this, "ram"){ }
31      m_ram(*this, "ram"),
32      m_sprgen(*this, "spritegen")
33   { }
3134
3235   /* devices */
3336   required_device<cpu_device> m_maincpu;
r20576r20577
4548   required_shared_ptr<UINT16> m_pf3_rowscroll;
4649   required_shared_ptr<UINT16> m_pf4_rowscroll;
4750   optional_shared_ptr<UINT16> m_ram;
51   optional_device<decospr_device> m_sprgen;
4852
4953   /* misc */
5054   int        m_scanline;
trunk/src/mame/includes/dietgo.h
r20576r20577
44
55*************************************************************************/
66
7#include "video/decospr.h"
8
79class dietgo_state : public driver_device
810{
911public:
r20576r20577
1113      : driver_device(mconfig, type, tag) ,
1214      m_pf1_rowscroll(*this, "pf1_rowscroll"),
1315      m_pf2_rowscroll(*this, "pf2_rowscroll"),
14      m_spriteram(*this, "spriteram"){ }
16      m_spriteram(*this, "spriteram"),
17      m_sprgen(*this, "spritegen")
18   { }
1519
1620   /* memory pointers */
1721   required_shared_ptr<UINT16> m_pf1_rowscroll;
1822   required_shared_ptr<UINT16> m_pf2_rowscroll;
1923   required_shared_ptr<UINT16> m_spriteram;
24   optional_device<decospr_device> m_sprgen;
2025//  UINT16 *  m_paletteram;    // currently this uses generic palette handling (in decocomn.c)
2126
2227   /* devices */
trunk/src/mame/includes/esd16.h
r20576r20577
55***************************************************************************/
66
77#include "machine/eeprom.h"
8#include "video/decospr.h"
89
910class esd16_state : public driver_device
1011{
r20576r20577
1819      m_spriteram(*this, "spriteram"),
1920      m_head_layersize(*this, "head_layersize"),
2021      m_headpanic_platform_x(*this, "platform_x"),
21      m_headpanic_platform_y(*this, "platform_y")
22      m_headpanic_platform_y(*this, "platform_y"),
23      m_sprgen(*this, "spritegen")
2224   {
2325      m_tilemap0_color = 0;
2426      m_tilemap1_color = 0;
r20576r20577
3335   required_shared_ptr<UINT16> m_head_layersize;
3436   required_shared_ptr<UINT16> m_headpanic_platform_x;
3537   required_shared_ptr<UINT16> m_headpanic_platform_y;
38   optional_device<decospr_device> m_sprgen;
3639//  UINT16 *       m_paletteram;  // currently this uses generic palette handling
3740
3841   /* video-related */
trunk/src/mame/includes/supbtime.h
r20576r20577
44
55*************************************************************************/
66
7#include "video/decospr.h"
8
79class supbtime_state : public driver_device
810{
911public:
r20576r20577
1113      : driver_device(mconfig, type, tag) ,
1214      m_spriteram(*this, "spriteram"),
1315      m_pf1_rowscroll(*this, "pf1_rowscroll"),
14      m_pf2_rowscroll(*this, "pf2_rowscroll"){ }
16      m_pf2_rowscroll(*this, "pf2_rowscroll"),
17      m_sprgen(*this, "spritegen")
18   { }
1519
1620   /* memory pointers */
1721   required_shared_ptr<UINT16> m_spriteram;
1822   required_shared_ptr<UINT16> m_pf1_rowscroll;
1923   required_shared_ptr<UINT16> m_pf2_rowscroll;
20//  UINT16 *  m_paletteram;    // currently this uses generic palette handling (in decocomn.c)
24   optional_device<decospr_device> m_sprgen;
25   //  UINT16 *  m_paletteram;    // currently this uses generic palette handling (in decocomn.c)
2126
2227   /* video-related */
2328
trunk/src/mame/includes/gotcha.h
r20576r20577
44
55*************************************************************************/
66
7#include "video/decospr.h"
8
79class gotcha_state : public driver_device
810{
911public:
r20576r20577
1113      : driver_device(mconfig, type, tag) ,
1214      m_fgvideoram(*this, "fgvideoram"),
1315      m_bgvideoram(*this, "bgvideoram"),
14      m_spriteram(*this, "spriteram"){ }
16      m_spriteram(*this, "spriteram"),
17      m_sprgen(*this, "spritegen")
18   { }
1519
1620   /* memory pointers */
1721   required_shared_ptr<UINT16> m_fgvideoram;
1822   required_shared_ptr<UINT16> m_bgvideoram;
1923   required_shared_ptr<UINT16> m_spriteram;
24   optional_device<decospr_device> m_sprgen;
2025//  UINT16 *    m_paletteram; // currently this uses generic palette handling
2126
2227   /* video-related */
trunk/src/mame/includes/pktgaldx.h
r20576r20577
44
55*************************************************************************/
66
7#include "video/decospr.h"
8
79class pktgaldx_state : public driver_device
810{
911public:
r20576r20577
1315      m_pf2_rowscroll(*this, "pf2_rowscroll"),
1416      m_spriteram(*this, "spriteram"),
1517      m_pktgaldb_fgram(*this, "pktgaldb_fgram"),
16      m_pktgaldb_sprites(*this, "pktgaldb_spr"){ }
18      m_pktgaldb_sprites(*this, "pktgaldb_spr"),
19      m_sprgen(*this, "spritegen")
20   { }
1721
1822   /* memory pointers */
1923   optional_shared_ptr<UINT16> m_pf1_rowscroll;
r20576r20577
2327
2428   optional_shared_ptr<UINT16> m_pktgaldb_fgram;
2529   optional_shared_ptr<UINT16> m_pktgaldb_sprites;
30   optional_device<decospr_device> m_sprgen;
2631
2732   /* devices */
2833   cpu_device *m_maincpu;
trunk/src/mame/includes/cbuster.h
r20576r20577
44
55*************************************************************************/
66
7#include "video/decospr.h"
8
79class cbuster_state : public driver_device
810{
911public:
r20576r20577
1416      m_pf2_rowscroll(*this, "pf2_rowscroll"),
1517      m_pf3_rowscroll(*this, "pf3_rowscroll"),
1618      m_pf4_rowscroll(*this, "pf4_rowscroll"),
17      m_spriteram16(*this, "spriteram16"){ }
19      m_spriteram16(*this, "spriteram16"),
20      m_sprgen(*this, "spritegen")
21   { }
1822
1923   /* memory pointers */
2024   required_shared_ptr<UINT16> m_ram;
r20576r20577
2327   required_shared_ptr<UINT16> m_pf3_rowscroll;
2428   required_shared_ptr<UINT16> m_pf4_rowscroll;
2529   required_shared_ptr<UINT16> m_spriteram16;
30   optional_device<decospr_device> m_sprgen;
31
2632   UINT16    m_spriteram16_buffer[0x400];
2733
2834   /* misc */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team