summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-04 11:05:13 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-04 11:05:13 +0100
commit41ec590ea670a5ac46be281382525026ad0759ab (patch)
tree21acc05c7f8548be4bdf62bd272cb8f3c7f7e2c7 /src
parent1b0ec08af5cd3b3268b5889ba4e30409431434e2 (diff)
clang-modernize part 7
Diffstat (limited to 'src')
-rw-r--r--src/mame/drivers/ace.cpp12
-rw-r--r--src/mame/drivers/aces1.cpp4
-rw-r--r--src/mame/drivers/aim65.cpp2
-rw-r--r--src/mame/drivers/apollo.cpp4
-rw-r--r--src/mame/drivers/apricotp.cpp6
-rw-r--r--src/mame/drivers/aristmk4.cpp2
-rw-r--r--src/mame/drivers/astrocde.cpp4
-rw-r--r--src/mame/drivers/avigo.cpp2
-rw-r--r--src/mame/drivers/babbage.cpp2
-rw-r--r--src/mame/drivers/bbc.cpp8
-rw-r--r--src/mame/drivers/beta.cpp4
-rw-r--r--src/mame/drivers/bfm_sc1.cpp6
-rw-r--r--src/mame/drivers/bfm_sc2.cpp8
-rw-r--r--src/mame/drivers/bfmsys85.cpp6
-rw-r--r--src/mame/drivers/bitgraph.cpp4
-rw-r--r--src/mame/drivers/buggychl.cpp2
-rw-r--r--src/mame/drivers/by35.cpp14
-rw-r--r--src/mame/drivers/c80.cpp2
-rw-r--r--src/mame/drivers/cc40.cpp8
-rw-r--r--src/mame/drivers/cinemat.cpp16
-rw-r--r--src/mame/drivers/cischeat.cpp2
-rw-r--r--src/mame/drivers/coolridr.cpp18
-rw-r--r--src/mame/drivers/cops.cpp4
-rw-r--r--src/mame/drivers/cps3.cpp22
-rw-r--r--src/mame/drivers/darius.cpp32
-rw-r--r--src/mame/drivers/destroyr.cpp4
-rw-r--r--src/mame/drivers/dlair.cpp24
-rw-r--r--src/mame/drivers/dmv.cpp28
-rw-r--r--src/mame/drivers/enmirage.cpp2
-rw-r--r--src/mame/drivers/firebeat.cpp2
-rw-r--r--src/mame/drivers/firetrk.cpp26
-rw-r--r--src/mame/drivers/galaxi.cpp8
-rw-r--r--src/mame/drivers/goldnpkr.cpp354
-rw-r--r--src/mame/drivers/goldstar.cpp44
-rw-r--r--src/mame/drivers/gp_1.cpp2
-rw-r--r--src/mame/drivers/gp_2.cpp2
-rw-r--r--src/mame/drivers/gts1.cpp4
-rw-r--r--src/mame/drivers/harddriv.cpp32
-rw-r--r--src/mame/drivers/hh_hmcs40.cpp20
-rw-r--r--src/mame/drivers/igspoker.cpp20
-rw-r--r--src/mame/drivers/jankenmn.cpp2
-rw-r--r--src/mame/drivers/jpmimpct.cpp8
-rw-r--r--src/mame/drivers/kenseim.cpp2
-rw-r--r--src/mame/drivers/kingdrby.cpp4
-rw-r--r--src/mame/drivers/llc.cpp6
-rw-r--r--src/mame/drivers/mac.cpp42
-rw-r--r--src/mame/drivers/mcr.cpp6
-rw-r--r--src/mame/drivers/mcr3.cpp4
-rw-r--r--src/mame/drivers/meadows.cpp2
-rw-r--r--src/mame/drivers/miniboy7.cpp2
-rw-r--r--src/mame/drivers/model1.cpp4
-rw-r--r--src/mame/drivers/mpf1.cpp2
-rw-r--r--src/mame/drivers/mpu3.cpp162
-rw-r--r--src/mame/drivers/mpu4vid.cpp2
-rw-r--r--src/mame/drivers/nemesis.cpp4
-rw-r--r--src/mame/drivers/neogeo.cpp12
-rw-r--r--src/mame/drivers/pcw.cpp10
-rw-r--r--src/mame/drivers/proconn.cpp2
-rw-r--r--src/mame/drivers/pve500.cpp14
-rw-r--r--src/mame/drivers/px4.cpp42
-rw-r--r--src/mame/drivers/px8.cpp4
-rw-r--r--src/mame/drivers/rainbow.cpp28
-rw-r--r--src/mame/drivers/s11.cpp2
-rw-r--r--src/mame/drivers/segaorun.cpp4
-rw-r--r--src/mame/drivers/segas32.cpp14
-rw-r--r--src/mame/drivers/segaufo.cpp10
-rw-r--r--src/mame/drivers/sms.cpp90
-rw-r--r--src/mame/drivers/subsino.cpp4
-rw-r--r--src/mame/drivers/super80.cpp2
-rw-r--r--src/mame/drivers/tatsumi.cpp2
-rw-r--r--src/mame/drivers/tavernie.cpp2
-rw-r--r--src/mame/drivers/tecnbras.cpp4
-rw-r--r--src/mame/drivers/tispeak.cpp2
-rw-r--r--src/mame/drivers/tm990189.cpp4
-rw-r--r--src/mame/drivers/topspeed.cpp2
-rw-r--r--src/mame/drivers/undrfire.cpp14
-rw-r--r--src/mame/drivers/unixpc.cpp2
-rw-r--r--src/mame/drivers/vboy.cpp2
-rw-r--r--src/mame/drivers/vcs80.cpp2
-rw-r--r--src/mame/drivers/vicdual.cpp8
-rw-r--r--src/mame/drivers/vidbrain.cpp2
-rw-r--r--src/mame/drivers/vk100.cpp2
-rw-r--r--src/mame/drivers/vt100.cpp2
-rw-r--r--src/mame/drivers/wecleman.cpp4
-rw-r--r--src/mame/drivers/wicat.cpp14
-rw-r--r--src/mame/drivers/wpc_an.cpp36
-rw-r--r--src/mame/drivers/wswan.cpp2
-rw-r--r--src/mame/drivers/x68k.cpp18
-rw-r--r--src/mame/drivers/z80ne.cpp4
-rw-r--r--src/mame/drivers/zac2650.cpp4
-rw-r--r--src/mame/machine/megacd.cpp4
-rw-r--r--src/mame/video/abc1600.cpp2
-rw-r--r--src/mame/video/apollo.cpp18
93 files changed, 706 insertions, 706 deletions
diff --git a/src/mame/drivers/ace.cpp b/src/mame/drivers/ace.cpp
index e7e93754b03..23eeb5f4d00 100644
--- a/src/mame/drivers/ace.cpp
+++ b/src/mame/drivers/ace.cpp
@@ -289,10 +289,10 @@ static const gfx_layout scorelayout =
static GFXDECODE_START( ace )
GFXDECODE_ENTRY( "gfx1", 0, charlayout, 0, 2 )
- GFXDECODE_ENTRY( NULL, 0x8000, charlayout0, 0, 2 ) /* the game dynamically modifies this */
- GFXDECODE_ENTRY( NULL, 0x8000, charlayout1, 0, 2 ) /* the game dynamically modifies this */
- GFXDECODE_ENTRY( NULL, 0x8000, charlayout2, 0, 2 ) /* the game dynamically modifies this */
- GFXDECODE_ENTRY( NULL, 0x8000, scorelayout, 0, 2 ) /* the game dynamically modifies this */
+ GFXDECODE_ENTRY( nullptr, 0x8000, charlayout0, 0, 2 ) /* the game dynamically modifies this */
+ GFXDECODE_ENTRY( nullptr, 0x8000, charlayout1, 0, 2 ) /* the game dynamically modifies this */
+ GFXDECODE_ENTRY( nullptr, 0x8000, charlayout2, 0, 2 ) /* the game dynamically modifies this */
+ GFXDECODE_ENTRY( nullptr, 0x8000, scorelayout, 0, 2 ) /* the game dynamically modifies this */
GFXDECODE_END
void aceal_state::ace_postload()
@@ -311,8 +311,8 @@ void aceal_state::machine_start()
void aceal_state::machine_reset()
{
- for (int i = 0; i < 8; i++)
- m_objpos[i] = 0;
+ for (auto & elem : m_objpos)
+ elem = 0;
}
static MACHINE_CONFIG_START( ace, aceal_state )
diff --git a/src/mame/drivers/aces1.cpp b/src/mame/drivers/aces1.cpp
index 35c6327a500..a20837b00ec 100644
--- a/src/mame/drivers/aces1.cpp
+++ b/src/mame/drivers/aces1.cpp
@@ -260,8 +260,8 @@ void aces1_state::machine_start()
m_reel_clock[reel] =0;
m_reel_phase[reel] =0;
}
- m_aces1_irq_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(aces1_state::m_aces1_irq_timer_callback),this), 0);
- m_aces1_nmi_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(aces1_state::m_aces1_nmi_timer_callback),this), 0);
+ m_aces1_irq_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(aces1_state::m_aces1_irq_timer_callback),this), nullptr);
+ m_aces1_nmi_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(aces1_state::m_aces1_nmi_timer_callback),this), nullptr);
}
void aces1_state::machine_reset()
diff --git a/src/mame/drivers/aim65.cpp b/src/mame/drivers/aim65.cpp
index 53574f6177a..7bf47669d60 100644
--- a/src/mame/drivers/aim65.cpp
+++ b/src/mame/drivers/aim65.cpp
@@ -155,7 +155,7 @@ int aim65_state::load_cart(device_image_interface &image, generic_slot_device *s
return IMAGE_INIT_FAIL;
}
- if (image.software_entry() != NULL && image.get_software_region(slot_tag) == NULL)
+ if (image.software_entry() != nullptr && image.get_software_region(slot_tag) == nullptr)
{
std::string errmsg;
strprintf(errmsg,"Attempted to load file with wrong extension\nSocket '%s' only accepts files with '.%s' extension",
diff --git a/src/mame/drivers/apollo.cpp b/src/mame/drivers/apollo.cpp
index c5c90f1ffa7..2a797604051 100644
--- a/src/mame/drivers/apollo.cpp
+++ b/src/mame/drivers/apollo.cpp
@@ -127,7 +127,7 @@ const char *apollo_cpu_context(device_t *cpu) {
static char statebuf[64]; /* string buffer containing state description */
/* if we have an executing CPU, output data */
- if (cpu != NULL) {
+ if (cpu != nullptr) {
osd_ticks_t t = osd_ticks();
int s = t / osd_ticks_per_second();
int ms = (t % osd_ticks_per_second()) / 1000;
@@ -145,7 +145,7 @@ const char *apollo_cpu_context(device_t *cpu) {
void apollo_set_cpu_has_fpu(m68000_base_device *device, int onoff)
{
- if (device == NULL || (device->type() != M68020PMMU && device->type() != M68030))
+ if (device == nullptr || (device->type() != M68020PMMU && device->type() != M68030))
{
DLOG1(("set_cpu_has_fpu: unexpected CPU device"));
}
diff --git a/src/mame/drivers/apricotp.cpp b/src/mame/drivers/apricotp.cpp
index be9384b4c04..4402eae7901 100644
--- a/src/mame/drivers/apricotp.cpp
+++ b/src/mame/drivers/apricotp.cpp
@@ -96,7 +96,7 @@ public:
m_ram(*this, RAM_TAG),
m_floppy0(*this, WD2797_TAG":0"),
m_floppy1(*this, WD2797_TAG":1"),
- m_floppy(NULL),
+ m_floppy(nullptr),
m_centronics(*this, CENTRONICS_TAG),
m_work_ram(*this, "work_ram"),
m_video_ram(*this, "video_ram")
@@ -312,7 +312,7 @@ void fp_state::lat_ls259_w(offs_t offset, int state)
{
case 0:
{
- m_floppy = NULL;
+ m_floppy = nullptr;
if (state) m_floppy = m_floppy0->get_device();
else m_floppy = m_floppy1->get_device();
@@ -637,7 +637,7 @@ static MACHINE_CONFIG_START( fp, fp_state )
MCFG_WD_FDC_DRQ_CALLBACK(DEVWRITELINE(I8237_TAG, am9517a_device, dreq1_w))
MCFG_FLOPPY_DRIVE_ADD(WD2797_TAG ":0", fp_floppies, "d32w", fp_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD(WD2797_TAG ":1", fp_floppies, NULL, fp_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD(WD2797_TAG ":1", fp_floppies, nullptr, fp_state::floppy_formats)
MCFG_CENTRONICS_ADD("centronics", centronics_devices, "printer")
MCFG_CENTRONICS_BUSY_HANDLER(WRITELINE(fp_state, write_centronics_busy))
diff --git a/src/mame/drivers/aristmk4.cpp b/src/mame/drivers/aristmk4.cpp
index 44bca24fc01..a58420ff3cc 100644
--- a/src/mame/drivers/aristmk4.cpp
+++ b/src/mame/drivers/aristmk4.cpp
@@ -731,7 +731,7 @@ static const char *const meter_sample_names[] =
{
"*3bagflvt",
"tick",
- 0
+ nullptr
};
/******************************************************************************
diff --git a/src/mame/drivers/astrocde.cpp b/src/mame/drivers/astrocde.cpp
index 0012d083afd..9d72c9a9a5f 100644
--- a/src/mame/drivers/astrocde.cpp
+++ b/src/mame/drivers/astrocde.cpp
@@ -1198,7 +1198,7 @@ static const char *const seawolf_sample_names[] =
"dive",
"sonar",
"minehit",
- 0
+ nullptr
};
/*************************************
@@ -1210,7 +1210,7 @@ static const char *const seawolf_sample_names[] =
static const z80_daisy_config tenpin_daisy_chain[] =
{
{ "ctc" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/avigo.cpp b/src/mame/drivers/avigo.cpp
index f9730f56c90..f8d23276a8b 100644
--- a/src/mame/drivers/avigo.cpp
+++ b/src/mame/drivers/avigo.cpp
@@ -867,7 +867,7 @@ static MACHINE_CONFIG_START( avigo, avigo_state )
MCFG_INS8250_OUT_RTS_CB(DEVWRITELINE("serport", rs232_port_device, write_rts))
MCFG_INS8250_OUT_INT_CB(WRITELINE(avigo_state, com_interrupt))
- MCFG_RS232_PORT_ADD( "serport", default_rs232_devices, NULL )
+ MCFG_RS232_PORT_ADD( "serport", default_rs232_devices, nullptr )
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("ns16550", ins8250_uart_device, rx_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("ns16550", ins8250_uart_device, dcd_w))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("ns16550", ins8250_uart_device, dsr_w))
diff --git a/src/mame/drivers/babbage.cpp b/src/mame/drivers/babbage.cpp
index e89bd9b3e75..8208d49e10c 100644
--- a/src/mame/drivers/babbage.cpp
+++ b/src/mame/drivers/babbage.cpp
@@ -190,7 +190,7 @@ static const z80_daisy_config babbage_daisy_chain[] =
{ "z80pio_1" },
{ "z80pio_2" },
{ "z80ctc" },
- { NULL }
+ { nullptr }
};
TIMER_DEVICE_CALLBACK_MEMBER(babbage_state::keyboard_callback)
diff --git a/src/mame/drivers/bbc.cpp b/src/mame/drivers/bbc.cpp
index a0061db3541..3deeebc5a1f 100644
--- a/src/mame/drivers/bbc.cpp
+++ b/src/mame/drivers/bbc.cpp
@@ -810,7 +810,7 @@ static MACHINE_CONFIG_START( bbca, bbc_state )
MCFG_ACIA6850_RTS_HANDLER(WRITELINE(bbc_state, bbc_rts_w))
MCFG_ACIA6850_IRQ_HANDLER(WRITELINE(bbc_state, bbcb_acia6850_irq_w))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(WRITELINE(bbc_state, write_rxd_serial))
MCFG_RS232_DCD_HANDLER(WRITELINE(bbc_state, write_dcd_serial))
MCFG_RS232_CTS_HANDLER(WRITELINE(bbc_state, write_cts_serial))
@@ -1154,7 +1154,7 @@ static MACHINE_CONFIG_START( bbcm, bbc_state )
MCFG_ACIA6850_RTS_HANDLER(WRITELINE(bbc_state, bbc_rts_w))
MCFG_ACIA6850_IRQ_HANDLER(WRITELINE(bbc_state, bbcb_acia6850_irq_w))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(WRITELINE(bbc_state, write_rxd_serial))
MCFG_RS232_DCD_HANDLER(WRITELINE(bbc_state, write_dcd_serial))
MCFG_RS232_CTS_HANDLER(WRITELINE(bbc_state, write_cts_serial))
@@ -1199,7 +1199,7 @@ static MACHINE_CONFIG_START( bbcm, bbc_state )
MCFG_ECONET_ADD()
MCFG_ECONET_CLK_CALLBACK(WRITELINE(bbc_state, econet_clk_w))
MCFG_ECONET_DATA_CALLBACK(DEVWRITELINE("mc6854", mc6854_device, set_rx))
- MCFG_ECONET_SLOT_ADD("econet254", 254, econet_devices, NULL)
+ MCFG_ECONET_SLOT_ADD("econet254", 254, econet_devices, nullptr)
MACHINE_CONFIG_END
@@ -1293,7 +1293,7 @@ static MACHINE_CONFIG_DERIVED( bbcmc, bbcm )
MCFG_FLOPPY_DRIVE_ADD("wd1772:0", bbc_floppies_35, "qd", bbc_state::floppy_formats_bbcmc)
MCFG_FLOPPY_DRIVE_SOUND(true)
- MCFG_FLOPPY_DRIVE_ADD("wd1772:1", bbc_floppies_35, NULL, bbc_state::floppy_formats_bbcmc)
+ MCFG_FLOPPY_DRIVE_ADD("wd1772:1", bbc_floppies_35, nullptr, bbc_state::floppy_formats_bbcmc)
MCFG_FLOPPY_DRIVE_SOUND(true)
/* eeprom pcd8572 */
diff --git a/src/mame/drivers/beta.cpp b/src/mame/drivers/beta.cpp
index c545a4622a8..ab0d34672be 100644
--- a/src/mame/drivers/beta.cpp
+++ b/src/mame/drivers/beta.cpp
@@ -300,7 +300,7 @@ DEVICE_IMAGE_LOAD_MEMBER( beta_state, beta_eprom )
DEVICE_IMAGE_UNLOAD_MEMBER( beta_state, beta_eprom )
{
- if (image.software_entry() == NULL)
+ if (image.software_entry() == nullptr)
image.fwrite(&m_eprom_rom[0], 0x800);
}
@@ -355,7 +355,7 @@ static MACHINE_CONFIG_START( beta, beta_state )
MCFG_MOS6530n_IRQ_CB(INPUTLINE(M6502_TAG, M6502_IRQ_LINE))
/* EPROM socket */
- MCFG_GENERIC_CARTSLOT_ADD(EPROM_TAG, generic_plain_slot, NULL)
+ MCFG_GENERIC_CARTSLOT_ADD(EPROM_TAG, generic_plain_slot, nullptr)
MCFG_GENERIC_EXTENSIONS("bin,rom")
MCFG_GENERIC_LOAD(beta_state, beta_eprom)
MCFG_GENERIC_UNLOAD(beta_state, beta_eprom)
diff --git a/src/mame/drivers/bfm_sc1.cpp b/src/mame/drivers/bfm_sc1.cpp
index e6c8de85375..ed3e3162b74 100644
--- a/src/mame/drivers/bfm_sc1.cpp
+++ b/src/mame/drivers/bfm_sc1.cpp
@@ -1147,9 +1147,9 @@ int bfm_sc1_state::sc1_find_project_string( )
UINT8 *src = memregion( "maincpu" )->base();
int size = memregion( "maincpu" )->bytes();
- for (int search=0;search<7;search++)
+ for (auto & elem : title_string)
{
- int strlength = strlen(title_string[search]);
+ int strlength = strlen(elem);
for (int i=0;i<size-strlength;i++)
{
@@ -1158,7 +1158,7 @@ int bfm_sc1_state::sc1_find_project_string( )
for (j=0;j<strlength;j+=1)
{
UINT8 rom = src[(i+j)];
- UINT8 chr = title_string[search][j];
+ UINT8 chr = elem[j];
if (rom != chr)
{
diff --git a/src/mame/drivers/bfm_sc2.cpp b/src/mame/drivers/bfm_sc2.cpp
index e96c5f86687..e365def5de6 100644
--- a/src/mame/drivers/bfm_sc2.cpp
+++ b/src/mame/drivers/bfm_sc2.cpp
@@ -2136,7 +2136,7 @@ INPUT_PORTS_END
MACHINE_START_MEMBER(bfm_sc2_state,bfm_sc2)
{
nvram_device *e2ram = subdevice<nvram_device>("e2ram");
- if (e2ram != NULL)
+ if (e2ram != nullptr)
e2ram->set_base(m_e2ram, sizeof(m_e2ram));
save_state();
@@ -2179,9 +2179,9 @@ int bfm_sc2_state::sc2_find_project_string( )
UINT8 *src = memregion( "maincpu" )->base();
int size = memregion( "maincpu" )->bytes();
- for (int search=0;search<4;search++)
+ for (auto & elem : title_string)
{
- int strlength = strlen(title_string[search]);
+ int strlength = strlen(elem);
for (int i=0;i<size-strlength;i++)
{
@@ -2190,7 +2190,7 @@ int bfm_sc2_state::sc2_find_project_string( )
for (j=0;j<strlength;j+=1)
{
UINT8 rom = src[(i+j)];
- UINT8 chr = title_string[search][j];
+ UINT8 chr = elem[j];
if (rom != chr)
{
diff --git a/src/mame/drivers/bfmsys85.cpp b/src/mame/drivers/bfmsys85.cpp
index a7277d535b7..296a726a73d 100644
--- a/src/mame/drivers/bfmsys85.cpp
+++ b/src/mame/drivers/bfmsys85.cpp
@@ -671,9 +671,9 @@ int bfmsys85_state::b85_find_project_string( )
UINT8 *src = memregion( "maincpu" )->base();
int size = memregion( "maincpu" )->bytes();
- for (int search=0;search<7;search++)
+ for (auto & elem : title_string)
{
- int strlength = strlen(title_string[search]);
+ int strlength = strlen(elem);
for (int i=0;i<size-strlength;i++)
{
@@ -682,7 +682,7 @@ int bfmsys85_state::b85_find_project_string( )
for (j=0;j<strlength;j+=1)
{
UINT8 rom = src[(i+j)];
- UINT8 chr = title_string[search][j];
+ UINT8 chr = elem[j];
if (rom != chr)
{
diff --git a/src/mame/drivers/bitgraph.cpp b/src/mame/drivers/bitgraph.cpp
index 8209fe9f20c..453dcd5469a 100644
--- a/src/mame/drivers/bitgraph.cpp
+++ b/src/mame/drivers/bitgraph.cpp
@@ -495,7 +495,7 @@ static MACHINE_CONFIG_FRAGMENT( bg_motherboard )
MCFG_ACIA6850_RTS_HANDLER(DEVWRITELINE(RS232_D_TAG, rs232_port_device, write_rts))
MCFG_ACIA6850_IRQ_HANDLER(DEVWRITELINE(M68K_TAG, m68000_device, write_irq1))
- MCFG_RS232_PORT_ADD(RS232_D_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_D_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(ACIA2_TAG, acia6850_device, write_rxd))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(ACIA2_TAG, acia6850_device, write_dcd))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(ACIA2_TAG, acia6850_device, write_cts))
@@ -558,7 +558,7 @@ static MACHINE_CONFIG_START( bitgrpha, bitgraph_state )
MCFG_ACIA6850_RTS_HANDLER(DEVWRITELINE(RS232_M_TAG, rs232_port_device, write_rts))
MCFG_ACIA6850_IRQ_HANDLER(DEVWRITELINE(M68K_TAG, m68000_device, write_irq1))
- MCFG_RS232_PORT_ADD(RS232_M_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_M_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE(ACIA3_TAG, acia6850_device, write_rxd))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE(ACIA3_TAG, acia6850_device, write_dcd))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE(ACIA3_TAG, acia6850_device, write_cts))
diff --git a/src/mame/drivers/buggychl.cpp b/src/mame/drivers/buggychl.cpp
index 81e2232da8a..6892af92550 100644
--- a/src/mame/drivers/buggychl.cpp
+++ b/src/mame/drivers/buggychl.cpp
@@ -303,7 +303,7 @@ static const gfx_layout spritelayout =
};
static GFXDECODE_START( buggychl )
- GFXDECODE_ENTRY( NULL, 0, charlayout, 0, 8 ) /* decoded at runtime */
+ GFXDECODE_ENTRY( nullptr, 0, charlayout, 0, 8 ) /* decoded at runtime */
/* sprites are drawn pixel by pixel by draw_sprites() */
GFXDECODE_ENTRY( "gfx1", 0, spritelayout, 0, 8 )
GFXDECODE_END
diff --git a/src/mame/drivers/by35.cpp b/src/mame/drivers/by35.cpp
index 923b11470fb..265b3d77c77 100644
--- a/src/mame/drivers/by35.cpp
+++ b/src/mame/drivers/by35.cpp
@@ -414,7 +414,7 @@ static INPUT_PORTS_START( playboy )
PORT_DIPSETTING( 0x40, "Extra Ball or Special Held Until Collected")
PORT_MODIFY("X0") /* Drop Target switches */
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, by35_state, drop_target_x0, (void *)0x00) // PORT_CODE(KEYCODE_STOP)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, by35_state, drop_target_x0, (void *)nullptr) // PORT_CODE(KEYCODE_STOP)
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, by35_state, drop_target_x0, (void *)0x01) // PORT_CODE(KEYCODE_SLASH)
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, by35_state, drop_target_x0, (void *)0x02) // PORT_CODE(KEYCODE_OPENBRACE)
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_CUSTOM_MEMBER(DEVICE_SELF, by35_state, drop_target_x0, (void *)0x03) // PORT_CODE(KEYCODE_CLOSEBRACE)
@@ -2193,7 +2193,7 @@ ROM_START(skflight)
ROM_RELOAD(0x28000, 0x8000)
ROM_RELOAD(0x38000, 0x8000)
ROM_REGION(0x10000, "cpu2", 0)
- ROM_COPY("sound1", 0x0000, 0x8000,0x8000)
+ ROM_COPY("sound1", nullptr, 0x8000,0x8000)
ROM_END
/*--------------------------------
@@ -2216,7 +2216,7 @@ ROM_START(cobrap)
ROM_LOAD("snd_u11.256",0x18000,0x8000, CRC(d4da383c) SHA1(032a4a425936d5c822fba6e46483f03a87c1a6ec))
ROM_RELOAD(0x38000, 0x8000)
ROM_REGION(0x10000, "cpu2", 0)
- ROM_COPY("sound1", 0x0000, 0x8000,0x8000)
+ ROM_COPY("sound1", nullptr, 0x8000,0x8000)
ROM_END
/*--------------------------------
@@ -2243,7 +2243,7 @@ ROM_START(futrquen)
ROM_LOAD("snd_u11.bin",0x18000,0x8000, CRC(71d98d17) SHA1(9575b80a91a67b1644e909f70d364e0a75f73b02))
ROM_RELOAD(0x38000, 0x8000)
ROM_REGION(0x10000, "cpu2", 0)
- ROM_COPY("sound1", 0x0000, 0x8000,0x8000)
+ ROM_COPY("sound1", nullptr, 0x8000,0x8000)
ROM_END
/*--------------------------------
/ F1 Grand Prix
@@ -2267,7 +2267,7 @@ ROM_START(f1gpp)
ROM_LOAD("snd_u11a",0x38000,0x8000, CRC(884dc754) SHA1(b121476ea621eae7a7ba0b9a1b5e87051e1e9e3d))
ROM_LOAD("snd_u11b",0x18000,0x8000, CRC(2394b498) SHA1(bf0884a6556a27791e7e801051be5975dd6b95c4))
ROM_REGION(0x10000, "cpu2", 0)
- ROM_COPY("sound1", 0x0000, 0x8000,0x8000)
+ ROM_COPY("sound1", nullptr, 0x8000,0x8000)
ROM_END
/*--------------------------------
@@ -2294,7 +2294,7 @@ ROM_START(toppin)
ROM_LOAD("snd_u11.bin",0x18000,0x8000, CRC(1814a50d) SHA1(6fe22e774fa90725d0db9f1020bad88bae0ef85c))
ROM_RELOAD(0x38000, 0x8000)
ROM_REGION(0x10000, "cpu2", 0)
- ROM_COPY("sound1", 0x0000, 0x8000,0x8000)
+ ROM_COPY("sound1", nullptr, 0x8000,0x8000)
ROM_END
/*--------------------------------
@@ -2319,7 +2319,7 @@ ROM_START(uboat65)
ROM_RELOAD(0x28000, 0x8000)
ROM_RELOAD(0x38000, 0x8000)
ROM_REGION(0x10000, "cpu2", 0)
- ROM_COPY("sound1", 0x0000, 0x8000,0x8000)
+ ROM_COPY("sound1", nullptr, 0x8000,0x8000)
ROM_END
/*--------------------------------
/ Big Ball Bowling (Bowler)
diff --git a/src/mame/drivers/c80.cpp b/src/mame/drivers/c80.cpp
index 4af7ab0c6db..028bcb5c803 100644
--- a/src/mame/drivers/c80.cpp
+++ b/src/mame/drivers/c80.cpp
@@ -230,7 +230,7 @@ static const z80_daisy_config c80_daisy_chain[] =
{
{ Z80PIO1_TAG },
{ Z80PIO2_TAG },
- { NULL }
+ { nullptr }
};
/* Machine Initialization */
diff --git a/src/mame/drivers/cc40.cpp b/src/mame/drivers/cc40.cpp
index d92970de3c2..80bfd0c82f1 100644
--- a/src/mame/drivers/cc40.cpp
+++ b/src/mame/drivers/cc40.cpp
@@ -95,8 +95,8 @@ public:
m_key_matrix(*this, "IN"),
m_battery_inp(*this, "BATTERY")
{
- m_sysram[0] = NULL;
- m_sysram[1] = NULL;
+ m_sysram[0] = nullptr;
+ m_sysram[1] = nullptr;
}
required_device<tms70c20_device> m_maincpu;
@@ -402,7 +402,7 @@ INPUT_CHANGED_MEMBER(cc40_state::sysram_size_changed)
static INPUT_PORTS_START( cc40 )
PORT_START("RAMSIZE")
- PORT_CONFNAME( 0x07, 0x01, "RAM Chip 1") PORT_CHANGED_MEMBER(DEVICE_SELF, cc40_state, sysram_size_changed, (void *)0)
+ PORT_CONFNAME( 0x07, 0x01, "RAM Chip 1") PORT_CHANGED_MEMBER(DEVICE_SELF, cc40_state, sysram_size_changed, (void *)nullptr)
PORT_CONFSETTING( 0x00, "None" )
PORT_CONFSETTING( 0x01, "2KB" )
PORT_CONFSETTING( 0x04, "8KB" )
@@ -520,7 +520,7 @@ void cc40_state::machine_reset()
void cc40_state::init_sysram(int chip, UINT16 size)
{
- if (m_sysram[chip] == NULL)
+ if (m_sysram[chip] == nullptr)
{
// init to largest possible
m_sysram[chip] = auto_alloc_array(machine(), UINT8, 0x2000);
diff --git a/src/mame/drivers/cinemat.cpp b/src/mame/drivers/cinemat.cpp
index 36bd8829843..3273f5fef8f 100644
--- a/src/mame/drivers/cinemat.cpp
+++ b/src/mame/drivers/cinemat.cpp
@@ -209,19 +209,19 @@ static const struct
} sundance_port_map[16] =
{
{ "PAD1", 0x155 }, /* bit 0 is set if P1 1,3,5,7,9 is pressed */
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
- { NULL, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
+ { nullptr, 0 },
{ "PAD2", 0x1a1 }, /* bit 8 is set if P2 1,6,8,9 is pressed */
{ "PAD1", 0x1a1 }, /* bit 9 is set if P1 1,6,8,9 is pressed */
{ "PAD2", 0x155 }, /* bit 10 is set if P2 1,3,5,7,9 is pressed */
- { NULL, 0 },
+ { nullptr, 0 },
{ "PAD1", 0x093 }, /* bit 12 is set if P1 1,2,5,8 is pressed */
{ "PAD2", 0x093 }, /* bit 13 is set if P2 1,2,5,8 is pressed */
diff --git a/src/mame/drivers/cischeat.cpp b/src/mame/drivers/cischeat.cpp
index 436acc4eb92..cc74b05727f 100644
--- a/src/mame/drivers/cischeat.cpp
+++ b/src/mame/drivers/cischeat.cpp
@@ -1383,7 +1383,7 @@ static const gfx_layout road_layout =
{ 0 },
64*1*4,
road_layout_xoffset,
- NULL
+ nullptr
};
/**************************************************************************
diff --git a/src/mame/drivers/coolridr.cpp b/src/mame/drivers/coolridr.cpp
index 7e9d216dc67..09588aab9a2 100644
--- a/src/mame/drivers/coolridr.cpp
+++ b/src/mame/drivers/coolridr.cpp
@@ -560,7 +560,7 @@ void coolridr_state::video_start()
{
/* find first empty slot to decode gfx */
for (m_gfx_index = 0; m_gfx_index < MAX_GFX_ELEMENTS; m_gfx_index++)
- if (m_gfxdecode->gfx(m_gfx_index) == 0)
+ if (m_gfxdecode->gfx(m_gfx_index) == nullptr)
break;
m_screen->register_screen_bitmap(m_temp_bitmap_sprites);
@@ -1451,7 +1451,7 @@ void *coolridr_state::draw_object_threaded(void *param, int threadid)
free (object);
- return NULL;
+ return nullptr;
}
/************* object->spriteblit[9] *************/
@@ -2137,7 +2137,7 @@ void *coolridr_state::draw_object_threaded(void *param, int threadid)
free (object);
- return NULL;
+ return nullptr;
}
@@ -2266,7 +2266,7 @@ void coolridr_state::blit_current_sprite(address_space &space)
}
else
{
- testobject->indirect_tiles = NULL;
+ testobject->indirect_tiles = nullptr;
}
int test_indirect_zoom_enable = (m_spriteblit[5] & 0x00000001);
@@ -2283,7 +2283,7 @@ void coolridr_state::blit_current_sprite(address_space &space)
}
else
{
- testobject->indirect_zoom = NULL;
+ testobject->indirect_zoom = nullptr;
}
testobject->zpri = m_blitterAddr | m_blittype<<12;
@@ -3812,10 +3812,10 @@ ROM_START( coolridr )
ROM_LOAD16_WORD_SWAP( "mpr-17645.ic6", 0x2400000, 0x0400000, CRC(56968d07) SHA1(e88c3d66ea05affb4681a25d155f097bd1b5a84b) ) // 0049
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
/*
@@ -3856,10 +3856,10 @@ ROM_START( aquastge )
ROM_LOAD16_WORD_SWAP( "mpr-18290.ic6", 0x2400000, 0x0200000, CRC(11f7adb0) SHA1(a72f9892f93506456edc7ffc66224446a58ca38b) ) // 0049
ROM_REGION( 0x80000, "scsp1", 0 ) /* first SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_REGION( 0x80000, "scsp2", 0 ) /* second SCSP's RAM */
- ROM_FILL( 0x000000, 0x80000, 0 )
+ ROM_FILL( 0x000000, 0x80000, nullptr )
ROM_END
diff --git a/src/mame/drivers/cops.cpp b/src/mame/drivers/cops.cpp
index eb156f80377..8fd5dcfcd70 100644
--- a/src/mame/drivers/cops.cpp
+++ b/src/mame/drivers/cops.cpp
@@ -330,9 +330,9 @@ void cops_state::laserdisc_w(UINT8 data)
laserdisc_response_w(0x0a);
break;
case 0x60: /* Addr Inq (get current frame number) */
- for ( int i = 0; i < 5; i++ )
+ for (auto & elem : m_ld_frame)
{
- laserdisc_response_w(m_ld_frame[i]);
+ laserdisc_response_w(elem);
}
break;
case 0x80: /* text start */
diff --git a/src/mame/drivers/cps3.cpp b/src/mame/drivers/cps3.cpp
index 0ceb465acb9..aeb038e8199 100644
--- a/src/mame/drivers/cps3.cpp
+++ b/src/mame/drivers/cps3.cpp
@@ -1003,7 +1003,7 @@ void cps3_state::cps3_draw_tilemapsprite_line(int tmnum, int drawline, bitmap_rg
if (!bpp) m_gfxdecode->gfx(1)->set_granularity(256);
else m_gfxdecode->gfx(1)->set_granularity(64);
- cps3_drawgfxzoom(bitmap,clip,m_gfxdecode->gfx(1),tileno,colour,xflip,yflip,(x*16)-scrollx%16,drawline-tilesubline,CPS3_TRANSPARENCY_PEN_INDEX,0, 0x10000, 0x10000, NULL, 0);
+ cps3_drawgfxzoom(bitmap,clip,m_gfxdecode->gfx(1),tileno,colour,xflip,yflip,(x*16)-scrollx%16,drawline-tilesubline,CPS3_TRANSPARENCY_PEN_INDEX,0, 0x10000, 0x10000, nullptr, 0);
}
}
}
@@ -1243,11 +1243,11 @@ UINT32 cps3_state::screen_update_cps3(screen_device &screen, bitmap_rgb32 &bitma
if (global_alpha || alpha)
{
- cps3_drawgfxzoom(m_renderbuffer_bitmap,m_renderbuffer_clip,m_gfxdecode->gfx(1),realtileno,actualpal,0^flipx,0^flipy,current_xpos,current_ypos,CPS3_TRANSPARENCY_PEN_INDEX_BLEND,0,xinc,yinc, NULL, 0);
+ cps3_drawgfxzoom(m_renderbuffer_bitmap,m_renderbuffer_clip,m_gfxdecode->gfx(1),realtileno,actualpal,0^flipx,0^flipy,current_xpos,current_ypos,CPS3_TRANSPARENCY_PEN_INDEX_BLEND,0,xinc,yinc, nullptr, 0);
}
else
{
- cps3_drawgfxzoom(m_renderbuffer_bitmap,m_renderbuffer_clip,m_gfxdecode->gfx(1),realtileno,actualpal,0^flipx,0^flipy,current_xpos,current_ypos,CPS3_TRANSPARENCY_PEN_INDEX,0,xinc,yinc, NULL, 0);
+ cps3_drawgfxzoom(m_renderbuffer_bitmap,m_renderbuffer_clip,m_gfxdecode->gfx(1),realtileno,actualpal,0^flipx,0^flipy,current_xpos,current_ypos,CPS3_TRANSPARENCY_PEN_INDEX,0,xinc,yinc, nullptr, 0);
}
count++;
}
@@ -1313,7 +1313,7 @@ UINT32 cps3_state::screen_update_cps3(screen_device &screen, bitmap_rgb32 &bitma
pal += m_ss_pal_base << 5;
tile+=0x200;
- cps3_drawgfxzoom(bitmap, cliprect, m_gfxdecode->gfx(0),tile,pal,flipx,flipy,x*8,y*8,CPS3_TRANSPARENCY_PEN,0,0x10000,0x10000,NULL,0);
+ cps3_drawgfxzoom(bitmap, cliprect, m_gfxdecode->gfx(0),tile,pal,flipx,flipy,x*8,y*8,CPS3_TRANSPARENCY_PEN,0,0x10000,0x10000,nullptr,0);
count++;
}
}
@@ -1403,7 +1403,7 @@ READ32_MEMBER(cps3_state::cps3_gfxflash_r)
fujitsu_29f016a_device *chip0 = m_simm[2 + m_cram_gfxflash_bank/8][(m_cram_gfxflash_bank % 8) & ~1];
fujitsu_29f016a_device *chip1 = m_simm[2 + m_cram_gfxflash_bank/8][(m_cram_gfxflash_bank % 8) | 1];
- if (chip0 == NULL || chip1 == NULL)
+ if (chip0 == nullptr || chip1 == nullptr)
return 0xffffffff;
if(DEBUG_PRINTF) printf("gfxflash_r\n");
@@ -1441,7 +1441,7 @@ WRITE32_MEMBER(cps3_state::cps3_gfxflash_w)
fujitsu_29f016a_device *chip0 = m_simm[2 + m_cram_gfxflash_bank/8][(m_cram_gfxflash_bank % 8) & ~1];
fujitsu_29f016a_device *chip1 = m_simm[2 + m_cram_gfxflash_bank/8][(m_cram_gfxflash_bank % 8) | 1];
- if (chip0 == NULL || chip1 == NULL)
+ if (chip0 == nullptr || chip1 == nullptr)
return;
// if(DEBUG_PRINTF) printf("cps3_gfxflash_w %08x %08x %08x\n", offset *2, data, mem_mask);
@@ -1496,7 +1496,7 @@ UINT32 cps3_state::cps3_flashmain_r(address_space &space, int which, UINT32 offs
{
UINT32 result = 0;
- if (m_simm[which][0] == NULL || m_simm[which][1] == NULL || m_simm[which][2] == NULL || m_simm[which][3] == NULL)
+ if (m_simm[which][0] == nullptr || m_simm[which][1] == nullptr || m_simm[which][2] == nullptr || m_simm[which][3] == nullptr)
return 0xffffffff;
if (ACCESSING_BITS_24_31) // Flash 1
@@ -1551,7 +1551,7 @@ void cps3_state::cps3_flashmain_w(int which, UINT32 offset, UINT32 data, UINT32
{
int command;
- if (m_simm[which][0] == NULL || m_simm[which][1] == NULL || m_simm[which][2] == NULL || m_simm[which][3] == NULL)
+ if (m_simm[which][0] == nullptr || m_simm[which][1] == nullptr || m_simm[which][2] == nullptr || m_simm[which][3] == nullptr)
return;
if (ACCESSING_BITS_24_31) // Flash 1
@@ -2324,7 +2324,7 @@ void cps3_state::copy_from_nvram()
romdata += 0x800000/4;
romdata2 += 0x800000/4;
- if (m_simm[1][0] != NULL)
+ if (m_simm[1][0] != nullptr)
for (i=0;i<0x800000;i+=4)
{
UINT32 data;
@@ -2349,9 +2349,9 @@ void cps3_state::copy_from_nvram()
fujitsu_29f016a_device *flash0 = m_simm[2 + flashnum/8][flashnum % 8 + 0];
fujitsu_29f016a_device *flash1 = m_simm[2 + flashnum/8][flashnum % 8 + 1];
- if (flash0 == NULL || flash1 == NULL)
+ if (flash0 == nullptr || flash1 == nullptr)
continue;
- if (flash0 != NULL && flash1 != NULL)
+ if (flash0 != nullptr && flash1 != nullptr)
{
for (i=0;i<0x200000;i+=2)
{
diff --git a/src/mame/drivers/darius.cpp b/src/mame/drivers/darius.cpp
index abe9cbf84fd..25720a28a2d 100644
--- a/src/mame/drivers/darius.cpp
+++ b/src/mame/drivers/darius.cpp
@@ -295,9 +295,9 @@ void darius_state::update_fm0( )
int left = ( m_pan[0] * m_vol[6]) >> 8;
int right = ((0xff - m_pan[0]) * m_vol[6]) >> 8;
- if (m_filter0_3l != NULL)
+ if (m_filter0_3l != nullptr)
m_filter0_3l->flt_volume_set_volume(left / 100.0);
- if (m_filter0_3r != NULL)
+ if (m_filter0_3r != nullptr)
m_filter0_3r->flt_volume_set_volume(right / 100.0); /* FM #0 */
}
@@ -306,15 +306,15 @@ void darius_state::update_fm1( )
int left = ( m_pan[1] * m_vol[7]) >> 8;
int right = ((0xff - m_pan[1]) * m_vol[7]) >> 8;
- if (m_filter1_3l != NULL)
+ if (m_filter1_3l != nullptr)
m_filter1_3l->flt_volume_set_volume(left / 100.0);
- if (m_filter1_3r != NULL)
+ if (m_filter1_3r != nullptr)
m_filter1_3r->flt_volume_set_volume(right / 100.0); /* FM #1 */
}
void darius_state::update_psg0( int port )
{
- filter_volume_device *lvol = NULL, *rvol = NULL;
+ filter_volume_device *lvol = nullptr, *rvol = nullptr;
int left, right;
switch (port)
@@ -328,15 +328,15 @@ void darius_state::update_psg0( int port )
left = ( m_pan[2] * m_vol[port]) >> 8;
right = ((0xff - m_pan[2]) * m_vol[port]) >> 8;
- if (lvol != NULL)
+ if (lvol != nullptr)
lvol->flt_volume_set_volume(left / 100.0);
- if (rvol != NULL)
+ if (rvol != nullptr)
rvol->flt_volume_set_volume(right / 100.0);
}
void darius_state::update_psg1( int port )
{
- filter_volume_device *lvol = NULL, *rvol = NULL;
+ filter_volume_device *lvol = nullptr, *rvol = nullptr;
int left, right;
switch (port)
@@ -350,9 +350,9 @@ void darius_state::update_psg1( int port )
left = ( m_pan[3] * m_vol[port + 3]) >> 8;
right = ((0xff - m_pan[3]) * m_vol[port + 3]) >> 8;
- if (lvol != NULL)
+ if (lvol != nullptr)
lvol->flt_volume_set_volume(left / 100.0);
- if (rvol != NULL)
+ if (rvol != nullptr)
rvol->flt_volume_set_volume(right / 100.0);
}
@@ -361,9 +361,9 @@ void darius_state::update_da( )
int left = m_def_vol[(m_pan[4] >> 4) & 0x0f];
int right = m_def_vol[(m_pan[4] >> 0) & 0x0f];
- if (m_msm5205_l != NULL)
+ if (m_msm5205_l != nullptr)
m_msm5205_l->flt_volume_set_volume(left / 100.0);
- if (m_msm5205_r != NULL)
+ if (m_msm5205_r != nullptr)
m_msm5205_r->flt_volume_set_volume(right / 100.0);
}
@@ -729,11 +729,11 @@ void darius_state::machine_reset()
machine().sound().system_enable(true); /* mixer enabled */
- for (int i = 0; i < DARIUS_VOL_MAX; i++)
- m_vol[i] = 0x00; /* min volume */
+ for (auto & elem : m_vol)
+ elem = 0x00; /* min volume */
- for (int i = 0; i < DARIUS_PAN_MAX; i++)
- m_pan[i] = 0x80; /* center */
+ for (auto & elem : m_pan)
+ elem = 0x80; /* center */
for (int i = 0; i < 0x10; i++)
{
diff --git a/src/mame/drivers/destroyr.cpp b/src/mame/drivers/destroyr.cpp
index 9501892bbc1..fc97145bc21 100644
--- a/src/mame/drivers/destroyr.cpp
+++ b/src/mame/drivers/destroyr.cpp
@@ -422,7 +422,7 @@ static const gfx_layout destroyr_major_object_layout =
},
0x0800, /* increment */
destroyr_major_object_layout_xoffset,
- NULL
+ nullptr
};
static const UINT32 destroyr_waves_layout_xoffset[64] =
@@ -447,7 +447,7 @@ static const gfx_layout destroyr_waves_layout =
{ 0x00, 0x80 },
0x04, /* increment */
destroyr_waves_layout_xoffset,
- NULL
+ nullptr
};
diff --git a/src/mame/drivers/dlair.cpp b/src/mame/drivers/dlair.cpp
index 3ee1592d525..54d89029efb 100644
--- a/src/mame/drivers/dlair.cpp
+++ b/src/mame/drivers/dlair.cpp
@@ -74,22 +74,22 @@ public:
void laserdisc_data_w(UINT8 data)
{
- if (m_ldv1000 != NULL) m_ldv1000->data_w(data);
- if (m_pr7820 != NULL) m_pr7820->data_w(data);
- if (m_22vp932 != NULL) m_22vp932->data_w(data);
+ if (m_ldv1000 != nullptr) m_ldv1000->data_w(data);
+ if (m_pr7820 != nullptr) m_pr7820->data_w(data);
+ if (m_22vp932 != nullptr) m_22vp932->data_w(data);
}
void laserdisc_enter_w(UINT8 data)
{
- if (m_pr7820 != NULL) m_pr7820->enter_w(data);
- if (m_22vp932 != NULL) m_22vp932->enter_w(data);
+ if (m_pr7820 != nullptr) m_pr7820->enter_w(data);
+ if (m_22vp932 != nullptr) m_22vp932->enter_w(data);
}
UINT8 laserdisc_data_r()
{
- if (m_ldv1000 != NULL) return m_ldv1000->status_r();
- if (m_pr7820 != NULL) return m_pr7820->data_r();
- if (m_22vp932 != NULL) return m_22vp932->data_r();
+ if (m_ldv1000 != nullptr) return m_ldv1000->status_r();
+ if (m_pr7820 != nullptr) return m_pr7820->data_r();
+ if (m_22vp932 != nullptr) return m_22vp932->data_r();
return 0;
}
@@ -100,14 +100,14 @@ public:
UINT8 laserdisc_status_r()
{
- if (m_ldv1000 != NULL) return m_ldv1000->status_strobe_r();
+ if (m_ldv1000 != nullptr) return m_ldv1000->status_strobe_r();
return CLEAR_LINE;
}
UINT8 laserdisc_ready_r()
{
- if (m_ldv1000 != NULL) return m_ldv1000->command_strobe_r();
- if (m_pr7820 != NULL) return m_pr7820->ready_r();
+ if (m_ldv1000 != nullptr) return m_ldv1000->command_strobe_r();
+ if (m_pr7820 != nullptr) return m_pr7820->ready_r();
return CLEAR_LINE;
}
@@ -173,7 +173,7 @@ static const z80_daisy_config dleuro_daisy_chain[] =
{
{ "sio" },
{ "ctc" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/dmv.cpp b/src/mame/drivers/dmv.cpp
index 43e2ddea4a4..dc39767c8c1 100644
--- a/src/mame/drivers/dmv.cpp
+++ b/src/mame/drivers/dmv.cpp
@@ -371,15 +371,15 @@ SLOT_INTERFACE_END
void dmv_state::ifsel_r(address_space &space, int ifsel, offs_t offset, UINT8 &data)
{
dmvcart_slot_device *slots[] = { m_slot2, m_slot2a, m_slot3, m_slot4, m_slot5, m_slot6, m_slot7, m_slot7a };
- for(int i=0; i<8; i++)
- slots[i]->io_read(space, ifsel, offset, data);
+ for(auto & slot : slots)
+ slot->io_read(space, ifsel, offset, data);
}
void dmv_state::ifsel_w(address_space &space, int ifsel, offs_t offset, UINT8 data)
{
dmvcart_slot_device *slots[] = { m_slot2, m_slot2a, m_slot3, m_slot4, m_slot5, m_slot6, m_slot7, m_slot7a };
- for(int i=0; i<8; i++)
- slots[i]->io_write(space, ifsel, offset, data);
+ for(auto & slot : slots)
+ slot->io_write(space, ifsel, offset, data);
}
WRITE8_MEMBER(dmv_state::exp_program_w)
@@ -416,8 +416,8 @@ void dmv_state::update_busint(int slot, int state)
m_busint[slot] = state;
int new_state = CLEAR_LINE;
- for (int i=0; i<8; i++)
- if (m_busint[i] != CLEAR_LINE)
+ for (auto & elem : m_busint)
+ if (elem != CLEAR_LINE)
{
new_state = ASSERT_LINE;
break;
@@ -777,34 +777,34 @@ static MACHINE_CONFIG_START( dmv, dmv_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MCFG_DEVICE_ADD("slot1", DMVCART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(dmv_slot1, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(dmv_slot1, nullptr, false)
MCFG_DEVICE_ADD("slot2", DMVCART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(dmv_slot2_6, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(dmv_slot2_6, nullptr, false)
MCFG_DMVCART_SLOT_OUT_INT_CB(WRITELINE(dmv_state, busint2_w))
MCFG_DMVCART_SLOT_OUT_IRQ_CB(WRITELINE(dmv_state, irq2_w))
MCFG_DEVICE_ADD("slot2a", DMVCART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(dmv_slot2a, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(dmv_slot2a, nullptr, false)
MCFG_DMVCART_SLOT_OUT_INT_CB(WRITELINE(dmv_state, busint2a_w))
MCFG_DMVCART_SLOT_OUT_IRQ_CB(WRITELINE(dmv_state, irq2a_w))
MCFG_DEVICE_ADD("slot3", DMVCART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(dmv_slot2_6, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(dmv_slot2_6, nullptr, false)
MCFG_DMVCART_SLOT_OUT_INT_CB(WRITELINE(dmv_state, busint3_w))
MCFG_DMVCART_SLOT_OUT_IRQ_CB(WRITELINE(dmv_state, irq3_w))
MCFG_DEVICE_ADD("slot4", DMVCART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(dmv_slot2_6, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(dmv_slot2_6, nullptr, false)
MCFG_DMVCART_SLOT_OUT_INT_CB(WRITELINE(dmv_state, busint4_w))
MCFG_DMVCART_SLOT_OUT_IRQ_CB(WRITELINE(dmv_state, irq4_w))
MCFG_DEVICE_ADD("slot5", DMVCART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(dmv_slot2_6, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(dmv_slot2_6, nullptr, false)
MCFG_DMVCART_SLOT_OUT_INT_CB(WRITELINE(dmv_state, busint5_w))
MCFG_DMVCART_SLOT_OUT_IRQ_CB(WRITELINE(dmv_state, irq5_w))
MCFG_DEVICE_ADD("slot6", DMVCART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(dmv_slot2_6, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(dmv_slot2_6, nullptr, false)
MCFG_DMVCART_SLOT_OUT_INT_CB(WRITELINE(dmv_state, busint6_w))
MCFG_DMVCART_SLOT_OUT_IRQ_CB(WRITELINE(dmv_state, irq6_w))
MCFG_DEVICE_ADD("slot7", DMVCART_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(dmv_slot7, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(dmv_slot7, nullptr, false)
MCFG_DMVCART_SLOT_PROGRAM_READWRITE_CB(READ8(dmv_state, exp_program_r), WRITE8(dmv_state, exp_program_w))
MCFG_DMVCART_SLOT_OUT_THOLD_CB(WRITELINE(dmv_state, thold7_w))
MCFG_DMVCART_SLOT_OUT_INT_CB(WRITELINE(dmv_state, busint7_w))
diff --git a/src/mame/drivers/enmirage.cpp b/src/mame/drivers/enmirage.cpp
index 1080a269dc9..249c11f069f 100644
--- a/src/mame/drivers/enmirage.cpp
+++ b/src/mame/drivers/enmirage.cpp
@@ -249,7 +249,7 @@ ROM_END
DRIVER_INIT_MEMBER(mirage_state,mirage)
{
floppy_connector *con = machine().device<floppy_connector>("wd1772:0");
- floppy_image_device *floppy = con ? con->get_device() : 0;
+ floppy_image_device *floppy = con ? con->get_device() : nullptr;
if (floppy)
{
m_fdc->set_floppy(floppy);
diff --git a/src/mame/drivers/firebeat.cpp b/src/mame/drivers/firebeat.cpp
index 1d3002629bb..132b0f03130 100644
--- a/src/mame/drivers/firebeat.cpp
+++ b/src/mame/drivers/firebeat.cpp
@@ -1410,7 +1410,7 @@ static MACHINE_CONFIG_DERIVED( firebeat_spu, firebeat )
MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
- MCFG_ATA_INTERFACE_ADD("spu_ata", ata_devices, "cdrom", NULL, true)
+ MCFG_ATA_INTERFACE_ADD("spu_ata", ata_devices, "cdrom", nullptr, true)
MCFG_ATA_INTERFACE_IRQ_HANDLER(WRITELINE(firebeat_state, spu_ata_interrupt))
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/firetrk.cpp b/src/mame/drivers/firetrk.cpp
index 38a8dc48282..94deb2221d7 100644
--- a/src/mame/drivers/firetrk.cpp
+++ b/src/mame/drivers/firetrk.cpp
@@ -415,7 +415,7 @@ static INPUT_PORTS_START( firetrk )
PORT_START("BIT_0")
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Gas") PORT_PLAYER(1)
- PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_dir_r, (void *)0)
+ PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_dir_r, (void *)nullptr)
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_dir_r, (void *)1)
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Bell") PORT_PLAYER(2)
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_TILT )
@@ -439,7 +439,7 @@ static INPUT_PORTS_START( firetrk )
PORT_START("BIT_7")
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED )
- PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_flag_r, (void *)0)
+ PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_flag_r, (void *)nullptr)
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_flag_r, (void *)1)
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN1 )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_COIN2 )
@@ -487,25 +487,25 @@ static INPUT_PORTS_START( superbug )
PORT_START("BIT_0")
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,gear_r, (void *)1)
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Gas")
- PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_dir_r, (void *)0)
+ PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_dir_r, (void *)nullptr)
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON7 ) PORT_NAME("Hiscore Reset") PORT_CODE(KEYCODE_H)
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_SERVICE( 0x20, IP_ACTIVE_HIGH )
- PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,skid_r, (void *)0)
+ PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,skid_r, (void *)nullptr)
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_TILT )
PORT_START("BIT_7")
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,gear_r, (void *)2)
- PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,gear_r, (void *)0)
- PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_flag_r, (void *)0)
+ PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,gear_r, (void *)nullptr)
+ PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_flag_r, (void *)nullptr)
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN1 )
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN2 )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_START1 )
- PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,crash_r, (void *)0)
+ PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,crash_r, (void *)nullptr)
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_NAME("Track Select") PORT_CODE(KEYCODE_SPACE)
PORT_START("GEAR")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Gear 1") PORT_CODE(KEYCODE_Z) PORT_CHANGED_MEMBER(DEVICE_SELF, firetrk_state,gear_changed, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Gear 1") PORT_CODE(KEYCODE_Z) PORT_CHANGED_MEMBER(DEVICE_SELF, firetrk_state,gear_changed, (void *)nullptr)
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("Gear 2") PORT_CODE(KEYCODE_X) PORT_CHANGED_MEMBER(DEVICE_SELF, firetrk_state,gear_changed, (void *)1)
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("Gear 3") PORT_CODE(KEYCODE_C) PORT_CHANGED_MEMBER(DEVICE_SELF, firetrk_state,gear_changed, (void *)2)
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("Gear 4") PORT_CODE(KEYCODE_V) PORT_CHANGED_MEMBER(DEVICE_SELF, firetrk_state,gear_changed, (void *)3)
@@ -557,13 +557,13 @@ static INPUT_PORTS_START( montecar )
PORT_DIPSETTING( 0x00, DEF_STR( German ) )
PORT_START("BIT_6")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,gear_r, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,gear_r, (void *)nullptr)
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,gear_r, (void *)1)
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,gear_r, (void *)2)
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON6 ) PORT_NAME("Track Select") PORT_CODE(KEYCODE_SPACE)
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_NAME("Gas")
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_CUSTOM ) PORT_VBLANK("screen")
- PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_dir_r, (void *)0)
+ PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_dir_r, (void *)nullptr)
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,skid_r, (void *)1)
PORT_START("BIT_7")
@@ -573,11 +573,11 @@ static INPUT_PORTS_START( montecar )
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_COIN1 )
PORT_BIT( 0x10, IP_ACTIVE_HIGH, IPT_COIN2 )
PORT_BIT( 0x20, IP_ACTIVE_HIGH, IPT_SPECIAL )
- PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_flag_r, (void *)0)
- PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,skid_r, (void *)0)
+ PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,steer_flag_r, (void *)nullptr)
+ PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, firetrk_state,skid_r, (void *)nullptr)
PORT_START("GEAR")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Gear 1") PORT_CODE(KEYCODE_Z) PORT_CHANGED_MEMBER(DEVICE_SELF, firetrk_state,gear_changed, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON2 ) PORT_NAME("Gear 1") PORT_CODE(KEYCODE_Z) PORT_CHANGED_MEMBER(DEVICE_SELF, firetrk_state,gear_changed, (void *)nullptr)
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_BUTTON3 ) PORT_NAME("Gear 2") PORT_CODE(KEYCODE_X) PORT_CHANGED_MEMBER(DEVICE_SELF, firetrk_state,gear_changed, (void *)1)
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_BUTTON4 ) PORT_NAME("Gear 3") PORT_CODE(KEYCODE_C) PORT_CHANGED_MEMBER(DEVICE_SELF, firetrk_state,gear_changed, (void *)2)
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_BUTTON5 ) PORT_NAME("Gear 4") PORT_CODE(KEYCODE_V) PORT_CHANGED_MEMBER(DEVICE_SELF, firetrk_state,gear_changed, (void *)3)
diff --git a/src/mame/drivers/galaxi.cpp b/src/mame/drivers/galaxi.cpp
index f22f0176fa8..54dbbcfc498 100644
--- a/src/mame/drivers/galaxi.cpp
+++ b/src/mame/drivers/galaxi.cpp
@@ -322,11 +322,11 @@ static INPUT_PORTS_START( galaxi )
PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_POKER_HOLD5 )
PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_START1 )
PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_GAMBLE_PAYOUT )
- PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxi_state,hopper_r, (void *)0 ) // hopper sensor
+ PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SPECIAL) PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxi_state,hopper_r, (void *)nullptr ) // hopper sensor
PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(5) // coin a
PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(5) // coin b (token)
PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_COIN3 ) // pin 25LC
- PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxi_state,ticket_r, (void *)0 ) // ticket sensor
+ PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxi_state,ticket_r, (void *)nullptr ) // ticket sensor
PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_SPECIAL ) // hopper out (pin 14LS)
PORT_SERVICE_NO_TOGGLE( 0x2000, IP_ACTIVE_HIGH ) // test
PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_SPECIAL ) // (pin 26LC)
@@ -342,11 +342,11 @@ static INPUT_PORTS_START( magjoker )
PORT_BIT( 0x0010, IP_ACTIVE_HIGH, IPT_POKER_HOLD5 )
PORT_BIT( 0x0020, IP_ACTIVE_HIGH, IPT_START1 )
PORT_BIT( 0x0040, IP_ACTIVE_HIGH, IPT_GAMBLE_PAYOUT )
- PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SPECIAL )PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxi_state,hopper_r, (void *)0 ) // hopper sensor
+ PORT_BIT( 0x0080, IP_ACTIVE_HIGH, IPT_SPECIAL )PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxi_state,hopper_r, (void *)nullptr ) // hopper sensor
PORT_BIT( 0x0100, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_IMPULSE(5) // coin a
PORT_BIT( 0x0200, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_IMPULSE(5) // coin b (token)
PORT_BIT( 0x0400, IP_ACTIVE_HIGH, IPT_SERVICE ) PORT_NAME("Hopper Refill") PORT_CODE(KEYCODE_H)
- PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxi_state,ticket_r, (void *)0 ) // ticket sensor
+ PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, galaxi_state,ticket_r, (void *)nullptr ) // ticket sensor
PORT_BIT( 0x1000, IP_ACTIVE_HIGH, IPT_SPECIAL ) // hopper out (pin 14LS)
PORT_SERVICE_NO_TOGGLE( 0x2000, IP_ACTIVE_HIGH ) // test
PORT_BIT( 0x4000, IP_ACTIVE_HIGH, IPT_GAMBLE_KEYOUT ) // (pin 26LC)
diff --git a/src/mame/drivers/goldnpkr.cpp b/src/mame/drivers/goldnpkr.cpp
index 5060c1aec9f..6ce338ff060 100644
--- a/src/mame/drivers/goldnpkr.cpp
+++ b/src/mame/drivers/goldnpkr.cpp
@@ -1241,7 +1241,7 @@ PALETTE_INIT_MEMBER(goldnpkr_state, goldnpkr)
int i;
/* 0000IBGR */
- if (color_prom == 0) return;
+ if (color_prom == nullptr) return;
for (i = 0;i < palette.entries();i++)
{
@@ -1293,7 +1293,7 @@ PALETTE_INIT_MEMBER(goldnpkr_state,witchcrd)
/* 0000KBGR */
- if (color_prom == 0) return;
+ if (color_prom == nullptr) return;
for (i = 0;i < palette.entries();i++)
{
@@ -1337,7 +1337,7 @@ PALETTE_INIT_MEMBER(goldnpkr_state,wcrdxtnd)
/* 0000KBGR */
- if (color_prom == 0) return;
+ if (color_prom == nullptr) return;
for (i = 0;i < palette.entries();i++)
{
@@ -4246,7 +4246,7 @@ ROM_START( goldnpkr )
ROM_LOAD( "ups39_12a.bin", 0x0000, 0x8000, CRC(216b45fb) SHA1(fbfcd98cc39b2e791cceb845b166ff697f584add) )
ROM_REGION( 0x6000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x4000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x4000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38_5a.bin", 0x4000, 0x2000, CRC(32705e1d) SHA1(84f9305af38179985e0224ae2ea54c01dfef6e12) ) /* text layer */
ROM_REGION( 0x6000, "gfx2", 0 )
@@ -4268,7 +4268,7 @@ ROM_START( goldnpkb )
ROM_LOAD( "ups31h.12a", 0x0000, 0x8000, CRC(bee5b07a) SHA1(5da60292ecbbedd963c273eac2a1fb88ad66ada8) )
ROM_REGION( 0x6000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x4000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x4000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38_5a.bin", 0x4000, 0x2000, CRC(32705e1d) SHA1(84f9305af38179985e0224ae2ea54c01dfef6e12) ) /* text layer */
ROM_REGION( 0x6000, "gfx2", 0 )
@@ -4289,7 +4289,7 @@ ROM_START( videtron )
ROM_LOAD( "5.bin", 0x6000, 0x2000, CRC(395fbc5c) SHA1(f742d7a9312828997a4323ac2b957048687fbed2) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "3.bin", 0x2000, 0x0800, CRC(23e83e89) SHA1(0c6352d46e3dfe176b0e970dd163e2bc01246890) ) /* text layer */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -4308,7 +4308,7 @@ ROM_START( videtron2 )
ROM_LOAD( "6.bin", 0x7000, 0x1000, CRC(490c7304) SHA1(1a6c6112571fd0e35b640ed58f66582a2d99c58b) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "3.bin", 0x2000, 0x0800, CRC(23e83e89) SHA1(0c6352d46e3dfe176b0e970dd163e2bc01246890) ) /* text layer */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -4330,7 +4330,7 @@ ROM_START( videtrna )
ROM_LOAD( "videotron_poker.prg", 0x6000, 0x2000, CRC(960dcb61) SHA1(a7da40383b0149d21156b461c144d345603d747a) )
ROM_REGION( 0x3000, "gfx1", 0 ) /* taken from videtron */
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "3.bin", 0x2000, 0x0800, BAD_DUMP CRC(23e83e89) SHA1(0c6352d46e3dfe176b0e970dd163e2bc01246890) ) /* text layer */
ROM_REGION( 0x1800, "gfx2", 0 ) /* taken from videtron */
@@ -4358,7 +4358,7 @@ ROM_START( pottnpkr ) /* Golden Poker style game. Code is intended to start at
ROM_LOAD( "ic14_4.bin", 0x3000, 0x1000, CRC(86a03aab) SHA1(0c4e8699b9fc9943de1fa0a364e043b3878636dc) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "ic7_0.bin", 0x2000, 0x1000, CRC(1090e7f0) SHA1(26a7fc8853debb9a759811d7fee39410614c3895) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4376,7 +4376,7 @@ ROM_START( potnpkra ) /* a Coinmaster game?... seems to be a hack */
ROM_LOAD( "vp-6.bin", 0x3000, 0x1000, CRC(94f82fc1) SHA1(ce95fc429f5389eea45fec877bac992fa7ba2b3c) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "vp-4.bin", 0x1000, 0x0800, CRC(2c53493f) SHA1(9e71db51499294bb4b16e7d8013e5daf6f1f9d18) ) /* text layer */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -4405,7 +4405,7 @@ ROM_START( potnpkrb )
ROM_LOAD( "517.17a", 0x3000, 0x1000, CRC(75a72877) SHA1(9df8fd2c98526d20aa0fa056a7b71b5c5fb5206b) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "517.8a", 0x1000, 0x0800, CRC(2c53493f) SHA1(9e71db51499294bb4b16e7d8013e5daf6f1f9d18) ) /* text layer */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -4435,7 +4435,7 @@ ROM_START( potnpkrc )
ROM_LOAD( "pottpok6.bin", 0x3000, 0x1000, CRC(53237873) SHA1(b640cb3db2513784c8d2d8983a17352276c11e07) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "pottpok1.bin", 0x1000, 0x0800, CRC(2c53493f) SHA1(9e71db51499294bb4b16e7d8013e5daf6f1f9d18) ) /* text layer */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -4453,7 +4453,7 @@ ROM_START( potnpkrd )
ROM_LOAD( "pot6.bin", 0x3000, 0x1000, CRC(53237873) SHA1(b640cb3db2513784c8d2d8983a17352276c11e07) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "pot34.bin", 0x2000, 0x1000, CRC(52fd35d2) SHA1(ad8bf8c222ceb2e9b3b6d9033866867f1977c65f) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4471,7 +4471,7 @@ ROM_START( potnpkre )
ROM_LOAD( "g_luck_b.bin", 0x3000, 0x1000, CRC(7e848e5e) SHA1(45461cfcce06f6240562761d26ba7fdb7ef4986b) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "ic7_0.bin", 0x2000, 0x1000, CRC(1090e7f0) SHA1(26a7fc8853debb9a759811d7fee39410614c3895) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4500,7 +4500,7 @@ ROM_START( potnpkrf )
ROM_LOAD( "prg.bin", 0x4000, 0x4000, CRC(d7a932a2) SHA1(c940ea90378a631c217a09c4a9e73c382acaa48d) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "3.bin", 0x2000, 0x0800, CRC(23e83e89) SHA1(0c6352d46e3dfe176b0e970dd163e2bc01246890) ) /* text layer */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -4521,7 +4521,7 @@ ROM_START( potnpkrg )
ROM_LOAD( "unknown.17a", 0x3000, 0x1000, CRC(1a9cfbf9) SHA1(47b3767dbcb016ae9ba4437d8f2790681553a5b0) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "unknown1.bin", 0x1000, 0x0800, CRC(2c53493f) SHA1(9e71db51499294bb4b16e7d8013e5daf6f1f9d18) ) /* char ROM */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -4543,7 +4543,7 @@ ROM_START( potnpkrh )
/* Backcard logo is different, showing 'FR'. The rest matches the common char gfx */
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "unk_2716.8a", 0x1000, 0x0800, CRC(a138afa6) SHA1(80c6d11086f78e36dfc01c15b23e70667fcf17fc) ) /* char ROM */
/* Backplane at 5a has two bits different against the common cards gfx
@@ -4563,7 +4563,7 @@ ROM_START( goodluck )
ROM_LOAD( "goodluck_glh6b.bin", 0x0000, 0x8000, CRC(2cfa4a2c) SHA1(720e2900f3a0ef2632aa201a63b5eba0570e6aa3) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "4.bin", 0x2000, 0x1000, CRC(41924d13) SHA1(8ab69b6efdc20858960fa5df669470ba90b5f8d7) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4594,7 +4594,7 @@ ROM_START( ngold )
ROM_LOAD( "ngold_2a.17a", 0x3000, 0x1000, CRC(9d07f0fc) SHA1(493b2e778342e1d6b7753902b714c5478bd22bd5) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "4.8a", 0x1000, 0x0800, CRC(f54c6f43) SHA1(fe66542b95259c10f7954d52d1bd5747ce99df42) ) /* char ROM */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -4612,7 +4612,7 @@ ROM_START( ngolda )
ROM_LOAD( "2a.bin", 0x3000, 0x1000, CRC(9d07f0fc) SHA1(493b2e778342e1d6b7753902b714c5478bd22bd5) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "4.8a", 0x1000, 0x0800, CRC(f54c6f43) SHA1(fe66542b95259c10f7954d52d1bd5747ce99df42) ) /* char ROM */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -4630,7 +4630,7 @@ ROM_START( ngoldb )
ROM_LOAD( "pkr_2.bin", 0x3000, 0x1000, CRC(de03a57d) SHA1(db696a892497ead7aa4ed2c600ba819c3b41a082) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "0.bin", 0x1000, 0x0800, CRC(f54c6f43) SHA1(fe66542b95259c10f7954d52d1bd5747ce99df42) ) /* char ROM */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -4656,7 +4656,7 @@ ROM_START( bsuerte )
ROM_LOAD( "bs_chica.256", 0x0000, 0x8000, CRC(2e92b72b) SHA1(6c90fb265f2cb7ec40ddb0553b5b7fedfa89339c) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4673,7 +4673,7 @@ ROM_START( bsuertea )
ROM_LOAD( "ups39_12a.bin", 0x0000, 0x8000, CRC(e6b661b7) SHA1(b265f6814a168034d24bc1c25f67ece131281bc2) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4690,7 +4690,7 @@ ROM_START( bsuerteb )
ROM_LOAD( "bsrapida.128", 0x4000, 0x4000, CRC(a2c633fa) SHA1(7cda3f56e6bd8e6bfc36a68c16d2e63d76d4dac3) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4707,7 +4707,7 @@ ROM_START( bsuertec )
ROM_LOAD( "x10d4esp.16c", 0x0000, 0x8000, CRC(0606bab4) SHA1(624b0cef1a23a4e7ba2d2d256f30f73b1e455fa7) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4724,7 +4724,7 @@ ROM_START( bsuerted )
ROM_LOAD( "x10d4fix.bin", 0x0000, 0x8000, CRC(c5ecc419) SHA1(5538a1336b877d1780d9a0c5595b02e9b22ee17d) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4741,7 +4741,7 @@ ROM_START( bsuertee )
ROM_LOAD( "x10bb26.bin", 0x0000, 0x8000, CRC(57011385) SHA1(3cbfdb8dd261aa8ce27441326f0916640b13b67a) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4758,7 +4758,7 @@ ROM_START( bsuertef )
ROM_LOAD( "bscat.256", 0x0000, 0x8000, CRC(944accd3) SHA1(f1ed149b9dafe9cdf3745b9344f2ce1814027005) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4775,7 +4775,7 @@ ROM_START( bsuerteg )
ROM_LOAD( "bsjc.256", 0x0000, 0x8000, CRC(3a824d96) SHA1(1eb2b4630be10131416ff84213aa858a072896ac) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4792,7 +4792,7 @@ ROM_START( bsuerteh )
ROM_LOAD( "jc603d.256", 0x0000, 0x8000, CRC(25df69e5) SHA1(54d2798437b61bd0e1919fb62daf24ed9df42678) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4809,7 +4809,7 @@ ROM_START( bsuertei )
ROM_LOAD( "mcs.256", 0x0000, 0x8000, CRC(5c944e9d) SHA1(e394f8a32f4ebe622c0d0c30db5cb9d6d70b2126) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4826,7 +4826,7 @@ ROM_START( bsuertej )
ROM_LOAD( "bsgemini.256", 0x0000, 0x8000, CRC(883f94d0) SHA1(30ff337ed2f454f74dfa354c14a8ab422284d279) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4843,7 +4843,7 @@ ROM_START( bsuertek )
ROM_LOAD( "bsindarg.128", 0x4000, 0x4000, CRC(a9aaff1a) SHA1(13c9fbd0e9a04f42ded4dda0bb8a850de65cc671) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4860,7 +4860,7 @@ ROM_START( bsuertel )
ROM_LOAD( "bslacer.128", 0x4000, 0x4000, CRC(edc254f4) SHA1(20e5543e59bfd67a0afec7cbeeb7000f6bba6c69) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4877,7 +4877,7 @@ ROM_START( bsuertem )
ROM_LOAD( "bslacer.256", 0x0000, 0x8000, CRC(9f8a899a) SHA1(a1f3d0635b309d4734289b7ff48eceda69dfd3d0) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4894,7 +4894,7 @@ ROM_START( bsuerten )
ROM_LOAD( "bs_x10.128", 0x4000, 0x4000, CRC(2549ceeb) SHA1(8c17849c7e9c138c35df584cdc0eabf536edb3d9) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4911,7 +4911,7 @@ ROM_START( bsuerteo )
ROM_LOAD( "bs_x10.256", 0x0000, 0x8000, CRC(ad3427a6) SHA1(d0a954c86c0a4354b5cea4140b8da7a10f66337a) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4928,7 +4928,7 @@ ROM_START( bsuertep )
ROM_LOAD( "bs_p.128", 0x4000, 0x4000, CRC(9503cfef) SHA1(f3246621bb9dff3d357d4c99f7075509899ed05f) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4945,7 +4945,7 @@ ROM_START( bsuerteq )
ROM_LOAD( "bs_r4.128", 0x4000, 0x4000, CRC(22841e2f) SHA1(d547aa6ddb82aff0d87eeb9bae67281d22dc50d5) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4962,7 +4962,7 @@ ROM_START( bsuerter )
ROM_LOAD( "bs_100.128", 0x4000, 0x4000, CRC(1d3104e5) SHA1(9c0f00725270aa4d28b5a539431311bdca2f864a) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4979,7 +4979,7 @@ ROM_START( bsuertes )
ROM_LOAD( "bs_50.128", 0x4000, 0x4000, CRC(8c2e43ca) SHA1(3e3f0848964f4ee6f47ddcf2220ebd06d771eebf) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -4996,7 +4996,7 @@ ROM_START( bsuertet )
ROM_LOAD( "bs_c.128", 0x4000, 0x4000, CRC(8b605bdf) SHA1(a933149999937f44cb62a3b34ab55ac4b5a50f72) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -5013,7 +5013,7 @@ ROM_START( bsuerteu )
ROM_LOAD( "bs_origi.bin", 0x0000, 0x8000, CRC(63a1ba65) SHA1(2354461ec7ad75f7ff2699e89d40517463157aaa) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "u38.bin", 0x2000, 0x1000, CRC(0a159dfa) SHA1(0a9c8e6177b36831b365917a10042aac3383983d) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -5039,7 +5039,7 @@ ROM_END
ROM_LOAD( "epoxy_27128.bin", 0x4000, 0x4000, CRC(48186272) SHA1(d211bfa89404a292e6d0f0169ed11e1e74a361d9) ) /* epoxy block program ROM */
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "wc4.7a", 0x2000, 0x0800, CRC(6a392b10) SHA1(9f36ae2e5a9a8741c6687e9c875d7b45999d9d6d) ) /* text layer */
ROM_LOAD( "wc4.7a", 0x2800, 0x0800, CRC(6a392b10) SHA1(9f36ae2e5a9a8741c6687e9c875d7b45999d9d6d) ) /* text layer */
@@ -5061,7 +5061,7 @@ ROM_START( witchcda )
ROM_LOAD( "w_card.256", 0x0000, 0x8000, CRC(63a471f8) SHA1(96a2140e2da0050e7865a6662f707cf024130832) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "bs_4_wcspa.032", 0x2000, 0x1000, CRC(4e520c7a) SHA1(1de3ac4a150160c15f453b0d3f9d3cd3178bfedd) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -5081,7 +5081,7 @@ ROM_START( witchcdb )
ROM_LOAD( "w_card.128", 0x4000, 0x4000, CRC(11ecac96) SHA1(717709b31f3dfa09be321c14fbf0e95d492ad2f2) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "bs_4_wcspa.032", 0x2000, 0x1000, CRC(4e520c7a) SHA1(1de3ac4a150160c15f453b0d3f9d3cd3178bfedd) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -5101,7 +5101,7 @@ ROM_START( witchcdc )
ROM_LOAD( "wc_sbruj.256", 0x0000, 0x8000, CRC(5689ae41) SHA1(c7a624ec881204137489b147ce66cc9a9900650a) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "bs_4_wc.032", 0x2000, 0x1000, CRC(41924d13) SHA1(8ab69b6efdc20858960fa5df669470ba90b5f8d7) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -5127,7 +5127,7 @@ ROM_START( witchcdd )
ROM_LOAD( "12a.bin", 0x0000, 0x8000, CRC(a5c1186a) SHA1(b6c662bf489fbcccc3063ce55c957e630ba96ccb) )
ROM_REGION( 0x6000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x4000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x4000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "ce-3-tvg.bin", 0x4000, 0x2000, CRC(54b51497) SHA1(8c3a74377fde8c7c5a6b277a9c1e717e6bdd98f8) ) /* text layer */
ROM_REGION( 0x6000, "gfx2", 0 )
@@ -5154,7 +5154,7 @@ ROM_END
ROM_LOAD( "wc4.a7", 0x3000, 0x1000, CRC(d3694522) SHA1(0f66ff2dd5c7ac9bf91fa9f48eb9f356572e814c) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_COPY( "temp", 0x3800, 0x1000, 0x0800 ) /* 0800-0fff of wc4.a7 - charset */
ROM_REGION( 0x1800, "gfx2", 0 ) /* 2nd half of each ROM */
@@ -5180,7 +5180,7 @@ ROM_START( witchcdf )
ROM_LOAD( "$27.bin", 0x7000, 0x1000, CRC(e6f9c973) SHA1(f209d13d1565160bc2c05c6c4fce73d14a9a56ab) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "$14.bin", 0x2000, 0x1000, CRC(19b68bec) SHA1(b8ef17ba5545e2f104cd2783e5f1c97c400fcbbc) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -5212,13 +5212,13 @@ ROM_START( witchcdg )
ROM_REGION( 0x3000, "gfx2", 0 )
ROM_LOAD( "3.b5", 0x0000, 0x0800, CRC(f2f94661) SHA1(f37f7c0dff680fd02897dae64e13e297d0fdb3e7) ) /* cards deck gfx, bitplane1 */
- ROM_FILL( 0x0800, 0x0800, 0 ) /* filling the bitplane */
+ ROM_FILL( 0x0800, 0x0800, nullptr ) /* filling the bitplane */
ROM_LOAD( "2.b3", 0x1000, 0x0800, CRC(6bbb1e2d) SHA1(51ee282219bf84218886ad11a24bc6a8e7337527) ) /* cards deck gfx, bitplane2 */
- ROM_FILL( 0x1800, 0x0800, 0 ) /* filling the bitplane */
+ ROM_FILL( 0x1800, 0x0800, nullptr ) /* filling the bitplane */
ROM_LOAD( "1.b1", 0x2000, 0x1000, CRC(8a17d1a7) SHA1(488e4eae287b05923bd6b378574e91cfe49d8c24) ) /* cards deck gfx, bitplane3 */
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_COPY( "gfx2", 0x2800, 0x2000, 0x0800 ) /* srctag, srcoffs, offset, length */
ROM_REGION( 0x0100, "proms", 0 )
@@ -5240,7 +5240,7 @@ ROM_START( witchcdh )
ROM_LOAD( "prog3000.a12", 0x0000, 0x8000, CRC(a5c1186a) SHA1(b6c662bf489fbcccc3063ce55c957e630ba96ccb) )
ROM_REGION( 0x6000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x4000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x4000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "wc3050.a5", 0x4000, 0x2000, CRC(6f35b9c4) SHA1(df86687164f18f2bfe71e73cccd28fe4117e748c) ) /* text layer, alt gfx */
ROM_REGION( 0x6000, "gfx2", 0 )
@@ -5289,7 +5289,7 @@ ROM_START( witchcdi )
ROM_LOAD( "04.a12", 0x0000, 0x8000, CRC(0f662e02) SHA1(71d7344f63c11082beb4fb4eeb20b04780a9b14c) )
ROM_REGION( 0x6000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x4000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x4000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "03.a5", 0x4000, 0x2000, CRC(f181e5aa) SHA1(44a7696bd223effbc7542142a0c3c623c628071d) ) /* text layer */
ROM_REGION( 0x6000, "gfx2", 0 )
@@ -5315,13 +5315,13 @@ ROM_START( witchgme )
ROM_REGION( 0x3000, "gfx2", 0 )
ROM_LOAD( "1.2a", 0x0000, 0x0800, CRC(f2f94661) SHA1(f37f7c0dff680fd02897dae64e13e297d0fdb3e7) ) /* cards deck gfx, bitplane1 */
- ROM_FILL( 0x0800, 0x0800, 0 ) /* filling the bitplane */
+ ROM_FILL( 0x0800, 0x0800, nullptr ) /* filling the bitplane */
ROM_LOAD( "2.4a", 0x1000, 0x0800, CRC(6bbb1e2d) SHA1(51ee282219bf84218886ad11a24bc6a8e7337527) ) /* cards deck gfx, bitplane2 */
- ROM_FILL( 0x1800, 0x0800, 0 ) /* filling the bitplane */
+ ROM_FILL( 0x1800, 0x0800, nullptr ) /* filling the bitplane */
ROM_LOAD( "3.5a", 0x2000, 0x1000, CRC(8a17d1a7) SHA1(488e4eae287b05923bd6b378574e91cfe49d8c24) ) /* text layer */
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_COPY( "gfx2", 0x2800, 0x2000, 0x0800 ) /* srctag, srcoffs, offset, length */
ROM_REGION( 0x0100, "proms", 0 )
@@ -5340,7 +5340,7 @@ ROM_END
ROM_LOAD( "wc_epoxy.bin", 0x0000, 0x8000, CRC(33f1acd9) SHA1(2facb3d807b5b2a2978e567d0c1106c0a027621a) ) /* epoxy block program ROM */
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "wc4.7a", 0x2000, 0x1000, BAD_DUMP CRC(3bf07c44) SHA1(f6e859b142b7d4585b89ca609d8bc85c84fe2b09) ) /* text chars, corrupt */ // sldh
ROM_COPY( "gfx1", 0x2800, 0x2000, 0x0800 ) /* srctag, srcoffs, offset, length */
@@ -5374,8 +5374,8 @@ ROM_START( witchjol )
ROM_LOAD( "i.2a", 0x08000, 0x2000, CRC(d467f6e2) SHA1(6aaf4cdfb76f5efeeee45635fea120711483648e) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of iii.5a - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of iii.5a - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of i.2a - empty, bitplane 1 */
@@ -5479,8 +5479,8 @@ ROM_START( wldwitch )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -5575,8 +5575,8 @@ ROM_START( wldwitcha )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -5671,8 +5671,8 @@ ROM_START( wldwitchb )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -5767,8 +5767,8 @@ ROM_START( wldwitchc )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -5863,8 +5863,8 @@ ROM_START( wldwitchd )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -5959,8 +5959,8 @@ ROM_START( wldwitche )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -6055,8 +6055,8 @@ ROM_START( wldwitchf )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -6151,8 +6151,8 @@ ROM_START( wldwitchg )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -6247,8 +6247,8 @@ ROM_START( wldwitchh )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -6343,8 +6343,8 @@ ROM_START( wldwitchi )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -6439,8 +6439,8 @@ ROM_START( wldwitchj )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -6535,8 +6535,8 @@ ROM_START( wldwitchk )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -6631,8 +6631,8 @@ ROM_START( wldwitchl )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -6727,8 +6727,8 @@ ROM_START( wldwitchm )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -6823,8 +6823,8 @@ ROM_START( wldwitchn )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -6919,8 +6919,8 @@ ROM_START( wldwitcho )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -7015,8 +7015,8 @@ ROM_START( wldwitchp )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -7111,8 +7111,8 @@ ROM_START( wldwitchq )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -7207,8 +7207,8 @@ ROM_START( wldwitchr )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -7303,8 +7303,8 @@ ROM_START( wldwitchs )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -7399,8 +7399,8 @@ ROM_START( wldwitcht )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -7495,8 +7495,8 @@ ROM_START( wldwitchu )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -7591,8 +7591,8 @@ ROM_START( wldwitchv )
ROM_LOAD( "01.a1", 0x08000, 0x8000, CRC(6d644987) SHA1(26243abe051f3266e2d1743ec599d4e8bbb692e4) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of 03.a3 - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of 01.a1 - empty, bitplane 1 */
@@ -7697,8 +7697,8 @@ ROM_START( wupndown ) /* Witch Up & Down (Export, 6T/12T ver 1.02) */
ROM_LOAD( "updown3.bin", 0x10000, 0x8000, CRC(905c3224) SHA1(6356f2bd8a1f8952b186dc6f9ed1705d1e918a64) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of updown1.bin - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of updown1.bin - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of updown2.bin - empty, bitplane 1 */
@@ -7790,8 +7790,8 @@ ROM_START( wupndowna ) /* Witch Up & Down (Export, 6T/12T ver 0.99, set 1) */
ROM_LOAD( "updown3.bin", 0x10000, 0x8000, CRC(905c3224) SHA1(6356f2bd8a1f8952b186dc6f9ed1705d1e918a64) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of updown1.bin - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of updown1.bin - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of updown2.bin - empty, bitplane 1 */
@@ -7883,8 +7883,8 @@ ROM_START( wupndownb ) /* Witch Up & Down (Export, 6T/12T ver 0.99, set 2) */
ROM_LOAD( "updown3.bin", 0x10000, 0x8000, CRC(905c3224) SHA1(6356f2bd8a1f8952b186dc6f9ed1705d1e918a64) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of updown1.bin - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of updown1.bin - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of updown2.bin - empty, bitplane 1 */
@@ -7976,8 +7976,8 @@ ROM_START( wupndownc ) /* Witch Up & Down (Export, 6T/12T ver 0.99, set 3) */
ROM_LOAD( "updown3.bin", 0x10000, 0x8000, CRC(905c3224) SHA1(6356f2bd8a1f8952b186dc6f9ed1705d1e918a64) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of updown1.bin - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of updown1.bin - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of updown2.bin - empty, bitplane 1 */
@@ -8069,8 +8069,8 @@ ROM_START( wupndownd ) /* Witch Up & Down (Export, 6T/12T ver 0.99T) */
ROM_LOAD( "updown3.bin", 0x10000, 0x8000, CRC(905c3224) SHA1(6356f2bd8a1f8952b186dc6f9ed1705d1e918a64) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of updown1.bin - char rom, bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of updown1.bin - char rom, bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of updown2.bin - empty, bitplane 1 */
@@ -8171,8 +8171,8 @@ ROM_START( wstrike ) /* Witch Strike (Export, 6T/12T ver 1.01A) */
ROM_LOAD( "wsrom3.bin", 0x10000, 0x8000, CRC(62692e92) SHA1(534a64abba4dabefa2fa1d2dfed0dc8a00d95156) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of wsrom1.bin - char rom (placed ok), bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of wsrom1.bin - char rom (placed ok), bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of wsrom2.bin - empty, bitplane 1 */
@@ -8264,8 +8264,8 @@ ROM_START( wstrikea ) /* Witch Strike (Export, 6T/12T ver 1.01B) */
ROM_LOAD( "wsrom3.bin", 0x10000, 0x8000, CRC(62692e92) SHA1(534a64abba4dabefa2fa1d2dfed0dc8a00d95156) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of wsrom1.bin - char rom (placed ok), bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of wsrom1.bin - char rom (placed ok), bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of wsrom2.bin - empty, bitplane 1 */
@@ -8364,8 +8364,8 @@ ROM_START( wtchjack ) /* Witch Jack 0.87-89 / 1996-10-08, GFX OK */
ROM_LOAD( "wj5x5_3zs.bin", 0x10000, 0x8000, CRC(708e1d7f) SHA1(518312fd0bc24d7895eae0cfa9dbad99e1adf67c) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of rom2.bin - empty, bitplane 1 */
@@ -8457,8 +8457,8 @@ ROM_START( wtchjacka ) /* Witch Jack 0.87-88 / 1996-10-02, GFX OK */
ROM_LOAD( "wj5x5_3zs.bin", 0x10000, 0x8000, CRC(708e1d7f) SHA1(518312fd0bc24d7895eae0cfa9dbad99e1adf67c) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of rom2.bin - empty, bitplane 1 */
@@ -8550,8 +8550,8 @@ ROM_START( wtchjackb ) /* Witch Jack 0.87 / 1996-07-16, GFX OK */
ROM_LOAD( "wj5x5_3zs.bin", 0x10000, 0x8000, CRC(708e1d7f) SHA1(518312fd0bc24d7895eae0cfa9dbad99e1adf67c) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of rom2.bin - empty, bitplane 1 */
@@ -8643,8 +8643,8 @@ ROM_START( wtchjackc ) /* Witch Jack 0.70S / 1996-03-26 */
ROM_LOAD( "wj5x5_3zs.bin", 0x10000, 0x8000, BAD_DUMP CRC(708e1d7f) SHA1(518312fd0bc24d7895eae0cfa9dbad99e1adf67c) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of rom2.bin - empty, bitplane 1 */
@@ -8736,8 +8736,8 @@ ROM_START( wtchjackd ) /* Witch Jack 0.70P / 1996-03-26 */
ROM_LOAD( "wj5x5_3zs.bin", 0x10000, 0x8000, BAD_DUMP CRC(708e1d7f) SHA1(518312fd0bc24d7895eae0cfa9dbad99e1adf67c) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of rom2.bin - empty, bitplane 1 */
@@ -8829,8 +8829,8 @@ ROM_START( wtchjacke ) /* Witch Jack 0.65 / 1995-10-19 */
ROM_LOAD( "wj5x5_3zs.bin", 0x10000, 0x8000, BAD_DUMP CRC(708e1d7f) SHA1(518312fd0bc24d7895eae0cfa9dbad99e1adf67c) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of rom2.bin - empty, bitplane 1 */
@@ -8922,8 +8922,8 @@ ROM_START( wtchjackf ) /* Witch Jack 0.64 / 1995-09-13 */
ROM_LOAD( "wj5x5_3zs.bin", 0x10000, 0x8000, BAD_DUMP CRC(708e1d7f) SHA1(518312fd0bc24d7895eae0cfa9dbad99e1adf67c) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of rom2.bin - empty, bitplane 1 */
@@ -9015,8 +9015,8 @@ ROM_START( wtchjackg ) /* Witch Jack 0.62 / 1995-08-02 */
ROM_LOAD( "wj5x5_3zs.bin", 0x10000, 0x8000, BAD_DUMP CRC(708e1d7f) SHA1(518312fd0bc24d7895eae0cfa9dbad99e1adf67c) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of rom2.bin - empty, bitplane 1 */
@@ -9108,8 +9108,8 @@ ROM_START( wtchjackh ) /* Witch Jack 0.40T / 1995-02-27, Not Working */
ROM_LOAD( "wj5x5_3zs.bin", 0x10000, 0x8000, BAD_DUMP CRC(708e1d7f) SHA1(518312fd0bc24d7895eae0cfa9dbad99e1adf67c) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of rom2.bin - empty, bitplane 1 */
@@ -9201,8 +9201,8 @@ ROM_START( wtchjacki ) /* Witch Jack 0.40 / 1995-02-27 */
ROM_LOAD( "wj5x5_3zs.bin", 0x10000, 0x8000, BAD_DUMP CRC(708e1d7f) SHA1(518312fd0bc24d7895eae0cfa9dbad99e1adf67c) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of rom2.bin - empty, bitplane 1 */
@@ -9294,8 +9294,8 @@ ROM_START( wtchjackj ) /* Witch Jackpot 0.25 / 1994-11-24 */
ROM_LOAD( "wj5x5_3zs.bin", 0x10000, 0x8000, BAD_DUMP CRC(708e1d7f) SHA1(518312fd0bc24d7895eae0cfa9dbad99e1adf67c) )
ROM_REGION( 0x1800, "gfx0", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* 0000-07ff of rom1.bin - char rom (placed ok), bitplane 3 */
ROM_REGION( 0x1800, "gfx1", 0 )
ROM_COPY( "temp", 0x08800, 0x0000, 0x0800 ) /* 0800-0fff of rom2.bin - empty, bitplane 1 */
@@ -9405,11 +9405,11 @@ ROM_START( falcnwld )
ROM_LOAD( "fw3.5a", 0x4000, 0x2000, BAD_DUMP CRC(98edfc82) SHA1(e3dd597245b55c3bc6ea86acf80ee024ca28f564) ) /* text layer + cards deck gfx, bitplane3 */
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
ROM_COPY( "temp", 0x4000, 0x1000, 0x0800 ) /* first quarter of fw3.5a */
ROM_REGION( 0x1800, "gfx2", 0 )
- ROM_COPY( "temp", 0x0000, 0x0000, 0x0800 ) /* first quarter of fw1.2a */
+ ROM_COPY( "temp", nullptr, 0x0000, 0x0800 ) /* first quarter of fw1.2a */
ROM_COPY( "temp", 0x2000, 0x0800, 0x0800 ) /* first quarter of fw2.4a */
ROM_COPY( "temp", 0x4800, 0x1000, 0x0800 ) /* second quarter of fw3.5a */
@@ -9431,7 +9431,7 @@ ROM_START( falcnwlda )
ROM_RELOAD( 0x8000, 0x8000 )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
ROM_LOAD( "fw4.7a", 0x1000, 0x0800, CRC(f0517b0d) SHA1(474bcf429f2539ff1f3d7d32d259c5973ccb0234) ) /* chars gfx */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -9450,7 +9450,7 @@ ROM_START( falcnwldb )
ROM_RELOAD( 0x8000, 0x8000 )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
ROM_LOAD( "fw4.7a", 0x1000, 0x0800, CRC(f0517b0d) SHA1(474bcf429f2539ff1f3d7d32d259c5973ccb0234) ) /* chars gfx */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -9496,13 +9496,13 @@ ROM_START( falcnwldc )
ROM_LOAD( "3.b4", 0x1800, 0x0800, CRC(d9246780) SHA1(4ceb24131ec6208b742ba80373201aa53c50732d) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling bitplanes */
ROM_COPY( "temp", 0x0800, 0x1000, 0x0800 ) /* second half of 1.b1 */
ROM_REGION( 0x1800, "gfx2", 0 )
ROM_COPY( "temp", 0x1800, 0x0000, 0x0800 ) /* first half of 3.b4 */
ROM_COPY( "temp", 0x1000, 0x0800, 0x0800 ) /* whole 2.b3 */
- ROM_COPY( "temp", 0x0000, 0x1000, 0x0800 ) /* first half of 1.b1 */
+ ROM_COPY( "temp", nullptr, 0x1000, 0x0800 ) /* first half of 1.b1 */
ROM_REGION( 0x0100, "proms", 0 )
ROM_LOAD( "falcon_1.bin", 0x0000, 0x0100, BAD_DUMP CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) )
@@ -9519,7 +9519,7 @@ ROM_START( pmpoker )
ROM_LOAD( "2-7.bin", 0x7000, 0x1000, CRC(a9ab972e) SHA1(477441b7ff3acae3a5d5a3e4c2a428e0b3121534) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "1-4.bin", 0x1000, 0x0800, CRC(62b9f90d) SHA1(39c61a01225027572fdb75543bb6a78ed74bb2fb) ) /* text layer */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -9536,7 +9536,7 @@ ROM_START( royale )
ROM_LOAD( "royalex.bin", 0x4000, 0x4000, CRC(ef370617) SHA1(0fc5679e9787aeea3bc592b36efcaa20e859f912) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "royalechr.bin", 0x2000, 0x1000, CRC(b1f2cbb8) SHA1(8f4930038f2e21ca90b213c35b45ed14d8fad6fb) ) /* text layer */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -9553,7 +9553,7 @@ ROM_START( royalea )
ROM_LOAD( "royal.256", 0x0000, 0x8000, CRC(9d7fdb79) SHA1(05cae00bca0f6ae696c69f531cb0fa2104ff696a) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "royalechr.bin", 0x2000, 0x1000, CRC(b1f2cbb8) SHA1(8f4930038f2e21ca90b213c35b45ed14d8fad6fb) ) /* text layer */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -9570,7 +9570,7 @@ ROM_START( sloco93 )
ROM_LOAD( "locoloco.128", 0x4000, 0x4000, CRC(f626a770) SHA1(afbd33b3f65b8a781c716a3d6e5447aa817d856c) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "confloco.032", 0x2000, 0x1000, CRC(b86f219c) SHA1(3f655a96bcf597a271a4eaaa0acbf8dd70fcdae9) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -9587,7 +9587,7 @@ ROM_START( sloco93a )
ROM_LOAD( "locoloco.256", 0x0000, 0x8000, CRC(ab037b0b) SHA1(16f811daaed5bf7b72549db85755c5274dfee310) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "confloco.032", 0x2000, 0x1000, CRC(b86f219c) SHA1(3f655a96bcf597a271a4eaaa0acbf8dd70fcdae9) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -9610,7 +9610,7 @@ ROM_START( maverik )
ROM_LOAD( "maverik.bin", 0x0000, 0x8000, CRC(65a986e9) SHA1(2e825d3fb2346036357af0e12d3a75b5ef6cfd0d) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "4s.bin", 0x2000, 0x1000, CRC(0ac197eb) SHA1(fdf2b134c662f3c4d4a19d93a82d130ba643ace8) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -9632,7 +9632,7 @@ ROM_START( brasil86 )
ROM_LOAD( "brasil86.128", 0x4000, 0x4000, CRC(0e88b434) SHA1(80f921c277f4253c29ee80e9cfb046ade1f66300) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "4s.bin", 0x2000, 0x1000, CRC(0ac197eb) SHA1(fdf2b134c662f3c4d4a19d93a82d130ba643ace8) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -9649,7 +9649,7 @@ ROM_START( brasil87 )
ROM_LOAD( "brasil87.128", 0x4000, 0x4000, CRC(6cfdaea9) SHA1(0704e61c1c573e99e130c22787b529ac5544c631) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "4s.bin", 0x2000, 0x1000, CRC(0ac197eb) SHA1(fdf2b134c662f3c4d4a19d93a82d130ba643ace8) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -9666,7 +9666,7 @@ ROM_START( brasil89 )
ROM_LOAD( "brasil89.128", 0x4000, 0x4000, CRC(9030e0db) SHA1(d073ed0ddd3e5df6a3387e10e05ca34bc491eb35) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "4s.bin", 0x2000, 0x1000, CRC(0ac197eb) SHA1(fdf2b134c662f3c4d4a19d93a82d130ba643ace8) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -9683,7 +9683,7 @@ ROM_START( brasil89a )
ROM_LOAD( "brasil89a.128", 0x4000, 0x4000, CRC(41a93a99) SHA1(70eeaddbdd9d3a587d1330b81d21d881ab0a8c91) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "4s.bin", 0x2000, 0x1000, CRC(0ac197eb) SHA1(fdf2b134c662f3c4d4a19d93a82d130ba643ace8) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -9700,7 +9700,7 @@ ROM_START( brasil93 )
ROM_LOAD( "brasil93.128", 0x4000, 0x4000, CRC(cc25909f) SHA1(635184022bcb8936c396cb9fcfa6367fcae906fb) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "4s.bin", 0x2000, 0x1000, CRC(0ac197eb) SHA1(fdf2b134c662f3c4d4a19d93a82d130ba643ace8) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -9717,7 +9717,7 @@ ROM_START( poker91 )
ROM_LOAD( "bs_pok91.bin", 0x0000, 0x8000, CRC(90c88b45) SHA1(9b5842075ece5f96a6869d7a8c874dee2b2abde2) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "4s.bin", 0x2000, 0x1000, CRC(0ac197eb) SHA1(fdf2b134c662f3c4d4a19d93a82d130ba643ace8) ) /* text layer */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -9762,7 +9762,7 @@ ROM_START( genie )
ROM_LOAD( "3m.17a", 0x3000, 0x1000, CRC(9d67f5c9) SHA1(d3bc13ce07a7b1713544756d7723dd0bcd59cd1a) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "4.8a", 0x1000, 0x0800, CRC(1cdd1db9) SHA1(1940c6654b4a892abc3e4557666d341f407ac54f) ) /* chars gfx */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -9786,7 +9786,7 @@ ROM_START( geniea )
ROM_LOAD( "2732.15a", 0x7000, 0x1000, CRC(7137aa06) SHA1(1a2af7dfe41e54fc9c3b4e641319d1a504e84a18) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "2732.9a", 0x2000, 0x1000, BAD_DUMP CRC(ffb7bca3) SHA1(b58175c0342f963cb42a04195e296db952e071b6) ) /* chars + bitplane3 */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -9821,7 +9821,7 @@ ROM_START( silverga )
ROM_LOAD( "55", 0x6000, 0x2000, CRC(aad57b3c) SHA1(9508026c1a7b227a70d89ad2f7245e75a615b932) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "13", 0x2000, 0x1000, CRC(98b8cb4f) SHA1(420ea544a41e24478a8eb1c7076f4569607d0379) ) /* text layer */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -9863,7 +9863,7 @@ ROM_START( caspoker )
ROM_LOAD( "237.bin", 0x7000, 0x1000, CRC(b411d0c4) SHA1(0617cd312026da78a171fc23f4788393d70371cf) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "054.bin", 0x1000, 0x0800, CRC(7b401a09) SHA1(affb90a52761c36be7c67f7606f3f982f6dc724e) ) /* text chars */
ROM_IGNORE( 0x0800) /* identical halves, discarding the 2nd half */
@@ -9900,7 +9900,7 @@ ROM_START( superdbl )
ROM_LOAD( "8", 0x3000, 0x1000, CRC(157332c2) SHA1(3c66200c49641b9d876c5fa134dd2f0e80136beb) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "4", 0x1000, 0x0800, CRC(1e1d4e33) SHA1(22831984489fdf712ca616c1af3c874a5b12b522) ) /* text layer */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -9930,7 +9930,7 @@ ROM_START( pokerdub )
ROM_LOAD( "unknown.17a", 0x3000, 0x1000, NO_DUMP )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "4.8a", 0x1000, 0x0800, CRC(1e1d4e33) SHA1(22831984489fdf712ca616c1af3c874a5b12b522) ) /* char ROM (cracked title) */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -9961,7 +9961,7 @@ ROM_START( pokerduc )
ROM_LOAD( "d", 0x7000, 0x1000, CRC(c48096ed) SHA1(279ba433369c7dc9cd902a19200e889eea45d115) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "a.8a", 0x1000, 0x0800, CRC(c70a3e49) SHA1(eb2f15b344f4dec5f05701415848c854bb27aaa3) ) /* char ROM (cracked title) */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -10002,11 +10002,11 @@ ROM_START( bchancep ) /* Bonne Chance! with PIAs 6821 */
// ROM_LOAD( "ups39_12a.bin", 0x0000, 0x8000, CRC(216b45fb) SHA1(fbfcd98cc39b2e791cceb845b166ff697f584add) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_COPY( "gfx", 0x2000, 0x1000, 0x0800 ) /* text layer and cards logo */
ROM_REGION( 0x1800, "gfx2", 0 )
- ROM_COPY( "gfx", 0x0000, 0x0000, 0x0800 ) /* cards deck gfx, bitplane 1 */
+ ROM_COPY( "gfx", nullptr, 0x0000, 0x0800 ) /* cards deck gfx, bitplane 1 */
ROM_COPY( "gfx", 0x1000, 0x0800, 0x0800 ) /* cards deck gfx, bitplane 2 */
ROM_COPY( "gfx", 0x2800, 0x1000, 0x0800 ) /* cards deck gfx, bitplane 3 */
@@ -10019,7 +10019,7 @@ ROM_START( bchanceq )
ROM_LOAD( "pok4-5.014", 0x4000, 0x4000, CRC(92f1f515) SHA1(f79ab453458f71d7e62e895d04a2d6161dbf2aad) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "pok3.014", 0x1000, 0x0800, CRC(fb00e263) SHA1(879660bc3a3eb3d41f80741b157cdefaa7bd9a18) ) /* char ROM, different cardback logo */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -10072,11 +10072,11 @@ ROM_START( pokermon )
ROM_LOAD( "3m.bin", 0x10000, 0x8000, CRC(b2237068) SHA1(ece4f089776bbd5224c63c6a41a2e86a5e89d0c5) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_COPY( "gfx", 0x14800, 0x1000, 0x0800 ) /* text, numbers and soccer ball tiles */
ROM_REGION( 0x1800, "gfx2", 0 )
- ROM_COPY( "gfx", 0x00000, 0x0000, 0x0800 ) /* soccer player gfx, bitplane 1 */
+ ROM_COPY( "gfx", nullptr, 0x0000, 0x0800 ) /* soccer player gfx, bitplane 1 */
ROM_COPY( "gfx", 0x08000, 0x0800, 0x0800 ) /* soccer player gfx, bitplane 2 */
ROM_COPY( "gfx", 0x12000, 0x1000, 0x0800 ) /* soccer player gfx, bitplane 3 */
@@ -10094,7 +10094,7 @@ ROM_START( pokersis )
ROM_LOAD( "gs3.bin", 0x10000, 0x8000, CRC(12c37991) SHA1(e63a0504e697daddcdfcf90b2a136c4180a431a7) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_COPY( "gfx", 0x14800, 0x1000, 0x0800 ) /* text and suppossed 1bpp gfx */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -10118,7 +10118,7 @@ ROM_START( super98 )
ROM_LOAD( "27c256.17a", 0x0000, 0x8000, CRC(dfa319c5) SHA1(e1b2ef40350ee1f40272604cbe33b245210de003) )
ROM_REGION( 0x3000, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x2000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x2000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "2732.9a", 0x2000, 0x1000, CRC(9a478c39) SHA1(614171fa3184f6ceb663d5650d05fac4d4025c9f) ) /* char ROM */
ROM_REGION( 0x3000, "gfx2", 0 )
@@ -10184,7 +10184,7 @@ ROM_START( animpkr )
ROM_LOAD( "2732_bottom.17a", 0x3000, 0x1000, CRC(92c19e72) SHA1(034d077ede5608160ba882227e981751a5dde26d) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "2716.8a", 0x1000, 0x0800, CRC(21c9c7f1) SHA1(daa0eddd4f4a9eec0cff3aebe884792adf830238) ) /* char ROM */
ROM_REGION( 0x1800, "gfx2", 0 )
@@ -10202,7 +10202,7 @@ ROM_START( animpkra )
ROM_LOAD( "2732_top.17a", 0x3000, 0x1000, CRC(13fae924) SHA1(c1c92fdb6e7036e6d9349c9b017e9daf3577345b) )
ROM_REGION( 0x1800, "gfx1", 0 )
- ROM_FILL( 0x0000, 0x1000, 0 ) /* filling the R-G bitplanes */
+ ROM_FILL( 0x0000, 0x1000, nullptr ) /* filling the R-G bitplanes */
ROM_LOAD( "2716.8a", 0x1000, 0x0800, CRC(21c9c7f1) SHA1(daa0eddd4f4a9eec0cff3aebe884792adf830238) ) /* char ROM */
ROM_REGION( 0x1800, "gfx2", 0 )
diff --git a/src/mame/drivers/goldstar.cpp b/src/mame/drivers/goldstar.cpp
index db0a65e5dd1..969fd9c3122 100644
--- a/src/mame/drivers/goldstar.cpp
+++ b/src/mame/drivers/goldstar.cpp
@@ -10414,7 +10414,7 @@ ROM_START( skill98 )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -10465,7 +10465,7 @@ ROM_START( schery97 )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -10516,7 +10516,7 @@ ROM_START( schery97a )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -10560,7 +10560,7 @@ ROM_START( roypok96 )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -10602,7 +10602,7 @@ ROM_START( roypok96a )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -10643,7 +10643,7 @@ ROM_START( roypok96b )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -10684,7 +10684,7 @@ ROM_START( pokonl97 )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -10735,7 +10735,7 @@ ROM_START( nfb96 )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -10785,7 +10785,7 @@ ROM_START( nfb96a )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -10837,7 +10837,7 @@ ROM_START( nfb96b )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -10882,7 +10882,7 @@ ROM_START( nfb96c )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -10927,7 +10927,7 @@ ROM_START( nfb96txt )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -10971,7 +10971,7 @@ ROM_START( nc96 )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -11012,7 +11012,7 @@ ROM_START( nc96a )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -11053,7 +11053,7 @@ ROM_START( nc96b )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -11094,7 +11094,7 @@ ROM_START( nc96c )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -11135,7 +11135,7 @@ ROM_START( nc96d )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -11176,7 +11176,7 @@ ROM_START( nc96e )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -11217,7 +11217,7 @@ ROM_START( nc96f )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -11257,7 +11257,7 @@ ROM_START( nc96txt )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
// no proms present, using nfb96 ones
@@ -11302,7 +11302,7 @@ ROM_START( match98 )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
@@ -11352,7 +11352,7 @@ ROM_START( fb2010 )
ROM_REGION( 0x8000, "gfx2", 0 )
ROM_COPY( "graphics", 0x02000, 0x00000, 0x2000 )
ROM_COPY( "graphics", 0x12000, 0x02000, 0x2000 )
- ROM_COPY( "graphics", 0x00000, 0x04000, 0x2000 )
+ ROM_COPY( "graphics", nullptr, 0x04000, 0x2000 )
ROM_COPY( "graphics", 0x10000, 0x06000, 0x2000 )
ROM_REGION( 0x200, "proms", 0 ) // palette
diff --git a/src/mame/drivers/gp_1.cpp b/src/mame/drivers/gp_1.cpp
index 4a7911c39d8..a07cecd5b52 100644
--- a/src/mame/drivers/gp_1.cpp
+++ b/src/mame/drivers/gp_1.cpp
@@ -413,7 +413,7 @@ TIMER_DEVICE_CALLBACK_MEMBER( gp_1_state::zero_timer )
static const z80_daisy_config daisy_chain[] =
{
{ "ctc" },
- { NULL }
+ { nullptr }
};
static MACHINE_CONFIG_START( gp_1, gp_1_state )
diff --git a/src/mame/drivers/gp_2.cpp b/src/mame/drivers/gp_2.cpp
index 1f1cd24fb46..c2c2f5018ca 100644
--- a/src/mame/drivers/gp_2.cpp
+++ b/src/mame/drivers/gp_2.cpp
@@ -566,7 +566,7 @@ TIMER_DEVICE_CALLBACK_MEMBER( gp_2_state::zero_timer )
static const z80_daisy_config daisy_chain[] =
{
{ "ctc" },
- { NULL }
+ { nullptr }
};
static MACHINE_CONFIG_START( gp_2, gp_2_state )
diff --git a/src/mame/drivers/gts1.cpp b/src/mame/drivers/gts1.cpp
index 12ff867b851..b92bf8ba992 100644
--- a/src/mame/drivers/gts1.cpp
+++ b/src/mame/drivers/gts1.cpp
@@ -500,7 +500,7 @@ READ8_MEMBER (gts1_state::gts1_nvram_r)
// FIXME: Schematics says TO Z5
if (!m_nvram_wr && m_nvram_e2) {
UINT8* nvram = memregion("nvram")->base();
- assert(nvram != NULL);
+ assert(nvram != nullptr);
data = nvram[m_nvram_addr];
LOG(("%s: nvram[%02x] -> %x\n", __FUNCTION__, m_nvram_addr, data));
}
@@ -532,7 +532,7 @@ WRITE8_MEMBER(gts1_state::gts1_nvram_w)
if (m_nvram_wr && m_nvram_e2) {
LOG(("%s: nvram[%02x] <- %x\n", __FUNCTION__, m_nvram_addr, data & 15));
UINT8* nvram = memregion("nvram")->base();
- assert(nvram != NULL);
+ assert(nvram != nullptr);
nvram[m_nvram_addr] = data & 15;
}
break;
diff --git a/src/mame/drivers/harddriv.cpp b/src/mame/drivers/harddriv.cpp
index 95a60fb7134..5f9dd079869 100644
--- a/src/mame/drivers/harddriv.cpp
+++ b/src/mame/drivers/harddriv.cpp
@@ -360,12 +360,12 @@ harddriv_state::harddriv_state(const machine_config &mconfig, const char *tag, d
m_hd34010_host_access(0),
m_dsk_pio_access(0),
m_msp_ram(*this, "msp_ram"),
- m_dsk_ram(0),
- m_dsk_rom(0),
+ m_dsk_ram(nullptr),
+ m_dsk_rom(nullptr),
m_dsk_10c(*this, "dsk_10c"),
m_dsk_30c(*this, "dsk_30c"),
- m_m68k_slapstic_base(0),
- m_m68k_sloop_alt_base(0),
+ m_m68k_slapstic_base(nullptr),
+ m_m68k_sloop_alt_base(nullptr),
m_200e(*this, "200e"),
m_210e(*this, "210e"),
m_adsp_data_memory(*this, "adsp_data"),
@@ -373,11 +373,11 @@ harddriv_state::harddriv_state(const machine_config &mconfig, const char *tag, d
m_ds3sdsp_data_memory(*this, "ds3sdsp_data"),
m_ds3sdsp_pgm_memory(*this, "ds3sdsp_pgm"),
m_ds3xdsp_pgm_memory(*this, "ds3xdsp_pgm"),
- m_gsp_protection(0),
+ m_gsp_protection(nullptr),
m_gsp_speedup_pc(0),
- m_msp_speedup_addr(0),
+ m_msp_speedup_addr(nullptr),
m_msp_speedup_pc(0),
- m_ds3_speedup_addr(0),
+ m_ds3_speedup_addr(nullptr),
m_ds3_speedup_pc(0),
m_ds3_transfer_pc(0),
m_gsp_multisync(0),
@@ -407,10 +407,10 @@ harddriv_state::harddriv_state(const machine_config &mconfig, const char *tag, d
m_adsp_sim_address(0),
m_adsp_som_address(0),
m_adsp_eprom_base(0),
- m_sim_memory(0),
+ m_sim_memory(nullptr),
m_sim_memory_size(0),
- m_adsp_pgm_memory_word(0),
- m_ds3_sdata_memory(0),
+ m_adsp_pgm_memory_word(nullptr),
+ m_ds3_sdata_memory(nullptr),
m_ds3_sdata_memory_size(0),
m_ds3_gcmd(0),
m_ds3_gflag(0),
@@ -452,7 +452,7 @@ harddriv_state::harddriv_state(const machine_config &mconfig, const char *tag, d
m_next_msp_sync(0),
m_vram_mask(0),
m_shiftreg_enable(0),
- m_gsp_shiftreg_source(0),
+ m_gsp_shiftreg_source(nullptr),
m_gfx_finescroll(0),
m_gfx_palettebank(0),
m_duart(*this, "duartn68681"),
@@ -466,8 +466,8 @@ harddriv_state::harddriv_state(const machine_config &mconfig, const char *tag, d
for (i = 0; i < 2; i++)
{
- m_gsp_speedup_addr[i] = 0;
- m_rddsp32_sync[i] = 0;
+ m_gsp_speedup_addr[i] = nullptr;
+ m_rddsp32_sync[i] = nullptr;
}
for (i = 0; i < 4; i++)
@@ -490,7 +490,7 @@ harddriv_state::harddriv_state(const machine_config &mconfig, const char *tag, d
for (i = 0; i < MAX_MSP_SYNC; i++)
{
- m_dataptr[i] = 0;
+ m_dataptr[i] = nullptr;
m_dataval[i] = 0;
}
@@ -4485,7 +4485,7 @@ ROM_START( strtdriv )
ROM_LOAD( "136091-0033.10j", 0x000000, 0x010000, CRC(57504ab6) SHA1(ec8361b7da964c07ca0da48a87537badc3986fe0) )
ROM_REGION16_BE( 0x100000, "mainpcb:ds3xdsp", 0 ) /* DS III auxillary ADSP-2105 (unused) */
- ROM_FILL( 0x000000, 0x010000, 0x00)
+ ROM_FILL( 0x000000, 0x010000, nullptr)
ROM_REGION( 0x80000, "mainpcb:ds3sdsp_data", 0 )
ROM_LOAD16_BYTE( "136052-1123.12lm",0x00000, 0x10000, CRC(a88411dc) SHA1(1fd53c7eadffa163d5423df2f8338757e58d5f2e) )
@@ -4652,7 +4652,7 @@ void harddriv_state::init_multisync(int compact_inputs)
m_gsp_multisync = TRUE;
// if we have a JSA board, install the read/write handlers
- if (m_jsa != NULL)
+ if (m_jsa != nullptr)
m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0x600000, 0x603fff, read8_delegate(FUNC(atari_jsa_base_device::main_response_r),m_jsa.target()), write8_delegate(FUNC(atari_jsa_base_device::main_command_w),m_jsa.target()), 0xff00);
/* install handlers for the compact driving games' inputs */
diff --git a/src/mame/drivers/hh_hmcs40.cpp b/src/mame/drivers/hh_hmcs40.cpp
index 765c453ce13..a7063ec96f8 100644
--- a/src/mame/drivers/hh_hmcs40.cpp
+++ b/src/mame/drivers/hh_hmcs40.cpp
@@ -665,7 +665,7 @@ static INPUT_PORTS_START( bfriskyt )
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_CHANGED_MEMBER(DEVICE_SELF, bfriskyt_state, input_changed, NULL)
PORT_START("IN.5") // INT0
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_START ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)nullptr)
INPUT_PORTS_END
INPUT_CHANGED_MEMBER(bfriskyt_state::input_changed)
@@ -1026,7 +1026,7 @@ static INPUT_PORTS_START( bzaxxon )
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_DOWN ) PORT_CHANGED_MEMBER(DEVICE_SELF, bzaxxon_state, input_changed, NULL)
PORT_START("IN.4") // INT0
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)nullptr)
PORT_START("IN.5") // port D
PORT_BIT( 0x0008, IP_ACTIVE_HIGH, IPT_SELECT )
@@ -1488,7 +1488,7 @@ WRITE16_MEMBER(bdoramon_state::grid_w)
static INPUT_PORTS_START( bdoramon )
PORT_START("IN.0") // INT0
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)nullptr)
PORT_START("IN.1") // INT1
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)1)
@@ -1586,7 +1586,7 @@ WRITE16_MEMBER(bultrman_state::grid_w)
static INPUT_PORTS_START( bultrman )
PORT_START("IN.0") // INT0
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)nullptr)
PORT_START("IN.1") // port D
PORT_CONFNAME( 0x0010, 0x0000, "Factory Test" )
@@ -1677,7 +1677,7 @@ WRITE16_MEMBER(machiman_state::grid_w)
static INPUT_PORTS_START( machiman )
PORT_START("IN.0") // INT0
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)nullptr)
PORT_START("IN.1") // port D
PORT_BIT( 0x3fff, IP_ACTIVE_HIGH, IPT_UNUSED )
@@ -2058,7 +2058,7 @@ WRITE16_MEMBER(cdkong_state::grid_w)
static INPUT_PORTS_START( cdkong )
PORT_START("IN.0") // INT0
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)nullptr)
PORT_START("IN.1") // port D
PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP )
@@ -2196,7 +2196,7 @@ static INPUT_PORTS_START( cgalaxn )
PORT_BIT( 0x0e, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_START("IN.2") // INT0
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)nullptr)
PORT_START("IN.3") // INT1
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_PLAYER(2) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)1)
@@ -3155,7 +3155,7 @@ static INPUT_PORTS_START( gckong )
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_UP ) PORT_CHANGED_MEMBER(DEVICE_SELF, gckong_state, input_changed, NULL)
PORT_START("IN.4") // INT0
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)nullptr)
PORT_START("IN.5") // port D
PORT_CONFNAME( 0x0010, 0x0000, "Skill Level" )
@@ -3280,7 +3280,7 @@ static INPUT_PORTS_START( gdigdug )
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_CHANGED_MEMBER(DEVICE_SELF, gdigdug_state, input_changed, NULL)
PORT_START("IN.5") // INT0
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)nullptr)
INPUT_PORTS_END
INPUT_CHANGED_MEMBER(gdigdug_state::input_changed)
@@ -3775,7 +3775,7 @@ static INPUT_PORTS_START( tmtron )
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_JOYSTICK_LEFT ) PORT_16WAY PORT_CHANGED_MEMBER(DEVICE_SELF, tmtron_state, input_changed, NULL)
PORT_START("IN.4") // INT0
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_BUTTON1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, hh_hmcs40_state, single_interrupt_line, (void *)nullptr)
INPUT_PORTS_END
INPUT_CHANGED_MEMBER(tmtron_state::input_changed)
diff --git a/src/mame/drivers/igspoker.cpp b/src/mame/drivers/igspoker.cpp
index 831a5e687d1..3f38fec2298 100644
--- a/src/mame/drivers/igspoker.cpp
+++ b/src/mame/drivers/igspoker.cpp
@@ -501,7 +501,7 @@ static INPUT_PORTS_START( cpoker )
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("SERVICE")
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)0 ) PORT_NAME("HPSW") // hopper sensor
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)nullptr ) PORT_NAME("HPSW") // hopper sensor
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Statistics")
@@ -635,7 +635,7 @@ static INPUT_PORTS_START( cpokerx )
PORT_START("SERVICE")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_9) PORT_NAME("Attendent")
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)0 ) PORT_NAME("HPSW") // hopper sensor
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)nullptr ) PORT_NAME("HPSW") // hopper sensor
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
@@ -800,7 +800,7 @@ static INPUT_PORTS_START( csk227 )
PORT_START("SERVICE")
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_UNUSED )
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)0 ) PORT_NAME("HPSW") // hopper sensor
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)nullptr ) PORT_NAME("HPSW") // hopper sensor
PORT_BIT( 0x08, IP_ACTIVE_HIGH, IPT_UNUSED )
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW )
@@ -945,7 +945,7 @@ static INPUT_PORTS_START( csk234 )
PORT_BIT( 0xe0, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("SERVICE")
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)0 ) PORT_NAME("HPSW") // hopper sensor
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)nullptr ) PORT_NAME("HPSW") // hopper sensor
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Statistics")
@@ -1097,7 +1097,7 @@ static INPUT_PORTS_START( igs_ncs )
PORT_DIPSETTING( 0x00, DEF_STR( Yes ) )
PORT_START("SERVICE")
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)0 ) PORT_NAME("HPSW") // hopper sensor
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)nullptr ) PORT_NAME("HPSW") // hopper sensor
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Statistics")
@@ -1417,7 +1417,7 @@ static INPUT_PORTS_START( cpokerpk )
PORT_DIPSETTING( 0x00, "100:1" )
PORT_START("SERVICE")
- PORT_BIT( 0x8f, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)0 ) PORT_NAME("HPSW") // hopper sensor
+ PORT_BIT( 0x8f, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)nullptr ) PORT_NAME("HPSW") // hopper sensor
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Statistics")
@@ -1552,7 +1552,7 @@ static INPUT_PORTS_START( chleague )
PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
PORT_START("SERVICE")
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)0 ) PORT_NAME("HPSW") // hopper sensor
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)nullptr ) PORT_NAME("HPSW") // hopper sensor
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Statistics")
@@ -1691,7 +1691,7 @@ static INPUT_PORTS_START( pktet346 )
PORT_START("SERVICE")
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE ) PORT_CODE(KEYCODE_9)
- PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)0 ) PORT_NAME("HPSW") // hopper sensor
+ PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF,igspoker_state,hopper_r, (void *)nullptr ) PORT_NAME("HPSW") // hopper sensor
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_PAYOUT )
PORT_SERVICE_NO_TOGGLE( 0x20, IP_ACTIVE_LOW )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK ) PORT_NAME("Statistics")
@@ -2055,7 +2055,7 @@ ROM_START( cpokert )
//copy?
ROM_REGION( 0x60000, "gfx2", 0 )
- ROM_COPY( "gfx1", 0, 0, 0x60000 )
+ ROM_COPY( "gfx1", nullptr, 0, 0x60000 )
// convert them to the pld format
ROM_REGION( 0x2000, "plds", 0 )
@@ -2100,7 +2100,7 @@ ROM_START( cpokerx )
//copy?
ROM_REGION( 0x60000, "gfx2", 0 )
- ROM_COPY( "gfx1", 0, 0, 0x60000 )
+ ROM_COPY( "gfx1", nullptr, 0, 0x60000 )
ROM_REGION( 0x4000, "plds", 0 )
ROM_LOAD( "16v8b.u31", 0x00000, 0x000892, BAD_DUMP CRC(33dec5f5) SHA1(f5c2e45513fa3657160ff38111a745f76cf679e1) ) // all 0's, seems protected
diff --git a/src/mame/drivers/jankenmn.cpp b/src/mame/drivers/jankenmn.cpp
index 403b7e6841b..fcdaee24841 100644
--- a/src/mame/drivers/jankenmn.cpp
+++ b/src/mame/drivers/jankenmn.cpp
@@ -352,7 +352,7 @@ INPUT_PORTS_END
static const z80_daisy_config daisy_chain[] =
{
{ "ctc" },
- { NULL }
+ { nullptr }
};
diff --git a/src/mame/drivers/jpmimpct.cpp b/src/mame/drivers/jpmimpct.cpp
index e1855657af3..161549ebba3 100644
--- a/src/mame/drivers/jpmimpct.cpp
+++ b/src/mame/drivers/jpmimpct.cpp
@@ -1368,7 +1368,7 @@ ROM_START( cluedo )
ROM_REGION16_LE( 0x200000, "user1", 0 )
ROM_LOAD16_BYTE( "clugrb1", 0x000000, 0x80000, CRC(176ae2df) SHA1(135fd2640c255e5321b1a6ba35f72fa2ba8f04b8) )
ROM_LOAD16_BYTE( "clugrb2", 0x000001, 0x80000, CRC(06ab2f78) SHA1(4325fd9096e73956310e97e244c7fe1ee8d27f5c) )
- ROM_COPY( "user1", 0x000000, 0x100000, 0x100000 )
+ ROM_COPY( "user1", nullptr, 0x100000, 0x100000 )
ROM_REGION( 0x80000, "upd", 0 )
ROM_LOAD( "1214.bin", 0x000000, 0x80000, CRC(fe43aeae) SHA1(017a471af5766ef41fa46982c02941fb4fc35174) )
@@ -1392,7 +1392,7 @@ ROM_START( cluedod )
ROM_REGION16_LE( 0x200000, "user1", 0 )
ROM_LOAD16_BYTE( "clugrb1", 0x000000, 0x80000, CRC(176ae2df) SHA1(135fd2640c255e5321b1a6ba35f72fa2ba8f04b8) )
ROM_LOAD16_BYTE( "clugrb2", 0x000001, 0x80000, CRC(06ab2f78) SHA1(4325fd9096e73956310e97e244c7fe1ee8d27f5c) )
- ROM_COPY( "user1", 0x000000, 0x100000, 0x100000 )
+ ROM_COPY( "user1", nullptr, 0x100000, 0x100000 )
ROM_REGION( 0x80000, "upd", 0 )
ROM_LOAD( "1214.bin", 0x000000, 0x80000, CRC(fe43aeae) SHA1(017a471af5766ef41fa46982c02941fb4fc35174) )
@@ -1416,7 +1416,7 @@ ROM_START( cluedo2c )
ROM_REGION16_LE( 0x200000, "user1", 0 )
ROM_LOAD16_BYTE( "clugrb1", 0x000000, 0x80000, CRC(176ae2df) SHA1(135fd2640c255e5321b1a6ba35f72fa2ba8f04b8) )
ROM_LOAD16_BYTE( "clugrb2", 0x000001, 0x80000, CRC(06ab2f78) SHA1(4325fd9096e73956310e97e244c7fe1ee8d27f5c) )
- ROM_COPY( "user1", 0x000000, 0x100000, 0x100000 )
+ ROM_COPY( "user1", nullptr, 0x100000, 0x100000 )
ROM_REGION( 0x80000, "upd", 0 )
ROM_LOAD( "1214.bin", 0x000000, 0x80000, CRC(fe43aeae) SHA1(017a471af5766ef41fa46982c02941fb4fc35174) )
@@ -1440,7 +1440,7 @@ ROM_START( cluedo2 )
ROM_REGION16_LE( 0x200000, "user1", 0 )
ROM_LOAD16_BYTE( "clugrb1", 0x000000, 0x80000, CRC(176ae2df) SHA1(135fd2640c255e5321b1a6ba35f72fa2ba8f04b8) )
ROM_LOAD16_BYTE( "clugrb2", 0x000001, 0x80000, CRC(06ab2f78) SHA1(4325fd9096e73956310e97e244c7fe1ee8d27f5c) )
- ROM_COPY( "user1", 0x000000, 0x100000, 0x100000 )
+ ROM_COPY( "user1", nullptr, 0x100000, 0x100000 )
ROM_REGION( 0x80000, "upd", 0 )
ROM_LOAD( "clue2as1.bin", 0x000000, 0x80000, CRC(16b2bc45) SHA1(56963f5d63b5a091b89b96f4ca9327010006c024) )
diff --git a/src/mame/drivers/kenseim.cpp b/src/mame/drivers/kenseim.cpp
index bf8f0c80f92..3ecc40645fc 100644
--- a/src/mame/drivers/kenseim.cpp
+++ b/src/mame/drivers/kenseim.cpp
@@ -468,7 +468,7 @@ ADDRESS_MAP_END
static const z80_daisy_config daisy_chain_gamecpu[] =
{
TMPZ84C011_DAISY_INTERNAL,
- { NULL }
+ { nullptr }
};
static MACHINE_CONFIG_DERIVED_CLASS( kenseim, cps1_12MHz, kenseim_state )
diff --git a/src/mame/drivers/kingdrby.cpp b/src/mame/drivers/kingdrby.cpp
index 99b098474d0..f9afd0206b1 100644
--- a/src/mame/drivers/kingdrby.cpp
+++ b/src/mame/drivers/kingdrby.cpp
@@ -1031,7 +1031,7 @@ ROM_START( kingdrby )
ROM_LOAD( "im1_yk.g1", 0x0000, 0x1000, CRC(1921605d) SHA1(0aa6f7195ea59d0080620ab02a737e5c319dd3e7) )
ROM_LOAD( "im2_yk.f1", 0x1000, 0x1000, CRC(8504314e) SHA1(309645e17fb3149dce57ae6844cc58652a1eeb35) )
ROM_LOAD( "im3_yk.e1", 0x2000, 0x1000, CRC(b0e473ec) SHA1(234598548b2a2a8f53d40bc07c3b1759074b7d93) )
- ROM_COPY( "soundcpu", 0x0000, 0x3000, 0x1000 )
+ ROM_COPY( "soundcpu", nullptr, 0x3000, 0x1000 )
/* sprites gfxs */
ROM_REGION( 0x8000, "gfx1", 0 )
@@ -1162,7 +1162,7 @@ ROM_START( kingdrbb2 )
ROM_LOAD( "h1", 0x0000, 0x1000, CRC(444aa020) SHA1(0d40e9499892177b4d8123ad7b6909e8f6e0c8ab) )
ROM_LOAD( "h2", 0x1000, 0x1000, CRC(4102d356) SHA1(d9eb2dcc7cbbe2449fe41ef5eef0470d4dcac0c8) )
ROM_LOAD( "h3", 0x2000, 0x1000, CRC(b5a95093) SHA1(dd3e0742042fab113092664bde0e1215d009d861) )
- ROM_COPY( "soundcpu", 0x0000, 0x3000, 0x1000 )
+ ROM_COPY( "soundcpu", nullptr, 0x3000, 0x1000 )
/* sprites gfxs */
ROM_REGION( 0x8000, "gfx1", 0 ) // kingdrby sprites, smaller top roms
diff --git a/src/mame/drivers/llc.cpp b/src/mame/drivers/llc.cpp
index 45cb0ce5348..f6369342344 100644
--- a/src/mame/drivers/llc.cpp
+++ b/src/mame/drivers/llc.cpp
@@ -148,14 +148,14 @@ WRITE8_MEMBER( llc_state::kbd_put )
static const z80_daisy_config llc1_daisy_chain[] =
{
{ "z80ctc" },
- { NULL }
+ { nullptr }
};
static const z80_daisy_config llc2_daisy_chain[] =
{
{ "z80pio1" },
{ "z80ctc" },
- { NULL }
+ { nullptr }
};
/* F4 Character Displayer */
@@ -289,7 +289,7 @@ ROM_START( llc1 )
ROM_LOAD( "llc1_tb1.bin", 0x0800, 0x0400, CRC(0d9d4039) SHA1(b515e385af57f4faf3a9f7b4a1edd59a1c1ea260) )
ROM_LOAD( "llc1_tb2.bin", 0x0c00, 0x0400, CRC(28bfea2a) SHA1(a68a8b87bfc931627ddd8d124b153e511477fbaf) )
ROM_LOAD( "llc1_tb3.bin", 0x1000, 0x0400, CRC(fe5e3132) SHA1(cc3b191e41f5772a4b86b8eb0ebe6fce67872df6) )
- ROM_FILL(0x23b, 1, 0x00) // don't reboot when typing into the monitor
+ ROM_FILL(0x23b, 1, nullptr) // don't reboot when typing into the monitor
ROM_FILL(0x2dc, 1, 0x0f) // fix display of AF in the reg command
ROM_REGION(0x0400, "chargen",0)
ROM_LOAD ("llc1_zg.bin", 0x0000, 0x0400, CRC(fa2cd659) SHA1(1fa5f9992f35929f656c4ce55ed6980c5da1772b) )
diff --git a/src/mame/drivers/mac.cpp b/src/mame/drivers/mac.cpp
index a574e596ea6..907dab8926b 100644
--- a/src/mame/drivers/mac.cpp
+++ b/src/mame/drivers/mac.cpp
@@ -995,7 +995,7 @@ static MACHINE_CONFIG_DERIVED( macse, macplus )
MCFG_MACKBD_REMOVE(MACKBD_TAG)
MCFG_MACPDS_BUS_ADD("sepds", "maincpu")
- MCFG_MACPDS_SLOT_ADD("sepds", "pds", mac_sepds_cards, NULL)
+ MCFG_MACPDS_SLOT_ADD("sepds", "pds", mac_sepds_cards, nullptr)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( macclasc, macplus )
@@ -1104,11 +1104,11 @@ static MACHINE_CONFIG_START( macii, mac_state )
MCFG_NUBUS_OUT_IRQD_CB(WRITELINE(mac_state, nubus_irq_d_w))
MCFG_NUBUS_OUT_IRQE_CB(WRITELINE(mac_state, nubus_irq_e_w))
MCFG_NUBUS_SLOT_ADD("nubus","nb9", mac_nubus_cards, "48gc")
- MCFG_NUBUS_SLOT_ADD("nubus","nba", mac_nubus_cards, NULL)
- MCFG_NUBUS_SLOT_ADD("nubus","nbb", mac_nubus_cards, NULL)
- MCFG_NUBUS_SLOT_ADD("nubus","nbc", mac_nubus_cards, NULL)
- MCFG_NUBUS_SLOT_ADD("nubus","nbd", mac_nubus_cards, NULL)
- MCFG_NUBUS_SLOT_ADD("nubus","nbe", mac_nubus_cards, NULL)
+ MCFG_NUBUS_SLOT_ADD("nubus","nba", mac_nubus_cards, nullptr)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbb", mac_nubus_cards, nullptr)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbc", mac_nubus_cards, nullptr)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbd", mac_nubus_cards, nullptr)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbe", mac_nubus_cards, nullptr)
MCFG_DEVICE_ADD("scsi", SCSI_PORT, 0)
MCFG_SCSIDEV_ADD("scsi:" SCSI_PORT_DEVICE1, "harddisk", SCSIHD, SCSI_ID_6)
@@ -1178,11 +1178,11 @@ static MACHINE_CONFIG_START( maciifx, mac_state )
MCFG_NUBUS_OUT_IRQD_CB(WRITELINE(mac_state, nubus_irq_d_w))
MCFG_NUBUS_OUT_IRQE_CB(WRITELINE(mac_state, nubus_irq_e_w))
MCFG_NUBUS_SLOT_ADD("nubus","nb9", mac_nubus_cards, "48gc")
- MCFG_NUBUS_SLOT_ADD("nubus","nba", mac_nubus_cards, NULL)
- MCFG_NUBUS_SLOT_ADD("nubus","nbb", mac_nubus_cards, NULL)
- MCFG_NUBUS_SLOT_ADD("nubus","nbc", mac_nubus_cards, NULL)
- MCFG_NUBUS_SLOT_ADD("nubus","nbd", mac_nubus_cards, NULL)
- MCFG_NUBUS_SLOT_ADD("nubus","nbe", mac_nubus_cards, NULL)
+ MCFG_NUBUS_SLOT_ADD("nubus","nba", mac_nubus_cards, nullptr)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbb", mac_nubus_cards, nullptr)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbc", mac_nubus_cards, nullptr)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbd", mac_nubus_cards, nullptr)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbe", mac_nubus_cards, nullptr)
MCFG_DEVICE_ADD("scsi", SCSI_PORT, 0)
MCFG_SCSIDEV_ADD("scsi:" SCSI_PORT_DEVICE1, "harddisk", SCSIHD, SCSI_ID_6)
@@ -1258,7 +1258,7 @@ static MACHINE_CONFIG_DERIVED( maclc, macii )
MCFG_NUBUS_OUT_IRQC_CB(WRITELINE(mac_state, nubus_irq_c_w))
MCFG_NUBUS_OUT_IRQD_CB(WRITELINE(mac_state, nubus_irq_d_w))
MCFG_NUBUS_OUT_IRQE_CB(WRITELINE(mac_state, nubus_irq_e_w))
- MCFG_NUBUS_SLOT_ADD("pds","lcpds", mac_lcpds_cards, NULL)
+ MCFG_NUBUS_SLOT_ADD("pds","lcpds", mac_lcpds_cards, nullptr)
MCFG_ASC_REPLACE("asc", C15M, ASC_TYPE_V8, WRITELINE(mac_state, mac_asc_irq))
MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
@@ -1356,9 +1356,9 @@ static MACHINE_CONFIG_DERIVED( maciivx, maclc )
MCFG_NUBUS_OUT_IRQC_CB(WRITELINE(mac_state, nubus_irq_c_w))
MCFG_NUBUS_OUT_IRQD_CB(WRITELINE(mac_state, nubus_irq_d_w))
MCFG_NUBUS_OUT_IRQE_CB(WRITELINE(mac_state, nubus_irq_e_w))
- MCFG_NUBUS_SLOT_ADD("nubus","nbc", mac_nubus_cards, NULL)
- MCFG_NUBUS_SLOT_ADD("nubus","nbd", mac_nubus_cards, NULL)
- MCFG_NUBUS_SLOT_ADD("nubus","nbe", mac_nubus_cards, NULL)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbc", mac_nubus_cards, nullptr)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbd", mac_nubus_cards, nullptr)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbe", mac_nubus_cards, nullptr)
MCFG_RAM_MODIFY(RAM_TAG)
MCFG_RAM_DEFAULT_SIZE("4M")
@@ -1391,9 +1391,9 @@ static MACHINE_CONFIG_DERIVED( maciivi, maclc )
MCFG_NUBUS_OUT_IRQC_CB(WRITELINE(mac_state, nubus_irq_c_w))
MCFG_NUBUS_OUT_IRQD_CB(WRITELINE(mac_state, nubus_irq_d_w))
MCFG_NUBUS_OUT_IRQE_CB(WRITELINE(mac_state, nubus_irq_e_w))
- MCFG_NUBUS_SLOT_ADD("nubus","nbc", mac_nubus_cards, NULL)
- MCFG_NUBUS_SLOT_ADD("nubus","nbd", mac_nubus_cards, NULL)
- MCFG_NUBUS_SLOT_ADD("nubus","nbe", mac_nubus_cards, NULL)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbc", mac_nubus_cards, nullptr)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbd", mac_nubus_cards, nullptr)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbe", mac_nubus_cards, nullptr)
MCFG_RAM_MODIFY(RAM_TAG)
MCFG_RAM_DEFAULT_SIZE("4M")
@@ -1467,7 +1467,7 @@ static MACHINE_CONFIG_START( macse30, mac_state )
MCFG_NUBUS_OUT_IRQC_CB(WRITELINE(mac_state, nubus_irq_c_w))
MCFG_NUBUS_OUT_IRQD_CB(WRITELINE(mac_state, nubus_irq_d_w))
MCFG_NUBUS_OUT_IRQE_CB(WRITELINE(mac_state, nubus_irq_e_w))
- MCFG_NUBUS_SLOT_ADD("pds","pds030", mac_pds030_cards, NULL)
+ MCFG_NUBUS_SLOT_ADD("pds","pds030", mac_pds030_cards, nullptr)
MCFG_SWIM_ADD("fdc", mac_iwm_interface)
MCFG_LEGACY_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_interface)
@@ -1884,8 +1884,8 @@ static MACHINE_CONFIG_START( macqd700, mac_state )
MCFG_NUBUS_OUT_IRQC_CB(WRITELINE(mac_state, nubus_irq_c_w))
MCFG_NUBUS_OUT_IRQD_CB(WRITELINE(mac_state, nubus_irq_d_w))
MCFG_NUBUS_OUT_IRQE_CB(WRITELINE(mac_state, nubus_irq_e_w))
- MCFG_NUBUS_SLOT_ADD("nubus","nbd", mac_nubus_cards, NULL)
- MCFG_NUBUS_SLOT_ADD("nubus","nbe", mac_nubus_cards, NULL)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbd", mac_nubus_cards, nullptr)
+ MCFG_NUBUS_SLOT_ADD("nubus","nbe", mac_nubus_cards, nullptr)
MCFG_IWM_ADD("fdc", mac_iwm_interface)
MCFG_LEGACY_FLOPPY_SONY_2_DRIVES_ADD(mac_floppy_interface)
diff --git a/src/mame/drivers/mcr.cpp b/src/mame/drivers/mcr.cpp
index 8bd89ee8ec0..43639f70999 100644
--- a/src/mame/drivers/mcr.cpp
+++ b/src/mame/drivers/mcr.cpp
@@ -1735,7 +1735,7 @@ static const char *const journey_sample_names[] =
{
"*journey",
"sepways",
- 0
+ nullptr
};
static const char *const twotiger_sample_names[] =
@@ -1743,7 +1743,7 @@ static const char *const twotiger_sample_names[] =
"*twotiger",
"left",
"right",
- 0
+ nullptr
};
/*************************************
@@ -2781,7 +2781,7 @@ void mcr_state::mcr_init(int cpuboard, int vidboard, int ssioboard)
save_item(NAME(last_op4));
midway_ssio_device *ssio = machine().device<midway_ssio_device>("ssio");
- if (ssio != NULL)
+ if (ssio != nullptr)
{
ssio->set_custom_output(0, 0xff, write8_delegate(FUNC(mcr_state::mcr_control_port_w), this));
}
diff --git a/src/mame/drivers/mcr3.cpp b/src/mame/drivers/mcr3.cpp
index ef9e885ead8..1c8069c0f17 100644
--- a/src/mame/drivers/mcr3.cpp
+++ b/src/mame/drivers/mcr3.cpp
@@ -1191,7 +1191,7 @@ static const gfx_layout spyhunt_charlayout =
},
128*8,
spyhunt_charlayout_xoffset,
- NULL
+ nullptr
};
@@ -1250,7 +1250,7 @@ static const gfx_layout spyhuntpr_charlayout =
{ 0*8, 4*8, 8*8, 12*8, 16*8, 20*8, 24*8, 28*8, 1*8, 5*8, 9*8, 13*8, 17*8, 21*8, 25*8, 29*8 },
32*8,
spyhuntp_charlayout_xoffset,
- NULL
+ nullptr
};
static GFXDECODE_START( mcr3 )
diff --git a/src/mame/drivers/meadows.cpp b/src/mame/drivers/meadows.cpp
index f1d06deb3a5..801f779049a 100644
--- a/src/mame/drivers/meadows.cpp
+++ b/src/mame/drivers/meadows.cpp
@@ -597,7 +597,7 @@ static const char *const bowl3d_sample_names[] =
"footstep", /* "foot sweep" */
"crash", /* "crash" */
"cheering", /* "cheering" */
- 0
+ nullptr
};
/*************************************
diff --git a/src/mame/drivers/miniboy7.cpp b/src/mame/drivers/miniboy7.cpp
index d8d6d3a9abc..94029df5be6 100644
--- a/src/mame/drivers/miniboy7.cpp
+++ b/src/mame/drivers/miniboy7.cpp
@@ -258,7 +258,7 @@ PALETTE_INIT_MEMBER(miniboy7_state, miniboy7)
int i;
/* 0000IBGR */
- if (m_proms == 0) return;
+ if (m_proms == nullptr) return;
for (i = 0;i < palette.entries();i++)
{
diff --git a/src/mame/drivers/model1.cpp b/src/mame/drivers/model1.cpp
index 69f3882fe96..3d40fe656ff 100644
--- a/src/mame/drivers/model1.cpp
+++ b/src/mame/drivers/model1.cpp
@@ -743,7 +743,7 @@ TIMER_DEVICE_CALLBACK_MEMBER(model1_state::model1_interrupt)
m_m1audio->check_fifo_irq();
- if (m_m1comm != NULL)
+ if (m_m1comm != nullptr)
m_m1comm->check_vint_irq();
}
}
@@ -862,7 +862,7 @@ WRITE16_MEMBER(model1_state::snd_latch_to_68k_w)
m_snd_cmd_state = 0;
}
- if (m_dsbz80 != NULL)
+ if (m_dsbz80 != nullptr)
{
// printf("%d: %02x (last %02x)\n", m_snd_cmd_state, data, m_last_snd_cmd);
// HACK: on h/w, who filters out commands the DSB shouldn't see? Need a wiring diagram.
diff --git a/src/mame/drivers/mpf1.cpp b/src/mame/drivers/mpf1.cpp
index b8ed818e0e8..4366184a820 100644
--- a/src/mame/drivers/mpf1.cpp
+++ b/src/mame/drivers/mpf1.cpp
@@ -302,7 +302,7 @@ static const z80_daisy_config mpf1_daisy_chain[] =
{
{ Z80CTC_TAG },
{ Z80PIO_TAG },
- { NULL }
+ { nullptr }
};
/* Machine Initialization */
diff --git a/src/mame/drivers/mpu3.cpp b/src/mame/drivers/mpu3.cpp
index 106db35cbae..d45ecc0de30 100644
--- a/src/mame/drivers/mpu3.cpp
+++ b/src/mame/drivers/mpu3.cpp
@@ -890,7 +890,7 @@ DRIVER_INIT_MEMBER(mpu3_state,m3hprvpr)
ROM_START( m3tst )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "ut5.bin", 0x7800, 0x0800, CRC(89994adb) SHA1(03e38a860b6ba9d7ae2dbfa7845e85bcf67a6f4d))
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -903,7 +903,7 @@ ROM_START( m3acech )
ROM_LOAD( "ac10p.p1", 0x6000, 0x2000, CRC(bf72f9cd) SHA1(78885c39d08949cfac662c37564e71b01129b9bb) )
ROM_LOAD( "ac10p.p2", 0x4000, 0x2000, CRC(2c4fb553) SHA1(65f7d9f07a86a447d77b57d889fd33658531b16d) )
ROM_LOAD( "ac10p.p3", 0x2000, 0x2000, CRC(63955392) SHA1(ee52f42928f5040260e2ad021cf6a668aa02b0f8) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -914,7 +914,7 @@ ROM_START( m3autort )
ROM_LOAD( "ar1.bin", 0x6000, 0x2000, CRC(00ff29b7) SHA1(62c73f313ed8b862fd1e8f261bceafdcb4dd9cdb) )
ROM_LOAD( "ar2.bin", 0x4000, 0x2000, CRC(ca084dbf) SHA1(86eb343e6b252cfd6efcfa4f6166f53fd6627c01) )
ROM_LOAD( "ar3.bin", 0x2000, 0x2000, CRC(6fbe9fa8) SHA1(0b66cb6274c5ffdfff9caf1171a13b3a719ae537) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -922,7 +922,7 @@ ROM_START( m3bankr )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "bankerp1.bin", 0x6000, 0x2000, CRC(912e7c86) SHA1(67de6af2620a5caae34f76266529bd2e0b2dd6de) )
ROM_LOAD( "bankerp2.bin", 0x5000, 0x1000, CRC(7fa01e70) SHA1(82b7a07548cab8d7828409f6b9a0676db0664be2) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -930,7 +930,7 @@ ROM_START( m3big20j )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "b20j11.p1", 0x6000, 0x2000, CRC(ce524bb5) SHA1(f7f21982376a8e5cd6f3f8b6d966a17044e6c1a8) )
ROM_LOAD( "b20j11.p2", 0x5000, 0x1000, CRC(8ce0fffb) SHA1(eda619a1d21cd45eae0c9962dab6559d4b72fc7b) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3biggam )
@@ -938,7 +938,7 @@ ROM_START( m3biggam )
ROM_LOAD( "b2g2-4.p1", 0x6000, 0x002000, CRC(2bd82bcb) SHA1(58140b0ac6035652110dc0a2b2bd39980d5c518b) )
ROM_LOAD( "b2g2-4.p2", 0x4000, 0x002000, CRC(4cbe3dd2) SHA1(3a5d2e693dfb615365eb83c1c3d7ce1144c94b4c) )
ROM_LOAD( "b2g2-4.p3", 0x2000, 0x002000, CRC(2287a208) SHA1(21566c2b713e2e41fe400632510255455cd8ce45) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3bigsht )
@@ -946,7 +946,7 @@ ROM_START( m3bigsht )
ROM_LOAD( "bs.p1", 0x6000, 0x2000, CRC(9a8cf66e) SHA1(de7c916722e20463c1838ad0848826b4a879e9ae) )
ROM_LOAD( "bs.p2", 0x4000, 0x2000, CRC(113927b3) SHA1(c1dee8f967b1678b37fe4109e1ea5d4782882e2b) )
ROM_LOAD( "bs.p3", 0x2000, 0x2000, CRC(ebe9fd8b) SHA1(d1d4184007f998f68db10dbc0f534fc52cc4f6ee) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -955,7 +955,7 @@ ROM_START( m3blkhle )
ROM_LOAD( "p1-4460.bin", 0x7000, 0x1000, CRC(b3f82e48) SHA1(e3968c0e41c3b30fea6e8270aa67e078495fbc4c) )
ROM_LOAD( "p2-4460.bin", 0x6000, 0x1000, CRC(d7dac5a8) SHA1(1e1f8e472e23b617854aab13b4cb6ba5ee21a691) )
ROM_LOAD( "p3-4460.bin", 0x5000, 0x1000, CRC(4ba3ce96) SHA1(599b77026a6351bf1cad0598fd4578c3f65026e9) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_REGION( 0x10000, "altrevs", ROMREGION_ERASE00 )
// missing rom 1, or is it the same?
@@ -969,7 +969,7 @@ ROM_START( m3cabret )
ROM_LOAD( "cab50.p1", 0x7000, 0x1000, CRC(7c651961) SHA1(fdca9e7513d5ae0696c4011eedc05e3abdde074d) )
ROM_LOAD( "cab50.p2", 0x6000, 0x1000, CRC(f187d599) SHA1(7c6482aa4cd426e8046ceb50a18b1a2794f514f6) )
ROM_LOAD( "cab50.p3", 0x5000, 0x1000, CRC(95745414) SHA1(17da3491a77ae7c3320b9d8869f5f01d4a64ea8e) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3cabreta )
@@ -977,7 +977,7 @@ ROM_START( m3cabreta )
ROM_LOAD( "cch12-0.p1", 0x7000, 0x1000, CRC(49376c4b) SHA1(fb8070d43ca103acdc3f120c5bc2b84603998404) )
ROM_LOAD( "cch12-0.p2", 0x6000, 0x1000, CRC(e1d7d4d8) SHA1(107d8ebce24e946119bc7ae54085e847c1bef9b9) )
ROM_LOAD( "cch12-0.p3", 0x5000, 0x1000, CRC(dd3a4d5e) SHA1(d9fa506a8f1d68cc4b7d2d91a4e524f39e269860) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -986,7 +986,7 @@ ROM_END
ROM_START( m3cdash )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "cashdash.bin", 0x6000, 0x2000, CRC(1e8ff344) SHA1(021cca5079d0979767143babd23a6f5da93bc151) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -995,14 +995,14 @@ ROM_START( m3cunlim )
ROM_LOAD( "cu1_2.p1", 0x6000, 0x2000, CRC(bbfe4e36) SHA1(8e3d9809d882a7608b9c75f8950e2d7ad30b2584) )
ROM_LOAD( "cu1_2.p2", 0x4000, 0x2000, CRC(183a90a3) SHA1(faf00b248677538932da036135354ed38187cac3) )
ROM_LOAD( "cu1_2.p3", 0x2000, 0x2000, CRC(a83497d4) SHA1(5092e5c7501e7293e33e5a93177047e3836bcd01) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
//VFS conversion based around Chances and Options unlimited
ROM_START( m3mremon )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "mmchancs.bin", 0x6000, 0x2000, CRC(3eaede51) SHA1(6914fcaed6e51736c6dc725ba82b691803571222) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3chase )
@@ -1010,7 +1010,7 @@ ROM_START( m3chase )
ROM_LOAD( "chaseit1.bin", 0x6000, 0x2000, CRC(bc379354) SHA1(5375774ff7afa0f4623a174de69770630219b446) )
ROM_LOAD( "chaseit2.bin", 0x4000, 0x2000, CRC(2bcabf7b) SHA1(f4d3e9691ddb68e9b678199a2474db1d9383e73e) )
ROM_LOAD( "chaseit3.bin", 0x2000, 0x2000, CRC(6a761b8c) SHA1(3dfc30c13b423368b460b6225399508a00f14c24) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1019,7 +1019,7 @@ ROM_START( m3cskill )
ROM_LOAD( "cs_03_p1.bin", 0x6000, 0x2000, CRC(b230cc6c) SHA1(8cade054c6a3a57991db046baf250d6a5d47eedd) )
ROM_LOAD( "cs_03_p2.bin", 0x4000, 0x2000, CRC(c3acb5be) SHA1(856401da7a84c7495cae7bea5b64c909b1a5cfe9) )
ROM_LOAD( "cs_03_p3.bin", 0x2000, 0x2000, CRC(ad5de108) SHA1(92304e8da523623606c9ed23b82fcbd5711ec55f) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1028,7 +1028,7 @@ ROM_START( m3cjoker )
ROM_LOAD( "crjo54.p1", 0x6000, 0x2000, CRC(fee59a82) SHA1(816f68242a1382a26ff54a92e5d8df55ad6c8ece) )
ROM_LOAD( "crjo54.p2", 0x4000, 0x2000, CRC(b0722d30) SHA1(4ab9785fbb9a04a85015cf8818567f0ec1b41808) )
ROM_LOAD( "crjo54.p3", 0x2000, 0x2000, CRC(7af2985e) SHA1(b11fcfc83e93dc3737f9f71d3166c38a948a8aa4) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1037,7 +1037,7 @@ ROM_START( m3xchngg )
ROM_LOAD( "eg.p1", 0x7000, 0x1000, CRC(92edf95f) SHA1(473a8f1e845170953e55b55249a633bd9d9d03ad) )
ROM_LOAD( "eg.p2", 0x6000, 0x1000, CRC(ba05c6ee) SHA1(6d5f1769ca81fc29f2c1f7257286b8cb287bc01c) )
ROM_LOAD( "eg.p3", 0x5000, 0x1000, CRC(e28ca67d) SHA1(96a7c7dcf06bfad230b581d396c19419b98e2e03) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1046,13 +1046,13 @@ ROM_START( m3xchngu )
ROM_LOAD( "eu3.p1", 0x7000, 0x1000, CRC(db6d5c27) SHA1(c7c9b293bf7c37b499905f9cd00f2ba8d37e560e) )
ROM_LOAD( "eu3.p2", 0x6000, 0x1000, CRC(717277b4) SHA1(6be70f72d4d57d785a85d1b8c9585bf65cca3243) )
ROM_LOAD( "eu3.p3", 0x5000, 0x1000, CRC(0eafec89) SHA1(89b1766d35f69e28e662d87d3df1fee36956aa3b) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3xchngua ) // check if this actually differs
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "exchanges.hex", 0x5000, 0x3000, CRC(758323b9) SHA1(524fcb81148ec940ef98568d99fc7a0bda7d727a) ) // == m3sexcu
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1063,7 +1063,7 @@ ROM_START( m3fortun )
ROM_LOAD( "fn1-5.p1", 0x6000, 0x2000, CRC(110c8c2b) SHA1(daaa4a2c71459b277571d751d44961aed38f1c84) )
ROM_LOAD( "fn1-5.p2", 0x4000, 0x2000, CRC(2fb803de) SHA1(68f8dafc41931aa8882730acb95d0c95be7aa639) )
ROM_LOAD( "fn1-5.p3", 0x2000, 0x2000, CRC(6fbfcb75) SHA1(5c28b2d03b7644715feed9fc31f5de5ad434c824) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3fortuna )
@@ -1071,7 +1071,7 @@ ROM_START( m3fortuna )
ROM_LOAD( "fortune numbers v1-0 p1 (2764)", 0x6000, 0x2000, CRC(e864c266) SHA1(73c9ae327be0c8fd862a2533be1a60c6dd9d44f1) )
ROM_LOAD( "fortune numbers v1-0 p2 (2764)", 0x4000, 0x2000, CRC(34f5ea73) SHA1(2009e87ce80da637c83ed4ca66661e1b95e47b50) )
ROM_LOAD( "fortune numbers v1-0 p3 (2764)", 0x2000, 0x2000, CRC(4779cc92) SHA1(d191263fb11f2521cbbc0012f88294914ed9d17b) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3fortund )
@@ -1079,7 +1079,7 @@ ROM_START( m3fortund )
ROM_LOAD( "dfn-p1.bin", 0x6000, 0x2000, CRC(16ba6cca) SHA1(64ff2c8c60d3e44fa2692f63ec3593e7b1d4eae8) )
ROM_LOAD( "dfn-p2.bin", 0x4000, 0x2000, CRC(c67461b9) SHA1(a63554b7af1bb3748acf43608e8958757a42c7b1) )
ROM_LOAD( "dfn-p3.bin", 0x2000, 0x2000, CRC(f6e880c5) SHA1(13a3668335fb4a916b52fc132f91778edc4b9d01) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1088,7 +1088,7 @@ ROM_START( m3gmine )
ROM_LOAD( "gm1.bin", 0x6000, 0x2000, CRC(94a25adc) SHA1(6e4a3b50229202e1ab6142958d2e00784d6199a8) )
ROM_LOAD( "gm2.bin", 0x4000, 0x2000, CRC(a71c5eb7) SHA1(e08e696a3f2cb0435388848cb2efe608f9d8677a) )
ROM_LOAD( "gm3.bin", 0x2000, 0x2000, CRC(53b6a756) SHA1(e035142ebda9d32e1c430364e0ef7e6acabd6f3b) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1097,7 +1097,7 @@ ROM_START( m3gaward )
ROM_LOAD( "ga04_p1.bin", 0x6000, 0x2000, CRC(730779da) SHA1(a35f80a8b46551b5fd4de2a34fdea4134a989b5d) )
ROM_LOAD( "ga04_p2.bin", 0x4000, 0x2000, CRC(4503e0a7) SHA1(296a909ec5c86ee155b127b20ef9c13cb7824f83) )
ROM_LOAD( "ga04_p3.bin", 0x2000, 0x2000, CRC(d9419ee7) SHA1(cdab52cd1aaa5f2791827ac6ea218bdbeed2648a) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1105,7 +1105,7 @@ ROM_START( m3gcrown )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "crown.2l", 0x7000, 0x1000, CRC(184780c5) SHA1(e07f56e536823c28d524a687d607cb2877199210) ) // == m3nudge
ROM_LOAD( "crown.2l2", 0x6000, 0x1000, CRC(04fadad3) SHA1(d82536f18122b9fb33fae6a238f29e4c615b3681) ) // == m3nudge
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1114,7 +1114,7 @@ ROM_START( m3hprvpr )
ROM_LOAD( "hv.p1", 0x6000, 0x2000, CRC(05c0cf97) SHA1(085f432b608cec6054f1e03cf24ca80d3949a0de))
ROM_LOAD( "hv.p2", 0x4000, 0x2000, CRC(b3b6f19e) SHA1(b2251dbe632b04ea7b5952b8a6217605b0df904c))
ROM_LOAD( "hv.p3", 0x2000, 0x2000, CRC(63f8e04f) SHA1(9bfe06a6ea8c308e4a7035752722babbfd792160))
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3replay )
@@ -1122,14 +1122,14 @@ ROM_START( m3replay )
ROM_LOAD( "ir6sl.p1", 0x7000, 0x1000, CRC(b6346bce) SHA1(56ec83411a21d161f22111abf6977daafcd05e98) )
ROM_LOAD( "ir6sl.p2", 0x6000, 0x1000, CRC(16ce7113) SHA1(e919cfa46c1083fb6073cf34e8ba067035dc81a2) )
ROM_LOAD( "ir6sl.p3", 0x5000, 0x1000, CRC(43951960) SHA1(58560119722c3583bd4094a47137e4d1d41b6c95) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3lineup )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "lineup.hex", 0x4000, 0x4000, CRC(d0c043af) SHA1(39d0fee039c7bd4d257a5537a04f8b35d7ec94df) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1139,7 +1139,7 @@ ROM_START( m3loony )
ROM_LOAD( "loonybin.p1", 0x6000, 0x2000, CRC(33a2877e) SHA1(928ae3968e495b00b3384ba79f229aca25255996) )
ROM_LOAD( "loonybin.p2", 0x4000, 0x2000, CRC(d17dfcec) SHA1(9ffcf392fbf44d751b188d9cefcfd7e98985a4dc) )
ROM_LOAD( "loonybin.p3", 0x2000, 0x2000, CRC(0f3abac7) SHA1(1b6ae40a815ad8841f634816855ac2c0c45976f4) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1148,7 +1148,7 @@ ROM_START( m3llotto )
ROM_LOAD( "llp1.bin", 0x6000, 0x2000, CRC(3ab4045d) SHA1(4df1040c5699716ce3e1b9b3850451da8272d9ba) )
ROM_LOAD( "llp2.bin", 0x4000, 0x2000, CRC(3aa789df) SHA1(a2a95339ae0a670e36eee356282adddb26e9a3e7) )
ROM_LOAD( "llp3.bin", 0x2000, 0x2000, CRC(0c146c03) SHA1(a5e0c3a5b1d324ef702d5cdd583416dda5ea55eb) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1157,7 +1157,7 @@ ROM_START( m3lstrik )
ROM_LOAD( "lucky1.bin", 0x6000, 0x2000, CRC(d543f94c) SHA1(9186914cb3a014c573da1a08985ef4069f6550e4) )
ROM_LOAD( "lucky2.bin", 0x4000, 0x2000, CRC(5708c22b) SHA1(721491de86517ab13eebd77fa0f3cf25410a244a) )
ROM_LOAD( "lucky3.bin", 0x2000, 0x2000, CRC(d3b139ff) SHA1(119001d53f40650c090ebcad0d7263745e33f2ce) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3lstrika )
@@ -1165,7 +1165,7 @@ ROM_START( m3lstrika )
ROM_LOAD( "ls1_3_0.p1", 0x6000, 0x2000, CRC(3369ac39) SHA1(f02a7b14c9e2145813036c7cc2303ae003b618db) )
ROM_LOAD( "lucky2.bin", 0x4000, 0x2000, CRC(5708c22b) SHA1(721491de86517ab13eebd77fa0f3cf25410a244a) )
ROM_LOAD( "lucky3.bin", 0x2000, 0x2000, CRC(d3b139ff) SHA1(119001d53f40650c090ebcad0d7263745e33f2ce) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1173,7 +1173,7 @@ ROM_START( m3magrp )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "mr1.bin", 0x6000, 0x2000, CRC(b6109d11) SHA1(de11cfa34fc3ece4e9de03c1c81e9d082abd2a8c) )
ROM_LOAD( "mr2.bin", 0x4000, 0x2000, CRC(6beedb00) SHA1(37e3addd20068778da8db9aa1c9723b519bfe89e) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1181,7 +1181,7 @@ ROM_START( m3minmax )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "minimax.p1", 0x7000, 0x1000, CRC(941ab5a7) SHA1(c3031e3bd3a71b3a0cabf04059f1c540a8fa745f) )
ROM_LOAD( "minimax.p2", 0x6000, 0x1000, CRC(140a4841) SHA1(822a54a6764226ec81f0c4625af0b2a4a3384db4) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1190,7 +1190,7 @@ ROM_START( m3nnice )
ROM_LOAD( "nn2-1.p1", 0x6000, 0x2000, CRC(584a2420) SHA1(3a2a759d1ab3ce216cde440a81571edf24b95822) )
ROM_LOAD( "nn2-1.p2", 0x4000, 0x2000, CRC(78163deb) SHA1(72779113462a75ca3dacfe2a629f54a5eb5e6cc0) )
ROM_LOAD( "nn2-1.p3", 0x2000, 0x2000, CRC(bed829ee) SHA1(d46ab52f4f250f4ec54bb5bf55dca6e275a20e13) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1198,7 +1198,7 @@ ROM_START( m3oxo )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "oxo1.bin", 0x7000, 0x1000, CRC(ec0c0145) SHA1(817917897360036d26b52d68b9e5594f09b34747) )
ROM_LOAD( "oxo2.bin", 0x6000, 0x1000, CRC(0007923a) SHA1(08207fff9e245033aacceb4f03da866d1703fa80) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1206,7 +1206,7 @@ ROM_START( m3nudge )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "nu1.2l", 0x7000, 0x1000, CRC(184780c5) SHA1(e07f56e536823c28d524a687d607cb2877199210) ) // == m3gcrown
ROM_LOAD( "nu1.2l2", 0x6000, 0x1000, CRC(04fadad3) SHA1(d82536f18122b9fb33fae6a238f29e4c615b3681) ) // == m3gcrown
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1215,14 +1215,14 @@ ROM_START( m3oddson )
ROM_LOAD( "oo3.1x.p1", 0x6000, 0x2000, CRC(bc5f4d43) SHA1(cacdc2d75f908fd85200b6cee014291e8417ce5c) )
ROM_LOAD( "oo3.1x.p2", 0x4000, 0x2000, CRC(87835dc2) SHA1(b9a91a27f930eb3a14e63d566ebae0c5723a150a) )
ROM_LOAD( "oo3.1x.p3", 0x2000, 0x2000, CRC(f621f387) SHA1(5261d501fd51addb510cf1beec2032def08f5873) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3online )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "online2p.bin", 0x6000, 0x2000, CRC(9d5dc1e3) SHA1(74b7af2c25a1a0eb4829328508a4a5d3599ed25f) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1232,7 +1232,7 @@ ROM_START( m3optunl )
ROM_LOAD( "ou6l.p1", 0x6000, 0x2000, CRC(5f65f88f) SHA1(e6353707cf936a80a191d8d068dae9117f2aae45) )
ROM_LOAD( "ou6l.p2", 0x4000, 0x2000, CRC(d8cb1627) SHA1(3c533ee626108c9e962d77ab9b6d651a9a24bdc7) )
ROM_LOAD( "ou6l.p3", 0x2000, 0x2000, CRC(9f097213) SHA1(a95763e35590e51d8e07f55aaab6a6f4afa30f9a) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3ratrce )
@@ -1240,7 +1240,7 @@ ROM_START( m3ratrce )
ROM_LOAD( "rr1", 0x6000, 0x2000, CRC(015263ce) SHA1(5a2253e245acf81b2a6cd288b226e359d77586f1) )
ROM_LOAD( "rr2", 0x4000, 0x2000, CRC(04e69380) SHA1(44561be88548dd46fa3117ca3ab9a1348745b534) )
ROM_LOAD( "rr3", 0x2000, 0x2000, CRC(6f3210c8) SHA1(eb522bf06ac46181e23580bcbfeae5d42ff027ad) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1252,7 +1252,7 @@ ROM_START( m3razdaz )
ROM_LOAD( "rd0-3x.p1", 0x6000, 0x2000, CRC(921a43a9) SHA1(b73446aa28842cc72d30664457743181e0e8a585) )
ROM_LOAD( "rd0-3x.p2", 0x4000, 0x2000, CRC(adf4c26c) SHA1(a1204c2a960691f00dd10cb0073948453b230feb) )
ROM_LOAD( "rd0-3x.p3", 0x2000, 0x2000, CRC(7442e22d) SHA1(b94ced271be0107c56a904e2beedb73af8f4b696) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3razdaza )
@@ -1260,7 +1260,7 @@ ROM_START( m3razdaza )
ROM_LOAD( "rd07x1.bin", 0x6000, 0x2000, CRC(acdd1fc0) SHA1(0011c8af8e8ff5603f41879d897f6ac5fa533e8f) )
ROM_LOAD( "rd07x2.bin", 0x4000, 0x2000, CRC(e7c1be48) SHA1(400f22515a25d208c9345570017cfbf557961def) )
ROM_LOAD( "rd07x3.bin", 0x2000, 0x2000, CRC(f2ffe770) SHA1(ae6a4ce8e2fb1492cdd51d324cd697ed50e22947) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3razdazd )
@@ -1268,7 +1268,7 @@ ROM_START( m3razdazd )
ROM_LOAD( "razzle-p1.bin", 0x6000, 0x2000, CRC(4f1aa030) SHA1(3a09af6a3525300df3ee55d0e129ebd42dfd17c0) )
ROM_LOAD( "razzle-p2.bin", 0x4000, 0x2000, CRC(c1d3ac78) SHA1(dcac9db7be72f0fefd11105c645f2c7a122afe7b) )
ROM_LOAD( "razzle-p3.bin", 0x2000, 0x2000, CRC(98867482) SHA1(8f4a2387ad06fb1e659f8b6a20cb8a1928a28c42) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1276,7 +1276,7 @@ ROM_START( m3rockpl )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "rpl.p1", 0x6000, 0x2000, CRC(8507e316) SHA1(3d7aae76c0ab4d09c286ce0474ad8ae51c204e0b) )
ROM_LOAD( "rpl.p2", 0x4000, 0x2000, CRC(c11a123b) SHA1(52ffa34cd3d196cc7a13fc7d15f144aa198dc1cd) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1284,7 +1284,7 @@ ROM_START( m3rollem )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "roll-em.p1", 0x6000, 0x2000, CRC(2ec2cfa9) SHA1(461240315725f29f53fdcf89e767d17a4d2301eb) )
ROM_LOAD( "roll-em.p2", 0x4000, 0x2000, CRC(fff42143) SHA1(ca0efe2ad5e8d353c6352a4f8fbabe4d2d375fc0) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1293,21 +1293,21 @@ ROM_START( m3rxchng )
ROM_LOAD( "re41tp1.bin", 0x6000, 0x2000, CRC(ba6e84f8) SHA1(fcf6310c5ce285104a0fde00656e3ab1d599fac8) )
ROM_LOAD( "re41tp2.bin", 0x4000, 0x2000, CRC(7c7f67b0) SHA1(5448d755bf6536312898abb7b42141559772fe04) )
ROM_LOAD( "re41tp3.bin", 0x2000, 0x2000, CRC(78b51719) SHA1(78f972ce57cbb0df1d590d6f4302d5405ff1834c) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3snaphp ) // runs but LED display is wrong?
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "sn.bin", 0x6000, 0x2000, CRC(68a9d720) SHA1(5294309082ff89ee33339bee4b350ae672dd34c0) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3snappy ) // clone of hyper viper
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 ) // this should be split..
ROM_LOAD( "snappy.hex", 0x2000, 0x6000, CRC(6bf2052b) SHA1(3cb1dc19aa58cc60193745a04d8fdebcfc1dc200) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1315,21 +1315,21 @@ ROM_START( m3circle )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "spc.p1", 0x7000, 0x1000, CRC(17bfae90) SHA1(e04ab893dfaaf2bf178a6d51daa99aa9b412dfff) )
ROM_LOAD( "spc.p2", 0x6000, 0x1000, CRC(27fac879) SHA1(bb738cb4f541ed51488ab5e4e50288052cd911c7) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3circlea ) // most likely a bad dump of both roms
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "specialcircle.p1", 0x7000, 0x1000, CRC(21f7e745) SHA1(5b050cad957a055396f5aaa5558034cf55d62d18) ) // bad? boot vectors are missing..
ROM_LOAD( "specialcircle.p2", 0x6000, 0x1000, CRC(8d5d26bd) SHA1(e88e368ad411529e982c76bff0696f6966fd7f11) ) // 1ST AND 2ND HALF IDENTICAL
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3circleb )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "splc4.p1", 0x7000, 0x1000, CRC(252eb228) SHA1(e71b7d04bd0aaf5b047f25c755d0ce0593dd2ade) )
ROM_LOAD( "splc4.p2", 0x6000, 0x1000, CRC(86fb0c95) SHA1(d2dc55241f3dddfd7ece8ed041d81abe0da5ecc8) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3scoop )
@@ -1337,21 +1337,21 @@ ROM_START( m3scoop )
ROM_LOAD( "scoopv-2.p1", 0x7000, 0x1000, CRC(e937e298) SHA1(edb4dfb5afd6c2640b6bbd83be591987225bd8fc) )
ROM_LOAD( "scoopv-2.p2", 0x6000, 0x1000, CRC(2a97a254) SHA1(a249e013d86f7e65e43b07ff916c4d0fd5099f44) )
ROM_LOAD( "scoopv-2.p3", 0x5000, 0x1000, CRC(34ab1805) SHA1(1e389e9b47c4b3305ec70c94f49a4e3ca0a6f439) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3spoof )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "spoof1.bin", 0x7000, 0x1000, CRC(8111eec5) SHA1(9fbfeafa20a79fcb8fb71fcd32b515d04bc6bc3a) )
ROM_LOAD( "spoof2.bin", 0x6000, 0x1000, CRC(47309111) SHA1(af7ee94d9405bcadf9432da4725361c6600d1788) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3spoofa )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "spoof10pp1286.bin", 0x7000, 0x1000, BAD_DUMP CRC(2805d082) SHA1(b6b31ec6705b175a8c641089924b100c8427eac0) ) // 1ST AND 2ND HALF IDENTICAL
ROM_LOAD( "spoof10pp2286.bin", 0x6000, 0x1000, CRC(3c104fbe) SHA1(c7825288ae06cd6adabe02532c39944d5f4d3e44) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1360,7 +1360,7 @@ ROM_START( m3slight )
ROM_LOAD( "sal2-9.p1", 0x6000, 0x2000, CRC(1acccff5) SHA1(5c9cb9fe88ca6e11fcb4f22d93fefe67b5b165ff) )
ROM_LOAD( "sal2-9.p2", 0x4000, 0x2000, CRC(28a02a70) SHA1(d9f68031b02c6ab5aee717c04c1834a1c9b250e9) )
ROM_LOAD( "sal2-9.p3", 0x2000, 0x2000, CRC(4dff2186) SHA1(bd15bbe248ed3270278c9e848d600ed49c06c72d) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1371,7 +1371,7 @@ ROM_START( m3supasw )
ROM_LOAD( "sswop_p1.bin", 0x6000, 0x2000, CRC(8bf34554) SHA1(b981dc67905f7ceb02271ca67dd224dc1b4d5a40) )
ROM_LOAD( "sswop_p2.bin", 0x4000, 0x2000, CRC(8b68fd45) SHA1(8cfbf2b7a427a0360640af142dbce5eb834bc648) )
ROM_LOAD( "sswop_p3.bin", 0x2000, 0x2000, CRC(3d821ed4) SHA1(77fa7c67593ea175ad29f0959524c0e225391bbc) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1379,7 +1379,7 @@ ROM_START( m3supadr )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "sa1_0.p1", 0x6000, 0x2000, CRC(b6088056) SHA1(d887e92a76db848045cfe4fec9b1f16ed4d733d9) )
ROM_LOAD( "sa1_0.p2", 0x5000, 0x1000, CRC(7efb91e0) SHA1(faa9292ba3671e0b6458f010a1005037d01ff501) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1388,14 +1388,14 @@ ROM_START( m3sdeal ) // dutch? (based on error message)
ROM_LOAD( "superdeal-p1.bin", 0x6000, 0x2000, CRC(1ca6bc04) SHA1(477a2a9267cefa1cdd8b173886aedaacf8f83a26) )
ROM_LOAD( "superdeal-p2.bin", 0x4000, 0x2000, CRC(49da28eb) SHA1(4192707eb5abb3d3a0679a2c243810c7e61f873d) )
ROM_LOAD( "superdeal-p3.bin", 0x2000, 0x2000, CRC(94e8341a) SHA1(5908995ae4cbf5cd45704b3e4ed7129859c85c0b) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3sexcu )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 ) // needs to be split
ROM_LOAD( "superexchanges.hex", 0x5000, 0x003000, CRC(758323b9) SHA1(524fcb81148ec940ef98568d99fc7a0bda7d727a) ) // == m3xchngua
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1403,14 +1403,14 @@ ROM_START( m3suplin )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "slu1_1.p1", 0x6000, 0x2000, CRC(5b939310) SHA1(4a668cebef092e1f61172850368489818cd50009) )
ROM_LOAD( "slu1_1.p2", 0x4000, 0x2000, CRC(7ae23b70) SHA1(f516f34884f5967ea9145b227561641391d201f1) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3suplina )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "superlineup2v1-0.p1", 0x6000, 0x2000, CRC(9aa1ea5a) SHA1(4649a28aabb71187e8378d123caf60b8400fc4ad) )
ROM_LOAD( "superlineup2v1-0.p2", 0x4000, 0x2000, CRC(3d341b1b) SHA1(9ca413f8c5eaa10f59ba16e09c12934181d795b4) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1419,7 +1419,7 @@ ROM_START( m3supnud )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "snu.p1", 0x7000, 0x1000, CRC(8255e3a4) SHA1(bc7dc2d5e33f88cb96ca311b323d4442f0ec4e1b) )
ROM_LOAD( "snu.p2", 0x6000, 0x1000, CRC(9a5cf1ef) SHA1(b18049cae70c514b68bad526ef7d27f90f4aa439) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1427,7 +1427,7 @@ ROM_START( m3supser )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "spseries-9f.p1", 0x7000, 0x1000, CRC(baf8f44b) SHA1(3f8fcca4a4125f24fd44dfa995876a6743f2624f) )
ROM_LOAD( "spseries-9f.p2", 0x6000, 0x1000, CRC(c1963f6b) SHA1(8d720a95dd041de22000db2504f97e907480cb80) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1435,14 +1435,14 @@ ROM_START( m3supspo ) // boots
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "s-spoof10p_4.p1", 0x6000, 0x2000, CRC(9ec3896f) SHA1(e9b79a0d3bfd6fb1ae7a7ef21112b095f4386e95) )
ROM_LOAD( "s-spoof10p_4.p2", 0x4000, 0x2000, CRC(5bc9036b) SHA1(6209cebeaf9a4841d8bffd7777df6df3f76457c1) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3supspoa )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "superspoof1.bin", 0x6000, 0x2000, CRC(1a9ce342) SHA1(6297528891e9629e489e0ea0c01465dc650d9b4a) )
ROM_LOAD( "superspoof2.bin", 0x4000, 0x2000, CRC(d5108b58) SHA1(10e81c9a2802b820801d3bdee26a360b1d43ebd7) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1451,14 +1451,14 @@ ROM_START( m3supwin )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "superwin.p1", 0x6000, 0x2000, CRC(d6193f5b) SHA1(2813a982d1527d994a045840aaaa20032bd39c45) )
ROM_LOAD( "superwin.p2", 0x4000, 0x2000, CRC(89f9af8a) SHA1(1705a0eb31a5ee77e77811798d3c99b65dc7ade4) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3supwina ) // odd in only p2 differing
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "superwin.p1", 0x6000, 0x2000, CRC(d6193f5b) SHA1(2813a982d1527d994a045840aaaa20032bd39c45) ) // == m3winagna
ROM_LOAD( "superwin_.p2", 0x4000, 0x2000, CRC(f4210f20) SHA1(e0c7e28950683e35102bfd0bef7b74c63a36798f) ) // == m3winagna
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3sweep )
@@ -1466,7 +1466,7 @@ ROM_START( m3sweep )
ROM_LOAD( "ss56p1.bin", 0x6000, 0x2000, CRC(c1fb3eb0) SHA1(95b9c6fe641ef24135a384c2deb58a249d6db632) )
ROM_LOAD( "ss56p2.bin", 0x4000, 0x2000, CRC(29347490) SHA1(ac033708e396810043b73789daca6af993c095ea) )
ROM_LOAD( "ss56p3.bin", 0x2000, 0x2000, CRC(87bea2a5) SHA1(b654eb19a9285746788f9ef4f5e305ec275abbe1) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3sweepa )
@@ -1474,7 +1474,7 @@ ROM_START( m3sweepa )
ROM_LOAD( "ss56tp1.bin", 0x6000, 0x2000, CRC(815b77f9) SHA1(ba827d9ee73a50b8f0c42e18af899450cb8538b8) )
ROM_LOAD( "ss56tp2.bin", 0x4000, 0x2000, CRC(29347490) SHA1(ac033708e396810043b73789daca6af993c095ea) )
ROM_LOAD( "ss56tp3.bin", 0x2000, 0x2000, CRC(87bea2a5) SHA1(b654eb19a9285746788f9ef4f5e305ec275abbe1) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3tlktwn )
@@ -1482,13 +1482,13 @@ ROM_START( m3tlktwn )
ROM_LOAD( "ttown1.bin", 0x7000, 0x1000, CRC(996c435b) SHA1(1fcf5a637cddacd6660da752a1fe10e56a7653c7) )
ROM_LOAD( "ttown2.bin", 0x6000, 0x1000, CRC(93bd6446) SHA1(ef271bb45d27844f0ef1437bbc7f4847f4c0c6ee) )
ROM_LOAD( "ttown3.bin", 0x5000, 0x1000, CRC(0ca34690) SHA1(1734692d82af89272a2243e2c5f584965bfe197f) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3toplin )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "tlines.hex", 0x6000, 0x2000, CRC(b8d652b4) SHA1(fe356ba773f876a390f845daa6464a41e8cd2826) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1497,7 +1497,7 @@ ROM_START( m3topsht )
ROM_LOAD( "topshtp1.bin", 0x6000, 0x2000, CRC(8ee171c9) SHA1(34db6556c9af75c1cb734fe610814fcd3c4bba93) )
ROM_LOAD( "topshtp2.bin", 0x4000, 0x2000, CRC(708cb3b5) SHA1(1e33ce713d0cc75bac675d739c7332109ce1da2d) )
ROM_LOAD( "topshtp3.bin", 0x2000, 0x2000, CRC(ead364ae) SHA1(207e082fb18049863cbc35975bc6885b39ef76da) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1507,21 +1507,21 @@ ROM_START( m3tfair )
ROM_LOAD( "tf1.bin", 0x6000, 0x2000, CRC(0f0e0ef6) SHA1(768e162463ecc3fb6ca4c8bf01504d25ce427cd9) )
ROM_LOAD( "tf2.bin", 0x4000, 0x2000, CRC(8e25c8a5) SHA1(e924677b1820210157706f093f12bdf5acc5211e) )
ROM_LOAD( "tf3.bin", 0x2000, 0x2000, CRC(2ab74abc) SHA1(cf10fa2d4dfceb6358005525fa71bc58a8875128) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3wacky ) // draws letters with the lights!
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "wacky1.bin", 0x6000, 0x2000, CRC(8fad0357) SHA1(0bcf21bb2edf7cce32fa6f028dcceb8ea8a1bec7) )
ROM_LOAD( "wacky2.bin", 0x5000, 0x1000, CRC(534d31c3) SHA1(51d5e174f19bafde9d6d20c0bd0671b3f2857314) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3wigwam )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "wigwamp1.bin", 0x6000, 0x2000, CRC(2ec2cfa9) SHA1(461240315725f29f53fdcf89e767d17a4d2301eb) )
ROM_LOAD( "wigwamp2.bin", 0x4000, 0x2000, CRC(f386dd1a) SHA1(0506c3b79e7394064b1ee97758cd1deb5933c290) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1529,7 +1529,7 @@ ROM_START( m3winagn )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "2pwag.p1", 0x6000, 0x2000, CRC(597df8e6) SHA1(c28bafa9f7552b1f23218844592f0b12b9215891) )
ROM_LOAD( "2pwag.p2", 0x4000, 0x2000, CRC(a48877f9) SHA1(a52cebb9d2f80b2ee4a821628138c406e1b68fe1) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
// these appear to be something else / different hardware
//ROM_LOAD( "bwbnwagn.bin", 0x0000, 0x8000, CRC(1163559a) SHA1(9e13b23eae478fd5b5468599b1163d06e189d446) )
@@ -1539,14 +1539,14 @@ ROM_START( m3winagna )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "wag.p1", 0x6000, 0x2000, CRC(d6193f5b) SHA1(2813a982d1527d994a045840aaaa20032bd39c45) ) // == m3supwina
ROM_LOAD( "wag.p2", 0x4000, 0x2000, CRC(f4210f20) SHA1(e0c7e28950683e35102bfd0bef7b74c63a36798f) ) // == m3supwina
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3winagnb )
ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASE00 )
ROM_LOAD( "wag1.bin", 0x6000, 0x2000, CRC(ded10570) SHA1(abb938e02cac34ec800c53d1c19a66ef8456d483) )
ROM_LOAD( "wag2.bin", 0x4000, 0x2000, CRC(5c6643b5) SHA1(dbaeb22d6879e005c296456f5424eb6147564e9f) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
@@ -1555,7 +1555,7 @@ ROM_START( m3winstr )
ROM_LOAD( "winst1.bin", 0x6000, 0x2000, CRC(d06f8312) SHA1(b32b6eff6928b26422d66f90d6643d03bc021181) )
ROM_LOAD( "winst2.bin", 0x4000, 0x2000, CRC(8bc5df32) SHA1(6a16223f7f93c87dac29758206abe45cc3f45d78) )
ROM_LOAD( "winst3.bin", 0x2000, 0x2000, CRC(d8ce68e8) SHA1(65518db36a195ac5303033086da8ca8e4a61ca13) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
ROM_START( m3winstra )
@@ -1563,7 +1563,7 @@ ROM_START( m3winstra )
ROM_LOAD( "2p wst p1.bin", 0x6000, 0x2000, CRC(34577170) SHA1(6dbe71074b069e44da5231b40a6a9f89a9315f34) )
ROM_LOAD( "2p wst p2.bin", 0x4000, 0x2000, CRC(8bc5df32) SHA1(6a16223f7f93c87dac29758206abe45cc3f45d78) )
ROM_LOAD( "p3.bin", 0x2000, 0x2000, CRC(80bba633) SHA1(2c8fd48c20e6fd9d6ea7cae7466d18dae82fbec3) )
- ROM_COPY( "maincpu", 0x0000, 0x8000, 0x8000 )
+ ROM_COPY( "maincpu", nullptr, 0x8000, 0x8000 )
ROM_END
diff --git a/src/mame/drivers/mpu4vid.cpp b/src/mame/drivers/mpu4vid.cpp
index f87ca949180..3109764ff5a 100644
--- a/src/mame/drivers/mpu4vid.cpp
+++ b/src/mame/drivers/mpu4vid.cpp
@@ -435,7 +435,7 @@ VIDEO_START_MEMBER(mpu4vid_state,mpu4_vid)
/* find first empty slot to decode gfx */
for (m_gfx_index = 0; m_gfx_index < MAX_GFX_ELEMENTS; m_gfx_index++)
- if (m_gfxdecode->gfx(m_gfx_index) == 0)
+ if (m_gfxdecode->gfx(m_gfx_index) == nullptr)
break;
assert(m_gfx_index != MAX_GFX_ELEMENTS);
diff --git a/src/mame/drivers/nemesis.cpp b/src/mame/drivers/nemesis.cpp
index a8a0c4bf327..b58f3dfaaa0 100644
--- a/src/mame/drivers/nemesis.cpp
+++ b/src/mame/drivers/nemesis.cpp
@@ -246,7 +246,7 @@ READ8_MEMBER(nemesis_state::nemesis_portA_r)
res |= 0xd0;
- if (m_vlm != NULL && m_vlm->bsy())
+ if (m_vlm != nullptr && m_vlm->bsy())
res |= 0x20;
return res;
@@ -1450,7 +1450,7 @@ void nemesis_state::machine_start()
save_item(NAME(m_irq_port_last));
/* gx400 voice data is not in a ROM but in sound RAM at $8000 */
- if (m_vlm != NULL && memregion("vlm")->bytes() == 0x800)
+ if (m_vlm != nullptr && memregion("vlm")->bytes() == 0x800)
m_vlm->set_rom(m_voiceram);
}
diff --git a/src/mame/drivers/neogeo.cpp b/src/mame/drivers/neogeo.cpp
index 0e9813edbb4..891ca4dfca8 100644
--- a/src/mame/drivers/neogeo.cpp
+++ b/src/mame/drivers/neogeo.cpp
@@ -1485,12 +1485,12 @@ static MACHINE_CONFIG_DERIVED( mvs, neogeo_arcade )
MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_PROGRAM_MAP(main_map_slot)
- MCFG_NEOGEO_CARTRIDGE_ADD("cartslot1", neogeo_cart, NULL)
- MCFG_NEOGEO_CARTRIDGE_ADD("cartslot2", neogeo_cart, NULL)
- MCFG_NEOGEO_CARTRIDGE_ADD("cartslot3", neogeo_cart, NULL)
- MCFG_NEOGEO_CARTRIDGE_ADD("cartslot4", neogeo_cart, NULL)
- MCFG_NEOGEO_CARTRIDGE_ADD("cartslot5", neogeo_cart, NULL)
- MCFG_NEOGEO_CARTRIDGE_ADD("cartslot6", neogeo_cart, NULL)
+ MCFG_NEOGEO_CARTRIDGE_ADD("cartslot1", neogeo_cart, nullptr)
+ MCFG_NEOGEO_CARTRIDGE_ADD("cartslot2", neogeo_cart, nullptr)
+ MCFG_NEOGEO_CARTRIDGE_ADD("cartslot3", neogeo_cart, nullptr)
+ MCFG_NEOGEO_CARTRIDGE_ADD("cartslot4", neogeo_cart, nullptr)
+ MCFG_NEOGEO_CARTRIDGE_ADD("cartslot5", neogeo_cart, nullptr)
+ MCFG_NEOGEO_CARTRIDGE_ADD("cartslot6", neogeo_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","neogeo")
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/pcw.cpp b/src/mame/drivers/pcw.cpp
index 8f6cc56eba1..e98b7cae2f1 100644
--- a/src/mame/drivers/pcw.cpp
+++ b/src/mame/drivers/pcw.cpp
@@ -1350,7 +1350,7 @@ MACHINE_CONFIG_END
ROM_START(pcw8256)
ROM_REGION(0x10000,"maincpu",0)
- ROM_FILL(0x0000,0x10000,0x00) \
+ ROM_FILL(0x0000,0x10000,nullptr) \
ROM_REGION(0x400,"printer_mcu",0) // i8041 9-pin dot-matrix
ROM_LOAD("40026.ic701", 0, 0x400, CRC(ee8890ae) SHA1(91679cc5e07464ac55ef9a10f7095b2438223332))
ROM_REGION(0x400,"keyboard_mcu",0) // i8048
@@ -1359,7 +1359,7 @@ ROM_END
ROM_START(pcw8512)
ROM_REGION(0x10000,"maincpu",0)
- ROM_FILL(0x0000,0x10000,0x00) \
+ ROM_FILL(0x0000,0x10000,nullptr) \
ROM_REGION(0x400,"printer_mcu",0) // i8041 9-pin dot-matrix
ROM_LOAD("40026.ic701", 0, 0x400, CRC(ee8890ae) SHA1(91679cc5e07464ac55ef9a10f7095b2438223332))
ROM_REGION(0x400,"keyboard_mcu",0) // i8048
@@ -1368,7 +1368,7 @@ ROM_END
ROM_START(pcw9256)
ROM_REGION(0x10000,"maincpu",0)
- ROM_FILL(0x0000,0x10000,0x00) \
+ ROM_FILL(0x0000,0x10000,nullptr) \
ROM_REGION(0x2000,"printer_mcu",0) // i8041 9-pin dot-matrix
ROM_LOAD("40026.ic701", 0, 0x400, CRC(ee8890ae) SHA1(91679cc5e07464ac55ef9a10f7095b2438223332))
ROM_REGION(0x400,"keyboard_mcu",0) // i8048
@@ -1377,7 +1377,7 @@ ROM_END
ROM_START(pcw9512)
ROM_REGION(0x10000,"maincpu",0)
- ROM_FILL(0x0000,0x10000,0x00) \
+ ROM_FILL(0x0000,0x10000,nullptr) \
ROM_REGION(0x2000,"printer_mcu",0) // i8041 daisywheel (schematics say i8039?)
ROM_LOAD("40103.ic109", 0, 0x2000, CRC(a64d450a) SHA1(ebbf0ef19d39912c1c127c748514dd299915f88b))
ROM_REGION(0x400,"keyboard_mcu",0) // i8048
@@ -1386,7 +1386,7 @@ ROM_END
ROM_START(pcw10)
ROM_REGION(0x10000,"maincpu",0)
- ROM_FILL(0x0000,0x10000,0x00) \
+ ROM_FILL(0x0000,0x10000,nullptr) \
ROM_REGION(0x2000,"printer_mcu",0) // i8041 9-pin dot matrix
ROM_LOAD("40026.ic701", 0, 0x400, CRC(ee8890ae) SHA1(91679cc5e07464ac55ef9a10f7095b2438223332))
ROM_REGION(0x400,"keyboard_mcu",0) // i8048
diff --git a/src/mame/drivers/proconn.cpp b/src/mame/drivers/proconn.cpp
index 2b7fca581c5..8d4ef9b730b 100644
--- a/src/mame/drivers/proconn.cpp
+++ b/src/mame/drivers/proconn.cpp
@@ -305,7 +305,7 @@ static const z80_daisy_config z80_daisy_chain[] =
{
{ "z80ctc" },
{ "z80sio" },
- { NULL }
+ { nullptr }
};
void proconn_state::machine_reset()
diff --git a/src/mame/drivers/pve500.cpp b/src/mame/drivers/pve500.cpp
index 9bc202d51e1..9f5c1e07e25 100644
--- a/src/mame/drivers/pve500.cpp
+++ b/src/mame/drivers/pve500.cpp
@@ -105,7 +105,7 @@ static const z80_daisy_config maincpu_daisy_chain[] =
TMPZ84C015_DAISY_INTERNAL,
{ "external_ctc" },
{ "external_sio" },
- { NULL }
+ { nullptr }
};
@@ -387,22 +387,22 @@ static MACHINE_CONFIG_START( pve500, pve500_state )
MCFG_EEPROM_SERIAL_MSM16911_8BIT_ADD("eeprom")
/* FIX-ME: These are actually RS422 ports (except EDL IN/OUT which is indeed an RS232 port)*/
- MCFG_RS232_PORT_ADD("recorder", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("recorder", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("maincpu", tmpz84c015_device, rxa_w))
- MCFG_RS232_PORT_ADD("player1", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("player1", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("maincpu", tmpz84c015_device, rxb_w))
- MCFG_RS232_PORT_ADD("player2", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("player2", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("external_sio", z80dart_device, rxa_w))
- MCFG_RS232_PORT_ADD("edl_inout", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("edl_inout", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("external_sio", z80dart_device, rxb_w))
- MCFG_RS232_PORT_ADD("switcher", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("switcher", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("subcpu", tmpz84c015_device, rxa_w))
- MCFG_RS232_PORT_ADD("serial_mixer", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("serial_mixer", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("subcpu", tmpz84c015_device, rxb_w))
/* ICF5: 2kbytes of RAM shared between the two CPUs (dual-port RAM)*/
diff --git a/src/mame/drivers/px4.cpp b/src/mame/drivers/px4.cpp
index 0b01d174aec..8244b5434b7 100644
--- a/src/mame/drivers/px4.cpp
+++ b/src/mame/drivers/px4.cpp
@@ -61,12 +61,12 @@ public:
m_sio(*this, "sio"),
m_rs232(*this, "rs232"),
m_caps1(*this, "capsule1"), m_caps2(*this, "capsule2"),
- m_caps1_rom(NULL), m_caps2_rom(NULL),
+ m_caps1_rom(nullptr), m_caps2_rom(nullptr),
m_ctrl1(0), m_icrb(0), m_bankr(0),
m_isr(0), m_ier(0), m_str(0), m_sior(0xbf),
m_frc_value(0), m_frc_latch(0),
m_vadr(0), m_yoff(0),
- m_receive_timer(NULL), m_transmit_timer(NULL),
+ m_receive_timer(nullptr), m_transmit_timer(nullptr),
m_artdir(0xff), m_artdor(0xff), m_artsr(0), m_artcr(0),
m_swr(0),
m_one_sec_int_enabled(true), m_alarm_int_enabled(true), m_key_int_enabled(true),
@@ -257,7 +257,7 @@ public:
m_rdnvram(*this, "rdnvram"),
m_rdsocket(*this, "ramdisk_socket"),
m_ramdisk_address(0),
- m_ramdisk(NULL)
+ m_ramdisk(nullptr)
{ }
DECLARE_DRIVER_INIT( px4p );
@@ -1349,23 +1349,23 @@ static INPUT_PORTS_START( px4_h450a )
PORT_INCLUDE(px4_dips)
PORT_START("keyboard_0")
- PORT_BIT(0x00000001, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_F1) PORT_CHAR(UCHAR_MAMEKEY(ESC)) // 00
- PORT_BIT(0x00000002, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_F2) PORT_CHAR(UCHAR_MAMEKEY(PAUSE)) // 01
- PORT_BIT(0x00000004, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_F3) PORT_CHAR(UCHAR_MAMEKEY(F6)) PORT_NAME("Help") // 02
- PORT_BIT(0x00000008, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_F4) PORT_CHAR(UCHAR_MAMEKEY(F1)) PORT_NAME("PF1") // 03
- PORT_BIT(0x00000010, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_F5) PORT_CHAR(UCHAR_MAMEKEY(F2)) PORT_NAME("PF2") // 04
- PORT_BIT(0x00000020, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_F6) PORT_CHAR(UCHAR_MAMEKEY(F3)) PORT_NAME("PF3") // 05
- PORT_BIT(0x00000040, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_F7) PORT_CHAR(UCHAR_MAMEKEY(F4)) PORT_NAME("PF4") // 06
- PORT_BIT(0x00000080, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_F8) PORT_CHAR(UCHAR_MAMEKEY(F5)) PORT_NAME("PF5") // 07
+ PORT_BIT(0x00000001, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_F1) PORT_CHAR(UCHAR_MAMEKEY(ESC)) // 00
+ PORT_BIT(0x00000002, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_F2) PORT_CHAR(UCHAR_MAMEKEY(PAUSE)) // 01
+ PORT_BIT(0x00000004, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_F3) PORT_CHAR(UCHAR_MAMEKEY(F6)) PORT_NAME("Help") // 02
+ PORT_BIT(0x00000008, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_F4) PORT_CHAR(UCHAR_MAMEKEY(F1)) PORT_NAME("PF1") // 03
+ PORT_BIT(0x00000010, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_F5) PORT_CHAR(UCHAR_MAMEKEY(F2)) PORT_NAME("PF2") // 04
+ PORT_BIT(0x00000020, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_F6) PORT_CHAR(UCHAR_MAMEKEY(F3)) PORT_NAME("PF3") // 05
+ PORT_BIT(0x00000040, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_F7) PORT_CHAR(UCHAR_MAMEKEY(F4)) PORT_NAME("PF4") // 06
+ PORT_BIT(0x00000080, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_F8) PORT_CHAR(UCHAR_MAMEKEY(F5)) PORT_NAME("PF5") // 07
PORT_BIT(0x0000ff00, IP_ACTIVE_HIGH, IPT_UNUSED) // 08-0f
- PORT_BIT(0x00010000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_ESC) PORT_CHAR(UCHAR_MAMEKEY(CANCEL)) PORT_NAME("Stop") // 10
- PORT_BIT(0x00020000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') // 11
- PORT_BIT(0x00040000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('"') // 12
- PORT_BIT(0x00080000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') // 13
- PORT_BIT(0x00100000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') // 14
- PORT_BIT(0x00200000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%') // 15
- PORT_BIT(0x00400000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') // 16
- PORT_BIT(0x00800000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)0) PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('\'') // 17
+ PORT_BIT(0x00010000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_ESC) PORT_CHAR(UCHAR_MAMEKEY(CANCEL)) PORT_NAME("Stop") // 10
+ PORT_BIT(0x00020000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_1) PORT_CHAR('1') PORT_CHAR('!') // 11
+ PORT_BIT(0x00040000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('"') // 12
+ PORT_BIT(0x00080000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') // 13
+ PORT_BIT(0x00100000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') // 14
+ PORT_BIT(0x00200000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_5) PORT_CHAR('5') PORT_CHAR('%') // 15
+ PORT_BIT(0x00400000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_6) PORT_CHAR('6') PORT_CHAR('&') // 16
+ PORT_BIT(0x00800000, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CHANGED_MEMBER(DEVICE_SELF, px4_state, key_callback, (void *)nullptr) PORT_CODE(KEYCODE_7) PORT_CHAR('7') PORT_CHAR('\'') // 17
PORT_BIT(0xff000000, IP_ACTIVE_HIGH, IPT_UNUSED) // 18-1f
PORT_START("keyboard_1")
@@ -1520,12 +1520,12 @@ static MACHINE_CONFIG_START( px4, px4_state )
MCFG_TIMER_DRIVER_ADD("extcas_timer", px4_state, ext_cassette_read)
// sio port
- MCFG_EPSON_SIO_ADD("sio", NULL)
+ MCFG_EPSON_SIO_ADD("sio", nullptr)
MCFG_EPSON_SIO_RX(WRITELINE(px4_state, sio_rx_w))
MCFG_EPSON_SIO_PIN(WRITELINE(px4_state, sio_pin_w))
// rs232 port
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(WRITELINE(px4_state, rs232_rx_w))
MCFG_RS232_DCD_HANDLER(WRITELINE(px4_state, rs232_dcd_w))
MCFG_RS232_DSR_HANDLER(WRITELINE(px4_state, rs232_dsr_w))
diff --git a/src/mame/drivers/px8.cpp b/src/mame/drivers/px8.cpp
index f243f8a9e63..6af4feed268 100644
--- a/src/mame/drivers/px8.cpp
+++ b/src/mame/drivers/px8.cpp
@@ -789,10 +789,10 @@ static MACHINE_CONFIG_START( px8, px8_state )
MCFG_SOUND_ROUTE(0, "mono", 0.25)
/* cartridge */
- MCFG_GENERIC_CARTSLOT_ADD("capsule1", generic_plain_slot, NULL)
+ MCFG_GENERIC_CARTSLOT_ADD("capsule1", generic_plain_slot, nullptr)
MCFG_GENERIC_EXTENSIONS("bin,rom")
- MCFG_GENERIC_CARTSLOT_ADD("capsule2", generic_plain_slot, NULL)
+ MCFG_GENERIC_CARTSLOT_ADD("capsule2", generic_plain_slot, nullptr)
MCFG_GENERIC_EXTENSIONS("bin,rom")
/* devices */
diff --git a/src/mame/drivers/rainbow.cpp b/src/mame/drivers/rainbow.cpp
index e5b1969ca82..20fed3aec02 100644
--- a/src/mame/drivers/rainbow.cpp
+++ b/src/mame/drivers/rainbow.cpp
@@ -893,7 +893,7 @@ void rainbow_state::machine_reset()
// *********** FLOPPY DISK CONTROLLER
m_unit = INVALID_DRIVE;
m_fdc->reset();
- m_fdc->set_floppy(NULL);
+ m_fdc->set_floppy(nullptr);
m_fdc->dden_w(0);
m_z80->set_input_line(INPUT_LINE_HALT, ASSERT_LINE);
@@ -1150,19 +1150,19 @@ hard_disk_file *(rainbow_state::rainbow_hdc_file(int drv))
m_hdc_drive_ready = false;
if (m_inp5->read() != 0x01) // ...PRESENT?
- return NULL;
+ return nullptr;
if (drv != 0)
- return NULL;
+ return nullptr;
- harddisk_image_device *img = NULL;
+ harddisk_image_device *img = nullptr;
img = dynamic_cast<harddisk_image_device *>(machine().device(subtag("harddisk1").c_str()));
if (!img)
- return NULL;
+ return nullptr;
if (!img->exists())
- return NULL;
+ return nullptr;
hard_disk_file *file = img->get_hard_disk_file();
hard_disk_info *info = hard_disk_get_info(file);
@@ -1184,14 +1184,14 @@ hard_disk_file *(rainbow_state::rainbow_hdc_file(int drv))
info->heads, info->cylinders, info->sectors, info->sectorbytes);
printf("\n <<< === REJECTED = (SANITY CHECK FAILED) === >>> \n");
- return NULL;
+ return nullptr;
}
}
// LBA sector from CHS
static UINT32 get_and_print_lbasector(device_t *device,hard_disk_info *info, UINT16 cylinder, UINT8 head, UINT8 sector_number)
{
- if (info == NULL)
+ if (info == nullptr)
return 0;
// LBA_ADDRESS = (C * HEADS + H) * NUMBER_SECTORS + (S - 1)
@@ -1296,7 +1296,7 @@ WRITE_LINE_MEMBER(rainbow_state::hdc_write_sector)
output_set_value("led1", 0); // (1 = OFF ) =HARD DISK ACTIVITY =
MOTOR_DISABLE_counter = 20;
- if (rainbow_hdc_file(0) != NULL)
+ if (rainbow_hdc_file(0) != nullptr)
{
success = do_write_sector();
if (success < 88)
@@ -1428,7 +1428,7 @@ READ8_MEMBER(rainbow_state::hd_status_68_r)
{
// (*) Bits 5-7 : HARD WIRED IDENTIFICATION BITS, bits 5+7 = 1 and bit 6 = 0 (= 101 f?r RD51 module)
int data = 0xe0; // 111 gives DRIVE NOT READY (when W is pressed on boot screen)
- if ((m_inp5->read() == 0x01) && (rainbow_hdc_file(0) != NULL))
+ if ((m_inp5->read() == 0x01) && (rainbow_hdc_file(0) != nullptr))
data = 0xa0; // A0 : OK, DRIVE IS READY (!)
int my_offset = 0x07;
@@ -1955,7 +1955,7 @@ WRITE8_MEMBER(rainbow_state::z80_diskcontrol_w)
else
drive = data & 3;
- floppy_connector *con = NULL;
+ floppy_connector *con = nullptr;
if (drive < MAX_FLOPPIES)
con = machine().device<floppy_connector>(names[drive]);
@@ -1971,15 +1971,15 @@ WRITE8_MEMBER(rainbow_state::z80_diskcontrol_w)
{
printf("(m_unit = %i) ** SELECTED DRIVE ** INVALID. (selected drive = %i)\n", m_unit, selected_drive);
m_unit = INVALID_DRIVE;
- m_floppy = NULL;
+ m_floppy = nullptr;
}
- if (m_floppy != NULL)
+ if (m_floppy != nullptr)
{
m_fdc->set_floppy(m_floppy); // Sets new _image device_
if (!m_floppy->exists())
{
- m_floppy = NULL;
+ m_floppy = nullptr;
printf("(m_unit = %i) SELECTED IMAGE *** DOES NOT EXIST *** (selected drive = %i)\n", m_unit, selected_drive);
selected_drive = INVALID_DRIVE;
//m_unit = INVALID_DRIVE;
diff --git a/src/mame/drivers/s11.cpp b/src/mame/drivers/s11.cpp
index 2b9ef22a0eb..38e5c3dd98c 100644
--- a/src/mame/drivers/s11.cpp
+++ b/src/mame/drivers/s11.cpp
@@ -502,7 +502,7 @@ ROM_START(grand_l4)
ROM_LOAD("lzrd_u26.l4", 0x4000, 0x2000, CRC(5fe50db6) SHA1(7e2adfefce5c33ad605606574dbdfb2642aa0e85))
ROM_RELOAD( 0x6000, 0x2000)
ROM_LOAD("lzrd_u27.l4", 0x8000, 0x8000, CRC(6462ca55) SHA1(0ebfa998d3cefc213ada9ed815d44977120e5d6d))
- ROM_FILL(0x6035, 1, 0) // default to English
+ ROM_FILL(0x6035, 1, nullptr) // default to English
// according to the manual these should be 32K roms just like the other games here
ROM_REGION(0x20000, "audiocpu", ROMREGION_ERASEFF)
diff --git a/src/mame/drivers/segaorun.cpp b/src/mame/drivers/segaorun.cpp
index 6f33389a665..1b443a03487 100644
--- a/src/mame/drivers/segaorun.cpp
+++ b/src/mame/drivers/segaorun.cpp
@@ -566,7 +566,7 @@ READ8_MEMBER( segaorun_state::sound_data_r )
void segaorun_state::machine_reset()
{
// reset misc components
- if (m_custom_map != NULL)
+ if (m_custom_map != nullptr)
m_mapper->configure_explicit(m_custom_map);
m_segaic16vid->tilemap_reset(*m_screen);
@@ -2894,7 +2894,7 @@ DRIVER_INIT_MEMBER(segaorun_state,generic)
m_scanline_timer = timer_alloc(TID_SCANLINE);
// configure the NVRAM to point to our workram
- if (m_nvram != NULL)
+ if (m_nvram != nullptr)
m_nvram->set_base(m_workram, m_workram.bytes());
// point globals to allocated memory regions
diff --git a/src/mame/drivers/segas32.cpp b/src/mame/drivers/segas32.cpp
index 6e107d3070c..54dc575c541 100644
--- a/src/mame/drivers/segas32.cpp
+++ b/src/mame/drivers/segas32.cpp
@@ -791,7 +791,7 @@ INTERRUPT_GEN_MEMBER(segas32_state::start_of_vblank_int)
machine().scheduler().timer_set(m_screen->time_until_pos(0), timer_expired_delegate(FUNC(segas32_state::end_of_vblank_int),this));
if (m_system32_prot_vblank)
(this->*m_system32_prot_vblank)();
- if (m_s32comm != NULL)
+ if (m_s32comm != nullptr)
m_s32comm->check_vint_irq();
}
@@ -4921,10 +4921,10 @@ void segas32_state::segas32_common_init(read16_delegate custom_r, write16_delega
/* reset the custom handlers and other pointers */
m_custom_io_r[0] = custom_r;
m_custom_io_w[0] = custom_w;
- m_system32_prot_vblank = NULL;
- m_sw1_output = NULL;
- m_sw2_output = NULL;
- m_sw3_output = NULL;
+ m_system32_prot_vblank = nullptr;
+ m_sw1_output = nullptr;
+ m_sw2_output = nullptr;
+ m_sw3_output = nullptr;
}
@@ -5203,8 +5203,8 @@ void segas32_state::init_arescue(int m_hasdsp)
segas32_common_init(read16_delegate(FUNC(segas32_state::analog_custom_io_r),this), write16_delegate(FUNC(segas32_state::analog_custom_io_w),this));
if (m_hasdsp) m_maincpu->space(AS_PROGRAM).install_readwrite_handler(0xa00000, 0xa00007, read16_delegate(FUNC(segas32_state::arescue_dsp_r),this), write16_delegate(FUNC(segas32_state::arescue_dsp_w),this));
- for (int i = 0; i < 6; i++)
- m_arescue_dsp_io[i] = 0x00;
+ for (auto & elem : m_arescue_dsp_io)
+ elem = 0x00;
m_sw1_output = &segas32_state::arescue_sw1_output;
}
diff --git a/src/mame/drivers/segaufo.cpp b/src/mame/drivers/segaufo.cpp
index c73f27938b7..a125a11dc0c 100644
--- a/src/mame/drivers/segaufo.cpp
+++ b/src/mame/drivers/segaufo.cpp
@@ -726,12 +726,12 @@ void ufo_state::machine_start()
for (int m = 0; m < 4; m++)
{
- for (int p = 0; p < 2; p++)
+ for (auto & elem : m_player)
{
- m_player[p].motor[m].running = 0;
- m_player[p].motor[m].direction = 0;
- m_player[p].motor[m].position = 0.5;
- m_player[p].motor[m].speed = motor_speeds[m];
+ elem.motor[m].running = 0;
+ elem.motor[m].direction = 0;
+ elem.motor[m].position = 0.5;
+ elem.motor[m].speed = motor_speeds[m];
}
save_item(NAME(m_player[0].motor[m].running), m);
diff --git a/src/mame/drivers/sms.cpp b/src/mame/drivers/sms.cpp
index 510849ccc67..4bad2a9de79 100644
--- a/src/mame/drivers/sms.cpp
+++ b/src/mame/drivers/sms.cpp
@@ -503,7 +503,7 @@ static MACHINE_CONFIG_START( sms_ntsc_base, sms_state )
MCFG_SOUND_ADD("segapsg", SEGAPSG, XTAL_53_693175MHz/15)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
- MCFG_SMS_CARTRIDGE_ADD("slot", sms_cart, NULL)
+ MCFG_SMS_CARTRIDGE_ADD("slot", sms_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","sms")
@@ -592,8 +592,8 @@ static MACHINE_CONFIG_DERIVED( sms1_ntsc, sms_ntsc_base )
MCFG_SEGA315_5124_PAUSE_CB(WRITELINE(sms_state, sms_pause_callback))
// card and expansion slots, not present in Master System II
- MCFG_SMS_CARD_ADD("mycard", sms_cart, NULL)
- MCFG_SMS_EXPANSION_ADD("exp", sms_expansion_devices, NULL)
+ MCFG_SMS_CARD_ADD("mycard", sms_cart, nullptr)
+ MCFG_SMS_EXPANSION_ADD("exp", sms_expansion_devices, nullptr)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED_CLASS( sms_sdisp, sms1_ntsc, smssdisp_state )
@@ -609,38 +609,38 @@ static MACHINE_CONFIG_DERIVED_CLASS( sms_sdisp, sms1_ntsc, smssdisp_state )
MCFG_DEVICE_REMOVE("mycard")
MCFG_DEVICE_REMOVE("exp")
- MCFG_SMS_CARTRIDGE_ADD("slot2", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot3", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot4", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot5", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot6", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot7", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot8", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot9", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot10", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot11", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot12", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot13", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot14", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot15", sms_cart, NULL)
- MCFG_SMS_CARTRIDGE_ADD("slot16", sms_cart, NULL)
-
- MCFG_SMS_CARD_ADD("slot17", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot18", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot19", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot20", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot21", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot22", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot23", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot24", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot25", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot26", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot27", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot28", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot29", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot30", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot31", sms_cart, NULL)
- MCFG_SMS_CARD_ADD("slot32", sms_cart, NULL)
+ MCFG_SMS_CARTRIDGE_ADD("slot2", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot3", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot4", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot5", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot6", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot7", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot8", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot9", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot10", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot11", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot12", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot13", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot14", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot15", sms_cart, nullptr)
+ MCFG_SMS_CARTRIDGE_ADD("slot16", sms_cart, nullptr)
+
+ MCFG_SMS_CARD_ADD("slot17", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot18", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot19", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot20", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot21", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot22", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot23", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot24", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot25", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot26", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot27", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot28", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot29", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot30", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot31", sms_cart, nullptr)
+ MCFG_SMS_CARD_ADD("slot32", sms_cart, nullptr)
MACHINE_CONFIG_END
static MACHINE_CONFIG_START( sms_pal_base, sms_state )
@@ -660,7 +660,7 @@ static MACHINE_CONFIG_START( sms_pal_base, sms_state )
MCFG_SOUND_ADD("segapsg", SEGAPSG, MASTER_CLOCK_PAL/15)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
- MCFG_SMS_CARTRIDGE_ADD("slot", sms_cart, NULL)
+ MCFG_SMS_CARTRIDGE_ADD("slot", sms_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list","sms")
@@ -732,8 +732,8 @@ static MACHINE_CONFIG_DERIVED( sms1_pal, sms_pal_base )
MCFG_SEGA315_5124_PAUSE_CB(WRITELINE(sms_state, sms_pause_callback))
// card and expansion slots, not present in Master System II
- MCFG_SMS_CARD_ADD("mycard", sms_cart, NULL)
- MCFG_SMS_EXPANSION_ADD("exp", sms_expansion_devices, NULL)
+ MCFG_SMS_CARD_ADD("mycard", sms_cart, nullptr)
+ MCFG_SMS_EXPANSION_ADD("exp", sms_expansion_devices, nullptr)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( sms1_kr, sms1_ntsc )
@@ -741,7 +741,7 @@ static MACHINE_CONFIG_DERIVED( sms1_kr, sms1_ntsc )
MCFG_CPU_IO_MAP(sms1kr_io)
MCFG_DEVICE_REMOVE("slot")
- MCFG_SG1000MK3_CARTRIDGE_ADD("slot", sg1000mk3_cart, NULL)
+ MCFG_SG1000MK3_CARTRIDGE_ADD("slot", sg1000mk3_cart, nullptr)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( sms1_krfm, sms1_kr )
@@ -770,7 +770,7 @@ static MACHINE_CONFIG_DERIVED( sms2_kr, sms2_ntsc )
MCFG_CPU_IO_MAP(smsj_io)
MCFG_DEVICE_REMOVE("slot")
- MCFG_SG1000MK3_CARTRIDGE_ADD("slot", sg1000mk3_cart, NULL)
+ MCFG_SG1000MK3_CARTRIDGE_ADD("slot", sg1000mk3_cart, nullptr)
MACHINE_CONFIG_END
static MACHINE_CONFIG_START( gamegear, sms_state )
@@ -809,11 +809,11 @@ static MACHINE_CONFIG_START( gamegear, sms_state )
MCFG_SOUND_ROUTE(1, "rspeaker", 1.00)
/* cartridge */
- MCFG_GG_CARTRIDGE_ADD("slot", gg_cart, NULL)
+ MCFG_GG_CARTRIDGE_ADD("slot", gg_cart, nullptr)
MCFG_SOFTWARE_LIST_ADD("cart_list", "gamegear")
- MCFG_GG_EXT_PORT_ADD("ext", gg_ext_port_devices, NULL)
+ MCFG_GG_EXT_PORT_ADD("ext", gg_ext_port_devices, nullptr)
MCFG_GG_EXT_PORT_TH_INPUT_HANDLER(WRITELINE(sms_state, gg_ext_th_input))
//MCFG_GG_EXT_PORT_PIXEL_HANDLER(READ32(sms_state, sms_pixel_color)) // only for GG-TV mod
MACHINE_CONFIG_END
@@ -849,7 +849,7 @@ ROM_END
ROM_START(smssdisp)
ROM_REGION(0x4000, "maincpu", 0)
- ROM_FILL(0x0000, 0x4000, 0x00)
+ ROM_FILL(0x0000, 0x4000, nullptr)
ROM_REGION(0x4000, "user1", 0)
ROM_FILL(0x0000, 0x4000, 0xff)
@@ -888,7 +888,7 @@ ROM_END
ROM_START(sg1000m3)
ROM_REGION(0x4000, "maincpu", 0)
- ROM_FILL(0x0000, 0x4000, 0x00)
+ ROM_FILL(0x0000, 0x4000, nullptr)
ROM_END
ROM_START(smsj) /* PCB Label: "SEGA(R) IC BOARD M4J MAIN // 837-6418"; has "YM2413 // 78 04 71 G" at IC10; Back of pcb has traces marked "171-5541 (C)SEGA 1987 MADE IN JAPAN"
@@ -912,7 +912,7 @@ ROM_END
ROM_START(gamegear)
ROM_REGION(0x4000, "maincpu", 0)
- ROM_FILL(0x0000, 0x4000, 0x00)
+ ROM_FILL(0x0000, 0x4000, nullptr)
ROM_REGION(0x0400, "user1", 0)
ROM_SYSTEM_BIOS( 0, "none", "No BIOS" ) /* gamegear */
diff --git a/src/mame/drivers/subsino.cpp b/src/mame/drivers/subsino.cpp
index 3008bb0e288..6b83bcb135a 100644
--- a/src/mame/drivers/subsino.cpp
+++ b/src/mame/drivers/subsino.cpp
@@ -3759,11 +3759,11 @@ ROM_START( mtrainnv )
ROM_REGION( 0x10000, "tilemap", 0 )
ROM_LOAD( "mtrain_tilemap.bin", 0x00000, 0x10000, NO_DUMP )
- ROM_COPY( "maincpu", 0x0000, 0x00000, 0x10000 ) // just to show something
+ ROM_COPY( "maincpu", nullptr, 0x00000, 0x10000 ) // just to show something
ROM_REGION( 0x10000, "reels", 0 )
ROM_LOAD( "mtrain_reels.bin", 0x00000, 0x10000, NO_DUMP )
- ROM_COPY( "maincpu", 0x0000, 0x00000, 0x10000 ) // just to show something
+ ROM_COPY( "maincpu", nullptr, 0x00000, 0x10000 ) // just to show something
ROM_END
diff --git a/src/mame/drivers/super80.cpp b/src/mame/drivers/super80.cpp
index 2c6b069e4bf..ec9cd2286b4 100644
--- a/src/mame/drivers/super80.cpp
+++ b/src/mame/drivers/super80.cpp
@@ -643,7 +643,7 @@ GFXDECODE_END
static const z80_daisy_config super80_daisy_chain[] =
{
{ "z80pio" },
- { NULL }
+ { nullptr }
};
//-------------------------------------------------
diff --git a/src/mame/drivers/tatsumi.cpp b/src/mame/drivers/tatsumi.cpp
index 192e4e1ec0c..6d3056d6e77 100644
--- a/src/mame/drivers/tatsumi.cpp
+++ b/src/mame/drivers/tatsumi.cpp
@@ -832,7 +832,7 @@ GFXDECODE_END
static GFXDECODE_START( roundup5 )
GFXDECODE_ENTRY( "gfx1", 0, spritelayout, 1024, 256)
- GFXDECODE_ENTRY( NULL, 0, roundup5_vramlayout, 0, 16)
+ GFXDECODE_ENTRY( nullptr, 0, roundup5_vramlayout, 0, 16)
GFXDECODE_END
static GFXDECODE_START( cyclwarr )
diff --git a/src/mame/drivers/tavernie.cpp b/src/mame/drivers/tavernie.cpp
index c1ea74dc14d..4733eacb843 100644
--- a/src/mame/drivers/tavernie.cpp
+++ b/src/mame/drivers/tavernie.cpp
@@ -192,7 +192,7 @@ SLOT_INTERFACE_END
// can support 3 drives
WRITE8_MEMBER( tavernie_state::ds_w )
{
- floppy_image_device *floppy = NULL;
+ floppy_image_device *floppy = nullptr;
if ((data & 3) == 1) floppy = m_floppy0->get_device();
//if ((data & 3) == 2) floppy = m_floppy1->get_device();
//if ((data & 3) == 3) floppy = m_floppy2->get_device();
diff --git a/src/mame/drivers/tecnbras.cpp b/src/mame/drivers/tecnbras.cpp
index 5e1b7870e38..a3e70591dda 100644
--- a/src/mame/drivers/tecnbras.cpp
+++ b/src/mame/drivers/tecnbras.cpp
@@ -60,9 +60,9 @@ ADDRESS_MAP_END
DRIVER_INIT_MEMBER( tecnbras_state, tecnbras )
{
m_xcoord = 0;
- for (int x=0; x<14; x++){
+ for (auto & elem : m_digit){
for (int y=0; y<7; y++){
- m_digit[x][y] = 0;
+ elem[y] = 0;
}
}
}
diff --git a/src/mame/drivers/tispeak.cpp b/src/mame/drivers/tispeak.cpp
index 261f189ed1a..92869018edb 100644
--- a/src/mame/drivers/tispeak.cpp
+++ b/src/mame/drivers/tispeak.cpp
@@ -432,7 +432,7 @@ void tispeak_state::init_cartridge()
{
m_overlay = 0;
- if (m_cart != NULL && m_cart->exists())
+ if (m_cart != nullptr && m_cart->exists())
{
std::string region_tag;
memory_region *src = memregion(region_tag.assign(m_cart->tag()).append(GENERIC_ROM_REGION_TAG).c_str());
diff --git a/src/mame/drivers/tm990189.cpp b/src/mame/drivers/tm990189.cpp
index f6c778dd305..e478c7cb997 100644
--- a/src/mame/drivers/tm990189.cpp
+++ b/src/mame/drivers/tm990189.cpp
@@ -441,9 +441,9 @@ public:
virtual bool is_creatable() const { return 1; }
virtual bool must_be_loaded() const { return 0; }
virtual bool is_reset_on_load() const { return 0; }
- virtual const char *image_interface() const { return NULL; }
+ virtual const char *image_interface() const { return nullptr; }
virtual const char *file_extensions() const { return ""; }
- virtual const option_guide *create_option_guide() const { return NULL; }
+ virtual const option_guide *create_option_guide() const { return nullptr; }
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr);
diff --git a/src/mame/drivers/topspeed.cpp b/src/mame/drivers/topspeed.cpp
index 524dfd5b96c..74c44cfd8df 100644
--- a/src/mame/drivers/topspeed.cpp
+++ b/src/mame/drivers/topspeed.cpp
@@ -313,7 +313,7 @@ WRITE8_MEMBER(topspeed_state::msm5205_command_w)
WRITE8_MEMBER(topspeed_state::volume_w)
{
// The volume is controlled by two Taito TC0060DCA hybrid volume modules
- filter_volume_device *filter = NULL;
+ filter_volume_device *filter = nullptr;
switch (offset)
{
diff --git a/src/mame/drivers/undrfire.cpp b/src/mame/drivers/undrfire.cpp
index 97d7d4fe49a..97e4a16a4e0 100644
--- a/src/mame/drivers/undrfire.cpp
+++ b/src/mame/drivers/undrfire.cpp
@@ -794,7 +794,7 @@ ROM_START( undrfire )
ROM_LOAD16_BYTE( "d67-10", 0x000000, 0x100000, CRC(d79e6ce9) SHA1(8b38302971816d599cdaa3279cb6395441373c6f) ) /* PIV 8x8 tiles, 6bpp */
ROM_LOAD16_BYTE( "d67-11", 0x000001, 0x100000, CRC(7a401bb3) SHA1(47257a6a4b37ec1ceb4e974b776ee3ea30db06fa) )
ROM_LOAD ( "d67-12", 0x300000, 0x100000, CRC(67b16fec) SHA1(af0f9f50516331780ef6cfab1e12a23edf87daa7) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION16_LE( 0x80000, "user1", 0 )
ROM_LOAD16_WORD( "d67-13", 0x00000, 0x80000, CRC(42e7690d) SHA1(5f00f3f814653733bf9a5cb010675799de02fa76) ) /* STY, spritemap */
@@ -834,7 +834,7 @@ ROM_START( undrfireu )
ROM_LOAD16_BYTE( "d67-10", 0x000000, 0x100000, CRC(d79e6ce9) SHA1(8b38302971816d599cdaa3279cb6395441373c6f) ) /* PIV 8x8 tiles, 6bpp */
ROM_LOAD16_BYTE( "d67-11", 0x000001, 0x100000, CRC(7a401bb3) SHA1(47257a6a4b37ec1ceb4e974b776ee3ea30db06fa) )
ROM_LOAD ( "d67-12", 0x300000, 0x100000, CRC(67b16fec) SHA1(af0f9f50516331780ef6cfab1e12a23edf87daa7) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION16_LE( 0x80000, "user1", 0 )
ROM_LOAD16_WORD( "d67-13", 0x00000, 0x80000, CRC(42e7690d) SHA1(5f00f3f814653733bf9a5cb010675799de02fa76) ) /* STY, spritemap */
@@ -873,7 +873,7 @@ ROM_START( undrfirej )
ROM_LOAD16_BYTE( "d67-10", 0x000000, 0x100000, CRC(d79e6ce9) SHA1(8b38302971816d599cdaa3279cb6395441373c6f) ) /* PIV 8x8 tiles, 6bpp */
ROM_LOAD16_BYTE( "d67-11", 0x000001, 0x100000, CRC(7a401bb3) SHA1(47257a6a4b37ec1ceb4e974b776ee3ea30db06fa) )
ROM_LOAD ( "d67-12", 0x300000, 0x100000, CRC(67b16fec) SHA1(af0f9f50516331780ef6cfab1e12a23edf87daa7) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION16_LE( 0x80000, "user1", 0 )
ROM_LOAD16_WORD( "d67-13", 0x00000, 0x80000, CRC(42e7690d) SHA1(5f00f3f814653733bf9a5cb010675799de02fa76) ) /* STY, spritemap */
@@ -921,7 +921,7 @@ ROM_START( cbombers )
ROM_LOAD16_BYTE( "d83_16.ic19", 0x000000, 0x100000, CRC(d364cf1e) SHA1(ee43f50edf50ec840acfb98b1314140ee9693839) )
ROM_LOAD16_BYTE( "d83_17.ic5", 0x000001, 0x100000, CRC(0ffe737c) SHA1(5923a4edf9d0c8339f793840c2bdc691e2c651e6) )
ROM_LOAD ( "d83_18.ic6", 0x300000, 0x100000, CRC(87979155) SHA1(0ffafa970f9f9c98f8938104b97e63d2b5757804) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION16_LE( 0x80000, "user1", 0 )
ROM_LOAD16_BYTE( "d83_31.ic10", 0x000001, 0x40000, CRC(85c37961) SHA1(15ea5c4904d910575e984e146c8941dff913d45f) )
@@ -975,7 +975,7 @@ ROM_START( cbombersj )
ROM_LOAD16_BYTE( "d83_16.ic19", 0x000000, 0x100000, CRC(d364cf1e) SHA1(ee43f50edf50ec840acfb98b1314140ee9693839) )
ROM_LOAD16_BYTE( "d83_17.ic5", 0x000001, 0x100000, CRC(0ffe737c) SHA1(5923a4edf9d0c8339f793840c2bdc691e2c651e6) )
ROM_LOAD ( "d83_18.ic6", 0x300000, 0x100000, CRC(87979155) SHA1(0ffafa970f9f9c98f8938104b97e63d2b5757804) )
- ROM_FILL ( 0x200000, 0x100000, 0 )
+ ROM_FILL ( 0x200000, 0x100000, nullptr )
ROM_REGION16_LE( 0x80000, "user1", 0 )
ROM_LOAD16_BYTE( "d83_31.ic10", 0x000001, 0x40000, CRC(85c37961) SHA1(15ea5c4904d910575e984e146c8941dff913d45f) )
@@ -1060,11 +1060,11 @@ ROM_START( cbombersp )
ROM_LOAD16_BYTE( "ic44_scc1.bin", 0x000001, 0x080000, CRC(868d0d3d) SHA1(29251d545548856296b5ae32a96f2eeef2418dc4) )
ROM_LOAD16_BYTE( "ic43_scc4.bin", 0x000000, 0x080000, CRC(2f170ee4) SHA1(2b8f07186c9f7589e1af131b8c377443a29bd149) )
ROM_LOAD ( "ic45_5cc2.bin", 0x300000, 0x080000, CRC(7ae48d63) SHA1(2a8b291f0a683ed5b0c39d221737956b6fc72fa5) )
- ROM_FILL ( 0x200000, 0x080000, 0 )
+ ROM_FILL ( 0x200000, 0x080000, nullptr )
ROM_LOAD16_BYTE( "ic58_f357.bin", 0x100001, 0x080000, CRC(16486967) SHA1(c2fd6c9f21232656b52ab589ac61f94aa728524e) )
ROM_LOAD16_BYTE( "ic57_1a62.bin", 0x100000, 0x080000, CRC(afd45e35) SHA1(6d7c0729c7d2b204473679b97923130e289f429d) )
ROM_LOAD ( "ic59_7cce.bin", 0x380000, 0x080000, CRC(ee762199) SHA1(d56e96feeedba8b77f8f18cb380d2902ca3f1e50) )
- ROM_FILL ( 0x280000, 0x080000, 0 )
+ ROM_FILL ( 0x280000, 0x080000, nullptr )
ROM_REGION16_LE( 0x80000, "user1", 0 )
ROM_LOAD16_BYTE( "st8_ic2.bin", 0x000001, 0x40000, CRC(d74254d8) SHA1(f4a4f9d95f70edf74d937be067d6a9f68a955ea7) )
diff --git a/src/mame/drivers/unixpc.cpp b/src/mame/drivers/unixpc.cpp
index 0372d6493d2..e08ce2a57a7 100644
--- a/src/mame/drivers/unixpc.cpp
+++ b/src/mame/drivers/unixpc.cpp
@@ -124,7 +124,7 @@ WRITE16_MEMBER( unixpc_state::disk_control_w )
if (BIT(data, 6))
m_wd2797->set_floppy(m_floppy);
else
- m_wd2797->set_floppy(NULL);
+ m_wd2797->set_floppy(nullptr);
}
WRITE_LINE_MEMBER( unixpc_state::wd2797_intrq_w )
diff --git a/src/mame/drivers/vboy.cpp b/src/mame/drivers/vboy.cpp
index a50522781a6..bfa75598ee5 100644
--- a/src/mame/drivers/vboy.cpp
+++ b/src/mame/drivers/vboy.cpp
@@ -1375,7 +1375,7 @@ static MACHINE_CONFIG_START( vboy, vboy_state )
MCFG_SCREEN_PALETTE("palette")
/* cartridge */
- MCFG_VBOY_CARTRIDGE_ADD("cartslot", vboy_cart, NULL)
+ MCFG_VBOY_CARTRIDGE_ADD("cartslot", vboy_cart, nullptr)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","vboy")
diff --git a/src/mame/drivers/vcs80.cpp b/src/mame/drivers/vcs80.cpp
index cd6e9512825..7903d237359 100644
--- a/src/mame/drivers/vcs80.cpp
+++ b/src/mame/drivers/vcs80.cpp
@@ -187,7 +187,7 @@ WRITE8_MEMBER( vcs80_state::pio_pb_w )
static const z80_daisy_config vcs80_daisy_chain[] =
{
{ Z80PIO_TAG },
- { NULL }
+ { nullptr }
};
/* Machine Initialization */
diff --git a/src/mame/drivers/vicdual.cpp b/src/mame/drivers/vicdual.cpp
index 7c11760bf3d..31af4ff77da 100644
--- a/src/mame/drivers/vicdual.cpp
+++ b/src/mame/drivers/vicdual.cpp
@@ -164,7 +164,7 @@ CUSTOM_INPUT_MEMBER(vicdual_state::get_vblank_comp)
CUSTOM_INPUT_MEMBER(vicdual_state::get_composite_blank_comp)
{
- return (get_vblank_comp(field, 0) && !m_screen->hblank());
+ return (get_vblank_comp(field, nullptr) && !m_screen->hblank());
}
@@ -2334,7 +2334,7 @@ static INPUT_PORTS_START( nsub )
PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_SPECIAL ) PORT_CUSTOM_MEMBER(DEVICE_SELF, vicdual_state, read_coin_status, NULL)
PORT_START("COIN")
- PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, vicdual_state,nsub_coin_in, (void*)0)
+ PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, vicdual_state,nsub_coin_in, (void*)nullptr)
PORT_BIT( 0x02, IP_ACTIVE_HIGH, IPT_COIN2 ) PORT_CHANGED_MEMBER(DEVICE_SELF, vicdual_state,nsub_coin_in, (void*)1)
PORT_BIT( 0x04, IP_ACTIVE_HIGH, IPT_SERVICE1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, vicdual_state,nsub_coin_in, (void*)2)
@@ -3561,8 +3561,8 @@ ROM_START( heiankyo )
ROM_LOAD( "ha7.u7", 0x2400, 0x0400, CRC(6d2f9527) SHA1(4e51c5404d0302547c1ae85b27ffe4de11d68224) )
ROM_LOAD( "ha6.u6", 0x2800, 0x0400, CRC(e467c353) SHA1(a76b4f6d9702f760f287b5285f76ea4206c6934a) )
ROM_LOAD( "ha3.u3", 0x2c00, 0x0400, CRC(6a55eda8) SHA1(f526ebf18a33271b798e53cfcadb27e4c3a03466) )
- ROM_FILL( 0x3000, 0x0400, 0 )
- ROM_FILL( 0x3400, 0x0400, 0 )
+ ROM_FILL( 0x3000, 0x0400, nullptr )
+ ROM_FILL( 0x3400, 0x0400, nullptr )
ROM_LOAD( "ha2.u2", 0x3800, 0x0400, CRC(056b3b8b) SHA1(3cce6c928599604ffdcdb767caa7b32d8ec1e03d) )
ROM_LOAD( "ha1.u1", 0x3c00, 0x0400, CRC(b8da2b5e) SHA1(70d97b89cb3162bd479203c53148319179a9873f) )
diff --git a/src/mame/drivers/vidbrain.cpp b/src/mame/drivers/vidbrain.cpp
index dbb5b35c706..8d9e64a9c1b 100644
--- a/src/mame/drivers/vidbrain.cpp
+++ b/src/mame/drivers/vidbrain.cpp
@@ -561,7 +561,7 @@ static MACHINE_CONFIG_START( vidbrain, vidbrain_state )
MCFG_F3853_EXT_INPUT_CB(vidbrain_state, f3853_int_req_w)
// cartridge
- MCFG_VIDEOBRAIN_EXPANSION_SLOT_ADD(VIDEOBRAIN_EXPANSION_SLOT_TAG, vidbrain_expansion_cards, NULL)
+ MCFG_VIDEOBRAIN_EXPANSION_SLOT_ADD(VIDEOBRAIN_EXPANSION_SLOT_TAG, vidbrain_expansion_cards, nullptr)
// software lists
MCFG_SOFTWARE_LIST_ADD("cart_list", "vidbrain")
diff --git a/src/mame/drivers/vk100.cpp b/src/mame/drivers/vk100.cpp
index 376b54efbcb..5d7ed0411d0 100644
--- a/src/mame/drivers/vk100.cpp
+++ b/src/mame/drivers/vk100.cpp
@@ -1052,7 +1052,7 @@ static MACHINE_CONFIG_START( vk100, vk100_state )
MCFG_I8251_RXRDY_HANDLER(WRITELINE(vk100_state, i8251_rxrdy_int))
MCFG_I8251_TXRDY_HANDLER(WRITELINE(vk100_state, i8251_txrdy_int))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("i8251", i8251_device, write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("i8251", i8251_device, write_dsr))
diff --git a/src/mame/drivers/vt100.cpp b/src/mame/drivers/vt100.cpp
index 561de2441e0..ba492285d42 100644
--- a/src/mame/drivers/vt100.cpp
+++ b/src/mame/drivers/vt100.cpp
@@ -431,7 +431,7 @@ static MACHINE_CONFIG_START( vt100, vt100_state )
MCFG_I8251_DTR_HANDLER(DEVWRITELINE(RS232_TAG, rs232_port_device, write_dtr))
MCFG_I8251_RTS_HANDLER(DEVWRITELINE(RS232_TAG, rs232_port_device, write_rts))
- MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD(RS232_TAG, default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("i8251", i8251_device, write_rxd))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("i8251", i8251_device, write_dsr))
diff --git a/src/mame/drivers/wecleman.cpp b/src/mame/drivers/wecleman.cpp
index 93cd4e906ca..b529f4b8bfd 100644
--- a/src/mame/drivers/wecleman.cpp
+++ b/src/mame/drivers/wecleman.cpp
@@ -993,7 +993,7 @@ static const gfx_layout wecleman_road_layout =
{0},
64*1,
wecleman_road_layout_xoffset,
- NULL
+ nullptr
};
static GFXDECODE_START( wecleman )
@@ -1027,7 +1027,7 @@ static const gfx_layout hotchase_road_layout =
{0},
32*4,
hotchase_road_layout_xoffset,
- NULL
+ nullptr
};
static GFXDECODE_START( hotchase )
diff --git a/src/mame/drivers/wicat.cpp b/src/mame/drivers/wicat.cpp
index b9bba8cd301..61fdf2d4b1e 100644
--- a/src/mame/drivers/wicat.cpp
+++ b/src/mame/drivers/wicat.cpp
@@ -309,8 +309,8 @@ void wicat_state::machine_reset()
m_kb_timer->adjust(attotime::zero,0,attotime::from_msec(50));
m_nmi_enable = 0;
m_crtc_irq = CLEAR_LINE;
- for(int x=0;x<8;x++)
- m_kb_keys[x] = 0;
+ for(auto & elem : m_kb_keys)
+ elem = 0;
}
void wicat_state::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
@@ -816,31 +816,31 @@ static MACHINE_CONFIG_START( wicat, wicat_state )
MCFG_MC2661_RXRDY_HANDLER(INPUTLINE("maincpu", M68K_IRQ_2))
MCFG_MC2661_TXEMT_DSCHG_HANDLER(INPUTLINE("maincpu", M68K_IRQ_2))
- MCFG_RS232_PORT_ADD("serial1",default_rs232_devices,NULL)
+ MCFG_RS232_PORT_ADD("serial1",default_rs232_devices,nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("uart1",mc2661_device,rx_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("uart1",mc2661_device,dcd_w))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("uart1",mc2661_device,dsr_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("uart1",mc2661_device,cts_w))
- MCFG_RS232_PORT_ADD("serial2",default_rs232_devices,NULL)
+ MCFG_RS232_PORT_ADD("serial2",default_rs232_devices,nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("uart2",mc2661_device,rx_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("uart2",mc2661_device,dcd_w))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("uart2",mc2661_device,dsr_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("uart2",mc2661_device,cts_w))
- MCFG_RS232_PORT_ADD("serial3",default_rs232_devices,NULL)
+ MCFG_RS232_PORT_ADD("serial3",default_rs232_devices,nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("uart3",mc2661_device,rx_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("uart3",mc2661_device,dcd_w))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("uart3",mc2661_device,dsr_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("uart3",mc2661_device,cts_w))
- MCFG_RS232_PORT_ADD("serial4",default_rs232_devices,NULL)
+ MCFG_RS232_PORT_ADD("serial4",default_rs232_devices,nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("uart4",mc2661_device,rx_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("uart4",mc2661_device,dcd_w))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("uart4",mc2661_device,dsr_w))
MCFG_RS232_CTS_HANDLER(DEVWRITELINE("uart4",mc2661_device,cts_w))
- MCFG_RS232_PORT_ADD("serial5",default_rs232_devices,NULL)
+ MCFG_RS232_PORT_ADD("serial5",default_rs232_devices,nullptr)
MCFG_RS232_RXD_HANDLER(DEVWRITELINE("uart5",mc2661_device,rx_w))
MCFG_RS232_DCD_HANDLER(DEVWRITELINE("uart5",mc2661_device,dcd_w))
MCFG_RS232_DSR_HANDLER(DEVWRITELINE("uart5",mc2661_device,dsr_w))
diff --git a/src/mame/drivers/wpc_an.cpp b/src/mame/drivers/wpc_an.cpp
index 49cc252f52a..fdb80ec59ef 100644
--- a/src/mame/drivers/wpc_an.cpp
+++ b/src/mame/drivers/wpc_an.cpp
@@ -349,7 +349,7 @@ ROM_START(dd_p7)
ROM_LOAD("dude_u19.l1", 0x20000, 0x10000, CRC(dc7b985b) SHA1(f672d1f1fe1d1d887113ea6ccd745a78f7760526))
ROM_LOAD("dude_u20.l1", 0x30000, 0x10000, CRC(a83d53dd) SHA1(92a81069c42c7760888201fb0787fa7ddfbf1658))
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
ROM_START(dd_p06)
@@ -360,7 +360,7 @@ ROM_START(dd_p06)
ROM_LOAD("dude_u19.l1", 0x20000, 0x10000, CRC(dc7b985b) SHA1(f672d1f1fe1d1d887113ea6ccd745a78f7760526))
ROM_LOAD("dude_u20.l1", 0x30000, 0x10000, CRC(a83d53dd) SHA1(92a81069c42c7760888201fb0787fa7ddfbf1658))
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
/*-------------
@@ -383,7 +383,7 @@ ROM_START(fh_l9)
ROM_RELOAD( 0x100000 + 0x40000, 0x20000)
ROM_RELOAD( 0x100000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
ROM_START(fh_l9b)
@@ -403,7 +403,7 @@ ROM_START(fh_l9b)
ROM_RELOAD( 0x100000 + 0x40000, 0x20000)
ROM_RELOAD( 0x100000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
ROM_START(fh_l3)
@@ -423,7 +423,7 @@ ROM_START(fh_l3)
ROM_RELOAD( 0x100000 + 0x40000, 0x20000)
ROM_RELOAD( 0x100000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
ROM_START(fh_l4)
@@ -443,7 +443,7 @@ ROM_START(fh_l4)
ROM_RELOAD( 0x100000 + 0x40000, 0x20000)
ROM_RELOAD( 0x100000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
ROM_START(fh_l5)
@@ -463,7 +463,7 @@ ROM_START(fh_l5)
ROM_RELOAD( 0x100000 + 0x40000, 0x20000)
ROM_RELOAD( 0x100000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
ROM_START(fh_905h)
@@ -483,7 +483,7 @@ ROM_START(fh_905h)
ROM_RELOAD( 0x100000 + 0x40000, 0x20000)
ROM_RELOAD( 0x100000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
@@ -503,7 +503,7 @@ ROM_START(hd_l3)
ROM_RELOAD( 0x080000 + 0x40000, 0x20000)
ROM_RELOAD( 0x080000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
ROM_START(hd_l1)
@@ -519,7 +519,7 @@ ROM_START(hd_l1)
ROM_RELOAD( 0x080000 + 0x40000, 0x20000)
ROM_RELOAD( 0x080000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
/*-----------------
@@ -542,7 +542,7 @@ ROM_START(bop_l7)
ROM_RELOAD( 0x100000 + 0x40000, 0x20000)
ROM_RELOAD( 0x100000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
ROM_START(bop_l6)
@@ -562,7 +562,7 @@ ROM_START(bop_l6)
ROM_RELOAD( 0x100000 + 0x40000, 0x20000)
ROM_RELOAD( 0x100000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
ROM_START(bop_l5)
@@ -582,7 +582,7 @@ ROM_START(bop_l5)
ROM_RELOAD( 0x100000 + 0x40000, 0x20000)
ROM_RELOAD( 0x100000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
ROM_START(bop_l4)
@@ -602,7 +602,7 @@ ROM_START(bop_l4)
ROM_RELOAD( 0x100000 + 0x40000, 0x20000)
ROM_RELOAD( 0x100000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
ROM_START(bop_l3)
@@ -622,7 +622,7 @@ ROM_START(bop_l3)
ROM_RELOAD( 0x100000 + 0x40000, 0x20000)
ROM_RELOAD( 0x100000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
ROM_START(bop_l2)
@@ -642,7 +642,7 @@ ROM_START(bop_l2)
ROM_RELOAD( 0x100000 + 0x40000, 0x20000)
ROM_RELOAD( 0x100000 + 0x60000, 0x20000)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
/*===========
@@ -652,9 +652,9 @@ ROM_START(tfa_13)
ROM_REGION(0x30000, "maincpu", ROMREGION_ERASEFF)
ROM_LOAD("u6_l3.rom", 0x10000, 0x20000, CRC(bf4a37b5) SHA1(91b8bba6182e818a34252a4b2a0b86a2a44d9c42))
ROM_REGION(0x180000, "sound1",0)
- ROM_FILL(0x0000,0x180000,0x00)
+ ROM_FILL(0x0000,0x180000,nullptr)
ROM_REGION(0x8000, "fixed", 0)
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_END
GAME(1990, tfa_13, 0, wpc_an, wpc_an, wpc_an_state, wpc_an, ROT0, "Bally", "WPC Test Fixture: Alphanumeric (1.3)", MACHINE_IS_SKELETON_MECHANICAL)
diff --git a/src/mame/drivers/wswan.cpp b/src/mame/drivers/wswan.cpp
index bb13d3a291c..8e064ec85f1 100644
--- a/src/mame/drivers/wswan.cpp
+++ b/src/mame/drivers/wswan.cpp
@@ -139,7 +139,7 @@ static MACHINE_CONFIG_START( wswan, wswan_state )
MCFG_SOUND_ROUTE(1, "rspeaker", 0.50)
/* cartridge */
- MCFG_WSWAN_CARTRIDGE_ADD("cartslot", wswan_cart, NULL)
+ MCFG_WSWAN_CARTRIDGE_ADD("cartslot", wswan_cart, nullptr)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("cart_list","wswan")
diff --git a/src/mame/drivers/x68k.cpp b/src/mame/drivers/x68k.cpp
index f5cc80da69d..32222745eaf 100644
--- a/src/mame/drivers/x68k.cpp
+++ b/src/mame/drivers/x68k.cpp
@@ -1722,7 +1722,7 @@ static MACHINE_CONFIG_START( x68000, x68k_state )
MCFG_SOFTWARE_LIST_ADD("flop_list","x68k_flop")
MCFG_DEVICE_ADD("exp", X68K_EXPANSION_SLOT, 0)
- MCFG_DEVICE_SLOT_INTERFACE(x68000_exp_cards, NULL, false)
+ MCFG_DEVICE_SLOT_INTERFACE(x68000_exp_cards, nullptr, false)
MCFG_X68K_EXPANSION_SLOT_OUT_IRQ2_CB(WRITELINE(x68k_state, x68k_irq2_line))
MCFG_X68K_EXPANSION_SLOT_OUT_IRQ4_CB(INPUTLINE("maincpu", M68K_IRQ_4))
MCFG_X68K_EXPANSION_SLOT_OUT_NMI_CB(INPUTLINE("maincpu", INPUT_LINE_NMI))
@@ -1782,9 +1782,9 @@ ROM_START( x68000 )
ROM_SYSTEM_BIOS(3, "ipl13", "IPL-ROM V1.3 (92/11/27)")
ROMX_LOAD( "iplrom30.dat", 0xfe0000, 0x020000, CRC(e8f8fdad) SHA1(239e9124568c862c31d9ec0605e32373ea74b86a), ROM_BIOS(4) )
ROM_REGION(0x8000, "user1",0) // For Background/Sprite decoding
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_REGION(0x20000, "user2", 0)
- ROM_FILL(0x000,0x20000,0x00)
+ ROM_FILL(0x000,0x20000,nullptr)
ROM_END
ROM_START( x68ksupr )
@@ -1802,9 +1802,9 @@ ROM_START( x68ksupr )
ROM_LOAD("scsiinsu.bin",0xfc0000, 0x002000, CRC(f65a3e24) SHA1(15a17798839a3f7f361119205aebc301c2df5967) ) // Dumped from an X68000 Super HD
// ROM_LOAD("scsiexrom.dat",0xea0000, 0x002000, NO_DUMP )
ROM_REGION(0x8000, "user1",0) // For Background/Sprite decoding
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_REGION(0x20000, "user2", 0)
- ROM_FILL(0x000,0x20000,0x00)
+ ROM_FILL(0x000,0x20000,nullptr)
ROM_END
ROM_START( x68kxvi )
@@ -1822,9 +1822,9 @@ ROM_START( x68kxvi )
ROM_LOAD("scsiinco.bin",0xfc0000, 0x002000, CRC(2485e14d) SHA1(101a9bba8ea4bb90965c144bcfd7182f889ab958) ) // Dumped from an X68000 XVI Compact
// ROM_LOAD("scsiexrom.dat",0xea0000, 0x002000, NO_DUMP )
ROM_REGION(0x8000, "user1",0) // For Background/Sprite decoding
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_REGION(0x20000, "user2", 0)
- ROM_FILL(0x000,0x20000,0x00)
+ ROM_FILL(0x000,0x20000,nullptr)
ROM_END
ROM_START( x68030 )
@@ -1842,9 +1842,9 @@ ROM_START( x68030 )
ROM_LOAD("scsiinrom.dat",0xfc0000, 0x002000, CRC(1c6c889e) SHA1(3f063d4231cdf53da6adc4db96533725e260076a) BAD_DUMP )
// ROM_LOAD("scsiexrom.dat",0xea0000, 0x002000, NO_DUMP )
ROM_REGION(0x8000, "user1",0) // For Background/Sprite decoding
- ROM_FILL(0x0000,0x8000,0x00)
+ ROM_FILL(0x0000,0x8000,nullptr)
ROM_REGION(0x20000, "user2", 0)
- ROM_FILL(0x000,0x20000,0x00)
+ ROM_FILL(0x000,0x20000,nullptr)
ROM_END
diff --git a/src/mame/drivers/z80ne.cpp b/src/mame/drivers/z80ne.cpp
index 1c0fcd7851f..7b8945b2437 100644
--- a/src/mame/drivers/z80ne.cpp
+++ b/src/mame/drivers/z80ne.cpp
@@ -531,8 +531,8 @@ static MACHINE_CONFIG_START( z80netf, z80ne_state )
MCFG_FD1771_ADD("wd1771", XTAL_2MHz / 2)
MCFG_FLOPPY_DRIVE_ADD("wd1771:0", z80ne_floppies, "sssd", z80ne_state::floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("wd1771:1", z80ne_floppies, "sssd", z80ne_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD("wd1771:2", z80ne_floppies, NULL, z80ne_state::floppy_formats)
- MCFG_FLOPPY_DRIVE_ADD("wd1771:3", z80ne_floppies, NULL, z80ne_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("wd1771:2", z80ne_floppies, nullptr, z80ne_state::floppy_formats)
+ MCFG_FLOPPY_DRIVE_ADD("wd1771:3", z80ne_floppies, nullptr, z80ne_state::floppy_formats)
MCFG_DEFAULT_LAYOUT(layout_z80netf)
diff --git a/src/mame/drivers/zac2650.cpp b/src/mame/drivers/zac2650.cpp
index 92097d8550b..33aaf20123c 100644
--- a/src/mame/drivers/zac2650.cpp
+++ b/src/mame/drivers/zac2650.cpp
@@ -233,8 +233,8 @@ static const gfx_layout s2636_character =
static GFXDECODE_START( tinvader )
GFXDECODE_SCALE( "gfx1", 0, tinvader_character, 0, 2, 3, 3 )
- GFXDECODE_SCALE( NULL, 0x1F00, s2636_character, 0, 2, 4, 3 ) /* dynamic */
- GFXDECODE_SCALE( NULL, 0x1F00, s2636_character, 0, 2, 8, 6 ) /* dynamic */
+ GFXDECODE_SCALE( nullptr, 0x1F00, s2636_character, 0, 2, 4, 3 ) /* dynamic */
+ GFXDECODE_SCALE( nullptr, 0x1F00, s2636_character, 0, 2, 8, 6 ) /* dynamic */
GFXDECODE_END
static MACHINE_CONFIG_START( tinvader, zac2650_state )
diff --git a/src/mame/machine/megacd.cpp b/src/mame/machine/megacd.cpp
index c416bf73d89..0a1449eb45a 100644
--- a/src/mame/machine/megacd.cpp
+++ b/src/mame/machine/megacd.cpp
@@ -1486,7 +1486,7 @@ WRITE16_MEMBER( sega_segacd_device::segacd_trace_vector_base_address_w )
int line;
//bitmap_ind16 *srcbitmap = segacd_stampmap[segacd_get_active_stampmap_tilemap(->pixmap()]);
- bitmap_ind16 *srcbitmap = 0;
+ bitmap_ind16 *srcbitmap = nullptr;
UINT32 bufferstart = ((segacd_imagebuffer_start_address&0xfff8)*2)<<3;
for (line=0;line<segacd_imagebuffer_vdot_size;line++)
@@ -1847,7 +1847,7 @@ void sega_segacd_device::SegaCD_CDC_Do_DMA(int &dmacount, UINT8 *CDC_BUFFER, UIN
}
else if (destination==DMA_PCM)
{
- dest = 0;//fatalerror("PCM RAM DMA unimplemented!\n");
+ dest = nullptr;//fatalerror("PCM RAM DMA unimplemented!\n");
}
else
{
diff --git a/src/mame/video/abc1600.cpp b/src/mame/video/abc1600.cpp
index 8c0ee45bcad..60b05e4fc94 100644
--- a/src/mame/video/abc1600.cpp
+++ b/src/mame/video/abc1600.cpp
@@ -290,7 +290,7 @@ void abc1600_mover_device::device_reset()
const address_space_config *abc1600_mover_device::memory_space_config(address_spacenum spacenum) const
{
- return (spacenum == AS_0) ? &m_space_config : NULL;
+ return (spacenum == AS_0) ? &m_space_config : nullptr;
}
diff --git a/src/mame/video/apollo.cpp b/src/mame/video/apollo.cpp
index f8af2607d22..2cebbc8b4bd 100644
--- a/src/mame/video/apollo.cpp
+++ b/src/mame/video/apollo.cpp
@@ -1721,15 +1721,15 @@ const device_type APOLLO_GRAPHICS = &device_creator<apollo_graphics_15i> ;
apollo_graphics_15i::apollo_graphics_15i(const machine_config &mconfig,const char *tag, device_t *owner, UINT32 clock) :
device_t(mconfig, APOLLO_GRAPHICS, "Apollo Screen", tag, owner, clock,"apollo_graphics_15i", __FILE__),
- m_lut_fifo(NULL),
- m_bt458(NULL)
+ m_lut_fifo(nullptr),
+ m_bt458(nullptr)
{
}
apollo_graphics_15i::apollo_graphics_15i(const machine_config &mconfig,const char *tag, device_t *owner, UINT32 clock, device_type type,const char *name, const char *shortname, const char *source) :
device_t(mconfig, type, name, tag, owner, clock, shortname, source),
- m_lut_fifo(NULL),
- m_bt458(NULL)
+ m_lut_fifo(nullptr),
+ m_bt458(nullptr)
{
}
@@ -1795,14 +1795,14 @@ void apollo_graphics_15i::device_start()
m_p_clock = 0;
m_data_clock = 0;
- m_image_memory = 0;
+ m_image_memory = nullptr;
m_image_plane_size = 0;
m_image_memory_size = 0;
memset(m_color_lookup_table, 0, sizeof(m_color_lookup_table));
- m_lut_fifo = NULL;
- m_bt458 = NULL;
+ m_lut_fifo = nullptr;
+ m_bt458 = nullptr;
}
//-------------------------------------------------
@@ -1866,14 +1866,14 @@ void apollo_graphics_15i::device_reset()
}
}
- if (m_image_memory == NULL)
+ if (m_image_memory == nullptr)
{
/* allocate the memory image */
m_image_plane_size = m_buffer_height * m_buffer_width / 16;
m_image_memory_size = m_image_plane_size * m_n_planes;
m_image_memory
= auto_alloc_array(machine(), UINT16, m_image_memory_size);
- assert(m_image_memory != NULL);
+ assert(m_image_memory != nullptr);
MLOG1(("device reset apollo graphics: buffer=%p size=%0x", (void *) m_image_memory, m_image_memory_size));
}