mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
removed space, offset and mem mask from decocomn_device::priority_r (nw)
This commit is contained in:
parent
0d14133280
commit
7ad0aa0253
@ -28,8 +28,7 @@ void boogwing_state::mix_boogwing(screen_device &screen, bitmap_rgb32 &bitmap, c
|
||||
bitmap_ind16 *sprite_bitmap1, *sprite_bitmap2;
|
||||
bitmap_ind8* priority_bitmap;
|
||||
|
||||
address_space &space = machine().dummy_space();
|
||||
uint16_t priority = m_decocomn->priority_r(space, 0, 0xffff);
|
||||
uint16_t priority = m_decocomn->priority_r();
|
||||
|
||||
sprite_bitmap1 = &m_sprgen1->get_sprite_temp_bitmap();
|
||||
sprite_bitmap2 = &m_sprgen2->get_sprite_temp_bitmap();
|
||||
@ -182,7 +181,7 @@ uint32_t boogwing_state::screen_update_boogwing(screen_device &screen, bitmap_rg
|
||||
{
|
||||
address_space &space = machine().dummy_space();
|
||||
uint16_t flip = m_deco_tilegen1->pf_control_r(space, 0, 0xffff);
|
||||
uint16_t priority = m_decocomn->priority_r(space, 0, 0xffff);
|
||||
uint16_t priority = m_decocomn->priority_r();
|
||||
|
||||
/* Draw sprite planes to bitmaps for later mixing */
|
||||
m_sprgen2->draw_sprites(bitmap, cliprect, m_spriteram2->buffer(), 0x400, true);
|
||||
|
@ -201,7 +201,7 @@ uint32_t cninja_state::screen_update_robocop2(screen_device &screen, bitmap_ind1
|
||||
{
|
||||
address_space &space = machine().dummy_space();
|
||||
uint16_t flip = m_deco_tilegen1->pf_control_r(space, 0, 0xffff);
|
||||
uint16_t priority = m_decocomn->priority_r(space, 0, 0xffff);
|
||||
uint16_t priority = m_decocomn->priority_r();
|
||||
|
||||
/* One of the tilemap chips can switch between 2 tilemaps at 4bpp, or 1 at 8bpp */
|
||||
if (priority & 4)
|
||||
@ -258,7 +258,7 @@ uint32_t cninja_state::screen_update_mutantf(screen_device &screen, bitmap_rgb32
|
||||
{
|
||||
address_space &space = machine().dummy_space();
|
||||
uint16_t flip = m_deco_tilegen1->pf_control_r(space, 0, 0xffff);
|
||||
uint16_t priority = m_decocomn->priority_r(space, 0, 0xffff);
|
||||
uint16_t priority = m_decocomn->priority_r();
|
||||
|
||||
|
||||
flip_screen_set(BIT(flip, 7));
|
||||
|
@ -78,7 +78,7 @@ uint32_t dassault_state::screen_update_dassault(screen_device &screen, bitmap_rg
|
||||
{
|
||||
address_space &space = machine().dummy_space();
|
||||
uint16_t flip = m_deco_tilegen1->pf_control_r(space, 0, 0xffff);
|
||||
uint16_t priority = m_decocomn->priority_r(space, 0, 0xffff);
|
||||
uint16_t priority = m_decocomn->priority_r();
|
||||
|
||||
m_sprgen2->draw_sprites(bitmap, cliprect, m_spriteram2->buffer(), 0x400, false);
|
||||
m_sprgen1->draw_sprites(bitmap, cliprect, m_spriteram->buffer(), 0x400, false);
|
||||
|
@ -119,7 +119,7 @@ WRITE16_MEMBER( decocomn_device::priority_w )
|
||||
m_priority = data;
|
||||
}
|
||||
|
||||
READ16_MEMBER( decocomn_device::priority_r )
|
||||
uint16_t decocomn_device::priority_r()
|
||||
{
|
||||
return m_priority;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ public:
|
||||
DECLARE_WRITE16_MEMBER( buffered_palette_w );
|
||||
DECLARE_WRITE16_MEMBER( palette_dma_w );
|
||||
DECLARE_WRITE16_MEMBER( priority_w );
|
||||
DECLARE_READ16_MEMBER( priority_r );
|
||||
uint16_t priority_r();
|
||||
DECLARE_READ16_MEMBER( d_71_r );
|
||||
|
||||
protected:
|
||||
|
@ -24,7 +24,7 @@ uint32_t rohga_state::screen_update_rohga(screen_device &screen, bitmap_ind16 &b
|
||||
{
|
||||
address_space &space = machine().dummy_space();
|
||||
uint16_t flip = m_deco_tilegen1->pf_control_r(space, 0, 0xffff);
|
||||
uint16_t priority = m_decocomn->priority_r(space, 0, 0xffff);
|
||||
uint16_t priority = m_decocomn->priority_r();
|
||||
|
||||
/* Update playfields */
|
||||
flip_screen_set(BIT(flip, 7));
|
||||
@ -127,7 +127,7 @@ uint32_t rohga_state::screen_update_wizdfire(screen_device &screen, bitmap_rgb32
|
||||
{
|
||||
address_space &space = machine().dummy_space();
|
||||
uint16_t flip = m_deco_tilegen1->pf_control_r(space, 0, 0xffff);
|
||||
uint16_t priority = m_decocomn->priority_r(space, 0, 0xffff);
|
||||
uint16_t priority = m_decocomn->priority_r();
|
||||
|
||||
/* draw sprite gfx to temp bitmaps */
|
||||
m_sprgen2->draw_sprites(bitmap, cliprect, m_spriteram2->buffer(), 0x400, true);
|
||||
|
Loading…
Reference in New Issue
Block a user