trunk/src/mame/drivers/deco156.c
| r20576 | r20577 | |
| 30 | 30 | : driver_device(mconfig, type, tag), |
| 31 | 31 | m_maincpu(*this, "maincpu"), |
| 32 | 32 | m_deco_tilegen1(*this, "tilegen1"), |
| 33 | | m_oki2(*this, "oki2") { } |
| 33 | m_oki2(*this, "oki2"), |
| 34 | m_sprgen(*this, "spritegen") |
| 35 | { } |
| 34 | 36 | |
| 35 | 37 | /* devices */ |
| 36 | 38 | required_device<arm_device> m_maincpu; |
| 37 | 39 | required_device<deco16ic_device> m_deco_tilegen1; |
| 38 | 40 | optional_device<okim6295_device> m_oki2; |
| 41 | optional_device<decospr_device> m_sprgen; |
| 39 | 42 | |
| 40 | 43 | /* memory */ |
| 41 | 44 | UINT16 m_pf1_rowscroll[0x800/2]; |
| r20576 | r20577 | |
| 81 | 84 | deco16ic_pf_update(m_deco_tilegen1, m_pf1_rowscroll, m_pf2_rowscroll); |
| 82 | 85 | |
| 83 | 86 | 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); |
| 85 | 88 | deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0); |
| 86 | 89 | return 0; |
| 87 | 90 | } |
trunk/src/mame/drivers/dblewing.c
| r20576 | r20577 | |
| 33 | 33 | : driver_device(mconfig, type, tag) , |
| 34 | 34 | m_pf1_rowscroll(*this, "pf1_rowscroll"), |
| 35 | 35 | m_pf2_rowscroll(*this, "pf2_rowscroll"), |
| 36 | | m_spriteram(*this, "spriteram"){ } |
| 36 | m_spriteram(*this, "spriteram"), |
| 37 | m_sprgen(*this, "spritegen") |
| 38 | { } |
| 37 | 39 | |
| 38 | 40 | /* memory pointers */ |
| 39 | 41 | required_shared_ptr<UINT16> m_pf1_rowscroll; |
| 40 | 42 | required_shared_ptr<UINT16> m_pf2_rowscroll; |
| 41 | 43 | required_shared_ptr<UINT16> m_spriteram; |
| 44 | optional_device<decospr_device> m_sprgen; |
| 42 | 45 | |
| 43 | 46 | /* protection */ |
| 44 | 47 | UINT16 m_008_data; |
| r20576 | r20577 | |
| 116 | 119 | |
| 117 | 120 | deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 2); |
| 118 | 121 | 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); |
| 120 | 123 | return 0; |
| 121 | 124 | } |
| 122 | 125 | |
trunk/src/mame/drivers/silvmil.c
| r20576 | r20577 | |
| 30 | 30 | : driver_device(mconfig, type, tag), |
| 31 | 31 | m_bg_videoram(*this, "bg_videoram"), |
| 32 | 32 | m_fg_videoram(*this, "fg_videoram"), |
| 33 | | m_spriteram(*this, "spriteram") { |
| 33 | m_spriteram(*this, "spriteram"), |
| 34 | m_sprgen(*this, "spritegen") |
| 35 | { |
| 34 | 36 | } |
| 35 | 37 | |
| 36 | 38 | /* memory pointers */ |
| 37 | 39 | required_shared_ptr<UINT16> m_bg_videoram; |
| 38 | 40 | required_shared_ptr<UINT16> m_fg_videoram; |
| 39 | 41 | required_shared_ptr<UINT16> m_spriteram; |
| 42 | optional_device<decospr_device> m_sprgen; |
| 40 | 43 | |
| 41 | 44 | /* video-related */ |
| 42 | 45 | tilemap_t *m_bg_layer; |
| r20576 | r20577 | |
| 151 | 154 | { |
| 152 | 155 | m_bg_layer->draw(bitmap, cliprect, 0, 0); |
| 153 | 156 | 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); |
| 155 | 158 | return 0; |
| 156 | 159 | } |
| 157 | 160 | |
trunk/src/mame/drivers/mirage.c
| r20576 | r20577 | |
| 53 | 53 | m_oki_bgm(*this, "oki_bgm"), |
| 54 | 54 | m_spriteram(*this, "spriteram") , |
| 55 | 55 | 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 | { } |
| 57 | 59 | |
| 58 | 60 | |
| 59 | 61 | /* misc */ |
| r20576 | r20577 | |
| 68 | 70 | /* memory pointers */ |
| 69 | 71 | required_shared_ptr<UINT16> m_pf1_rowscroll; |
| 70 | 72 | required_shared_ptr<UINT16> m_pf2_rowscroll; |
| 73 | optional_device<decospr_device> m_sprgen; |
| 71 | 74 | // UINT16 * m_paletteram; // currently this uses generic palette handling (in decocomn.c) |
| 72 | 75 | DECLARE_WRITE16_MEMBER(mirage_mux_w); |
| 73 | 76 | DECLARE_READ16_MEMBER(mirage_input_r); |
| r20576 | r20577 | |
| 82 | 85 | |
| 83 | 86 | void miragemi_state::video_start() |
| 84 | 87 | { |
| 85 | | machine().device<decospr_device>("spritegen")->alloc_sprite_bitmap(); |
| 88 | m_sprgen->alloc_sprite_bitmap(); |
| 86 | 89 | } |
| 87 | 90 | |
| 88 | 91 | UINT32 miragemi_state::screen_update_mirage(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) |
| r20576 | r20577 | |
| 92 | 95 | |
| 93 | 96 | flip_screen_set(BIT(flip, 7)); |
| 94 | 97 | |
| 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); |
| 96 | 99 | |
| 97 | 100 | deco16ic_pf_update(m_deco_tilegen1, m_pf1_rowscroll, m_pf2_rowscroll); |
| 98 | 101 | |
| 99 | 102 | bitmap.fill(256, cliprect); /* not verified */ |
| 100 | 103 | |
| 101 | 104 | 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); |
| 103 | 106 | 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); |
| 105 | 108 | |
| 106 | 109 | return 0; |
| 107 | 110 | } |
trunk/src/mame/drivers/backfire.c
| r20576 | r20577 | |
| 28 | 28 | : driver_device(mconfig, type, tag) , |
| 29 | 29 | m_mainram(*this, "mainram"), |
| 30 | 30 | 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 | { } |
| 32 | 34 | |
| 33 | 35 | /* memory pointers */ |
| 34 | 36 | UINT16 * m_spriteram_1; |
| r20576 | r20577 | |
| 36 | 38 | required_shared_ptr<UINT32> m_mainram; |
| 37 | 39 | required_shared_ptr<UINT32> m_left_priority; |
| 38 | 40 | required_shared_ptr<UINT32> m_right_priority; |
| 41 | optional_device<decospr_device> m_sprgen; |
| 39 | 42 | |
| 40 | 43 | /* video related */ |
| 41 | 44 | bitmap_ind16 *m_left; |
| r20576 | r20577 | |
| 127 | 130 | { |
| 128 | 131 | deco16ic_tilemap_1_draw(m_deco_tilegen2, bitmap, cliprect, 0, 1); |
| 129 | 132 | 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); |
| 131 | 134 | } |
| 132 | 135 | else if (m_left_priority[0] == 2) |
| 133 | 136 | { |
| 134 | 137 | deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 2); |
| 135 | 138 | 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); |
| 137 | 140 | } |
| 138 | 141 | else |
| 139 | 142 | popmessage( "unknown left priority %08x", m_left_priority[0]); |
trunk/src/mame/drivers/nmg5.c
| r20576 | r20577 | |
| 235 | 235 | m_scroll_ram(*this, "scroll_ram"), |
| 236 | 236 | m_bg_videoram(*this, "bg_videoram"), |
| 237 | 237 | m_fg_videoram(*this, "fg_videoram"), |
| 238 | | m_bitmap(*this, "bitmap"){ } |
| 238 | m_bitmap(*this, "bitmap"), |
| 239 | m_sprgen(*this, "spritegen") |
| 240 | { } |
| 239 | 241 | |
| 240 | 242 | /* memory pointers */ |
| 241 | 243 | required_shared_ptr<UINT16> m_spriteram; |
| r20576 | r20577 | |
| 243 | 245 | required_shared_ptr<UINT16> m_bg_videoram; |
| 244 | 246 | required_shared_ptr<UINT16> m_fg_videoram; |
| 245 | 247 | required_shared_ptr<UINT16> m_bitmap; |
| 248 | optional_device<decospr_device> m_sprgen; |
| 246 | 249 | // UINT16 * m_paletteram; // currently this uses generic palette handling |
| 247 | 250 | |
| 248 | 251 | /* video-related */ |
| r20576 | r20577 | |
| 892 | 895 | |
| 893 | 896 | if (m_priority_reg == 0) |
| 894 | 897 | { |
| 895 | | machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400); |
| 898 | m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400); |
| 896 | 899 | m_fg_tilemap->draw(bitmap, cliprect, 0, 0); |
| 897 | 900 | draw_bitmap(machine(), bitmap); |
| 898 | 901 | } |
| 899 | 902 | else if (m_priority_reg == 1) |
| 900 | 903 | { |
| 901 | 904 | 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); |
| 903 | 906 | m_fg_tilemap->draw(bitmap, cliprect, 0, 0); |
| 904 | 907 | } |
| 905 | 908 | else if (m_priority_reg == 2) |
| 906 | 909 | { |
| 907 | | machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400); |
| 910 | m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400); |
| 908 | 911 | draw_bitmap(machine(), bitmap); |
| 909 | 912 | m_fg_tilemap->draw(bitmap, cliprect, 0, 0); |
| 910 | 913 | } |
| 911 | 914 | else if (m_priority_reg == 3) |
| 912 | 915 | { |
| 913 | 916 | 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); |
| 915 | 918 | draw_bitmap(machine(), bitmap); |
| 916 | 919 | } |
| 917 | 920 | else if (m_priority_reg == 7) |
| 918 | 921 | { |
| 919 | 922 | m_fg_tilemap->draw(bitmap, cliprect, 0, 0); |
| 920 | 923 | 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); |
| 922 | 925 | } |
| 923 | 926 | return 0; |
| 924 | 927 | } |
trunk/src/mame/video/pktgaldx.c
| r20576 | r20577 | |
| 1 | 1 | #include "emu.h" |
| 2 | 2 | #include "video/deco16ic.h" |
| 3 | 3 | #include "includes/pktgaldx.h" |
| 4 | | #include "video/decospr.h" |
| 5 | 4 | |
| 6 | 5 | /* Video on the orginal */ |
| 7 | 6 | |
| r20576 | r20577 | |
| 17 | 16 | machine().priority_bitmap.fill(0); |
| 18 | 17 | |
| 19 | 18 | 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); |
| 21 | 20 | deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0); |
| 22 | 21 | return 0; |
| 23 | 22 | } |
trunk/src/mame/video/deco32.c
| r20576 | r20577 | |
| 1 | 1 | #include "emu.h" |
| 2 | 2 | #include "includes/deco32.h" |
| 3 | | #include "video/decospr.h" |
| 4 | 3 | #include "video/deco16ic.h" |
| 5 | 4 | |
| 6 | 5 | /******************************************************************************/ |
| r20576 | r20577 | |
| 518 | 517 | VIDEO_START_MEMBER(deco32_state,fghthist) |
| 519 | 518 | { |
| 520 | 519 | m_dirty_palette = auto_alloc_array(machine(), UINT8, 4096); |
| 521 | | machine().device<decospr_device>("spritegen")->alloc_sprite_bitmap(); |
| 520 | m_sprgen->alloc_sprite_bitmap(); |
| 522 | 521 | m_has_ace_ram=0; |
| 523 | 522 | } |
| 524 | 523 | |
| r20576 | r20577 | |
| 599 | 598 | |
| 600 | 599 | deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 4); |
| 601 | 600 | |
| 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); |
| 604 | 603 | |
| 605 | 604 | return 0; |
| 606 | 605 | } |
| r20576 | r20577 | |
| 655 | 654 | deco16ic_pf_update(m_deco_tilegen1, m_pf1_rowscroll, m_pf2_rowscroll); |
| 656 | 655 | deco16ic_pf_update(m_deco_tilegen2, m_pf3_rowscroll, m_pf4_rowscroll); |
| 657 | 656 | |
| 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); |
| 659 | 658 | |
| 660 | 659 | /* Draw screen */ |
| 661 | 660 | deco16ic_tilemap_2_draw(m_deco_tilegen2, bitmap, cliprect, 0, 1); |
| r20576 | r20577 | |
| 663 | 662 | if(m_pri&1) |
| 664 | 663 | { |
| 665 | 664 | 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); |
| 667 | 666 | deco16ic_tilemap_1_draw(m_deco_tilegen2, bitmap, cliprect, 0, 4); |
| 668 | 667 | } |
| 669 | 668 | else |
| 670 | 669 | { |
| 671 | 670 | 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); |
| 673 | 672 | deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 4); |
| 674 | 673 | } |
| 675 | 674 | |
| 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); |
| 677 | 676 | |
| 678 | 677 | deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0); |
| 679 | 678 | return 0; |
trunk/src/mame/video/crospang.c
| r20576 | r20577 | |
| 11 | 11 | |
| 12 | 12 | #include "emu.h" |
| 13 | 13 | #include "includes/crospang.h" |
| 14 | | #include "video/decospr.h" |
| 15 | 14 | |
| 15 | |
| 16 | 16 | WRITE16_MEMBER(crospang_state::bestri_tilebank_w) |
| 17 | 17 | { |
| 18 | 18 | m_bestri_tilebank = (data>>10) & 0xf; |
| r20576 | r20577 | |
| 114 | 114 | { |
| 115 | 115 | m_bg_layer->draw(bitmap, cliprect, 0, 0); |
| 116 | 116 | 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); |
| 118 | 118 | return 0; |
| 119 | 119 | } |
trunk/src/mame/video/tumblep.c
| r20576 | r20577 | |
| 16 | 16 | #include "emu.h" |
| 17 | 17 | #include "video/deco16ic.h" |
| 18 | 18 | #include "includes/tumblep.h" |
| 19 | | #include "video/decospr.h" |
| 20 | 19 | |
| 21 | 20 | |
| 22 | 21 | UINT32 tumblep_state::screen_update_tumblep(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| r20576 | r20577 | |
| 32 | 31 | deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0); |
| 33 | 32 | deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0); |
| 34 | 33 | |
| 35 | | machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400); |
| 34 | m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400); |
| 36 | 35 | return 0; |
| 37 | 36 | } |
trunk/src/mame/video/simpl156.c
| r20576 | r20577 | |
| 5 | 5 | #include "emu.h" |
| 6 | 6 | #include "includes/simpl156.h" |
| 7 | 7 | #include "video/deco16ic.h" |
| 8 | | #include "video/decospr.h" |
| 9 | 8 | |
| 10 | 9 | |
| 10 | |
| 11 | 11 | void simpl156_state::video_start() |
| 12 | 12 | { |
| 13 | 13 | /* allocate the ram as 16-bit (we do it here because the CPU is 32-bit) */ |
| r20576 | r20577 | |
| 38 | 38 | //FIXME: flip_screen_x should not be written! |
| 39 | 39 | flip_screen_set_no_update(1); |
| 40 | 40 | |
| 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) |
| 42 | 42 | return 0; |
| 43 | 43 | } |
trunk/src/mame/video/tumbleb.c
| r20576 | r20577 | |
| 16 | 16 | |
| 17 | 17 | #include "emu.h" |
| 18 | 18 | #include "includes/tumbleb.h" |
| 19 | | #include "video/decospr.h" |
| 20 | 19 | |
| 21 | 20 | /******************************************************************************/ |
| 22 | 21 | |
| r20576 | r20577 | |
| 434 | 433 | |
| 435 | 434 | tumbleb_draw_common(machine(),bitmap,cliprect, offs2, -16, offs, 0); |
| 436 | 435 | |
| 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); |
| 438 | 437 | return 0; |
| 439 | 438 | } |
| 440 | 439 | |
| r20576 | r20577 | |
| 493 | 492 | m_pf2_tilemap->draw(bitmap, cliprect, 0, 0); |
| 494 | 493 | m_pf1_alt_tilemap->draw(bitmap, cliprect, 0, 0); |
| 495 | 494 | |
| 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); |
| 497 | 496 | return 0; |
| 498 | 497 | } |
trunk/src/mame/video/darkseal.c
| r20576 | r20577 | |
| 20 | 20 | |
| 21 | 21 | #include "emu.h" |
| 22 | 22 | #include "includes/darkseal.h" |
| 23 | | #include "video/decospr.h" |
| 24 | 23 | #include "video/deco16ic.h" |
| 25 | 24 | |
| 26 | 25 | /***************************************************************************/ |
| r20576 | r20577 | |
| 72 | 71 | deco16ic_tilemap_2_draw(m_deco_tilegen2, bitmap, cliprect, 0, 0); |
| 73 | 72 | |
| 74 | 73 | 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); |
| 76 | 75 | deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0); |
| 77 | 76 | |
| 78 | 77 | return 0; |
trunk/src/mame/video/lemmings.c
| r20576 | r20577 | |
| 14 | 14 | |
| 15 | 15 | #include "emu.h" |
| 16 | 16 | #include "includes/lemmings.h" |
| 17 | | #include "video/decospr.h" |
| 18 | 17 | |
| 18 | |
| 19 | 19 | /******************************************************************************/ |
| 20 | 20 | |
| 21 | 21 | TILE_GET_INFO_MEMBER(lemmings_state::get_tile_info) |
| r20576 | r20577 | |
| 38 | 38 | |
| 39 | 39 | machine().gfx[2]->set_source(m_vram_buffer); |
| 40 | 40 | |
| 41 | | machine().device<decospr_device>("spritegen")->alloc_sprite_bitmap(); |
| 41 | m_sprgen->alloc_sprite_bitmap(); |
| 42 | 42 | machine().device<decospr_device>("spritegen2")->alloc_sprite_bitmap(); |
| 43 | 43 | |
| 44 | 44 | save_item(NAME(m_bitmap0)); |
| r20576 | r20577 | |
| 135 | 135 | rect.max_y = cliprect.max_y; |
| 136 | 136 | rect.min_y = cliprect.min_y; |
| 137 | 137 | |
| 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); |
| 139 | 139 | machine().device<decospr_device>("spritegen2")->draw_sprites(bitmap, cliprect, m_sprite_triple_buffer_0, 0x400, true); |
| 140 | 140 | |
| 141 | 141 | 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); |
| 143 | 143 | |
| 144 | 144 | /* Pixel layer can be windowed in hardware (two player mode) */ |
| 145 | 145 | if ((m_control_data[6] & 2) == 0) |
| r20576 | r20577 | |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | 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); |
| 162 | 162 | m_vram_tilemap->draw(bitmap, cliprect, 0, 0); |
| 163 | 163 | machine().device<decospr_device>("spritegen2")->inefficient_copy_sprite_bitmap(bitmap, cliprect, 0x0000, 0x0800, 0x200, 0xff); |
| 164 | 164 | return 0; |
trunk/src/mame/video/funkyjet.c
| r20576 | r20577 | |
| 7 | 7 | #include "emu.h" |
| 8 | 8 | #include "includes/funkyjet.h" |
| 9 | 9 | #include "video/deco16ic.h" |
| 10 | | #include "video/decospr.h" |
| 11 | 10 | |
| 12 | 11 | /******************************************************************************/ |
| 13 | 12 | |
| r20576 | r20577 | |
| 22 | 21 | bitmap.fill(768, cliprect); |
| 23 | 22 | deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0); |
| 24 | 23 | 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); |
| 26 | 25 | return 0; |
| 27 | 26 | } |
trunk/src/mame/video/cninja.c
| r20576 | r20577 | |
| 7 | 7 | #include "emu.h" |
| 8 | 8 | #include "video/deco16ic.h" |
| 9 | 9 | #include "includes/cninja.h" |
| 10 | | #include "video/decospr.h" |
| 11 | 10 | #include "video/decocomn.h" |
| 12 | 11 | |
| 13 | 12 | /******************************************************************************/ |
| r20576 | r20577 | |
| 139 | 138 | deco16ic_tilemap_1_draw(m_deco_tilegen2, bitmap, cliprect, 0, 2); |
| 140 | 139 | deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, TILEMAP_DRAW_LAYER1, 2); |
| 141 | 140 | 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); |
| 143 | 142 | deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0); |
| 144 | 143 | return 0; |
| 145 | 144 | } |
| r20576 | r20577 | |
| 183 | 182 | deco16ic_tilemap_2_draw(m_deco_tilegen2, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 1); |
| 184 | 183 | deco16ic_tilemap_1_draw(m_deco_tilegen2, bitmap, cliprect, 0, 2); |
| 185 | 184 | 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); |
| 187 | 186 | deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0); |
| 188 | 187 | return 0; |
| 189 | 188 | } |
| r20576 | r20577 | |
| 234 | 233 | break; |
| 235 | 234 | } |
| 236 | 235 | |
| 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); |
| 238 | 237 | deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0); |
| 239 | 238 | return 0; |
| 240 | 239 | } |
trunk/src/mame/video/dietgo.c
| r20576 | r20577 | |
| 1 | 1 | #include "emu.h" |
| 2 | 2 | #include "video/deco16ic.h" |
| 3 | 3 | #include "includes/dietgo.h" |
| 4 | | #include "video/decospr.h" |
| 5 | 4 | |
| 6 | 5 | UINT32 dietgo_state::screen_update_dietgo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 7 | 6 | { |
| r20576 | r20577 | |
| 16 | 15 | deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, TILEMAP_DRAW_OPAQUE, 0); |
| 17 | 16 | deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0); |
| 18 | 17 | |
| 19 | | machine().device<decospr_device>("spritegen")->draw_sprites(bitmap, cliprect, m_spriteram, 0x400); |
| 18 | m_sprgen->draw_sprites(bitmap, cliprect, m_spriteram, 0x400); |
| 20 | 19 | return 0; |
| 21 | 20 | } |
trunk/src/mame/video/gotcha.c
| r20576 | r20577 | |
| 1 | 1 | #include "emu.h" |
| 2 | 2 | #include "includes/gotcha.h" |
| 3 | | #include "video/decospr.h" |
| 4 | 3 | |
| 4 | |
| 5 | 5 | /*************************************************************************** |
| 6 | 6 | |
| 7 | 7 | Callbacks for the TileMap code |
| r20576 | r20577 | |
| 103 | 103 | { |
| 104 | 104 | m_bg_tilemap->draw(bitmap, cliprect, 0, 0); |
| 105 | 105 | 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); |
| 107 | 107 | return 0; |
| 108 | 108 | } |
trunk/src/mame/video/supbtime.c
| r20576 | r20577 | |
| 15 | 15 | #include "emu.h" |
| 16 | 16 | #include "video/deco16ic.h" |
| 17 | 17 | #include "includes/supbtime.h" |
| 18 | | #include "video/decospr.h" |
| 19 | 18 | |
| 19 | |
| 20 | 20 | /******************************************************************************/ |
| 21 | 21 | |
| 22 | 22 | /******************************************************************************/ |
| r20576 | r20577 | |
| 32 | 32 | bitmap.fill(768, cliprect); |
| 33 | 33 | |
| 34 | 34 | 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); |
| 36 | 36 | deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0); |
| 37 | 37 | return 0; |
| 38 | 38 | } |
trunk/src/mame/video/cbuster.c
| r20576 | r20577 | |
| 7 | 7 | #include "emu.h" |
| 8 | 8 | #include "includes/cbuster.h" |
| 9 | 9 | #include "video/deco16ic.h" |
| 10 | | #include "video/decospr.h" |
| 11 | 10 | |
| 12 | 11 | /******************************************************************************/ |
| 13 | 12 | |
| r20576 | r20577 | |
| 45 | 44 | |
| 46 | 45 | void cbuster_state::video_start() |
| 47 | 46 | { |
| 48 | | machine().device<decospr_device>("spritegen")->alloc_sprite_bitmap(); |
| 47 | m_sprgen->alloc_sprite_bitmap(); |
| 49 | 48 | } |
| 50 | 49 | |
| 51 | 50 | UINT32 cbuster_state::screen_update_twocrude(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) |
| r20576 | r20577 | |
| 55 | 54 | |
| 56 | 55 | flip_screen_set(!BIT(flip, 7)); |
| 57 | 56 | |
| 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); |
| 59 | 58 | |
| 60 | 59 | |
| 61 | 60 | deco16ic_pf_update(m_deco_tilegen1, m_pf1_rowscroll, m_pf2_rowscroll); |
| r20576 | r20577 | |
| 63 | 62 | |
| 64 | 63 | /* Draw playfields & sprites */ |
| 65 | 64 | 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); |
| 68 | 67 | |
| 69 | 68 | if (m_pri) |
| 70 | 69 | { |
| r20576 | r20577 | |
| 77 | 76 | deco16ic_tilemap_2_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0); |
| 78 | 77 | } |
| 79 | 78 | |
| 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); |
| 82 | 81 | deco16ic_tilemap_1_draw(m_deco_tilegen1, bitmap, cliprect, 0, 0); |
| 83 | 82 | return 0; |
| 84 | 83 | } |
trunk/src/mame/includes/crospang.h
| r20576 | r20577 | |
| 4 | 4 | |
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | #include "video/decospr.h" |
| 8 | |
| 7 | 9 | class crospang_state : public driver_device |
| 8 | 10 | { |
| 9 | 11 | public: |
| r20576 | r20577 | |
| 11 | 13 | : driver_device(mconfig, type, tag) , |
| 12 | 14 | m_fg_videoram(*this, "fg_videoram"), |
| 13 | 15 | m_bg_videoram(*this, "bg_videoram"), |
| 14 | | m_spriteram(*this, "spriteram"){ } |
| 16 | m_spriteram(*this, "spriteram"), |
| 17 | m_sprgen(*this, "spritegen") |
| 18 | { } |
| 15 | 19 | |
| 16 | 20 | /* memory pointers */ |
| 17 | 21 | required_shared_ptr<UINT16> m_fg_videoram; |
| 18 | 22 | required_shared_ptr<UINT16> m_bg_videoram; |
| 19 | 23 | required_shared_ptr<UINT16> m_spriteram; |
| 24 | optional_device<decospr_device> m_sprgen; |
| 20 | 25 | // UINT16 * m_paletteram; // currently this uses generic palette handling |
| 21 | 26 | |
| 22 | 27 | /* video-related */ |
trunk/src/mame/includes/deco32.h
| r20576 | r20577 | |
| 1 | 1 | #include "audio/decobsmt.h" |
| 2 | 2 | #include "video/bufsprite.h" |
| 3 | #include "video/decospr.h" |
| 3 | 4 | |
| 4 | 5 | class deco32_state : public driver_device |
| 5 | 6 | { |
| r20576 | r20577 | |
| 14 | 15 | m_pf2_rowscroll32(*this, "pf2_rowscroll32"), |
| 15 | 16 | m_pf3_rowscroll32(*this, "pf3_rowscroll32"), |
| 16 | 17 | 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 | { } |
| 18 | 21 | |
| 19 | 22 | required_device<cpu_device> m_maincpu; |
| 20 | 23 | optional_device<decobsmt_device> m_decobsmt; |
| r20576 | r20577 | |
| 27 | 30 | required_shared_ptr<UINT32> m_pf4_rowscroll32; |
| 28 | 31 | |
| 29 | 32 | optional_shared_ptr<UINT32> m_ace_ram; |
| 33 | optional_device<decospr_device> m_sprgen; |
| 30 | 34 | |
| 31 | 35 | int m_raster_enable; |
| 32 | 36 | timer_device *m_raster_irq_timer; |
trunk/src/mame/includes/simpl156.h
| r20576 | r20577 | |
| 7 | 7 | #include "machine/eeprom.h" |
| 8 | 8 | #include "sound/okim6295.h" |
| 9 | 9 | #include "video/deco16ic.h" |
| 10 | #include "video/decospr.h" |
| 10 | 11 | |
| 11 | 12 | class simpl156_state : public driver_device |
| 12 | 13 | { |
| r20576 | r20577 | |
| 18 | 19 | m_eeprom(*this, "eeprom"), |
| 19 | 20 | m_okimusic(*this, "okimusic") , |
| 20 | 21 | m_mainram(*this, "mainram"), |
| 21 | | m_systemram(*this, "systemram"){ } |
| 22 | m_systemram(*this, "systemram"), |
| 23 | m_sprgen(*this, "spritegen") |
| 24 | { } |
| 22 | 25 | |
| 23 | 26 | /* devices */ |
| 24 | 27 | required_device<cpu_device> m_maincpu; |
| r20576 | r20577 | |
| 30 | 33 | UINT16 * m_pf2_rowscroll; |
| 31 | 34 | required_shared_ptr<UINT32> m_mainram; |
| 32 | 35 | required_shared_ptr<UINT32> m_systemram; |
| 36 | optional_device<decospr_device> m_sprgen; |
| 33 | 37 | UINT16 *m_spriteram; |
| 34 | 38 | size_t m_spriteram_size; |
| 35 | 39 | |
trunk/src/mame/includes/tumblep.h
| r20576 | r20577 | |
| 4 | 4 | |
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | #include "video/decospr.h" |
| 8 | |
| 7 | 9 | class tumblep_state : public driver_device |
| 8 | 10 | { |
| 9 | 11 | public: |
| r20576 | r20577 | |
| 11 | 13 | : driver_device(mconfig, type, tag) , |
| 12 | 14 | m_spriteram(*this, "spriteram"), |
| 13 | 15 | 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 | { } |
| 15 | 19 | |
| 16 | 20 | /* memory pointers */ |
| 17 | 21 | required_shared_ptr<UINT16> m_spriteram; |
| 18 | 22 | required_shared_ptr<UINT16> m_pf1_rowscroll; |
| 19 | 23 | required_shared_ptr<UINT16> m_pf2_rowscroll; |
| 24 | optional_device<decospr_device> m_sprgen; |
| 20 | 25 | // UINT16 * m_paletteram; // currently this uses generic palette handling (in decocomn.c) |
| 21 | 26 | |
| 22 | 27 | /* devices */ |
trunk/src/mame/includes/tumbleb.h
| r20576 | r20577 | |
| 1 | 1 | |
| 2 | #include "video/decospr.h" |
| 3 | |
| 4 | |
| 2 | 5 | class tumbleb_state : public driver_device |
| 3 | 6 | { |
| 4 | 7 | public: |
| r20576 | r20577 | |
| 8 | 11 | m_spriteram(*this, "spriteram"), |
| 9 | 12 | m_pf1_data(*this, "pf1_data"), |
| 10 | 13 | m_pf2_data(*this, "pf2_data"), |
| 11 | | m_control(*this, "control") |
| 14 | m_control(*this, "control"), |
| 15 | m_sprgen(*this, "spritegen") |
| 12 | 16 | { } |
| 13 | 17 | |
| 14 | 18 | /* memory pointers */ |
| r20576 | r20577 | |
| 17 | 21 | required_shared_ptr<UINT16> m_pf1_data; |
| 18 | 22 | required_shared_ptr<UINT16> m_pf2_data; |
| 19 | 23 | optional_shared_ptr<UINT16> m_control; |
| 24 | optional_device<decospr_device> m_sprgen; |
| 20 | 25 | // UINT16 * m_paletteram; // currently this uses generic palette handling |
| 21 | 26 | |
| 22 | 27 | /* misc */ |
trunk/src/mame/includes/darkseal.h
| r20576 | r20577 | |
| 1 | 1 | #include "video/deco16ic.h" |
| 2 | 2 | #include "video/bufsprite.h" |
| 3 | #include "video/decospr.h" |
| 3 | 4 | |
| 4 | 5 | class darkseal_state : public driver_device |
| 5 | 6 | { |
| r20576 | r20577 | |
| 11 | 12 | m_spriteram(*this, "spriteram") , |
| 12 | 13 | m_ram(*this, "ram"), |
| 13 | 14 | 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 | { } |
| 15 | 18 | |
| 16 | 19 | required_device<deco16ic_device> m_deco_tilegen1; |
| 17 | 20 | required_device<deco16ic_device> m_deco_tilegen2; |
| r20576 | r20577 | |
| 21 | 24 | //UINT16 *m_pf2_rowscroll; |
| 22 | 25 | required_shared_ptr<UINT16> m_pf3_rowscroll; |
| 23 | 26 | //UINT16 *m_pf4_rowscroll; |
| 27 | optional_device<decospr_device> m_sprgen; |
| 24 | 28 | |
| 25 | 29 | |
| 26 | 30 | int m_flipscreen; |
trunk/src/mame/includes/lemmings.h
| r20576 | r20577 | |
| 1 | 1 | #include "video/bufsprite.h" |
| 2 | #include "video/decospr.h" |
| 2 | 3 | |
| 3 | 4 | class lemmings_state : public driver_device |
| 4 | 5 | { |
| r20576 | r20577 | |
| 12 | 13 | m_control_data(*this, "control_data"), |
| 13 | 14 | m_vram_data(*this, "vram_data"), |
| 14 | 15 | 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 | { } |
| 16 | 19 | |
| 17 | 20 | /* video-related */ |
| 18 | 21 | bitmap_ind16 m_bitmap0; |
| r20576 | r20577 | |
| 30 | 33 | required_shared_ptr<UINT16> m_vram_data; |
| 31 | 34 | required_shared_ptr<UINT16> m_pixel_0_data; |
| 32 | 35 | required_shared_ptr<UINT16> m_pixel_1_data; |
| 36 | optional_device<decospr_device> m_sprgen; |
| 33 | 37 | |
| 34 | 38 | DECLARE_WRITE16_MEMBER(lemmings_control_w); |
| 35 | 39 | DECLARE_READ16_MEMBER(lemmings_trackball_r); |
trunk/src/mame/includes/funkyjet.h
| r20576 | r20577 | |
| 4 | 4 | |
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | #include "video/decospr.h" |
| 8 | |
| 7 | 9 | class funkyjet_state : public driver_device |
| 8 | 10 | { |
| 9 | 11 | public: |
| r20576 | r20577 | |
| 11 | 13 | : driver_device(mconfig, type, tag) , |
| 12 | 14 | m_spriteram(*this, "spriteram"), |
| 13 | 15 | 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 | { } |
| 15 | 19 | |
| 16 | 20 | /* memory pointers */ |
| 17 | 21 | required_shared_ptr<UINT16> m_spriteram; |
| 18 | 22 | required_shared_ptr<UINT16> m_pf1_rowscroll; |
| 19 | 23 | required_shared_ptr<UINT16> m_pf2_rowscroll; |
| 24 | optional_device<decospr_device> m_sprgen; |
| 20 | 25 | // UINT16 * paletteram; // currently this uses generic palette handling (in decocomn.c) |
| 21 | 26 | |
| 22 | 27 | /* devices */ |
trunk/src/mame/includes/cninja.h
| r20576 | r20577 | |
| 8 | 8 | #include "video/deco16ic.h" |
| 9 | 9 | #include "video/decocomn.h" |
| 10 | 10 | #include "video/bufsprite.h" |
| 11 | #include "video/decospr.h" |
| 11 | 12 | |
| 12 | 13 | class cninja_state : public driver_device |
| 13 | 14 | { |
| r20576 | r20577 | |
| 27 | 28 | m_pf2_rowscroll(*this, "pf2_rowscroll"), |
| 28 | 29 | m_pf3_rowscroll(*this, "pf3_rowscroll"), |
| 29 | 30 | m_pf4_rowscroll(*this, "pf4_rowscroll"), |
| 30 | | m_ram(*this, "ram"){ } |
| 31 | m_ram(*this, "ram"), |
| 32 | m_sprgen(*this, "spritegen") |
| 33 | { } |
| 31 | 34 | |
| 32 | 35 | /* devices */ |
| 33 | 36 | required_device<cpu_device> m_maincpu; |
| r20576 | r20577 | |
| 45 | 48 | required_shared_ptr<UINT16> m_pf3_rowscroll; |
| 46 | 49 | required_shared_ptr<UINT16> m_pf4_rowscroll; |
| 47 | 50 | optional_shared_ptr<UINT16> m_ram; |
| 51 | optional_device<decospr_device> m_sprgen; |
| 48 | 52 | |
| 49 | 53 | /* misc */ |
| 50 | 54 | int m_scanline; |
trunk/src/mame/includes/dietgo.h
| r20576 | r20577 | |
| 4 | 4 | |
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | #include "video/decospr.h" |
| 8 | |
| 7 | 9 | class dietgo_state : public driver_device |
| 8 | 10 | { |
| 9 | 11 | public: |
| r20576 | r20577 | |
| 11 | 13 | : driver_device(mconfig, type, tag) , |
| 12 | 14 | m_pf1_rowscroll(*this, "pf1_rowscroll"), |
| 13 | 15 | m_pf2_rowscroll(*this, "pf2_rowscroll"), |
| 14 | | m_spriteram(*this, "spriteram"){ } |
| 16 | m_spriteram(*this, "spriteram"), |
| 17 | m_sprgen(*this, "spritegen") |
| 18 | { } |
| 15 | 19 | |
| 16 | 20 | /* memory pointers */ |
| 17 | 21 | required_shared_ptr<UINT16> m_pf1_rowscroll; |
| 18 | 22 | required_shared_ptr<UINT16> m_pf2_rowscroll; |
| 19 | 23 | required_shared_ptr<UINT16> m_spriteram; |
| 24 | optional_device<decospr_device> m_sprgen; |
| 20 | 25 | // UINT16 * m_paletteram; // currently this uses generic palette handling (in decocomn.c) |
| 21 | 26 | |
| 22 | 27 | /* devices */ |
trunk/src/mame/includes/esd16.h
| r20576 | r20577 | |
| 5 | 5 | ***************************************************************************/ |
| 6 | 6 | |
| 7 | 7 | #include "machine/eeprom.h" |
| 8 | #include "video/decospr.h" |
| 8 | 9 | |
| 9 | 10 | class esd16_state : public driver_device |
| 10 | 11 | { |
| r20576 | r20577 | |
| 18 | 19 | m_spriteram(*this, "spriteram"), |
| 19 | 20 | m_head_layersize(*this, "head_layersize"), |
| 20 | 21 | 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") |
| 22 | 24 | { |
| 23 | 25 | m_tilemap0_color = 0; |
| 24 | 26 | m_tilemap1_color = 0; |
| r20576 | r20577 | |
| 33 | 35 | required_shared_ptr<UINT16> m_head_layersize; |
| 34 | 36 | required_shared_ptr<UINT16> m_headpanic_platform_x; |
| 35 | 37 | required_shared_ptr<UINT16> m_headpanic_platform_y; |
| 38 | optional_device<decospr_device> m_sprgen; |
| 36 | 39 | // UINT16 * m_paletteram; // currently this uses generic palette handling |
| 37 | 40 | |
| 38 | 41 | /* video-related */ |
trunk/src/mame/includes/supbtime.h
| r20576 | r20577 | |
| 4 | 4 | |
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | #include "video/decospr.h" |
| 8 | |
| 7 | 9 | class supbtime_state : public driver_device |
| 8 | 10 | { |
| 9 | 11 | public: |
| r20576 | r20577 | |
| 11 | 13 | : driver_device(mconfig, type, tag) , |
| 12 | 14 | m_spriteram(*this, "spriteram"), |
| 13 | 15 | 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 | { } |
| 15 | 19 | |
| 16 | 20 | /* memory pointers */ |
| 17 | 21 | required_shared_ptr<UINT16> m_spriteram; |
| 18 | 22 | required_shared_ptr<UINT16> m_pf1_rowscroll; |
| 19 | 23 | 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) |
| 21 | 26 | |
| 22 | 27 | /* video-related */ |
| 23 | 28 | |
trunk/src/mame/includes/gotcha.h
| r20576 | r20577 | |
| 4 | 4 | |
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | #include "video/decospr.h" |
| 8 | |
| 7 | 9 | class gotcha_state : public driver_device |
| 8 | 10 | { |
| 9 | 11 | public: |
| r20576 | r20577 | |
| 11 | 13 | : driver_device(mconfig, type, tag) , |
| 12 | 14 | m_fgvideoram(*this, "fgvideoram"), |
| 13 | 15 | m_bgvideoram(*this, "bgvideoram"), |
| 14 | | m_spriteram(*this, "spriteram"){ } |
| 16 | m_spriteram(*this, "spriteram"), |
| 17 | m_sprgen(*this, "spritegen") |
| 18 | { } |
| 15 | 19 | |
| 16 | 20 | /* memory pointers */ |
| 17 | 21 | required_shared_ptr<UINT16> m_fgvideoram; |
| 18 | 22 | required_shared_ptr<UINT16> m_bgvideoram; |
| 19 | 23 | required_shared_ptr<UINT16> m_spriteram; |
| 24 | optional_device<decospr_device> m_sprgen; |
| 20 | 25 | // UINT16 * m_paletteram; // currently this uses generic palette handling |
| 21 | 26 | |
| 22 | 27 | /* video-related */ |
trunk/src/mame/includes/pktgaldx.h
| r20576 | r20577 | |
| 4 | 4 | |
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | #include "video/decospr.h" |
| 8 | |
| 7 | 9 | class pktgaldx_state : public driver_device |
| 8 | 10 | { |
| 9 | 11 | public: |
| r20576 | r20577 | |
| 13 | 15 | m_pf2_rowscroll(*this, "pf2_rowscroll"), |
| 14 | 16 | m_spriteram(*this, "spriteram"), |
| 15 | 17 | 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 | { } |
| 17 | 21 | |
| 18 | 22 | /* memory pointers */ |
| 19 | 23 | optional_shared_ptr<UINT16> m_pf1_rowscroll; |
| r20576 | r20577 | |
| 23 | 27 | |
| 24 | 28 | optional_shared_ptr<UINT16> m_pktgaldb_fgram; |
| 25 | 29 | optional_shared_ptr<UINT16> m_pktgaldb_sprites; |
| 30 | optional_device<decospr_device> m_sprgen; |
| 26 | 31 | |
| 27 | 32 | /* devices */ |
| 28 | 33 | cpu_device *m_maincpu; |
trunk/src/mame/includes/cbuster.h
| r20576 | r20577 | |
| 4 | 4 | |
| 5 | 5 | *************************************************************************/ |
| 6 | 6 | |
| 7 | #include "video/decospr.h" |
| 8 | |
| 7 | 9 | class cbuster_state : public driver_device |
| 8 | 10 | { |
| 9 | 11 | public: |
| r20576 | r20577 | |
| 14 | 16 | m_pf2_rowscroll(*this, "pf2_rowscroll"), |
| 15 | 17 | m_pf3_rowscroll(*this, "pf3_rowscroll"), |
| 16 | 18 | m_pf4_rowscroll(*this, "pf4_rowscroll"), |
| 17 | | m_spriteram16(*this, "spriteram16"){ } |
| 19 | m_spriteram16(*this, "spriteram16"), |
| 20 | m_sprgen(*this, "spritegen") |
| 21 | { } |
| 18 | 22 | |
| 19 | 23 | /* memory pointers */ |
| 20 | 24 | required_shared_ptr<UINT16> m_ram; |
| r20576 | r20577 | |
| 23 | 27 | required_shared_ptr<UINT16> m_pf3_rowscroll; |
| 24 | 28 | required_shared_ptr<UINT16> m_pf4_rowscroll; |
| 25 | 29 | required_shared_ptr<UINT16> m_spriteram16; |
| 30 | optional_device<decospr_device> m_sprgen; |
| 31 | |
| 26 | 32 | UINT16 m_spriteram16_buffer[0x400]; |
| 27 | 33 | |
| 28 | 34 | /* misc */ |