summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/boogwing.cpp
diff options
context:
space:
mode:
author cam900 <dbtlrchl@naver.com>2020-02-18 07:23:57 +0900
committer GitHub <noreply@github.com>2020-02-17 17:23:57 -0500
commit09e068aaad8d0d6cd9a79fb534a9b403091a59cb (patch)
tree067671581a5c26e8295f52c369a97ec4d0988bc9 /src/mame/drivers/boogwing.cpp
parent8b3a65302bcc896047d503b756160233c00fa36e (diff)
boogwing.cpp : Further blending implementation, Typo (#6316)
* boogwing.cpp : Further blending implementation, Typo * deco_ace.cpp : Add notes * deco32.cpp : ACE ram is not masked * deco_ace : Minor fix addressing * boogwing.cpp : Add reference * boogwing.cpp : Partially blended tilemap handling
Diffstat (limited to 'src/mame/drivers/boogwing.cpp')
-rw-r--r--src/mame/drivers/boogwing.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/mame/drivers/boogwing.cpp b/src/mame/drivers/boogwing.cpp
index da4f8945578..a09f0df8960 100644
--- a/src/mame/drivers/boogwing.cpp
+++ b/src/mame/drivers/boogwing.cpp
@@ -92,7 +92,6 @@
#include "machine/gen_latch.h"
#include "sound/ym2151.h"
#include "sound/okim6295.h"
-#include "screen.h"
#include "speaker.h"
#define MAIN_XTAL XTAL(28'000'000)
@@ -118,7 +117,14 @@ WRITE16_MEMBER( boogwing_state::boogwing_protection_region_0_104_w )
WRITE16_MEMBER( boogwing_state::priority_w )
{
COMBINE_DATA(&m_priority);
- m_deco_ace->set_palette_effect_max((m_priority & 0x8) ? 0x6ff : 0xfff);
+ m_deco_ace->set_palette_effect_max((m_priority & 0x8) ? ((m_deco_ace->get_aceram(0x10) & 0x1000) ? 0x4ff : 0x6ff) : 0xfff);
+}
+
+WRITE16_MEMBER( boogwing_state::boogwing_ace_w )
+{
+ m_deco_ace->ace_w(space, offset, data, mem_mask);
+ if (offset == 0x10)
+ m_deco_ace->set_palette_effect_max((m_priority & 0x8) ? ((m_deco_ace->get_aceram(0x10) & 0x1000) ? 0x4ff : 0x6ff) : 0xfff);
}
@@ -157,7 +163,7 @@ void boogwing_state::boogwing_map(address_map &map)
map(0x282008, 0x282009).w(m_deco_ace, FUNC(deco_ace_device::palette_dma_w));
map(0x284000, 0x285fff).rw(m_deco_ace, FUNC(deco_ace_device::buffered_palette16_r), FUNC(deco_ace_device::buffered_palette16_w));
- map(0x3c0000, 0x3c004f).rw(m_deco_ace, FUNC(deco_ace_device::ace_r), FUNC(deco_ace_device::ace_w));
+ map(0x3c0000, 0x3c004f).r(m_deco_ace, FUNC(deco_ace_device::ace_r)).w(FUNC(boogwing_state::boogwing_ace_w));
}
void boogwing_state::decrypted_opcodes_map(address_map &map)
@@ -339,9 +345,9 @@ void boogwing_state::boogwing(machine_config &config)
m_audiocpu->add_route(ALL_OUTPUTS, "rspeaker", 0);
/* video hardware */
- screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
- screen.set_raw(MAIN_XTAL / 4, 442, 0, 320, 274, 8, 248); // same as robocop2(cninja.cpp)? verify this from real pcb.
- screen.set_screen_update(FUNC(boogwing_state::screen_update_boogwing));
+ SCREEN(config, m_screen, SCREEN_TYPE_RASTER);
+ m_screen->set_raw(MAIN_XTAL / 4, 442, 0, 320, 274, 8, 248); // same as robocop2(cninja.cpp)? verify this from real pcb.
+ m_screen->set_screen_update(FUNC(boogwing_state::screen_update_boogwing));
GFXDECODE(config, "gfxdecode", m_deco_ace, gfx_boogwing);