summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/wink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/wink.c')
-rw-r--r--src/mame/drivers/wink.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mame/drivers/wink.c b/src/mame/drivers/wink.c
index a5fe0084bb4..746f9a05816 100644
--- a/src/mame/drivers/wink.c
+++ b/src/mame/drivers/wink.c
@@ -155,7 +155,7 @@ WRITE8_MEMBER(wink_state::prot_w)
static ADDRESS_MAP_START( wink_io, AS_IO, 8, wink_state )
ADDRESS_MAP_GLOBAL_MASK(0xff)
- AM_RANGE(0x00, 0x1f) AM_RAM_WRITE(paletteram_xxxxBBBBRRRRGGGG_byte_le_w) AM_SHARE("paletteram") //0x10-0x1f is likely to be something else
+ AM_RANGE(0x00, 0x1f) AM_RAM_DEVWRITE("palette", palette_device, write) AM_SHARE("palette") //0x10-0x1f is likely to be something else
// AM_RANGE(0x20, 0x20) AM_WRITENOP //??? seems unused..
AM_RANGE(0x21, 0x21) AM_WRITE(player_mux_w) //??? no mux on the pcb.
AM_RANGE(0x22, 0x22) AM_WRITE(tile_banking_w)
@@ -369,7 +369,8 @@ static MACHINE_CONFIG_START( wink, wink_state )
MCFG_SCREEN_UPDATE_DRIVER(wink_state, screen_update_wink)
MCFG_GFXDECODE_ADD("gfxdecode", wink)
- MCFG_PALETTE_LENGTH(16)
+ MCFG_PALETTE_ADD("palette", 16)
+ MCFG_PALETTE_FORMAT(xxxxBBBBRRRRGGGG)
/* sound hardware */