diff options
Diffstat (limited to 'src/mame/drivers/kaneko16.cpp')
-rw-r--r-- | src/mame/drivers/kaneko16.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/src/mame/drivers/kaneko16.cpp b/src/mame/drivers/kaneko16.cpp index dba608a0694..49b6ed955f4 100644 --- a/src/mame/drivers/kaneko16.cpp +++ b/src/mame/drivers/kaneko16.cpp @@ -1895,12 +1895,12 @@ MACHINE_CONFIG_START(kaneko16_berlwall_state::berlwall) MCFG_PALETTE_INIT_OWNER(kaneko16_berlwall_state,berlwall) MCFG_DEVICE_ADD("view2_0", KANEKO_TMAP, 0) - kaneko_view2_tilemap_device::set_gfx_region(*device, 1); - kaneko_view2_tilemap_device::set_offset(*device, 0x5b, -0x8, 256, 240+16); + MCFG_KANEKO_TMAP_GFX_REGION(1) + MCFG_KANEKO_TMAP_OFFSET(0x5b, -0x8, 256, 240+16) MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode") MCFG_DEVICE_ADD_VU002_SPRITES - kaneko16_sprite_device::set_offsets(*device, 0, -1*64); + MCFG_KANEKO16_SPRITE_OFFSETS(0, -1*64) MCFG_KANEKO16_SPRITE_GFXDECODE("gfxdecode") MCFG_VIDEO_START_OVERRIDE(kaneko16_berlwall_state,berlwall) @@ -1953,17 +1953,17 @@ MACHINE_CONFIG_START(kaneko16_state::bakubrkr) MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB) MCFG_DEVICE_ADD("view2_0", KANEKO_TMAP, 0) - kaneko_view2_tilemap_device::set_gfx_region(*device, 1); - kaneko_view2_tilemap_device::set_offset(*device, 0x5b, -0x8, 256, 240); + MCFG_KANEKO_TMAP_GFX_REGION(1) + MCFG_KANEKO_TMAP_OFFSET(0x5b, -0x8, 256, 240) MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode") MCFG_DEVICE_ADD("view2_1", KANEKO_TMAP, 0) - kaneko_view2_tilemap_device::set_gfx_region(*device, 2); - kaneko_view2_tilemap_device::set_offset(*device, 0x5b, -0x8, 256, 240); + MCFG_KANEKO_TMAP_GFX_REGION(2) + MCFG_KANEKO_TMAP_OFFSET(0x5b, -0x8, 256, 240) MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode") MCFG_DEVICE_ADD_VU002_SPRITES - kaneko16_sprite_device::set_priorities(*device, 8,8,8,8); // above all + MCFG_KANEKO16_SPRITE_PRIORITIES(8,8,8,8) // above all MCFG_KANEKO16_SPRITE_GFXDECODE("gfxdecode") @@ -2027,13 +2027,13 @@ MACHINE_CONFIG_START(kaneko16_state::blazeon) MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB) MCFG_DEVICE_ADD("view2_0", KANEKO_TMAP, 0) - kaneko_view2_tilemap_device::set_gfx_region(*device, 1); - kaneko_view2_tilemap_device::set_offset(*device, 0x33, 0x8, 320, 240); + MCFG_KANEKO_TMAP_GFX_REGION(1) + MCFG_KANEKO_TMAP_OFFSET(0x33, 0x8, 320, 240) MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode") MCFG_DEVICE_ADD_VU002_SPRITES - kaneko16_sprite_device::set_priorities(*device, 1 /* "above tile[0], below the others" */ ,2 /* "above tile[0-1], below the others" */ ,8 /* above all */,8 /* above all */); - kaneko16_sprite_device::set_offsets(*device, 0x10000 - 0x680, 0x000); + MCFG_KANEKO16_SPRITE_PRIORITIES(1 /* "above tile[0], below the others" */ ,2 /* "above tile[0-1], below the others" */ ,8 /* above all */,8 /* above all */) + MCFG_KANEKO16_SPRITE_OFFSETS(0x10000 - 0x680, 0x000) MCFG_KANEKO16_SPRITE_GFXDECODE("gfxdecode") // there is actually a 2nd sprite chip! looks like our device emulation handles both at once @@ -2081,13 +2081,13 @@ MACHINE_CONFIG_START(kaneko16_state::wingforc) MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB) MCFG_DEVICE_ADD("view2_0", KANEKO_TMAP, 0) - kaneko_view2_tilemap_device::set_gfx_region(*device, 1); - kaneko_view2_tilemap_device::set_offset(*device, 0x33, 0x8+1, 320, 240); + MCFG_KANEKO_TMAP_GFX_REGION(1) + MCFG_KANEKO_TMAP_OFFSET(0x33, 0x8+1, 320, 240) MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode") MCFG_DEVICE_ADD_VU002_SPRITES - kaneko16_sprite_device::set_priorities(*device, 1 /* "above tile[0], below the others" */ ,2 /* "above tile[0-1], below the others" */ ,8 /* above all */,8 /* above all */); - kaneko16_sprite_device::set_offsets(*device, 0x10000 - 0x680, 0x000); + MCFG_KANEKO16_SPRITE_PRIORITIES(1 /* "above tile[0], below the others" */ ,2 /* "above tile[0-1], below the others" */ ,8 /* above all */,8 /* above all */) + MCFG_KANEKO16_SPRITE_OFFSETS(0x10000 - 0x680, 0x000) MCFG_KANEKO16_SPRITE_GFXDECODE("gfxdecode") // there is actually a 2nd sprite chip! looks like our device emulation handles both at once @@ -2149,13 +2149,13 @@ MACHINE_CONFIG_START(kaneko16_gtmr_state::gtmr) MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB) MCFG_DEVICE_ADD("view2_0", KANEKO_TMAP, 0) - kaneko_view2_tilemap_device::set_gfx_region(*device, 1); - kaneko_view2_tilemap_device::set_offset(*device, 0x33, 0x0, 320, 240); + MCFG_KANEKO_TMAP_GFX_REGION(1) + MCFG_KANEKO_TMAP_OFFSET(0x33, 0x0, 320, 240) MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode") MCFG_DEVICE_ADD("view2_1", KANEKO_TMAP, 0) - kaneko_view2_tilemap_device::set_gfx_region(*device, 2); - kaneko_view2_tilemap_device::set_offset(*device, 0x33, 0x0, 320, 240); + MCFG_KANEKO_TMAP_GFX_REGION(2) + MCFG_KANEKO_TMAP_OFFSET(0x33, 0x0, 320, 240) MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode") MCFG_DEVICE_ADD_KC002_SPRITES @@ -2211,7 +2211,7 @@ MACHINE_CONFIG_START(kaneko16_gtmr_state::bloodwar) MCFG_MACHINE_RESET_OVERRIDE(kaneko16_gtmr_state, gtmr ) MCFG_DEVICE_MODIFY("kan_spr") - kaneko16_sprite_device::set_priorities(*device, 2 /* never used? */ ,3 /* character selection / vs. portraits */ ,5 /* winning portrait*/ ,7 /* ? */); + MCFG_KANEKO16_SPRITE_PRIORITIES(2 /* never used? */ ,3 /* character selection / vs. portraits */ ,5 /* winning portrait*/ ,7 /* ? */) @@ -2233,7 +2233,7 @@ MACHINE_CONFIG_START(kaneko16_gtmr_state::bonkadv) MCFG_MACHINE_RESET_OVERRIDE(kaneko16_gtmr_state, gtmr ) MCFG_DEVICE_MODIFY("kan_spr") - kaneko16_sprite_device::set_priorities(*device, 2 /* never used? */ ,3 /* volcano lava on level 2 */ ,5 /* in-game player */ ,7 /* demostration text */); + MCFG_KANEKO16_SPRITE_PRIORITIES(2 /* never used? */ ,3 /* volcano lava on level 2 */ ,5 /* in-game player */ ,7 /* demostration text */) MCFG_DEVICE_MODIFY("toybox") @@ -2275,17 +2275,17 @@ MACHINE_CONFIG_START(kaneko16_state::mgcrystl) MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB) MCFG_DEVICE_ADD("view2_0", KANEKO_TMAP, 0) - kaneko_view2_tilemap_device::set_gfx_region(*device, 1); - kaneko_view2_tilemap_device::set_offset(*device, 0x5b, -0x8, 256, 240); + MCFG_KANEKO_TMAP_GFX_REGION(1) + MCFG_KANEKO_TMAP_OFFSET(0x5b, -0x8, 256, 240) MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode") MCFG_DEVICE_ADD("view2_1", KANEKO_TMAP, 0) - kaneko_view2_tilemap_device::set_gfx_region(*device, 2); - kaneko_view2_tilemap_device::set_offset(*device, 0x5b, -0x8, 256, 240); + MCFG_KANEKO_TMAP_GFX_REGION(2) + MCFG_KANEKO_TMAP_OFFSET(0x5b, -0x8, 256, 240) MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode") MCFG_DEVICE_ADD_VU002_SPRITES - kaneko16_sprite_device::set_priorities(*device, 2 /* below all */ ,3 /* above tile[0], below the other */ ,5 /* above all */ ,7 /* above all */); + MCFG_KANEKO16_SPRITE_PRIORITIES(2 /* below all */ ,3 /* above tile[0], below the other */ ,5 /* above all */ ,7 /* above all */) MCFG_KANEKO16_SPRITE_GFXDECODE("gfxdecode") @@ -2406,16 +2406,16 @@ MACHINE_CONFIG_START(kaneko16_shogwarr_state::shogwarr) MCFG_PALETTE_FORMAT(xGGGGGRRRRRBBBBB) MCFG_DEVICE_ADD("view2_0", KANEKO_TMAP, 0) - kaneko_view2_tilemap_device::set_gfx_region(*device, 1); - kaneko_view2_tilemap_device::set_offset(*device, 0x33, -0x8, 320, 240); + MCFG_KANEKO_TMAP_GFX_REGION(1) + MCFG_KANEKO_TMAP_OFFSET(0x33, -0x8, 320, 240) MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode") MCFG_VIDEO_START_OVERRIDE(kaneko16_shogwarr_state,kaneko16) MCFG_DEVICE_ADD_VU002_SPRITES - kaneko16_sprite_device::set_priorities(*device, 1 /* below all */ ,3 /* above tile[0], below the others */ ,5 /* above all */ ,7 /* above all */); - kaneko16_sprite_device::set_offsets(*device, 0xa00, -0x40); - kaneko16_sprite_device::set_fliptype(*device, 1); + MCFG_KANEKO16_SPRITE_PRIORITIES(1 /* below all */ ,3 /* above tile[0], below the others */ ,5 /* above all */ ,7 /* above all */) + MCFG_KANEKO16_SPRITE_OFFSETS(0xa00, -0x40) + MCFG_KANEKO16_SPRITE_FLIPTYPE(1) MCFG_KANEKO16_SPRITE_GFXDECODE("gfxdecode") MCFG_DEVICE_ADD("kan_hit", KANEKO_HIT, 0) |