mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
Merge pull request #4140 from cam900/ramdac_mcfg
ramdac.cpp : Remove MCFGs
This commit is contained in:
commit
070751495f
@ -14,22 +14,6 @@
|
||||
#include "emupal.h"
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// INTERFACE CONFIGURATION MACROS
|
||||
//**************************************************************************
|
||||
|
||||
#define MCFG_RAMDAC_ADD(_tag, _map, _palette) \
|
||||
MCFG_DEVICE_ADD(_tag, RAMDAC, 0) \
|
||||
MCFG_DEVICE_ADDRESS_MAP(0, _map) \
|
||||
downcast<ramdac_device &>(*device).set_palette(_palette);
|
||||
|
||||
#define MCFG_RAMDAC_COLOR_BASE(_color_base) \
|
||||
downcast<ramdac_device &>(*device).set_color_base(_color_base);
|
||||
|
||||
#define MCFG_RAMDAC_SPLIT_READ(_split) \
|
||||
downcast<ramdac_device &>(*device).set_split_read(_split);
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// TYPE DEFINITIONS
|
||||
//**************************************************************************
|
||||
@ -41,10 +25,15 @@ class ramdac_device : public device_t,
|
||||
{
|
||||
public:
|
||||
// construction/destruction
|
||||
template <typename T>
|
||||
ramdac_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock, T &&tag)
|
||||
: ramdac_device(mconfig, tag, owner, clock)
|
||||
{
|
||||
m_palette.set_tag(std::forward<T>(tag));
|
||||
}
|
||||
ramdac_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
|
||||
|
||||
// configuration
|
||||
template <typename T> void set_palette(T &&tag) { m_palette.set_tag(std::forward<T>(tag)); }
|
||||
void set_color_base(uint32_t color_base) { m_color_base = color_base; }
|
||||
void set_split_read(int split) { m_split_read_reg = split; }
|
||||
|
||||
|
@ -629,7 +629,8 @@ MACHINE_CONFIG_START(adp_state::funland)
|
||||
|
||||
MCFG_DEVICE_REMOVE("palette")
|
||||
MCFG_PALETTE_ADD_INIT_BLACK("palette", 0x100)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &adp_state::ramdac_map);
|
||||
|
||||
MCFG_DEVICE_MODIFY("acrtc")
|
||||
MCFG_HD63484_ADDRESS_MAP(fstation_hd63484_map)
|
||||
|
@ -1661,8 +1661,9 @@ MACHINE_CONFIG_START(bfcobra_state::bfcobra)
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 256)
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") // MUSIC Semiconductor TR9C1710 RAMDAC or equivalent
|
||||
MCFG_RAMDAC_SPLIT_READ(1)
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette)); // MUSIC Semiconductor TR9C1710 RAMDAC or equivalent
|
||||
ramdac.set_addrmap(0, &bfcobra_state::ramdac_map);
|
||||
ramdac.set_split_read(1);
|
||||
|
||||
SPEAKER(config, "mono").front_center();
|
||||
|
||||
|
@ -79,6 +79,29 @@ public:
|
||||
, m_leds(*this, "led%u", 0U)
|
||||
{ }
|
||||
|
||||
void init_bankrob();
|
||||
void init_cjffruit();
|
||||
void init_deucesw2();
|
||||
void init_megadble();
|
||||
void init_bankroba();
|
||||
void init_maxidbl();
|
||||
void init_cj3play();
|
||||
void init_megadblj();
|
||||
void init_hermit();
|
||||
void init_dualgame();
|
||||
|
||||
void hermit(machine_config &config);
|
||||
void bankrob(machine_config &config);
|
||||
void cjffruit(machine_config &config);
|
||||
void steaser(machine_config &config);
|
||||
void deucesw2(machine_config &config);
|
||||
void ilpag(machine_config &config);
|
||||
void maxidbl(machine_config &config);
|
||||
void dualgame(machine_config &config);
|
||||
void bankroba(machine_config &config);
|
||||
void ramdac_config(machine_config &config);
|
||||
private:
|
||||
|
||||
DECLARE_WRITE16_MEMBER(blit_copy_w);
|
||||
DECLARE_READ8_MEMBER(blit_status_r);
|
||||
DECLARE_WRITE8_MEMBER(blit_x_w);
|
||||
@ -157,31 +180,12 @@ public:
|
||||
DECLARE_WRITE_LINE_MEMBER(crtc_vsync_irq1);
|
||||
DECLARE_WRITE_LINE_MEMBER(crtc_vsync_irq3);
|
||||
DECLARE_WRITE_LINE_MEMBER(crtc_vsync_irq5);
|
||||
void init_bankrob();
|
||||
void init_cjffruit();
|
||||
void init_deucesw2();
|
||||
void init_megadble();
|
||||
void init_bankroba();
|
||||
void init_maxidbl();
|
||||
void init_cj3play();
|
||||
void init_megadblj();
|
||||
void init_hermit();
|
||||
void init_dualgame();
|
||||
DECLARE_VIDEO_START(blitz68k);
|
||||
DECLARE_VIDEO_START(blitz68k_addr_factor1);
|
||||
uint32_t screen_update_blitz68k(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
||||
uint32_t screen_update_blitz68k_noblit(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
|
||||
TIMER_DEVICE_CALLBACK_MEMBER(steaser_mcu_sim);
|
||||
MC6845_ON_UPDATE_ADDR_CHANGED(crtc_addr);
|
||||
void hermit(machine_config &config);
|
||||
void bankrob(machine_config &config);
|
||||
void cjffruit(machine_config &config);
|
||||
void steaser(machine_config &config);
|
||||
void deucesw2(machine_config &config);
|
||||
void ilpag(machine_config &config);
|
||||
void maxidbl(machine_config &config);
|
||||
void dualgame(machine_config &config);
|
||||
void bankroba(machine_config &config);
|
||||
void bankrob_map(address_map &map);
|
||||
void bankroba_map(address_map &map);
|
||||
void cjffruit_map(address_map &map);
|
||||
@ -193,7 +197,6 @@ public:
|
||||
void ramdac_map(address_map &map);
|
||||
void steaser_map(address_map &map);
|
||||
|
||||
protected:
|
||||
virtual void machine_start() override { m_leds.resolve(); }
|
||||
|
||||
optional_shared_ptr<uint16_t> m_nvram;
|
||||
@ -1710,6 +1713,13 @@ void blitz68k_state::ramdac_map(address_map &map)
|
||||
map(0x000, 0x3ff).rw("ramdac", FUNC(ramdac_device::ramdac_pal_r), FUNC(ramdac_device::ramdac_rgb666_w));
|
||||
}
|
||||
|
||||
void blitz68k_state::ramdac_config(machine_config &config)
|
||||
{
|
||||
PALETTE(config, m_palette, 0x100);
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &blitz68k_state::ramdac_map);
|
||||
}
|
||||
|
||||
MACHINE_CONFIG_START(blitz68k_state::ilpag)
|
||||
MCFG_DEVICE_ADD(m_maincpu, M68000, 11059200 ) // ?
|
||||
MCFG_DEVICE_PROGRAM_MAP(ilpag_map)
|
||||
@ -1724,11 +1734,9 @@ MACHINE_CONFIG_START(blitz68k_state::ilpag)
|
||||
|
||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||
|
||||
MCFG_PALETTE_ADD(m_palette, 0x100)
|
||||
ramdac_config(config);
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(blitz68k_state,blitz68k)
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
/*
|
||||
@ -1799,10 +1807,9 @@ MACHINE_CONFIG_START(blitz68k_state::cjffruit)
|
||||
MCFG_MC6845_ADDR_CHANGED_CB(blitz68k_state, crtc_addr)
|
||||
MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(*this, blitz68k_state, crtc_vsync_irq1))
|
||||
|
||||
MCFG_PALETTE_ADD(m_palette, 0x100)
|
||||
ramdac_config(config);
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(blitz68k_state,blitz68k)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
@ -1831,10 +1838,9 @@ MACHINE_CONFIG_START(blitz68k_state::bankrob)
|
||||
MCFG_MC6845_ADDR_CHANGED_CB(blitz68k_state, crtc_addr)
|
||||
MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(*this, blitz68k_state, crtc_vsync_irq3))
|
||||
|
||||
MCFG_PALETTE_ADD(m_palette, 0x100)
|
||||
ramdac_config(config);
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(blitz68k_state,blitz68k)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
@ -1861,10 +1867,9 @@ MACHINE_CONFIG_START(blitz68k_state::bankroba)
|
||||
MCFG_MC6845_ADDR_CHANGED_CB(blitz68k_state, crtc_addr)
|
||||
MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(*this, blitz68k_state, crtc_vsync_irq5))
|
||||
|
||||
MCFG_PALETTE_ADD(m_palette, 0x100)
|
||||
ramdac_config(config);
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(blitz68k_state,blitz68k_addr_factor1)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
@ -1890,10 +1895,9 @@ MACHINE_CONFIG_START(blitz68k_state::deucesw2)
|
||||
MCFG_MC6845_ADDR_CHANGED_CB(blitz68k_state, crtc_addr)
|
||||
MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(*this, blitz68k_state, crtc_vsync_irq3))
|
||||
|
||||
MCFG_PALETTE_ADD(m_palette, 0x100)
|
||||
ramdac_config(config);
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(blitz68k_state,blitz68k)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
@ -1921,10 +1925,9 @@ MACHINE_CONFIG_START(blitz68k_state::dualgame)
|
||||
MCFG_MC6845_ADDR_CHANGED_CB(blitz68k_state, crtc_addr)
|
||||
MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(*this, blitz68k_state, crtc_vsync_irq3))
|
||||
|
||||
MCFG_PALETTE_ADD(m_palette, 0x100)
|
||||
ramdac_config(config);
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(blitz68k_state,blitz68k)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
@ -1950,10 +1953,9 @@ MACHINE_CONFIG_START(blitz68k_state::hermit)
|
||||
MCFG_MC6845_ADDR_CHANGED_CB(blitz68k_state, crtc_addr)
|
||||
MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(*this, blitz68k_state, crtc_vsync_irq1))
|
||||
|
||||
MCFG_PALETTE_ADD(m_palette, 0x100)
|
||||
ramdac_config(config);
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(blitz68k_state,blitz68k)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
||||
@ -1984,8 +1986,7 @@ MACHINE_CONFIG_START(blitz68k_state::maxidbl)
|
||||
MCFG_MC6845_ADDR_CHANGED_CB(blitz68k_state, crtc_addr)
|
||||
MCFG_MC6845_OUT_VSYNC_CB(WRITELINE(*this, blitz68k_state, crtc_vsync_irq3))
|
||||
|
||||
MCFG_PALETTE_ADD(m_palette, 0x100)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
ramdac_config(config);
|
||||
|
||||
SPEAKER(config, "mono").front_center();
|
||||
MCFG_SAA1099_ADD("saa", XTAL(8'000'000)/2)
|
||||
|
@ -477,8 +477,7 @@ void bmcbowl_state::bmcbowl(machine_config &config)
|
||||
screen.screen_vblank().set_inputline(m_maincpu, M68K_IRQ_2, HOLD_LINE);
|
||||
|
||||
PALETTE(config, m_palette, 256);
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0));
|
||||
ramdac.set_palette(m_palette);
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &bmcbowl_state::ramdac_map);
|
||||
|
||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_1);
|
||||
|
@ -823,7 +823,8 @@ MACHINE_CONFIG_START(bmcpokr_state::bmcpokr)
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 256)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &bmcpokr_state::ramdac_map);
|
||||
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_bmcpokr)
|
||||
|
||||
NVRAM(config, "nvram", nvram_device::DEFAULT_ALL_0);
|
||||
|
@ -386,7 +386,8 @@ MACHINE_CONFIG_START(chsuper_state::chsuper)
|
||||
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_chsuper)
|
||||
MCFG_PALETTE_ADD("palette", 0x100)
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &chsuper_state::ramdac_map);
|
||||
|
||||
/* sound hardware */
|
||||
SPEAKER(config, "speaker").front_center();
|
||||
|
@ -283,7 +283,8 @@ MACHINE_CONFIG_START(clpoker_state::clpoker)
|
||||
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, clpoker_state, vblank_w))
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 0x100)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") // HM86171
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, "palette")); // HM86171
|
||||
ramdac.set_addrmap(0, &clpoker_state::ramdac_map);
|
||||
|
||||
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_clpoker)
|
||||
|
||||
|
@ -659,10 +659,12 @@ MACHINE_CONFIG_START(coinmvga_state::coinmvga)
|
||||
MCFG_DEVICE_ADD("gfxdecode2", GFXDECODE, "palette2", gfx_coinmvga2)
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 256)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &coinmvga_state::ramdac_map);
|
||||
|
||||
MCFG_PALETTE_ADD("palette2", 16)
|
||||
MCFG_RAMDAC_ADD("ramdac2", ramdac2_map, "palette2")
|
||||
ramdac_device &ramdac2(RAMDAC(config, "ramdac2", 0, m_palette2));
|
||||
ramdac2.set_addrmap(0, &coinmvga_state::ramdac2_map);
|
||||
|
||||
/* sound hardware */
|
||||
SPEAKER(config, "lspeaker").front_left();
|
||||
|
@ -826,7 +826,8 @@ MACHINE_CONFIG_START(dunhuang_state::dunhuang)
|
||||
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_dunhuang)
|
||||
MCFG_PALETTE_ADD("palette", 0x100)
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette)); // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac.set_addrmap(0, &dunhuang_state::ramdac_map);
|
||||
|
||||
/* sound hardware */
|
||||
SPEAKER(config, "mono").front_center();
|
||||
|
@ -637,7 +637,8 @@ MACHINE_CONFIG_START(igt_gameking_state::igt_gameking)
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 0x100)
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &igt_gameking_state::ramdac_map);
|
||||
|
||||
/* sound hardware */
|
||||
SPEAKER(config, "mono").front_center();
|
||||
|
@ -1223,7 +1223,8 @@ MACHINE_CONFIG_START(highvdeo_state::tv_vcf)
|
||||
MCFG_SCREEN_UPDATE_DRIVER(highvdeo_state, screen_update_tourvisn)
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 0x100)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &highvdeo_state::ramdac_map);
|
||||
|
||||
/* sound hardware */
|
||||
SPEAKER(config, "mono").front_center();
|
||||
|
@ -252,7 +252,8 @@ MACHINE_CONFIG_START(koftball_state::koftball)
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 256)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &koftball_state::ramdac_map);
|
||||
|
||||
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_koftball)
|
||||
|
||||
|
@ -565,7 +565,8 @@ MACHINE_CONFIG_START(lastfght_state::lastfght)
|
||||
/* video hardware */
|
||||
MCFG_PALETTE_ADD( "palette", 256 )
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette)); // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac.set_addrmap(0, &lastfght_state::ramdac_map);
|
||||
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
MCFG_SCREEN_SIZE( 512, 256 )
|
||||
|
@ -1010,7 +1010,8 @@ MACHINE_CONFIG_START(magicard_state::magicard)
|
||||
MCFG_SCREEN_UPDATE_DRIVER(magicard_state, screen_update_magicard)
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 0x100)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &magicard_state::ramdac_map);
|
||||
|
||||
SPEAKER(config, "mono").front_center();
|
||||
MCFG_DEVICE_ADD("saa", SAA1099, CLOCK_B)
|
||||
|
@ -898,7 +898,8 @@ MACHINE_CONFIG_START(mediagx_state::mediagx)
|
||||
|
||||
MCFG_TIMER_DRIVER_ADD("sound_timer", mediagx_state, sound_timer_callback)
|
||||
|
||||
MCFG_RAMDAC_ADD(m_ramdac, ramdac_map, "palette")
|
||||
RAMDAC(config, m_ramdac, 0, m_palette);
|
||||
m_ramdac->set_addrmap(0, &mediagx_state::ramdac_map);
|
||||
|
||||
/* video hardware */
|
||||
MCFG_SCREEN_ADD(m_screen, RASTER)
|
||||
|
@ -345,11 +345,13 @@ MACHINE_CONFIG_START(nibble_state::nibble)
|
||||
|
||||
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_nibble)
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac1", ramdac1_map, "palette")
|
||||
MCFG_RAMDAC_COLOR_BASE(0)
|
||||
ramdac_device &ramdac1(RAMDAC(config, "ramdac1", 0, "palette"));
|
||||
ramdac1.set_addrmap(0, &nibble_state::ramdac1_map);
|
||||
ramdac1.set_color_base(0);
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac2", ramdac2_map, "palette")
|
||||
MCFG_RAMDAC_COLOR_BASE(0x100)
|
||||
ramdac_device &ramdac2(RAMDAC(config, "ramdac2", 0, "palette"));
|
||||
ramdac2.set_addrmap(0, &nibble_state::ramdac2_map);
|
||||
ramdac2.set_color_base(0x100);
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 0x200)
|
||||
|
||||
|
@ -618,7 +618,8 @@ MACHINE_CONFIG_START(pinball2k_state::mediagx)
|
||||
ide_controller_device &ide(IDE_CONTROLLER(config, "ide").options(ata_devices, "hdd", nullptr, true));
|
||||
ide.irq_handler().set("pic8259_2", FUNC(pic8259_device::ir6_w));
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
RAMDAC(config, m_ramdac, 0, m_palette);
|
||||
m_ramdac->set_addrmap(0, &pinball2k_state::ramdac_map);
|
||||
|
||||
/* video hardware */
|
||||
MCFG_SCREEN_ADD("screen", RASTER)
|
||||
|
@ -198,8 +198,9 @@ MACHINE_CONFIG_START(rltennis_state::rltennis)
|
||||
|
||||
EEPROM_2864(config, "eeprom");
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
MCFG_RAMDAC_SPLIT_READ(1)
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, "palette"));
|
||||
ramdac.set_addrmap(0, &rltennis_state::ramdac_map);
|
||||
ramdac.set_split_read(1);
|
||||
|
||||
SPEAKER(config, "speaker").front_center();
|
||||
|
||||
|
@ -408,7 +408,8 @@ MACHINE_CONFIG_START(segajw_state::segajw)
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 16)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, "palette"));
|
||||
ramdac.set_addrmap(0, &segajw_state::ramdac_map);
|
||||
|
||||
MCFG_HD63484_ADD("hd63484", 8000000, segajw_hd63484_map) // unknown clock
|
||||
|
||||
|
@ -1398,7 +1398,8 @@ MACHINE_CONFIG_START(sfbonus_state::sfbonus)
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 0x100*2) // *2 for priority workaraound / custom drawing
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &sfbonus_state::ramdac_map);
|
||||
|
||||
|
||||
/* Parrot 3 seems fine at 1 Mhz, but Double Challenge isn't? */
|
||||
|
@ -1680,11 +1680,13 @@ MACHINE_CONFIG_START(skylncr_state::skylncr)
|
||||
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_skylncr)
|
||||
MCFG_PALETTE_ADD("palette", 0x200)
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
MCFG_RAMDAC_COLOR_BASE(0)
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &nibble_state::ramdac_map);
|
||||
ramdac.set_color_base(0);
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac2", ramdac2_map, "palette")
|
||||
MCFG_RAMDAC_COLOR_BASE(0x100)
|
||||
ramdac_device &ramdac2(RAMDAC(config, "ramdac2", 0, m_palette));
|
||||
ramdac2.set_addrmap(0, &nibble_state::ramdac2_map);
|
||||
ramdac2.set_color_base(0x100);
|
||||
|
||||
/* sound hardware */
|
||||
SPEAKER(config, "mono").front_center();
|
||||
|
@ -536,8 +536,8 @@ MACHINE_CONFIG_START(sliver_state::sliver)
|
||||
MCFG_SCREEN_UPDATE_DRIVER(sliver_state, screen_update)
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 0x100)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, "palette"));
|
||||
ramdac.set_addrmap(0, &adp_state::ramdac_map);
|
||||
|
||||
SPEAKER(config, "lspeaker").front_left();
|
||||
SPEAKER(config, "rspeaker").front_right();
|
||||
|
@ -2914,7 +2914,8 @@ MACHINE_CONFIG_START(subsino_state::stbsub)
|
||||
MCFG_PALETTE_ADD("palette", 0x100)
|
||||
//MCFG_PALETTE_INIT_OWNER(subsino_state, _3proms)
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette)); // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac.set_addrmap(0, &subsino_state::ramdac_map);
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(subsino_state,stbsub)
|
||||
|
||||
|
@ -2399,7 +2399,8 @@ MACHINE_CONFIG_START(subsino2_state::bishjan)
|
||||
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_ss9601)
|
||||
MCFG_PALETTE_ADD( "palette", 256 )
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette)); // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac.set_addrmap(0, &subsino2_state::ramdac_map);
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(subsino2_state, subsino2 )
|
||||
|
||||
@ -2450,7 +2451,8 @@ MACHINE_CONFIG_START(subsino2_state::mtrain)
|
||||
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_ss9601)
|
||||
MCFG_PALETTE_ADD( "palette", 256 )
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette)); // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac.set_addrmap(0, &subsino2_state::ramdac_map);
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(subsino2_state, subsino2 )
|
||||
|
||||
@ -2484,7 +2486,8 @@ MACHINE_CONFIG_START(subsino2_state::saklove)
|
||||
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_ss9601)
|
||||
MCFG_PALETTE_ADD( "palette", 256 )
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette)); // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac.set_addrmap(0, &subsino2_state::ramdac_map);
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(subsino2_state, subsino2 )
|
||||
|
||||
@ -2522,7 +2525,8 @@ MACHINE_CONFIG_START(subsino2_state::xplan)
|
||||
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_ss9601)
|
||||
MCFG_PALETTE_ADD( "palette", 256 )
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette") // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette)); // HMC HM86171 VGA 256 colour RAMDAC
|
||||
ramdac.set_addrmap(0, &subsino2_state::ramdac_map);
|
||||
|
||||
MCFG_VIDEO_START_OVERRIDE(subsino2_state, subsino2 )
|
||||
|
||||
|
@ -106,9 +106,8 @@ void tr175_state::tr175(machine_config &config)
|
||||
duart.irq_cb().set_inputline("maincpu", M68K_IRQ_1);
|
||||
|
||||
PALETTE(config, "palette", 0x100);
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0));
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, "palette"));
|
||||
ramdac.set_addrmap(0, &tr175_state::ramdac_map);
|
||||
ramdac.set_palette("palette");
|
||||
}
|
||||
|
||||
|
||||
|
@ -479,8 +479,9 @@ MACHINE_CONFIG_START(twins_state::twins)
|
||||
MCFG_SCREEN_VBLANK_CALLBACK(INPUTLINE("maincpu", INPUT_LINE_NMI))
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 256)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
MCFG_RAMDAC_SPLIT_READ(0)
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &twins_state::ramdac_map);
|
||||
ramdac.set_split_read(0);
|
||||
|
||||
MCFG_24C02_ADD("i2cmem")
|
||||
|
||||
|
@ -759,7 +759,8 @@ MACHINE_CONFIG_START(wheelfir_state::wheelfir)
|
||||
MCFG_SCREEN_PALETTE("palette")
|
||||
|
||||
MCFG_PALETTE_ADD("palette", NUM_COLORS)
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &wheelfir_state::ramdac_map);
|
||||
|
||||
EEPROM_93C46_16BIT(config, "eeprom");
|
||||
|
||||
|
@ -482,7 +482,8 @@ MACHINE_CONFIG_START(wildpkr_state::wildpkr)
|
||||
|
||||
MCFG_HD63484_ADD("acrtc", 0, hd63484_map)
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, "palette"));
|
||||
ramdac.set_addrmap(0, &wildpkr_state::ramdac_map);
|
||||
|
||||
MCFG_PALETTE_ADD("palette", 256)
|
||||
MCFG_PALETTE_INIT_OWNER(wildpkr_state, wildpkr)
|
||||
|
@ -114,8 +114,9 @@ MACHINE_CONFIG_START(inder_vid_device::device_add_mconfig)
|
||||
|
||||
MCFG_PALETTE_ADD(m_palette, 256)
|
||||
|
||||
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
|
||||
MCFG_RAMDAC_SPLIT_READ(1)
|
||||
ramdac_device &ramdac(RAMDAC(config, "ramdac", 0, m_palette));
|
||||
ramdac.set_addrmap(0, &inder_vid_device::ramdac_map);
|
||||
ramdac.set_split_read(1);
|
||||
|
||||
MACHINE_CONFIG_END
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user