mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
I wrote the current implementation of this (nw)
This commit is contained in:
parent
254cec19a8
commit
36bb8e1205
@ -1,12 +1,12 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Nicola Salmoria
|
||||
// copyright-holders:Vas Crabb, Nicola Salmoria
|
||||
#include "emu.h"
|
||||
#include "includes/dooyong.h"
|
||||
|
||||
|
||||
inline void dooyong_state::scroll8_w(offs_t offset, UINT8 data, UINT8 *scroll, tilemap_t *map)
|
||||
{
|
||||
UINT8 old = scroll[offset];
|
||||
UINT8 const old = scroll[offset];
|
||||
if (old != data)
|
||||
{
|
||||
scroll[offset] = data;
|
||||
@ -134,9 +134,8 @@ WRITE8_MEMBER(dooyong_z80_state::paletteram_flytiger_w)
|
||||
{
|
||||
if (m_flytiger_palette_bank)
|
||||
{
|
||||
UINT16 value;
|
||||
m_paletteram_flytiger[offset] = data;
|
||||
value = m_paletteram_flytiger[offset & ~1] | (m_paletteram_flytiger[offset | 1] << 8);
|
||||
UINT16 const value = m_paletteram_flytiger[offset & ~1] | (m_paletteram_flytiger[offset | 1] << 8);
|
||||
m_palette->set_pen_color(offset/2, pal5bit(value >> 10), pal5bit(value >> 5), pal5bit(value >> 0));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user