diff options
Diffstat (limited to 'src/mame/drivers')
-rw-r--r-- | src/mame/drivers/expro02.cpp | 12 | ||||
-rw-r--r-- | src/mame/drivers/galpani2.cpp | 2 | ||||
-rw-r--r-- | src/mame/drivers/galpani3.cpp | 6 | ||||
-rw-r--r-- | src/mame/drivers/inufuku.cpp | 4 | ||||
-rw-r--r-- | src/mame/drivers/jchan.cpp | 4 | ||||
-rw-r--r-- | src/mame/drivers/jclub2.cpp | 6 | ||||
-rw-r--r-- | src/mame/drivers/kaneko16.cpp | 64 | ||||
-rw-r--r-- | src/mame/drivers/sandscrp.cpp | 4 | ||||
-rw-r--r-- | src/mame/drivers/twincobr.cpp | 2 |
9 files changed, 52 insertions, 52 deletions
diff --git a/src/mame/drivers/expro02.cpp b/src/mame/drivers/expro02.cpp index 2e27f905203..37b59c6e7e4 100644 --- a/src/mame/drivers/expro02.cpp +++ b/src/mame/drivers/expro02.cpp @@ -920,13 +920,13 @@ MACHINE_CONFIG_START(expro02_state::expro02) MCFG_PALETTE_INIT_OWNER(expro02_state, expro02) 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, 224); + MCFG_KANEKO_TMAP_GFX_REGION(1) + MCFG_KANEKO_TMAP_OFFSET(0x5b, 0x8, 256, 224) MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode") MCFG_DEVICE_ADD_VU002_SPRITES - kaneko16_sprite_device::set_priorities(*device, 8,8,8,8); // above all (not verified) - kaneko16_sprite_device::set_offsets(*device, 0, -0x40); + MCFG_KANEKO16_SPRITE_PRIORITIES(8,8,8,8) // above all (not verified) + MCFG_KANEKO16_SPRITE_OFFSETS(0, -0x40) MCFG_KANEKO16_SPRITE_GFXDECODE("gfxdecode") MCFG_DEVICE_ADD("calc1_mcu", KANEKO_HIT, 0) @@ -958,8 +958,8 @@ MACHINE_CONFIG_START(expro02_state::comad) MCFG_DEVICE_MODIFY("view2_0") // these values might not be correct, behavior differs from original boards - kaneko_view2_tilemap_device::set_invert_flip(*device, 1); - kaneko_view2_tilemap_device::set_offset(*device, -256, -216, 256, 224); + MCFG_KANEKO_TMAP_INVERT_FLIP(1) + MCFG_KANEKO_TMAP_OFFSET(-256, -216, 256, 224) MCFG_WATCHDOG_MODIFY("watchdog") MCFG_WATCHDOG_TIME_INIT(attotime::from_seconds(0)) /* a guess, and certainly wrong */ diff --git a/src/mame/drivers/galpani2.cpp b/src/mame/drivers/galpani2.cpp index 5492ef0c61e..81e7a951119 100644 --- a/src/mame/drivers/galpani2.cpp +++ b/src/mame/drivers/galpani2.cpp @@ -653,7 +653,7 @@ MACHINE_CONFIG_START(galpani2_state::galpani2) MCFG_PALETTE_INIT_OWNER(galpani2_state,galpani2) MCFG_DEVICE_ADD_KC002_SPRITES - kaneko16_sprite_device::set_offsets(*device, 0x10000 - 0x16c0 + 0xc00, 0); + MCFG_KANEKO16_SPRITE_OFFSETS(0x10000 - 0x16c0 + 0xc00, 0) MCFG_KANEKO16_SPRITE_GFXDECODE("gfxdecode") diff --git a/src/mame/drivers/galpani3.cpp b/src/mame/drivers/galpani3.cpp index ef776b0529c..443710aff72 100644 --- a/src/mame/drivers/galpani3.cpp +++ b/src/mame/drivers/galpani3.cpp @@ -529,15 +529,15 @@ MACHINE_CONFIG_START(galpani3_state::galpani3) MCFG_DEVICE_ADD("spritegen", SKNS_SPRITE, 0) MCFG_DEVICE_ADD("grap2_0", KANEKO_GRAP2, 0) - kaneko_grap2_device::set_chipnum(*device, 0); + MCFG_KANEKO_GRAP2_CHIPNUM(0) MCFG_KANEKO_GRAP2_PALETTE("palette") MCFG_DEVICE_ADD("grap2_1", KANEKO_GRAP2, 0) - kaneko_grap2_device::set_chipnum(*device, 1); + MCFG_KANEKO_GRAP2_CHIPNUM(1) MCFG_KANEKO_GRAP2_PALETTE("palette") MCFG_DEVICE_ADD("grap2_2", KANEKO_GRAP2, 0) - kaneko_grap2_device::set_chipnum(*device, 2); + MCFG_KANEKO_GRAP2_CHIPNUM(2) MCFG_KANEKO_GRAP2_PALETTE("palette") diff --git a/src/mame/drivers/inufuku.cpp b/src/mame/drivers/inufuku.cpp index fdc511cc557..411ff7abca5 100644 --- a/src/mame/drivers/inufuku.cpp +++ b/src/mame/drivers/inufuku.cpp @@ -356,8 +356,8 @@ MACHINE_CONFIG_START(inufuku_state::inufuku) MCFG_SCREEN_PALETTE("palette") MCFG_DEVICE_ADD("vsystem_spr", VSYSTEM_SPR, 0) - vsystem_spr_device::set_offsets(*device, 0,1); // reference videos confirm at least the +1 against tilemaps in 3on3dunk (the highscore header text and black box are meant to be 1 pixel misaligned, although there is currently a priority bug there too) - vsystem_spr_device::set_pdraw(*device, true); + MCFG_VSYSTEM_SPR_SET_OFFSETS(0,1) // reference videos confirm at least the +1 against tilemaps in 3on3dunk (the highscore header text and black box are meant to be 1 pixel misaligned, although there is currently a priority bug there too) + MCFG_VSYSTEM_SPR_SET_PDRAW(true) MCFG_VSYSTEM_SPR_SET_TILE_INDIRECT( inufuku_state, inufuku_tile_callback ) MCFG_VSYSTEM_SPR_SET_GFXREGION(2) MCFG_VSYSTEM_SPR_GFXDECODE("gfxdecode") diff --git a/src/mame/drivers/jchan.cpp b/src/mame/drivers/jchan.cpp index 3a4c4c8bc84..9b303fa31cd 100644 --- a/src/mame/drivers/jchan.cpp +++ b/src/mame/drivers/jchan.cpp @@ -606,8 +606,8 @@ MACHINE_CONFIG_START(jchan_state::jchan) 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, 25, 11, 320, 240); + MCFG_KANEKO_TMAP_GFX_REGION(1) + MCFG_KANEKO_TMAP_OFFSET(25, 11, 320, 240) MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode") diff --git a/src/mame/drivers/jclub2.cpp b/src/mame/drivers/jclub2.cpp index b4b20cf522d..4ecd39945fa 100644 --- a/src/mame/drivers/jclub2.cpp +++ b/src/mame/drivers/jclub2.cpp @@ -1155,7 +1155,7 @@ MACHINE_CONFIG_START(jclub2o_state::jclub2o) MCFG_PALETTE_FORMAT(xBBBBBGGGGGRRRRR) MCFG_DEVICE_ADD("st0020", ST0020_SPRITES, 0) - st0020_device::static_set_is_jclub2(*device, 1); + MCFG_ST0020_IS_JCLUB2(1) MCFG_ST0020_SPRITES_PALETTE("palette") // layout @@ -1190,8 +1190,8 @@ MACHINE_CONFIG_START(jclub2_state::jclub2) // NOT an ST0020 but instead ST0032, ram format isn't compatible at least MCFG_DEVICE_ADD("st0020", ST0020_SPRITES, 0) - st0020_device::static_set_is_st0032(*device, 1); - st0020_device::static_set_is_jclub2(*device, 1); // offsets + MCFG_ST0020_IS_ST0032(1) + MCFG_ST0020_IS_JCLUB2(1) // offsets MCFG_ST0020_SPRITES_PALETTE("palette") // layout 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) diff --git a/src/mame/drivers/sandscrp.cpp b/src/mame/drivers/sandscrp.cpp index 32451c92954..7bfd0340a67 100644 --- a/src/mame/drivers/sandscrp.cpp +++ b/src/mame/drivers/sandscrp.cpp @@ -503,8 +503,8 @@ MACHINE_CONFIG_START(sandscrp_state::sandscrp) 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, 0, 256, 224); + MCFG_KANEKO_TMAP_GFX_REGION(1) + MCFG_KANEKO_TMAP_OFFSET(0x5b, 0, 256, 224) MCFG_KANEKO_TMAP_GFXDECODE("gfxdecode") MCFG_DEVICE_ADD("calc1_mcu", KANEKO_HIT, 0) diff --git a/src/mame/drivers/twincobr.cpp b/src/mame/drivers/twincobr.cpp index c3525851b5b..ae450944b82 100644 --- a/src/mame/drivers/twincobr.cpp +++ b/src/mame/drivers/twincobr.cpp @@ -730,7 +730,7 @@ MACHINE_CONFIG_START(twincobr_state::fshark) MCFG_ADDRESSABLE_LATCH_Q0_OUT_CB(WRITELINE(twincobr_state, dsp_int_w)) MCFG_DEVICE_MODIFY("scu") - toaplan_scu_device::static_set_xoffsets(*device, 32, 14); + MCFG_TOAPLAN_SCU_SET_XOFFSETS(32, 14) MACHINE_CONFIG_END |