summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/mame/audio/dcs.cpp8
-rw-r--r--src/mame/audio/exidy.cpp6
-rw-r--r--src/mame/audio/geebee.cpp2
-rw-r--r--src/mame/audio/segasnd.cpp8
-rw-r--r--src/mame/audio/svis_snd.cpp6
-rw-r--r--src/mame/audio/t5182.cpp2
-rw-r--r--src/mame/audio/vc4000.cpp2
-rw-r--r--src/mame/audio/warpwarp.cpp2
-rw-r--r--src/mame/drivers/2mindril.cpp2
-rw-r--r--src/mame/drivers/40love.cpp2
-rw-r--r--src/mame/drivers/a7800.cpp4
-rw-r--r--src/mame/drivers/acefruit.cpp2
-rw-r--r--src/mame/drivers/alg.cpp4
-rw-r--r--src/mame/drivers/alphatro.cpp2
-rw-r--r--src/mame/drivers/amust.cpp2
-rw-r--r--src/mame/drivers/apexc.cpp6
-rw-r--r--src/mame/drivers/argo.cpp2
-rw-r--r--src/mame/drivers/artmagic.cpp4
-rw-r--r--src/mame/drivers/asterix.cpp2
-rw-r--r--src/mame/drivers/astinvad.cpp2
-rw-r--r--src/mame/drivers/astrocde.cpp6
-rw-r--r--src/mame/drivers/astrof.cpp12
-rw-r--r--src/mame/drivers/asuka.cpp2
-rw-r--r--src/mame/drivers/atarist.cpp2
-rw-r--r--src/mame/drivers/atlantis.cpp6
-rw-r--r--src/mame/drivers/balsente.cpp48
-rw-r--r--src/mame/drivers/boxer.cpp2
-rw-r--r--src/mame/drivers/btoads.cpp2
-rw-r--r--src/mame/drivers/by17.cpp30
-rw-r--r--src/mame/drivers/by35.cpp32
-rw-r--r--src/mame/drivers/c10.cpp2
-rw-r--r--src/mame/drivers/capbowl.cpp2
-rw-r--r--src/mame/drivers/cat.cpp2
-rw-r--r--src/mame/drivers/cball.cpp2
-rw-r--r--src/mame/drivers/cidelsa.cpp2
-rw-r--r--src/mame/drivers/cobra.cpp8
-rw-r--r--src/mame/drivers/coolpool.cpp4
-rw-r--r--src/mame/drivers/crbaloon.cpp16
-rw-r--r--src/mame/drivers/cv1k.cpp6
-rw-r--r--src/mame/drivers/dec8.cpp2
-rw-r--r--src/mame/drivers/dectalk.cpp2
-rw-r--r--src/mame/drivers/destroyr.cpp2
-rw-r--r--src/mame/drivers/espial.cpp4
-rw-r--r--src/mame/drivers/exidy.cpp20
-rw-r--r--src/mame/drivers/exterm.cpp4
-rw-r--r--src/mame/drivers/fgoal.cpp2
-rw-r--r--src/mame/drivers/firebeat.cpp2
-rw-r--r--src/mame/drivers/firetrk.cpp2
-rw-r--r--src/mame/drivers/flyball.cpp2
-rw-r--r--src/mame/drivers/fm7.cpp2
-rw-r--r--src/mame/drivers/fuukifg2.cpp2
-rw-r--r--src/mame/drivers/fuukifg3.cpp2
-rw-r--r--src/mame/drivers/galastrm.cpp2
-rw-r--r--src/mame/drivers/galaxian.cpp8
-rw-r--r--src/mame/drivers/gamate.cpp8
-rw-r--r--src/mame/drivers/gameking.cpp10
-rw-r--r--src/mame/drivers/gaplus.cpp2
-rw-r--r--src/mame/drivers/gcpinbal.cpp2
-rw-r--r--src/mame/drivers/glasgow.cpp2
-rw-r--r--src/mame/drivers/gottlieb.cpp10
-rw-r--r--src/mame/drivers/gpworld.cpp2
-rw-r--r--src/mame/drivers/groundfx.cpp2
-rw-r--r--src/mame/drivers/gticlub.cpp2
-rw-r--r--src/mame/drivers/gunbustr.cpp2
-rw-r--r--src/mame/drivers/h19.cpp2
-rw-r--r--src/mame/drivers/harddriv.cpp10
-rw-r--r--src/mame/drivers/hng64.cpp6
-rw-r--r--src/mame/drivers/hornet.cpp2
-rw-r--r--src/mame/drivers/indigo.cpp2
-rw-r--r--src/mame/drivers/indy_indigo2.cpp2
-rw-r--r--src/mame/drivers/intv.cpp2
-rw-r--r--src/mame/drivers/iteagle.cpp4
-rw-r--r--src/mame/drivers/itech8.cpp2
-rw-r--r--src/mame/drivers/jpmimpct.cpp2
-rw-r--r--src/mame/drivers/jr100.cpp2
-rw-r--r--src/mame/drivers/kinst.cpp8
-rw-r--r--src/mame/drivers/laserbat.cpp2
-rw-r--r--src/mame/drivers/lethalj.cpp2
-rw-r--r--src/mame/drivers/m10.cpp2
-rw-r--r--src/mame/drivers/macs.cpp4
-rw-r--r--src/mame/drivers/mappy.cpp2
-rw-r--r--src/mame/drivers/megadriv.cpp6
-rw-r--r--src/mame/drivers/megatech.cpp2
-rw-r--r--src/mame/drivers/mekd2.cpp2
-rw-r--r--src/mame/drivers/metalmx.cpp2
-rw-r--r--src/mame/drivers/metro.cpp2
-rw-r--r--src/mame/drivers/mgolf.cpp2
-rw-r--r--src/mame/drivers/micro3d.cpp2
-rw-r--r--src/mame/drivers/midtunit.cpp2
-rw-r--r--src/mame/drivers/midvunit.cpp6
-rw-r--r--src/mame/drivers/midwunit.cpp2
-rw-r--r--src/mame/drivers/midxunit.cpp2
-rw-r--r--src/mame/drivers/midyunit.cpp4
-rw-r--r--src/mame/drivers/midzeus.cpp8
-rw-r--r--src/mame/drivers/mjsister.cpp2
-rw-r--r--src/mame/drivers/mlanding.cpp2
-rw-r--r--src/mame/drivers/model3.cpp2
-rw-r--r--src/mame/drivers/mw8080bw.cpp4
-rw-r--r--src/mame/drivers/namcos23.cpp2
-rw-r--r--src/mame/drivers/neodriv.hxx2
-rw-r--r--src/mame/drivers/neogeo.cpp2
-rw-r--r--src/mame/drivers/nes.cpp2
-rw-r--r--src/mame/drivers/notetaker.cpp2
-rw-r--r--src/mame/drivers/nwk-tr.cpp2
-rw-r--r--src/mame/drivers/okean240.cpp2
-rw-r--r--src/mame/drivers/osi.cpp2
-rw-r--r--src/mame/drivers/othunder.cpp2
-rw-r--r--src/mame/drivers/parodius.cpp2
-rw-r--r--src/mame/drivers/pasogo.cpp26
-rw-r--r--src/mame/drivers/pc88va.cpp2
-rw-r--r--src/mame/drivers/pcfx.cpp2
-rw-r--r--src/mame/drivers/pegasus.cpp12
-rw-r--r--src/mame/drivers/pentagon.cpp2
-rw-r--r--src/mame/drivers/peplus.cpp32
-rw-r--r--src/mame/drivers/plan80.cpp2
-rw-r--r--src/mame/drivers/pmi80.cpp4
-rw-r--r--src/mame/drivers/policetr.cpp2
-rw-r--r--src/mame/drivers/potgoldu.cpp2
-rw-r--r--src/mame/drivers/ptcsol.cpp2
-rw-r--r--src/mame/drivers/rabbit.cpp2
-rw-r--r--src/mame/drivers/renegade.cpp12
-rw-r--r--src/mame/drivers/rollerg.cpp2
-rw-r--r--src/mame/drivers/samcoupe.cpp2
-rw-r--r--src/mame/drivers/scv.cpp2
-rw-r--r--src/mame/drivers/seattle.cpp20
-rw-r--r--src/mame/drivers/segaorun.cpp2
-rw-r--r--src/mame/drivers/segas18.cpp2
-rw-r--r--src/mame/drivers/simpsons.cpp2
-rw-r--r--src/mame/drivers/skeetsht.cpp2
-rw-r--r--src/mame/drivers/skimaxx.cpp2
-rw-r--r--src/mame/drivers/slapshot.cpp2
-rw-r--r--src/mame/drivers/sliver.cpp2
-rw-r--r--src/mame/drivers/socrates.cpp2
-rw-r--r--src/mame/drivers/spacefb.cpp2
-rw-r--r--src/mame/drivers/sprint4.cpp2
-rw-r--r--src/mame/drivers/ssystem3.cpp16
-rw-r--r--src/mame/drivers/superqix.cpp2
-rw-r--r--src/mame/drivers/svision.cpp20
-rw-r--r--src/mame/drivers/symbolics.cpp2
-rw-r--r--src/mame/drivers/sys2900.cpp2
-rw-r--r--src/mame/drivers/taito_b.cpp2
-rw-r--r--src/mame/drivers/taito_f2.cpp2
-rw-r--r--src/mame/drivers/taito_f3.cpp2
-rw-r--r--src/mame/drivers/taito_z.cpp2
-rw-r--r--src/mame/drivers/taitotz.cpp2
-rw-r--r--src/mame/drivers/tec1.cpp4
-rw-r--r--src/mame/drivers/tehkanwc.cpp2
-rw-r--r--src/mame/drivers/thayers.cpp2
-rw-r--r--src/mame/drivers/thunderx.cpp2
-rw-r--r--src/mame/drivers/ti99_4p.cpp8
-rw-r--r--src/mame/drivers/ti99_8.cpp4
-rw-r--r--src/mame/drivers/tickee.cpp8
-rw-r--r--src/mame/drivers/tm990189.cpp4
-rw-r--r--src/mame/drivers/tmc1800.cpp2
-rw-r--r--src/mame/drivers/tmnt.cpp2
-rw-r--r--src/mame/drivers/toaplan2.cpp2
-rw-r--r--src/mame/drivers/trucocl.cpp2
-rw-r--r--src/mame/drivers/tubep.cpp2
-rw-r--r--src/mame/drivers/tugboat.cpp6
-rw-r--r--src/mame/drivers/tx0.cpp10
-rw-r--r--src/mame/drivers/ultratnk.cpp2
-rw-r--r--src/mame/drivers/ultrsprt.cpp2
-rw-r--r--src/mame/drivers/undrfire.cpp2
-rw-r--r--src/mame/drivers/vegas.cpp10
-rw-r--r--src/mame/drivers/vendetta.cpp2
-rw-r--r--src/mame/drivers/videopin.cpp2
-rw-r--r--src/mame/drivers/viper.cpp2
-rw-r--r--src/mame/drivers/vis.cpp2
-rw-r--r--src/mame/drivers/vk100.cpp2
-rw-r--r--src/mame/drivers/wgp.cpp2
-rw-r--r--src/mame/drivers/wolfpack.cpp2
-rw-r--r--src/mame/drivers/x68k.cpp2
-rw-r--r--src/mame/drivers/xtheball.cpp2
-rw-r--r--src/mame/drivers/zr107.cpp2
-rw-r--r--src/mame/drivers/zrt80.cpp2
-rw-r--r--src/mame/includes/gottlieb.h4
-rw-r--r--src/mame/includes/jaguar.h6
-rw-r--r--src/mame/includes/midzeus.h8
-rw-r--r--src/mame/includes/midzeus2.h8
-rw-r--r--src/mame/includes/ninjakd2.h2
-rw-r--r--src/mame/includes/rallyx.h6
-rw-r--r--src/mame/includes/segag80v.h2
-rw-r--r--src/mame/machine/amiga.cpp4
-rw-r--r--src/mame/machine/amstrad.cpp10
-rw-r--r--src/mame/machine/arkanoid.cpp2
-rw-r--r--src/mame/machine/asic65.cpp2
-rw-r--r--src/mame/machine/bbc.cpp16
-rw-r--r--src/mame/machine/bebox.cpp2
-rw-r--r--src/mame/machine/bublbobl.cpp2
-rw-r--r--src/mame/machine/concept.cpp2
-rw-r--r--src/mame/machine/cps2crypt.cpp2
-rw-r--r--src/mame/machine/dai.cpp2
-rw-r--r--src/mame/machine/decocass_tape.cpp4
-rw-r--r--src/mame/machine/decocass_tape.h2
-rw-r--r--src/mame/machine/electron.cpp2
-rw-r--r--src/mame/machine/fddebug.cpp58
-rw-r--r--src/mame/machine/galaxy.cpp6
-rw-r--r--src/mame/machine/gb.cpp2
-rw-r--r--src/mame/machine/harddriv.cpp24
-rw-r--r--src/mame/machine/inder_vid.cpp2
-rw-r--r--src/mame/machine/kaneko_calc3.cpp2
-rw-r--r--src/mame/machine/kaypro.cpp2
-rw-r--r--src/mame/machine/lynx.cpp28
-rw-r--r--src/mame/machine/mac.cpp40
-rw-r--r--src/mame/machine/macrtc.cpp2
-rw-r--r--src/mame/machine/mbee.cpp2
-rw-r--r--src/mame/machine/mega32x.cpp2
-rw-r--r--src/mame/machine/megadriv.cpp8
-rw-r--r--src/mame/machine/meters.cpp2
-rw-r--r--src/mame/machine/micro3d.cpp2
-rw-r--r--src/mame/machine/microtan.cpp2
-rw-r--r--src/mame/machine/mikro80.cpp2
-rw-r--r--src/mame/machine/mtx.cpp4
-rw-r--r--src/mame/machine/mz700.cpp30
-rw-r--r--src/mame/machine/n64.cpp2
-rw-r--r--src/mame/machine/nb1413m3.cpp2
-rw-r--r--src/mame/machine/opwolf.cpp2
-rw-r--r--src/mame/machine/osborne1.cpp2
-rw-r--r--src/mame/machine/pc1251.cpp2
-rw-r--r--src/mame/machine/pc1350.cpp2
-rw-r--r--src/mame/machine/pc1401.cpp2
-rw-r--r--src/mame/machine/pc1403.cpp2
-rw-r--r--src/mame/machine/pmd85.cpp2
-rw-r--r--src/mame/machine/poly88.cpp2
-rw-r--r--src/mame/machine/radio86.cpp2
-rw-r--r--src/mame/machine/samcoupe.cpp18
-rw-r--r--src/mame/machine/snes.cpp2
-rw-r--r--src/mame/machine/sorcerer.cpp2
-rw-r--r--src/mame/machine/special.cpp2
-rw-r--r--src/mame/machine/stfight.cpp2
-rw-r--r--src/mame/machine/swtpc09.cpp12
-rw-r--r--src/mame/machine/ut88.cpp2
-rw-r--r--src/mame/machine/vectrex.cpp2
-rw-r--r--src/mame/machine/volfied.cpp2
-rw-r--r--src/mame/video/amiga.cpp10
-rw-r--r--src/mame/video/arcadia.cpp24
-rw-r--r--src/mame/video/astrocde.cpp2
-rw-r--r--src/mame/video/btime.cpp22
-rw-r--r--src/mame/video/cchasm.cpp2
-rw-r--r--src/mame/video/cischeat.cpp32
-rw-r--r--src/mame/video/dcheese.cpp2
-rw-r--r--src/mame/video/exidy.cpp2
-rw-r--r--src/mame/video/exidy440.cpp4
-rw-r--r--src/mame/video/firetrk.cpp18
-rw-r--r--src/mame/video/gaelco3d.cpp4
-rw-r--r--src/mame/video/galaxian.cpp2
-rw-r--r--src/mame/video/galaxy.cpp6
-rw-r--r--src/mame/video/gameplan.cpp2
-rw-r--r--src/mame/video/gottlieb.cpp8
-rw-r--r--src/mame/video/hyhoo.cpp2
-rw-r--r--src/mame/video/jagobj.hxx8
-rw-r--r--src/mame/video/lethalj.cpp2
-rw-r--r--src/mame/video/m92.cpp6
-rw-r--r--src/mame/video/micro3d.cpp6
-rw-r--r--src/mame/video/midtunit.cpp2
-rw-r--r--src/mame/video/midvunit.cpp14
-rw-r--r--src/mame/video/midyunit.cpp2
-rw-r--r--src/mame/video/midzeus.cpp46
-rw-r--r--src/mame/video/midzeus2.cpp34
-rw-r--r--src/mame/video/model3.cpp6
-rw-r--r--src/mame/video/nbmj8688.cpp2
-rw-r--r--src/mame/video/nbmj8891.cpp2
-rw-r--r--src/mame/video/nbmj8900.cpp2
-rw-r--r--src/mame/video/nbmj8991.cpp2
-rw-r--r--src/mame/video/nbmj9195.cpp2
-rw-r--r--src/mame/video/ninjakd2.cpp20
-rw-r--r--src/mame/video/niyanpai.cpp2
-rw-r--r--src/mame/video/pastelg.cpp2
-rw-r--r--src/mame/video/rallyx.cpp18
-rw-r--r--src/mame/video/segag80r.cpp2
-rw-r--r--src/mame/video/segag80v.cpp12
-rw-r--r--src/mame/video/stic.cpp16
-rw-r--r--src/mame/video/stic.h2
-rw-r--r--src/mame/video/tank8.cpp2
-rw-r--r--src/mame/video/triplhnt.cpp2
-rw-r--r--src/mame/video/vc4000.cpp20
-rw-r--r--src/mame/video/vrender0.cpp2
-rw-r--r--src/mame/video/zaxxon.cpp8
-rw-r--r--src/mame/video/zx.cpp2
279 files changed, 773 insertions, 771 deletions
diff --git a/src/mame/audio/dcs.cpp b/src/mame/audio/dcs.cpp
index 3ff2a6a821a..2369a52d259 100644
--- a/src/mame/audio/dcs.cpp
+++ b/src/mame/audio/dcs.cpp
@@ -906,7 +906,7 @@ void dcs_audio_device::device_start()
m_reg_timer = subdevice<timer_device>("dcs_reg_timer");
/* non-RAM based automatically acks */
- m_auto_ack = TRUE;
+ m_auto_ack = true;
/* register for save states */
dcs_register_state();
/* reset the system */
@@ -994,7 +994,7 @@ void dcs2_audio_device::device_start()
m_sport_timer = subdevice<timer_device>("dcs_sport_timer");
/* we don't do auto-ack by default */
- m_auto_ack = FALSE;
+ m_auto_ack = false;
/* install the speedup handler */
if (m_polling_offset) {
@@ -1401,7 +1401,7 @@ WRITE16_MEMBER( dcs_audio_device::denver_w )
}
dmadac_enable(&m_dmadac[0], m_channels, enable);
if (m_channels <= 6)
- dmadac_enable(&m_dmadac[m_channels], 6 - m_channels, FALSE);
+ dmadac_enable(&m_dmadac[m_channels], 6 - m_channels, false);
recompute_sample_rate();
}
break;
@@ -1821,7 +1821,7 @@ void dcs_audio_device::reset_timer()
m_program->read_dword(0x1b*4) == 0x0C0020 && /* DIS SEC_REG */
m_program->read_dword(0x1c*4) == 0x0A001F) /* RTI */
{
- m_timer_ignore = TRUE;
+ m_timer_ignore = true;
}
}
diff --git a/src/mame/audio/exidy.cpp b/src/mame/audio/exidy.cpp
index a8299ce729c..aa677ecd06c 100644
--- a/src/mame/audio/exidy.cpp
+++ b/src/mame/audio/exidy.cpp
@@ -247,7 +247,7 @@ void exidy_sound_device::device_config_complete()
void exidy_sound_device::device_start()
{
/* indicate no additional hardware */
- m_has_sh8253 = FALSE;
+ m_has_sh8253 = false;
m_tms = nullptr;
m_cvsd = nullptr;
@@ -694,7 +694,7 @@ void venture_sound_device::device_start()
m_riot = machine().device<riot6532_device>("riot");
- m_has_sh8253 = TRUE;
+ m_has_sh8253 = true;
m_tms = nullptr;
m_pia0 = machine().device<pia6821_device>("pia0");
m_pia1 = machine().device<pia6821_device>("pia1");
@@ -954,7 +954,7 @@ void victory_sound_device::device_start()
m_riot = machine().device<riot6532_device>("riot");
- m_has_sh8253 = TRUE;
+ m_has_sh8253 = true;
m_tms = nullptr;
m_pia0 = machine().device<pia6821_device>("pia0");
m_pia1 = machine().device<pia6821_device>("pia1");
diff --git a/src/mame/audio/geebee.cpp b/src/mame/audio/geebee.cpp
index 51c2dfebcff..beeac9e3620 100644
--- a/src/mame/audio/geebee.cpp
+++ b/src/mame/audio/geebee.cpp
@@ -64,7 +64,7 @@ void geebee_sound_device::device_timer(emu_timer &timer, device_timer_id id, int
break;
default:
- assert_always(FALSE, "Unknown id in geebee_device::device_timer");
+ assert_always(false, "Unknown id in geebee_device::device_timer");
}
}
diff --git a/src/mame/audio/segasnd.cpp b/src/mame/audio/segasnd.cpp
index a5ecb0ecea6..bf8b790babf 100644
--- a/src/mame/audio/segasnd.cpp
+++ b/src/mame/audio/segasnd.cpp
@@ -572,12 +572,12 @@ void usb_sound_device::timer_w(int which, uint8_t offset, uint8_t data)
{
case 1: /* low word only */
ch->count = data;
- ch->holding = FALSE;
+ ch->holding = false;
break;
case 2: /* high word only */
ch->count = data << 8;
- ch->holding = FALSE;
+ ch->holding = false;
break;
case 3: /* low word followed by high word */
@@ -589,7 +589,7 @@ void usb_sound_device::timer_w(int which, uint8_t offset, uint8_t data)
else
{
ch->count = (ch->count & 0x00ff) | (data << 8);
- ch->holding = FALSE;
+ ch->holding = false;
ch->latchtoggle = 0;
}
break;
@@ -607,7 +607,7 @@ void usb_sound_device::timer_w(int which, uint8_t offset, uint8_t data)
ch = &g->chan[(data & 0xc0) >> 6];
/* extract the bits */
- ch->holding = TRUE;
+ ch->holding = true;
ch->latchmode = (data >> 4) & 3;
ch->clockmode = (data >> 1) & 7;
ch->bcdmode = (data >> 0) & 1;
diff --git a/src/mame/audio/svis_snd.cpp b/src/mame/audio/svis_snd.cpp
index 92c3bf119c7..e4a0d3099e6 100644
--- a/src/mame/audio/svis_snd.cpp
+++ b/src/mame/audio/svis_snd.cpp
@@ -67,7 +67,7 @@ void svision_sound_device::sound_stream_update(sound_stream &stream, stream_samp
{
if (channel->on||channel->count)
{
- int on = FALSE;
+ bool on = false;
switch (channel->waveform)
{
case 0:
@@ -151,8 +151,8 @@ void svision_sound_device::sound_stream_update(sound_stream &stream, stream_samp
m_dma.pos += m_dma.step;
if (m_dma.pos >= m_dma.size)
{
- m_dma.finished = TRUE;
- m_dma.on = FALSE;
+ m_dma.finished = true;
+ m_dma.on = false;
m_irq_cb();
}
}
diff --git a/src/mame/audio/t5182.cpp b/src/mame/audio/t5182.cpp
index c22b0419ce9..8fb7078d8a0 100644
--- a/src/mame/audio/t5182.cpp
+++ b/src/mame/audio/t5182.cpp
@@ -229,7 +229,7 @@ void t5182_device::device_timer(emu_timer &timer, device_timer_id id, int param,
setirq_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in t5182_device::device_timer");
+ assert_always(false, "Unknown id in t5182_device::device_timer");
}
}
diff --git a/src/mame/audio/vc4000.cpp b/src/mame/audio/vc4000.cpp
index 08f9a9a0e94..2ebe85deecf 100644
--- a/src/mame/audio/vc4000.cpp
+++ b/src/mame/audio/vc4000.cpp
@@ -66,7 +66,7 @@ void vc4000_sound_device::soundport_w(int offset, int data)
{
case 0:
m_pos = 0;
- m_level = TRUE;
+ m_level = true;
// frequency 7874/(data+1)
m_size = machine().sample_rate() * (data + 1) /7874;
break;
diff --git a/src/mame/audio/warpwarp.cpp b/src/mame/audio/warpwarp.cpp
index bf9cd9d2d8d..943540f01ae 100644
--- a/src/mame/audio/warpwarp.cpp
+++ b/src/mame/audio/warpwarp.cpp
@@ -87,7 +87,7 @@ void warpwarp_sound_device::device_timer(emu_timer &timer, device_timer_id id, i
break;
default:
- assert_always(FALSE, "Unknown id in warpwarp_sound_device::device_timer");
+ assert_always(false, "Unknown id in warpwarp_sound_device::device_timer");
}
}
diff --git a/src/mame/drivers/2mindril.cpp b/src/mame/drivers/2mindril.cpp
index 43ed200fb4b..6b91ead3e95 100644
--- a/src/mame/drivers/2mindril.cpp
+++ b/src/mame/drivers/2mindril.cpp
@@ -153,7 +153,7 @@ void _2mindril_state::device_timer(emu_timer &timer, device_timer_id id, int par
m_defender_sensor = param;
break;
default:
- assert_always(FALSE, "Unknown id in _2mindril_state::device_timer");
+ assert_always(false, "Unknown id in _2mindril_state::device_timer");
}
}
#endif
diff --git a/src/mame/drivers/40love.cpp b/src/mame/drivers/40love.cpp
index 226d68cbead..27fcab8b205 100644
--- a/src/mame/drivers/40love.cpp
+++ b/src/mame/drivers/40love.cpp
@@ -240,7 +240,7 @@ void fortyl_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_pending_nmi = 1;
break;
default:
- assert_always(FALSE, "Unknown id in fortyl_state::device_timer");
+ assert_always(false, "Unknown id in fortyl_state::device_timer");
}
}
diff --git a/src/mame/drivers/a7800.cpp b/src/mame/drivers/a7800.cpp
index f8e9b4247ae..7477b35cc0f 100644
--- a/src/mame/drivers/a7800.cpp
+++ b/src/mame/drivers/a7800.cpp
@@ -1436,7 +1436,7 @@ ROM_END
DRIVER_INIT_MEMBER(a7800_state,a7800_ntsc)
{
- m_ispal = FALSE;
+ m_ispal = false;
m_lines = 263;
m_p1_one_button = 1;
m_p2_one_button = 1;
@@ -1445,7 +1445,7 @@ DRIVER_INIT_MEMBER(a7800_state,a7800_ntsc)
DRIVER_INIT_MEMBER(a7800_state,a7800_pal)
{
- m_ispal = TRUE;
+ m_ispal = true;
m_lines = 313;
m_p1_one_button = 1;
m_p2_one_button = 1;
diff --git a/src/mame/drivers/acefruit.cpp b/src/mame/drivers/acefruit.cpp
index 1230e9e4c36..40741a064c7 100644
--- a/src/mame/drivers/acefruit.cpp
+++ b/src/mame/drivers/acefruit.cpp
@@ -101,7 +101,7 @@ void acefruit_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_refresh_timer->adjust( m_screen->time_until_pos(vpos) );
break;
default:
- assert_always(FALSE, "Unknown id in acefruit_state::device_timer");
+ assert_always(false, "Unknown id in acefruit_state::device_timer");
}
}
diff --git a/src/mame/drivers/alg.cpp b/src/mame/drivers/alg.cpp
index d901d944472..2828a8e3512 100644
--- a/src/mame/drivers/alg.cpp
+++ b/src/mame/drivers/alg.cpp
@@ -91,11 +91,11 @@ int alg_state::get_lightgun_pos(int player, int *x, int *y)
int ypos = (player == 0) ? m_gun1y->read() : m_gun2y.read_safe(0xffffffff);
if (xpos == -1 || ypos == -1)
- return FALSE;
+ return false;
*x = visarea.min_x + xpos * visarea.width() / 255;
*y = visarea.min_y + ypos * visarea.height() / 255;
- return TRUE;
+ return true;
}
diff --git a/src/mame/drivers/alphatro.cpp b/src/mame/drivers/alphatro.cpp
index d98d25e5870..81a44ad2160 100644
--- a/src/mame/drivers/alphatro.cpp
+++ b/src/mame/drivers/alphatro.cpp
@@ -136,7 +136,7 @@ void alphatro_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_timer_bit ^= 0x80;
break;
default:
- assert_always(FALSE, "Unknown id in alphatro_state::device_timer");
+ assert_always(false, "Unknown id in alphatro_state::device_timer");
}
}
diff --git a/src/mame/drivers/amust.cpp b/src/mame/drivers/amust.cpp
index 715a3fbc4c3..555813dba3b 100644
--- a/src/mame/drivers/amust.cpp
+++ b/src/mame/drivers/amust.cpp
@@ -152,7 +152,7 @@ void amust_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_beep->set_state(0);
break;
default:
- assert_always(FALSE, "Unknown id in amust_state::device_timer");
+ assert_always(false, "Unknown id in amust_state::device_timer");
}
}
diff --git a/src/mame/drivers/apexc.cpp b/src/mame/drivers/apexc.cpp
index 599b5747a8c..6d338a6839e 100644
--- a/src/mame/drivers/apexc.cpp
+++ b/src/mame/drivers/apexc.cpp
@@ -629,7 +629,7 @@ uint32_t apexc_state::screen_update_apexc(screen_device &screen, bitmap_ind16 &b
void apexc_state::apexc_teletyper_init()
{
- m_letters = FALSE;
+ m_letters = false;
m_pos = 0;
}
@@ -691,12 +691,12 @@ void apexc_state::apexc_teletyper_putchar(int character)
case 27:
/* Figures */
- m_letters = FALSE;
+ m_letters = false;
break;
case 31:
/* Letters */
- m_letters = TRUE;
+ m_letters = true;
break;
default:
diff --git a/src/mame/drivers/argo.cpp b/src/mame/drivers/argo.cpp
index 299ddc795ec..4d0171fdb16 100644
--- a/src/mame/drivers/argo.cpp
+++ b/src/mame/drivers/argo.cpp
@@ -266,7 +266,7 @@ void argo_state::device_timer(emu_timer &timer, device_timer_id id, int param, v
membank("boot")->set_entry(0);
break;
default:
- assert_always(FALSE, "Unknown id in argo_state::device_timer");
+ assert_always(false, "Unknown id in argo_state::device_timer");
}
}
diff --git a/src/mame/drivers/artmagic.cpp b/src/mame/drivers/artmagic.cpp
index 5a601d0ff8d..48e3bb96aa3 100644
--- a/src/mame/drivers/artmagic.cpp
+++ b/src/mame/drivers/artmagic.cpp
@@ -122,7 +122,7 @@ void artmagic_state::device_timer(emu_timer &timer, device_timer_id id, int para
update_irq_state();
break;
default:
- assert_always(FALSE, "Unknown id in artmagic_state::device_timer");
+ assert_always(false, "Unknown id in artmagic_state::device_timer");
}
}
@@ -817,7 +817,7 @@ static MACHINE_CONFIG_START( artmagic, artmagic_state )
MCFG_CPU_ADD("tms", TMS34010, MASTER_CLOCK_40MHz)
MCFG_CPU_PROGRAM_MAP(tms_map)
- MCFG_TMS340X0_HALT_ON_RESET(TRUE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(true) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(MASTER_CLOCK_40MHz/6) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_RGB32_CB(artmagic_state, scanline) /* scanline update (rgb32) */
diff --git a/src/mame/drivers/asterix.cpp b/src/mame/drivers/asterix.cpp
index fc07c8778aa..870b05d527c 100644
--- a/src/mame/drivers/asterix.cpp
+++ b/src/mame/drivers/asterix.cpp
@@ -68,7 +68,7 @@ void asterix_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_audiocpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in asterix_state::device_timer");
+ assert_always(false, "Unknown id in asterix_state::device_timer");
}
}
diff --git a/src/mame/drivers/astinvad.cpp b/src/mame/drivers/astinvad.cpp
index 79ecbf97b80..8a15e952351 100644
--- a/src/mame/drivers/astinvad.cpp
+++ b/src/mame/drivers/astinvad.cpp
@@ -229,7 +229,7 @@ void astinvad_state::device_timer(emu_timer &timer, device_timer_id id, int para
kamizake_int_gen(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in astinvad_state::device_timer");
+ assert_always(false, "Unknown id in astinvad_state::device_timer");
}
}
diff --git a/src/mame/drivers/astrocde.cpp b/src/mame/drivers/astrocde.cpp
index 3744c2f389e..82d31451c07 100644
--- a/src/mame/drivers/astrocde.cpp
+++ b/src/mame/drivers/astrocde.cpp
@@ -137,13 +137,13 @@
WRITE8_MEMBER(astrocde_state::protected_ram_enable_w)
{
- m_ram_write_enable = TRUE;
+ m_ram_write_enable = true;
}
READ8_MEMBER(astrocde_state::protected_ram_r)
{
- m_ram_write_enable = FALSE;
+ m_ram_write_enable = false;
return m_protected_ram[offset];
}
@@ -152,7 +152,7 @@ WRITE8_MEMBER(astrocde_state::protected_ram_w)
{
if (m_ram_write_enable)
m_protected_ram[offset] = data;
- m_ram_write_enable = FALSE;
+ m_ram_write_enable = false;
}
diff --git a/src/mame/drivers/astrof.cpp b/src/mame/drivers/astrof.cpp
index 28ec598488f..6c0a7712de1 100644
--- a/src/mame/drivers/astrof.cpp
+++ b/src/mame/drivers/astrof.cpp
@@ -289,7 +289,7 @@ WRITE8_MEMBER(astrof_state::video_control_1_w)
m_flipscreen = ((data >> 0) & 0x01) & ioport("CAB")->read();
/* this ties to the CLR pin of the shift registers */
- m_screen_off = (data & 0x02) ? TRUE : FALSE;
+ m_screen_off = (data & 0x02) ? true : false;
/* D2 - not connected in the schematics, but at one point Astro Fighter sets it to 1 */
/* D3-D7 - not connected */
@@ -304,10 +304,10 @@ void astrof_state::astrof_set_video_control_2( uint8_t data )
/* D1 - OUT1 - goes to edge conn. pin A11 - was perhaps meant to be a start lamp */
/* D2 - selects one of the two palette banks */
- m_astrof_palette_bank = (data & 0x04) ? TRUE : FALSE;
+ m_astrof_palette_bank = (data & 0x04) ? true : false;
/* D3 - turns on the red color gun regardless of the value in the color PROM */
- m_red_on = (data & 0x08) ? TRUE : FALSE;
+ m_red_on = (data & 0x08) ? true : false;
/* D4-D7 - not connected */
}
@@ -325,7 +325,7 @@ void astrof_state::spfghmk2_set_video_control_2( uint8_t data )
/* D1 - OUT1 - goes to edge conn. pin A11 - was perhaps meant to be a start lamp */
/* D2 - selects one of the two palette banks */
- m_astrof_palette_bank = (data & 0x04) ? TRUE : FALSE;
+ m_astrof_palette_bank = (data & 0x04) ? true : false;
/* D3-D7 - not connected */
}
@@ -344,7 +344,7 @@ void astrof_state::tomahawk_set_video_control_2( uint8_t data )
/* D2 - not connected */
/* D3 - turns on the red color gun regardless of the value in the color PROM */
- m_red_on = (data & 0x08) ? TRUE : FALSE;
+ m_red_on = (data & 0x08) ? true : false;
}
WRITE8_MEMBER(astrof_state::tomahawk_video_control_2_w)
@@ -498,7 +498,7 @@ MACHINE_START_MEMBER(astrof_state,spfghmk2)
/* the red background circuit is disabled */
- m_red_on = FALSE;
+ m_red_on = false;
/* register for state saving */
save_item(NAME(m_flipscreen));
diff --git a/src/mame/drivers/asuka.cpp b/src/mame/drivers/asuka.cpp
index 8361194d05c..2c1b34d6724 100644
--- a/src/mame/drivers/asuka.cpp
+++ b/src/mame/drivers/asuka.cpp
@@ -241,7 +241,7 @@ void asuka_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_maincpu->set_input_line(5, HOLD_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in asuka_state::device_timer");
+ assert_always(false, "Unknown id in asuka_state::device_timer");
}
}
diff --git a/src/mame/drivers/atarist.cpp b/src/mame/drivers/atarist.cpp
index 59a88fb92e5..1e22354365d 100644
--- a/src/mame/drivers/atarist.cpp
+++ b/src/mame/drivers/atarist.cpp
@@ -65,7 +65,7 @@ void st_state::device_timer(emu_timer &timer, device_timer_id id, int param, voi
blitter_tick();
break;
default:
- assert_always(FALSE, "Unknown id in st_state::device_timer");
+ assert_always(false, "Unknown id in st_state::device_timer");
}
}
diff --git a/src/mame/drivers/atlantis.cpp b/src/mame/drivers/atlantis.cpp
index fc3c8118bbd..f3e62c7032b 100644
--- a/src/mame/drivers/atlantis.cpp
+++ b/src/mame/drivers/atlantis.cpp
@@ -302,7 +302,7 @@ WRITE8_MEMBER(atlantis_state::cmos_w)
}
else if (m_cmos_write_enabled) {
COMBINE_DATA(&m_rtc_data[offset]);
- m_cmos_write_enabled = FALSE;
+ m_cmos_write_enabled = false;
switch (offset) {
case 0x7FF8: // M48T02 time
if (data & 0x40) {
@@ -331,7 +331,7 @@ WRITE8_MEMBER(atlantis_state::cmos_w)
WRITE32_MEMBER(atlantis_state::cmos_protect_w)
{
- m_cmos_write_enabled = TRUE;
+ m_cmos_write_enabled = true;
}
READ32_MEMBER(atlantis_state::status_leds_r)
@@ -627,7 +627,7 @@ void atlantis_state::machine_reset()
m_dcs->reset_w(1);
m_dcs->reset_w(0);
m_user_io_state = 0;
- m_cmos_write_enabled = FALSE;
+ m_cmos_write_enabled = false;
m_serial_count = 0;
m_irq_state = 0;
memset(board_ctrl, 0, sizeof(board_ctrl));
diff --git a/src/mame/drivers/balsente.cpp b/src/mame/drivers/balsente.cpp
index 5ab6872f6bf..4c8c9fc79f2 100644
--- a/src/mame/drivers/balsente.cpp
+++ b/src/mame/drivers/balsente.cpp
@@ -2267,74 +2267,74 @@ inline void balsente_state::config_shooter_adc(uint8_t shooter, uint8_t adc_shif
m_adc_shift = adc_shift;
}
-DRIVER_INIT_MEMBER(balsente_state,sentetst) { expand_roms(EXPAND_ALL); config_shooter_adc(FALSE, 0 /* noanalog */); }
-DRIVER_INIT_MEMBER(balsente_state,cshift) { expand_roms(EXPAND_ALL); config_shooter_adc(FALSE, 0 /* noanalog */); }
-DRIVER_INIT_MEMBER(balsente_state,gghost) { expand_roms(EXPAND_ALL); config_shooter_adc(FALSE, 1); }
-DRIVER_INIT_MEMBER(balsente_state,hattrick) { expand_roms(EXPAND_ALL); config_shooter_adc(FALSE, 0 /* noanalog */); }
+DRIVER_INIT_MEMBER(balsente_state,sentetst) { expand_roms(EXPAND_ALL); config_shooter_adc(false, 0 /* noanalog */); }
+DRIVER_INIT_MEMBER(balsente_state,cshift) { expand_roms(EXPAND_ALL); config_shooter_adc(false, 0 /* noanalog */); }
+DRIVER_INIT_MEMBER(balsente_state,gghost) { expand_roms(EXPAND_ALL); config_shooter_adc(false, 1); }
+DRIVER_INIT_MEMBER(balsente_state,hattrick) { expand_roms(EXPAND_ALL); config_shooter_adc(false, 0 /* noanalog */); }
DRIVER_INIT_MEMBER(balsente_state,teamht)
{
address_space &space = m_maincpu->space(AS_PROGRAM);
expand_roms(EXPAND_ALL);
- config_shooter_adc(FALSE, 0 /* noanalog */);
+ config_shooter_adc(false, 0 /* noanalog */);
space.install_read_handler(0x9404, 0x9404, read8_delegate(FUNC(balsente_state::teamht_extra_r),this));
space.install_write_handler(0x9000, 0x9007, write8_delegate(FUNC(balsente_state::teamht_multiplex_select_w),this));
}
-DRIVER_INIT_MEMBER(balsente_state,otwalls) { expand_roms(EXPAND_ALL); config_shooter_adc(FALSE, 0); }
-DRIVER_INIT_MEMBER(balsente_state,snakepit) { expand_roms(EXPAND_ALL); config_shooter_adc(FALSE, 1); }
-DRIVER_INIT_MEMBER(balsente_state,snakjack) { expand_roms(EXPAND_ALL); config_shooter_adc(FALSE, 1); }
-DRIVER_INIT_MEMBER(balsente_state,stocker) { expand_roms(EXPAND_ALL); config_shooter_adc(FALSE, 0); }
-DRIVER_INIT_MEMBER(balsente_state,triviag1) { expand_roms(EXPAND_ALL); config_shooter_adc(FALSE, 0 /* noanalog */); }
+DRIVER_INIT_MEMBER(balsente_state,otwalls) { expand_roms(EXPAND_ALL); config_shooter_adc(false, 0); }
+DRIVER_INIT_MEMBER(balsente_state,snakepit) { expand_roms(EXPAND_ALL); config_shooter_adc(false, 1); }
+DRIVER_INIT_MEMBER(balsente_state,snakjack) { expand_roms(EXPAND_ALL); config_shooter_adc(false, 1); }
+DRIVER_INIT_MEMBER(balsente_state,stocker) { expand_roms(EXPAND_ALL); config_shooter_adc(false, 0); }
+DRIVER_INIT_MEMBER(balsente_state,triviag1) { expand_roms(EXPAND_ALL); config_shooter_adc(false, 0 /* noanalog */); }
DRIVER_INIT_MEMBER(balsente_state,triviag2)
{
uint8_t *rom = memregion("maincpu")->base();
memcpy(&rom[0x20000], &rom[0x28000], 0x4000);
memcpy(&rom[0x24000], &rom[0x28000], 0x4000);
- expand_roms(EXPAND_NONE); config_shooter_adc(FALSE, 0 /* noanalog */);
+ expand_roms(EXPAND_NONE); config_shooter_adc(false, 0 /* noanalog */);
}
-DRIVER_INIT_MEMBER(balsente_state,triviaes) { expand_roms(EXPAND_NONE | SWAP_HALVES); config_shooter_adc(FALSE, 0 /* noanalog */); }
-DRIVER_INIT_MEMBER(balsente_state,gimeabrk) { expand_roms(EXPAND_ALL); config_shooter_adc(FALSE, 1); }
-DRIVER_INIT_MEMBER(balsente_state,minigolf) { expand_roms(EXPAND_NONE); config_shooter_adc(FALSE, 2); }
-DRIVER_INIT_MEMBER(balsente_state,minigolf2) { expand_roms(0x0c); config_shooter_adc(FALSE, 2); }
-DRIVER_INIT_MEMBER(balsente_state,toggle) { expand_roms(EXPAND_ALL); config_shooter_adc(FALSE, 0 /* noanalog */); }
+DRIVER_INIT_MEMBER(balsente_state,triviaes) { expand_roms(EXPAND_NONE | SWAP_HALVES); config_shooter_adc(false, 0 /* noanalog */); }
+DRIVER_INIT_MEMBER(balsente_state,gimeabrk) { expand_roms(EXPAND_ALL); config_shooter_adc(false, 1); }
+DRIVER_INIT_MEMBER(balsente_state,minigolf) { expand_roms(EXPAND_NONE); config_shooter_adc(false, 2); }
+DRIVER_INIT_MEMBER(balsente_state,minigolf2) { expand_roms(0x0c); config_shooter_adc(false, 2); }
+DRIVER_INIT_MEMBER(balsente_state,toggle) { expand_roms(EXPAND_ALL); config_shooter_adc(false, 0 /* noanalog */); }
DRIVER_INIT_MEMBER(balsente_state,nametune)
{
address_space &space = m_maincpu->space(AS_PROGRAM);
space.install_write_handler(0x9f00, 0x9f00, write8_delegate(FUNC(balsente_state::balsente_rombank2_select_w),this));
- expand_roms(EXPAND_NONE | SWAP_HALVES); config_shooter_adc(FALSE, 0 /* noanalog */);
+ expand_roms(EXPAND_NONE | SWAP_HALVES); config_shooter_adc(false, 0 /* noanalog */);
}
DRIVER_INIT_MEMBER(balsente_state,nstocker)
{
address_space &space = m_maincpu->space(AS_PROGRAM);
space.install_write_handler(0x9f00, 0x9f00, write8_delegate(FUNC(balsente_state::balsente_rombank2_select_w),this));
- expand_roms(EXPAND_NONE | SWAP_HALVES); config_shooter_adc(TRUE, 1);
+ expand_roms(EXPAND_NONE | SWAP_HALVES); config_shooter_adc(true, 1);
}
DRIVER_INIT_MEMBER(balsente_state,sfootbal)
{
address_space &space = m_maincpu->space(AS_PROGRAM);
space.install_write_handler(0x9f00, 0x9f00, write8_delegate(FUNC(balsente_state::balsente_rombank2_select_w),this));
- expand_roms(EXPAND_ALL | SWAP_HALVES); config_shooter_adc(FALSE, 0);
+ expand_roms(EXPAND_ALL | SWAP_HALVES); config_shooter_adc(false, 0);
}
DRIVER_INIT_MEMBER(balsente_state,spiker)
{
address_space &space = m_maincpu->space(AS_PROGRAM);
space.install_readwrite_handler(0x9f80, 0x9f8f, read8_delegate(FUNC(balsente_state::spiker_expand_r),this), write8_delegate(FUNC(balsente_state::spiker_expand_w),this));
space.install_write_handler(0x9f00, 0x9f00, write8_delegate(FUNC(balsente_state::balsente_rombank2_select_w),this));
- expand_roms(EXPAND_ALL | SWAP_HALVES); config_shooter_adc(FALSE, 1);
+ expand_roms(EXPAND_ALL | SWAP_HALVES); config_shooter_adc(false, 1);
}
DRIVER_INIT_MEMBER(balsente_state,stompin)
{
address_space &space = m_maincpu->space(AS_PROGRAM);
space.install_write_handler(0x9f00, 0x9f00, write8_delegate(FUNC(balsente_state::balsente_rombank2_select_w),this));
- expand_roms(0x0c | SWAP_HALVES); config_shooter_adc(FALSE, 32);
+ expand_roms(0x0c | SWAP_HALVES); config_shooter_adc(false, 32);
}
-DRIVER_INIT_MEMBER(balsente_state,rescraid) { expand_roms(EXPAND_NONE); config_shooter_adc(FALSE, 0 /* noanalog */); }
+DRIVER_INIT_MEMBER(balsente_state,rescraid) { expand_roms(EXPAND_NONE); config_shooter_adc(false, 0 /* noanalog */); }
DRIVER_INIT_MEMBER(balsente_state,grudge)
{
address_space &space = m_maincpu->space(AS_PROGRAM);
space.install_read_handler(0x9400, 0x9400, read8_delegate(FUNC(balsente_state::grudge_steering_r),this));
- expand_roms(EXPAND_NONE); config_shooter_adc(FALSE, 0);
+ expand_roms(EXPAND_NONE); config_shooter_adc(false, 0);
}
DRIVER_INIT_MEMBER(balsente_state,shrike)
{
@@ -2343,7 +2343,7 @@ DRIVER_INIT_MEMBER(balsente_state,shrike)
space.install_write_handler(0x9e01, 0x9e01, write8_delegate(FUNC(balsente_state::shrike_sprite_select_w),this));
m_68k->space(AS_PROGRAM).install_readwrite_handler(0x10000, 0x1001f, read16_delegate(FUNC(balsente_state::shrike_io_68k_r),this), write16_delegate(FUNC(balsente_state::shrike_io_68k_w),this));
- expand_roms(EXPAND_ALL); config_shooter_adc(FALSE, 32);
+ expand_roms(EXPAND_ALL); config_shooter_adc(false, 32);
}
diff --git a/src/mame/drivers/boxer.cpp b/src/mame/drivers/boxer.cpp
index ec8cb050a4c..2e554dceb29 100644
--- a/src/mame/drivers/boxer.cpp
+++ b/src/mame/drivers/boxer.cpp
@@ -91,7 +91,7 @@ void boxer_state::device_timer(emu_timer &timer, device_timer_id id, int param,
periodic_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in boxer_state::device_timer");
+ assert_always(false, "Unknown id in boxer_state::device_timer");
}
}
diff --git a/src/mame/drivers/btoads.cpp b/src/mame/drivers/btoads.cpp
index ade3af540fa..c87a4403079 100644
--- a/src/mame/drivers/btoads.cpp
+++ b/src/mame/drivers/btoads.cpp
@@ -302,7 +302,7 @@ static MACHINE_CONFIG_START( btoads, btoads_state )
MCFG_CPU_ADD("maincpu", TMS34020, CPU_CLOCK/2)
MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(VIDEO_CLOCK/2) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_RGB32_CB(btoads_state, scanline_update) /* scanline updater (RGB32) */
diff --git a/src/mame/drivers/by17.cpp b/src/mame/drivers/by17.cpp
index 9f11f203674..6dd0795465c 100644
--- a/src/mame/drivers/by17.cpp
+++ b/src/mame/drivers/by17.cpp
@@ -549,7 +549,7 @@ WRITE_LINE_MEMBER( by17_state::u10_cb2_w )
{
// logerror("New U10 CB2 state %01x, was %01x. PIA=%02x\n", state, m_u10_cb2, m_u10a);
- if (state == TRUE)
+ if (state == true)
m_lamp_decode = m_u10a & 0x0f;
m_u10_cb2 = state;
@@ -605,10 +605,10 @@ WRITE8_MEMBER( by17_state::u10_a_w )
{
if ((m_lamp_decode & 0x0f) < 0x0f)
{
- if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+00) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+00), ((data & 0x10) ? FALSE : TRUE));
- if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+15) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+15), ((data & 0x20) ? FALSE : TRUE));
- if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+30) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+30), ((data & 0x40) ? FALSE : TRUE));
- if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+45) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+45), ((data & 0x80) ? FALSE : TRUE));
+ if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+00) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+00), ((data & 0x10) ? false : true));
+ if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+15) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+15), ((data & 0x20) ? false : true));
+ if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+30) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+30), ((data & 0x40) ? false : true));
+ if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+45) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+45), ((data & 0x80) ? false : true));
}
else
{
@@ -709,7 +709,7 @@ WRITE8_MEMBER( by17_state::u11_b_w )
{
if ((data & 0x0f) < 0x0f) // Momentary Solenoids
{
- output().set_indexed_value( "solenoid", (data & 0x0f), TRUE);
+ output().set_indexed_value( "solenoid", (data & 0x0f), true);
if (m_solenoid_features[(data & 0x0f)][3]) // Reset/release relevant switch after firing Solenoid
m_io_hold_x[(m_solenoid_features[(data & 0x0f)][2])] &= (m_solenoid_features[(data & 0x0f)][3]);
@@ -721,7 +721,7 @@ WRITE8_MEMBER( by17_state::u11_b_w )
{
for (int i=0; i<15; i++)
{
- output().set_indexed_value( "solenoid", i, FALSE);
+ output().set_indexed_value( "solenoid", i, false);
}
}
}
@@ -729,49 +729,49 @@ WRITE8_MEMBER( by17_state::u11_b_w )
if ((m_u11b & 0x10) && ((data & 0x10)==0))
{
- output().set_value("solenoid16", TRUE);
+ output().set_value("solenoid16", true);
if (m_solenoid_features[16][0] != 0xff)
m_samples->start(m_solenoid_features[16][0], m_solenoid_features[16][1]);
}
else if ((data & 0x10) && ((m_u11b & 0x10)==0))
{
- output().set_value("solenoid16", FALSE);
+ output().set_value("solenoid16", false);
if (m_solenoid_features[16][0] != 0xff)
m_samples->start(m_solenoid_features[16][0], m_solenoid_features[16][2]);
}
if ((m_u11b & 0x20) && ((data & 0x20)==0))
{
- output().set_value("solenoid17", TRUE); // Coin Lockout Coil engage
+ output().set_value("solenoid17", true); // Coin Lockout Coil engage
if (m_solenoid_features[17][0] != 0xff)
m_samples->start(m_solenoid_features[17][0], m_solenoid_features[17][1]);
}
else if ((data & 0x20) && ((m_u11b & 0x20)==0))
{
- output().set_value("solenoid17", FALSE); // Coin Lockout Coil release
+ output().set_value("solenoid17", false); // Coin Lockout Coil release
if (m_solenoid_features[17][0] != 0xff)
m_samples->start(m_solenoid_features[17][0], m_solenoid_features[17][2]);
}
if ((m_u11b & 0x40) && ((data & 0x40)==0))
{
- output().set_value("solenoid18", TRUE); // Flipper Enable Relay engage
+ output().set_value("solenoid18", true); // Flipper Enable Relay engage
if (m_solenoid_features[18][0] != 0xff)
m_samples->start(m_solenoid_features[18][0], m_solenoid_features[18][1]);
}
else if ((data & 0x40) && ((m_u11b & 0x40)==0))
{
- output().set_value("solenoid18", FALSE); // Flipper Enable Relay release
+ output().set_value("solenoid18", false); // Flipper Enable Relay release
if (m_solenoid_features[18][0] != 0xff)
m_samples->start(m_solenoid_features[18][0], m_solenoid_features[18][2]);
}
if ((m_u11b & 0x80) && ((data & 0x80)==0))
{
- output().set_value("solenoid19", TRUE);
+ output().set_value("solenoid19", true);
if (m_solenoid_features[19][0] != 0xff)
m_samples->start(m_solenoid_features[19][0], m_solenoid_features[19][1]);
}
else if ((data & 0x80) && ((m_u11b & 0x80)==0))
{
- output().set_value("solenoid19", FALSE);
+ output().set_value("solenoid19", false);
if (m_solenoid_features[19][0] != 0xff)
m_samples->start(m_solenoid_features[19][0], m_solenoid_features[19][2]);
}
diff --git a/src/mame/drivers/by35.cpp b/src/mame/drivers/by35.cpp
index 3a9c5cff53f..604de9afebd 100644
--- a/src/mame/drivers/by35.cpp
+++ b/src/mame/drivers/by35.cpp
@@ -537,7 +537,7 @@ WRITE_LINE_MEMBER( by35_state::u10_cb2_w )
{
// logerror("New U10 CB2 state %01x, was %01x. PIA=%02x\n", state, m_u10_cb2, m_u10a);
- if (state == TRUE)
+ if (state == true)
m_lamp_decode = m_u10a & 0x0f;
m_u10_cb2 = state;
@@ -609,10 +609,10 @@ WRITE8_MEMBER( by35_state::u10_a_w )
{
if ((m_lamp_decode & 0x0f) < 0x0f)
{
- if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+00) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+00), ((data & 0x10) ? FALSE : TRUE));
- if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+15) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+15), ((data & 0x20) ? FALSE : TRUE));
- if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+30) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+30), ((data & 0x40) ? FALSE : TRUE));
- if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+45) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+45), ((data & 0x80) ? FALSE : TRUE));
+ if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+00) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+00), ((data & 0x10) ? false : true));
+ if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+15) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+15), ((data & 0x20) ? false : true));
+ if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+30) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+30), ((data & 0x40) ? false : true));
+ if (output().get_indexed_value("lamp", ((m_lamp_decode & 0x0f)+45) ) ==0 ) output().set_indexed_value("lamp", ((m_lamp_decode & 0x0f)+45), ((data & 0x80) ? false : true));
}
else
{
@@ -716,11 +716,11 @@ WRITE8_MEMBER( by35_state::u11_b_w )
if ((data & 0x0f) < 0x0f) // Momentary Solenoids
{
if (m_solenoid_features[(data & 0x0f)][0] != 0xff) { // Play solenoid audio sample
- if (output().get_indexed_value("solenoid", (data & 0x0f)) == FALSE)
+ if (output().get_indexed_value("solenoid", (data & 0x0f)) == false)
m_samples->start(m_solenoid_features[(data & 0x0f)][0], m_solenoid_features[(data & 0x0f)][1]);
}
- output().set_indexed_value( "solenoid", (data & 0x0f), TRUE);
+ output().set_indexed_value( "solenoid", (data & 0x0f), true);
if (m_solenoid_features[(data & 0x0f)][3]) // Reset/release relevant switch after firing Solenoid
m_io_hold_x[(m_solenoid_features[(data & 0x0f)][2])] &= (m_solenoid_features[(data & 0x0f)][3]);
@@ -729,7 +729,7 @@ WRITE8_MEMBER( by35_state::u11_b_w )
{
for (int i=0; i<15; i++)
{
- output().set_indexed_value( "solenoid", i, FALSE);
+ output().set_indexed_value( "solenoid", i, false);
}
}
}
@@ -737,49 +737,49 @@ WRITE8_MEMBER( by35_state::u11_b_w )
if ((m_u11b & 0x10) && ((data & 0x10)==0))
{
- output().set_value("solenoid16", TRUE);
+ output().set_value("solenoid16", true);
if (m_solenoid_features[16][0] != 0xff)
m_samples->start(m_solenoid_features[16][0], m_solenoid_features[16][1]);
}
else if ((data & 0x10) && ((m_u11b & 0x10)==0))
{
- output().set_value("solenoid16", FALSE);
+ output().set_value("solenoid16", false);
if (m_solenoid_features[16][0] != 0xff)
m_samples->start(m_solenoid_features[16][0], m_solenoid_features[16][2]);
}
if ((m_u11b & 0x20) && ((data & 0x20)==0))
{
- output().set_value("solenoid17", TRUE); // Coin Lockout Coil engage
+ output().set_value("solenoid17", true); // Coin Lockout Coil engage
if (m_solenoid_features[17][0] != 0xff)
m_samples->start(m_solenoid_features[17][0], m_solenoid_features[17][1]);
}
else if ((data & 0x20) && ((m_u11b & 0x20)==0))
{
- output().set_value("solenoid17", FALSE); // Coin Lockout Coil release
+ output().set_value("solenoid17", false); // Coin Lockout Coil release
if (m_solenoid_features[17][0] != 0xff)
m_samples->start(m_solenoid_features[17][0], m_solenoid_features[17][2]);
}
if ((m_u11b & 0x40) && ((data & 0x40)==0))
{
- output().set_value("solenoid18", TRUE); // Flipper Enable Relay engage
+ output().set_value("solenoid18", true); // Flipper Enable Relay engage
if (m_solenoid_features[18][0] != 0xff)
m_samples->start(m_solenoid_features[18][0], m_solenoid_features[18][1]);
}
else if ((data & 0x40) && ((m_u11b & 0x40)==0))
{
- output().set_value("solenoid18", FALSE); // Flipper Enable Relay release
+ output().set_value("solenoid18", false); // Flipper Enable Relay release
if (m_solenoid_features[18][0] != 0xff)
m_samples->start(m_solenoid_features[18][0], m_solenoid_features[18][2]);
}
if ((m_u11b & 0x80) && ((data & 0x80)==0))
{
- output().set_value("solenoid19", TRUE);
+ output().set_value("solenoid19", true);
if (m_solenoid_features[19][0] != 0xff)
m_samples->start(m_solenoid_features[19][0], m_solenoid_features[19][1]);
}
else if ((data & 0x80) && ((m_u11b & 0x80)==0))
{
- output().set_value("solenoid19", FALSE);
+ output().set_value("solenoid19", false);
if (m_solenoid_features[19][0] != 0xff)
m_samples->start(m_solenoid_features[19][0], m_solenoid_features[19][2]);
}
diff --git a/src/mame/drivers/c10.cpp b/src/mame/drivers/c10.cpp
index 3d094b5d806..d5df4b8f89d 100644
--- a/src/mame/drivers/c10.cpp
+++ b/src/mame/drivers/c10.cpp
@@ -69,7 +69,7 @@ void c10_state::device_timer(emu_timer &timer, device_timer_id id, int param, vo
membank("boot")->set_entry(0);
break;
default:
- assert_always(FALSE, "Unknown id in c10_state::device_timer");
+ assert_always(false, "Unknown id in c10_state::device_timer");
}
}
diff --git a/src/mame/drivers/capbowl.cpp b/src/mame/drivers/capbowl.cpp
index 11108c48118..a709375bcea 100644
--- a/src/mame/drivers/capbowl.cpp
+++ b/src/mame/drivers/capbowl.cpp
@@ -128,7 +128,7 @@ void capbowl_state::device_timer(emu_timer &timer, device_timer_id id, int param
update(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in capbowl_state::device_timer");
+ assert_always(false, "Unknown id in capbowl_state::device_timer");
}
}
diff --git a/src/mame/drivers/cat.cpp b/src/mame/drivers/cat.cpp
index f9996240863..084c1e6c9a9 100644
--- a/src/mame/drivers/cat.cpp
+++ b/src/mame/drivers/cat.cpp
@@ -887,7 +887,7 @@ void cat_state::device_timer(emu_timer &timer, device_timer_id id, int param, vo
counter_6ms_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in cat_state::device_timer");
+ assert_always(false, "Unknown id in cat_state::device_timer");
}
}
diff --git a/src/mame/drivers/cball.cpp b/src/mame/drivers/cball.cpp
index f6b817c2216..1a7d204b77f 100644
--- a/src/mame/drivers/cball.cpp
+++ b/src/mame/drivers/cball.cpp
@@ -104,7 +104,7 @@ void cball_state::device_timer(emu_timer &timer, device_timer_id id, int param,
interrupt_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in cball_state::device_timer");
+ assert_always(false, "Unknown id in cball_state::device_timer");
}
}
diff --git a/src/mame/drivers/cidelsa.cpp b/src/mame/drivers/cidelsa.cpp
index 3ccb993621b..700dc773a31 100644
--- a/src/mame/drivers/cidelsa.cpp
+++ b/src/mame/drivers/cidelsa.cpp
@@ -355,7 +355,7 @@ void cidelsa_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_reset = 1;
break;
default:
- assert_always(FALSE, "Unknown id in cidelsa_state::device_timer");
+ assert_always(false, "Unknown id in cidelsa_state::device_timer");
}
}
diff --git a/src/mame/drivers/cobra.cpp b/src/mame/drivers/cobra.cpp
index dd11cf974b3..49be80ec9e0 100644
--- a/src/mame/drivers/cobra.cpp
+++ b/src/mame/drivers/cobra.cpp
@@ -3228,12 +3228,12 @@ INTERRUPT_GEN_MEMBER(cobra_state::cobra_vblank)
void cobra_state::machine_start()
{
/* configure fast RAM regions for DRC */
- m_maincpu->ppcdrc_add_fastram(0x00000000, 0x003fffff, FALSE, m_main_ram);
+ m_maincpu->ppcdrc_add_fastram(0x00000000, 0x003fffff, false, m_main_ram);
- m_subcpu->ppcdrc_add_fastram(0x00000000, 0x003fffff, FALSE, m_sub_ram);
+ m_subcpu->ppcdrc_add_fastram(0x00000000, 0x003fffff, false, m_sub_ram);
- m_gfxcpu->ppcdrc_add_fastram(0x00000000, 0x003fffff, FALSE, m_gfx_ram0);
- m_gfxcpu->ppcdrc_add_fastram(0x07c00000, 0x07ffffff, FALSE, m_gfx_ram1);
+ m_gfxcpu->ppcdrc_add_fastram(0x00000000, 0x003fffff, false, m_gfx_ram0);
+ m_gfxcpu->ppcdrc_add_fastram(0x07c00000, 0x07ffffff, false, m_gfx_ram1);
}
void cobra_state::machine_reset()
diff --git a/src/mame/drivers/coolpool.cpp b/src/mame/drivers/coolpool.cpp
index e88bb24f46e..82c26da2862 100644
--- a/src/mame/drivers/coolpool.cpp
+++ b/src/mame/drivers/coolpool.cpp
@@ -779,7 +779,7 @@ static MACHINE_CONFIG_START( amerdart, coolpool_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", TMS34010, XTAL_40MHz)
MCFG_CPU_PROGRAM_MAP(amerdart_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(XTAL_40MHz/12) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(2) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_RGB32_CB(coolpool_state, amerdart_scanline) /* scanline callback (rgb32) */
@@ -816,7 +816,7 @@ static MACHINE_CONFIG_START( coolpool, coolpool_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", TMS34010, XTAL_40MHz)
MCFG_CPU_PROGRAM_MAP(coolpool_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(XTAL_40MHz/6) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_RGB32_CB(coolpool_state, coolpool_scanline) /* scanline callback (rgb32) */
diff --git a/src/mame/drivers/crbaloon.cpp b/src/mame/drivers/crbaloon.cpp
index abe74cae4a1..e7e4c3e4257 100644
--- a/src/mame/drivers/crbaloon.cpp
+++ b/src/mame/drivers/crbaloon.cpp
@@ -52,7 +52,7 @@ void crbaloon_state::pc3092_reset(void)
void crbaloon_state::pc3092_update()
{
- flip_screen_set((m_pc3092_data[1] & 0x01) ? TRUE : FALSE);
+ flip_screen_set((m_pc3092_data[1] & 0x01) ? true : false);
}
@@ -157,25 +157,25 @@ WRITE8_MEMBER(crbaloon_state::port_sound_w)
{
/* D0 - interrupt enable - also goes to PC3259 as /HTCTRL */
m_irq_mask = data & 0x01;
- crbaloon_set_clear_collision_address((data & 0x01) ? TRUE : FALSE);
+ crbaloon_set_clear_collision_address((data & 0x01) ? true : false);
/* D1 - SOUND STOP */
- machine().sound().system_enable((data & 0x02) ? TRUE : FALSE);
+ machine().sound().system_enable((data & 0x02) ? true : false);
/* D2 - unlabeled - music enable */
- crbaloon_audio_set_music_enable(space, 0, (data & 0x04) ? TRUE : FALSE);
+ crbaloon_audio_set_music_enable(space, 0, (data & 0x04) ? true : false);
/* D3 - EXPLOSION */
- crbaloon_audio_set_explosion_enable((data & 0x08) ? TRUE : FALSE);
+ crbaloon_audio_set_explosion_enable((data & 0x08) ? true : false);
/* D4 - BREATH */
- crbaloon_audio_set_breath_enable((data & 0x10) ? TRUE : FALSE);
+ crbaloon_audio_set_breath_enable((data & 0x10) ? true : false);
/* D5 - APPEAR */
- crbaloon_audio_set_appear_enable((data & 0x20) ? TRUE : FALSE);
+ crbaloon_audio_set_appear_enable((data & 0x20) ? true : false);
/* D6 - unlabeled - laugh enable */
- crbaloon_audio_set_laugh_enable(space, 0, (data & 0x40) ? TRUE : FALSE);
+ crbaloon_audio_set_laugh_enable(space, 0, (data & 0x40) ? true : false);
/* D7 - unlabeled - goes to PC3259 pin 16 */
diff --git a/src/mame/drivers/cv1k.cpp b/src/mame/drivers/cv1k.cpp
index 9bcd3ab9145..e11cb22175f 100644
--- a/src/mame/drivers/cv1k.cpp
+++ b/src/mame/drivers/cv1k.cpp
@@ -842,10 +842,10 @@ void cv1k_state::install_speedups(uint32_t idleramoff, uint32_t idlepc, bool is_
m_maincpu->space(AS_PROGRAM).install_read_handler(0xc000000+m_idleramoffs, 0xc000000+m_idleramoffs+7, read64_delegate(FUNC(cv1k_state::speedup_r),this));
- m_maincpu->add_fastram(0x00000000, 0x003fffff, TRUE, m_rombase);
+ m_maincpu->add_fastram(0x00000000, 0x003fffff, true, m_rombase);
- m_maincpu->add_fastram(0x0c000000, 0x0c000000+m_idleramoffs-1, FALSE, m_ram);
- m_maincpu->add_fastram(0x0c000000+m_idleramoffs+8, is_typed ? 0x0cffffff : 0x0c7fffff, FALSE, m_ram + ((m_idleramoffs+8)/8));
+ m_maincpu->add_fastram(0x0c000000, 0x0c000000+m_idleramoffs-1, false, m_ram);
+ m_maincpu->add_fastram(0x0c000000+m_idleramoffs+8, is_typed ? 0x0cffffff : 0x0c7fffff, false, m_ram + ((m_idleramoffs+8)/8));
}
diff --git a/src/mame/drivers/dec8.cpp b/src/mame/drivers/dec8.cpp
index 1861de0686a..295f25423c2 100644
--- a/src/mame/drivers/dec8.cpp
+++ b/src/mame/drivers/dec8.cpp
@@ -141,7 +141,7 @@ void dec8_state::device_timer(emu_timer &timer, device_timer_id id, int param, v
m_mcu->set_input_line(MCS51_INT1_LINE, CLEAR_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in dec8_state::device_timer");
+ assert_always(false, "Unknown id in dec8_state::device_timer");
}
}
diff --git a/src/mame/drivers/dectalk.cpp b/src/mame/drivers/dectalk.cpp
index 5815bc4f755..37201be3a96 100644
--- a/src/mame/drivers/dectalk.cpp
+++ b/src/mame/drivers/dectalk.cpp
@@ -832,7 +832,7 @@ void dectalk_state::device_timer(emu_timer &timer, device_timer_id id, int param
outfifo_read_cb(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in dectalk_state::device_timer");
+ assert_always(false, "Unknown id in dectalk_state::device_timer");
}
}
diff --git a/src/mame/drivers/destroyr.cpp b/src/mame/drivers/destroyr.cpp
index 74333d3c3c7..a63683c23e6 100644
--- a/src/mame/drivers/destroyr.cpp
+++ b/src/mame/drivers/destroyr.cpp
@@ -163,7 +163,7 @@ void destroyr_state::device_timer(emu_timer &timer, device_timer_id id, int para
frame_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in destroyr_state::device_timer");
+ assert_always(false, "Unknown id in destroyr_state::device_timer");
}
}
diff --git a/src/mame/drivers/espial.cpp b/src/mame/drivers/espial.cpp
index 599b1b464eb..bb4a8abe7fb 100644
--- a/src/mame/drivers/espial.cpp
+++ b/src/mame/drivers/espial.cpp
@@ -51,8 +51,8 @@ void espial_state::machine_reset()
{
m_flipscreen = 0;
- m_main_nmi_enabled = FALSE;
- m_sound_nmi_enabled = FALSE;
+ m_main_nmi_enabled = false;
+ m_sound_nmi_enabled = false;
}
void espial_state::machine_start()
diff --git a/src/mame/drivers/exidy.cpp b/src/mame/drivers/exidy.cpp
index e51782a85b9..f9c22dedd0d 100644
--- a/src/mame/drivers/exidy.cpp
+++ b/src/mame/drivers/exidy.cpp
@@ -1456,7 +1456,7 @@ ROM_END
DRIVER_INIT_MEMBER(exidy_state,sidetrac)
{
- exidy_video_config(0x00, 0x00, FALSE);
+ exidy_video_config(0x00, 0x00, false);
/* hard-coded palette controlled via 8x3 DIP switches on the board */
m_color_latch[2] = 0xf8;
@@ -1467,7 +1467,7 @@ DRIVER_INIT_MEMBER(exidy_state,sidetrac)
DRIVER_INIT_MEMBER(exidy_state,targ)
{
- exidy_video_config(0x00, 0x00, FALSE);
+ exidy_video_config(0x00, 0x00, false);
/* hard-coded palette controlled via 8x3 DIP switches on the board */
m_color_latch[2] = 0x5c;
@@ -1478,7 +1478,7 @@ DRIVER_INIT_MEMBER(exidy_state,targ)
DRIVER_INIT_MEMBER(exidy_state,spectar)
{
- exidy_video_config(0x00, 0x00, FALSE);
+ exidy_video_config(0x00, 0x00, false);
/* hard-coded palette controlled via 8x3 DIP switches on the board */
m_color_latch[2] = 0x58;
@@ -1488,7 +1488,7 @@ DRIVER_INIT_MEMBER(exidy_state,spectar)
DRIVER_INIT_MEMBER(exidy_state,rallys)
{
- exidy_video_config(0x00, 0x00, FALSE);
+ exidy_video_config(0x00, 0x00, false);
/* hard-coded palette controlled via 8x3 DIP switches on the board */
m_color_latch[2] = 0x58;
@@ -1498,7 +1498,7 @@ DRIVER_INIT_MEMBER(exidy_state,rallys)
DRIVER_INIT_MEMBER(exidy_state,phantoma)
{
- exidy_video_config(0x00, 0x00, FALSE);
+ exidy_video_config(0x00, 0x00, false);
/* hard-coded palette controlled via 8x3 DIP switches on the board */
m_color_latch[2] = 0x58;
@@ -1513,25 +1513,25 @@ DRIVER_INIT_MEMBER(exidy_state,phantoma)
DRIVER_INIT_MEMBER(exidy_state,mtrap)
{
- exidy_video_config(0x14, 0x00, FALSE);
+ exidy_video_config(0x14, 0x00, false);
}
DRIVER_INIT_MEMBER(exidy_state,venture)
{
- exidy_video_config(0x04, 0x04, FALSE);
+ exidy_video_config(0x04, 0x04, false);
}
DRIVER_INIT_MEMBER(exidy_state,teetert)
{
- exidy_video_config(0x0c, 0x0c, FALSE);
+ exidy_video_config(0x0c, 0x0c, false);
}
DRIVER_INIT_MEMBER(exidy_state,pepper2)
{
- exidy_video_config(0x14, 0x04, TRUE);
+ exidy_video_config(0x14, 0x04, true);
}
@@ -1539,7 +1539,7 @@ DRIVER_INIT_MEMBER(exidy_state,fax)
{
//address_space &space = m_maincpu->space(AS_PROGRAM);
- exidy_video_config(0x04, 0x04, TRUE);
+ exidy_video_config(0x04, 0x04, true);
membank("bank1")->configure_entries(0, 32, memregion("maincpu")->base() + 0x10000, 0x2000);
}
diff --git a/src/mame/drivers/exterm.cpp b/src/mame/drivers/exterm.cpp
index aa597eb1fb0..fa85d9eb7c5 100644
--- a/src/mame/drivers/exterm.cpp
+++ b/src/mame/drivers/exterm.cpp
@@ -399,7 +399,7 @@ static MACHINE_CONFIG_START( exterm, exterm_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", TMS34010, 40000000)
MCFG_CPU_PROGRAM_MAP(master_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(40000000/8) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_IND16_CB(exterm_state, scanline_update) /* scanline updater (indexed16) */
@@ -408,7 +408,7 @@ static MACHINE_CONFIG_START( exterm, exterm_state )
MCFG_CPU_ADD("slave", TMS34010, 40000000)
MCFG_CPU_PROGRAM_MAP(slave_map)
- MCFG_TMS340X0_HALT_ON_RESET(TRUE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(true) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(40000000/8) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_TO_SHIFTREG_CB(exterm_state, to_shiftreg_slave) /* write to shiftreg function */
diff --git a/src/mame/drivers/fgoal.cpp b/src/mame/drivers/fgoal.cpp
index 5cff5017581..282dfc6746d 100644
--- a/src/mame/drivers/fgoal.cpp
+++ b/src/mame/drivers/fgoal.cpp
@@ -78,7 +78,7 @@ void fgoal_state::device_timer(emu_timer &timer, device_timer_id id, int param,
interrupt_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in fgoal_state::device_timer");
+ assert_always(false, "Unknown id in fgoal_state::device_timer");
}
}
diff --git a/src/mame/drivers/firebeat.cpp b/src/mame/drivers/firebeat.cpp
index f88dbb63e1d..e6c9c37629a 100644
--- a/src/mame/drivers/firebeat.cpp
+++ b/src/mame/drivers/firebeat.cpp
@@ -1039,7 +1039,7 @@ MACHINE_START_MEMBER(firebeat_state,firebeat)
m_maincpu->ppcdrc_set_options(PPCDRC_COMPATIBLE_OPTIONS);
/* configure fast RAM regions for DRC */
- m_maincpu->ppcdrc_add_fastram(0x00000000, 0x01ffffff, FALSE, m_work_ram);
+ m_maincpu->ppcdrc_add_fastram(0x00000000, 0x01ffffff, false, m_work_ram);
}
static ADDRESS_MAP_START( firebeat_map, AS_PROGRAM, 32, firebeat_state )
diff --git a/src/mame/drivers/firetrk.cpp b/src/mame/drivers/firetrk.cpp
index 68d6c2f01ed..6faf9916048 100644
--- a/src/mame/drivers/firetrk.cpp
+++ b/src/mame/drivers/firetrk.cpp
@@ -265,7 +265,7 @@ READ8_MEMBER(firetrk_state::montecar_input_r)
WRITE8_MEMBER(firetrk_state::blink_on_w)
{
- *m_blink = TRUE;
+ *m_blink = true;
}
diff --git a/src/mame/drivers/flyball.cpp b/src/mame/drivers/flyball.cpp
index e10e0bc38a4..43ea05f477e 100644
--- a/src/mame/drivers/flyball.cpp
+++ b/src/mame/drivers/flyball.cpp
@@ -171,7 +171,7 @@ void flyball_state::device_timer(emu_timer &timer, device_timer_id id, int param
break;
default:
- assert_always(FALSE, "Unknown id in flyball_state::device_timer");
+ assert_always(false, "Unknown id in flyball_state::device_timer");
}
}
diff --git a/src/mame/drivers/fm7.cpp b/src/mame/drivers/fm7.cpp
index b3a172ae740..2bb98c7c881 100644
--- a/src/mame/drivers/fm7.cpp
+++ b/src/mame/drivers/fm7.cpp
@@ -204,7 +204,7 @@ void fm7_state::device_timer(emu_timer &timer, device_timer_id id, int param, vo
fm77av_vsync(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in fm7_state::device_timer");
+ assert_always(false, "Unknown id in fm7_state::device_timer");
}
}
diff --git a/src/mame/drivers/fuukifg2.cpp b/src/mame/drivers/fuukifg2.cpp
index 6898e4be8c3..e6acae94603 100644
--- a/src/mame/drivers/fuukifg2.cpp
+++ b/src/mame/drivers/fuukifg2.cpp
@@ -412,7 +412,7 @@ void fuuki16_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_raster_interrupt_timer->adjust(m_screen->frame_period());
break;
default:
- assert_always(FALSE, "Unknown id in fuuki16_state::device_timer");
+ assert_always(false, "Unknown id in fuuki16_state::device_timer");
}
}
diff --git a/src/mame/drivers/fuukifg3.cpp b/src/mame/drivers/fuukifg3.cpp
index 24587f937dd..f2baa6c37ee 100644
--- a/src/mame/drivers/fuukifg3.cpp
+++ b/src/mame/drivers/fuukifg3.cpp
@@ -514,7 +514,7 @@ void fuuki32_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_raster_interrupt_timer->adjust(m_screen->frame_period());
break;
default:
- assert_always(FALSE, "Unknown id in fuuki32_state::device_timer");
+ assert_always(false, "Unknown id in fuuki32_state::device_timer");
}
}
diff --git a/src/mame/drivers/galastrm.cpp b/src/mame/drivers/galastrm.cpp
index c9b64c4e9dd..fb5454f2e93 100644
--- a/src/mame/drivers/galastrm.cpp
+++ b/src/mame/drivers/galastrm.cpp
@@ -63,7 +63,7 @@ void galastrm_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_maincpu->set_input_line(6, HOLD_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in galastrm_state::device_timer");
+ assert_always(false, "Unknown id in galastrm_state::device_timer");
}
}
diff --git a/src/mame/drivers/galaxian.cpp b/src/mame/drivers/galaxian.cpp
index 8dad032bb3c..d71a07bc9b0 100644
--- a/src/mame/drivers/galaxian.cpp
+++ b/src/mame/drivers/galaxian.cpp
@@ -6405,8 +6405,8 @@ void galaxian_state::common_init(galaxian_draw_bullet_func draw_bullet,galaxian_
m_numspritegens = 1;
m_bullets_base = 0x60;
m_sprites_base = 0x40;
- m_frogger_adjust = FALSE;
- m_sfx_tilemap = FALSE;
+ m_frogger_adjust = false;
+ m_sfx_tilemap = false;
m_draw_bullet_ptr = (draw_bullet != nullptr) ? draw_bullet : &galaxian_state::galaxian_draw_bullet;
m_draw_background_ptr = (draw_background != nullptr) ? draw_background : &galaxian_state::galaxian_draw_background;
m_extend_tile_info_ptr = extend_tile_info;
@@ -7032,7 +7032,7 @@ DRIVER_INIT_MEMBER(galaxian_state,sfx)
{
/* basic configuration */
common_init(&galaxian_state::scramble_draw_bullet, &galaxian_state::scramble_draw_background, &galaxian_state::upper_extend_tile_info, nullptr);
- m_sfx_tilemap = TRUE;
+ m_sfx_tilemap = true;
/* sound board has space for extra ROM */
m_audiocpu->space(AS_PROGRAM).install_read_bank(0x0000, 0x3fff, "bank1");
@@ -7107,7 +7107,7 @@ DRIVER_INIT_MEMBER(galaxian_state,frogger)
{
/* video extensions */
common_init(nullptr, &galaxian_state::frogger_draw_background, &galaxian_state::frogger_extend_tile_info, &galaxian_state::frogger_extend_sprite_info);
- m_frogger_adjust = TRUE;
+ m_frogger_adjust = true;
/* decrypt */
decode_frogger_sound();
diff --git a/src/mame/drivers/gamate.cpp b/src/mame/drivers/gamate.cpp
index 26047502371..b9d2dc11957 100644
--- a/src/mame/drivers/gamate.cpp
+++ b/src/mame/drivers/gamate.cpp
@@ -337,7 +337,7 @@ void gamate_state::machine_start()
card_protection.set=false;
bank_multi=0;
card_protection.unprotected=false;
- timer2->enable(TRUE);
+ timer2->enable(true);
timer2->reset(m_maincpu->cycles_to_attotime(1000));
#if 0
save_item(NAME(m_video.data));
@@ -355,15 +355,15 @@ void gamate_state::machine_start()
TIMER_CALLBACK_MEMBER(gamate_state::gamate_timer)
{
m_maincpu->set_input_line(M6502_IRQ_LINE, CLEAR_LINE);
- timer1->enable(FALSE);
+ timer1->enable(false);
}
TIMER_CALLBACK_MEMBER(gamate_state::gamate_timer2)
{
m_maincpu->set_input_line(M6502_IRQ_LINE, ASSERT_LINE);
- timer1->enable(TRUE);
+ timer1->enable(true);
timer1->reset(m_maincpu->cycles_to_attotime(10/* cycles short enought to clear irq line early enough*/));
- timer2->enable(TRUE);
+ timer2->enable(true);
timer2->reset(m_maincpu->cycles_to_attotime(32768/2));
}
diff --git a/src/mame/drivers/gameking.cpp b/src/mame/drivers/gameking.cpp
index 2caae4b3422..97cb7c93273 100644
--- a/src/mame/drivers/gameking.cpp
+++ b/src/mame/drivers/gameking.cpp
@@ -91,7 +91,7 @@ WRITE8_MEMBER(gameking_state::io_w)
maincpu_rom->base()[offset] = data;
if (offset == offsetof(Gkio, timer)) {
m_maincpu->set_input_line(M6502_IRQ_LINE, CLEAR_LINE);
- timer1->enable(TRUE);
+ timer1->enable(true);
timer1->reset(m_maincpu->cycles_to_attotime(data * 300/*?*/));
}
@@ -212,8 +212,8 @@ DRIVER_INIT_MEMBER(gameking_state, gameking)
TIMER_CALLBACK_MEMBER(gameking_state::gameking_timer)
{
m_maincpu->set_input_line(M6502_IRQ_LINE, ASSERT_LINE); // in reality int for vector at fff4
- timer1->enable(FALSE);
- timer2->enable(TRUE);
+ timer1->enable(false);
+ timer2->enable(true);
timer2->reset(m_maincpu->cycles_to_attotime(10/*?*/));
}
@@ -221,8 +221,8 @@ TIMER_CALLBACK_MEMBER(gameking_state::gameking_timer2)
{
memory_region *maincpu_rom = memregion("maincpu");
m_maincpu->set_input_line(M6502_IRQ_LINE, CLEAR_LINE); // in reality int for vector at fff4
- timer2->enable(FALSE);
- timer1->enable(TRUE);
+ timer2->enable(false);
+ timer1->enable(true);
Gkio *io = reinterpret_cast<Gkio*>(maincpu_rom->base());
timer1->reset(m_maincpu->cycles_to_attotime(io->timer * 300/*?*/));
}
diff --git a/src/mame/drivers/gaplus.cpp b/src/mame/drivers/gaplus.cpp
index 90dc53a7c46..b0fffcc7bda 100644
--- a/src/mame/drivers/gaplus.cpp
+++ b/src/mame/drivers/gaplus.cpp
@@ -216,7 +216,7 @@ void gaplus_state::device_timer(emu_timer &timer, device_timer_id id, int param,
namcoio_run(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in gaplus_state::device_timer");
+ assert_always(false, "Unknown id in gaplus_state::device_timer");
}
}
diff --git a/src/mame/drivers/gcpinbal.cpp b/src/mame/drivers/gcpinbal.cpp
index 7a755a4f2f4..8cdf8627c42 100644
--- a/src/mame/drivers/gcpinbal.cpp
+++ b/src/mame/drivers/gcpinbal.cpp
@@ -100,7 +100,7 @@ void gcpinbal_state::device_timer(emu_timer &timer, device_timer_id id, int para
}
break;
default:
- assert_always(FALSE, "Unknown id in gcpinbal_state::device_timer");
+ assert_always(false, "Unknown id in gcpinbal_state::device_timer");
}
}
diff --git a/src/mame/drivers/glasgow.cpp b/src/mame/drivers/glasgow.cpp
index ac3a9b22e7d..a08150ac9ca 100644
--- a/src/mame/drivers/glasgow.cpp
+++ b/src/mame/drivers/glasgow.cpp
@@ -280,7 +280,7 @@ READ16_MEMBER( glasgow_state::glasgow_board_r )
}
}
- m_read_board_flag = TRUE;
+ m_read_board_flag = true;
return data << 8;
}
diff --git a/src/mame/drivers/gottlieb.cpp b/src/mame/drivers/gottlieb.cpp
index 7e2af6ab83e..fbaf0f2cb1a 100644
--- a/src/mame/drivers/gottlieb.cpp
+++ b/src/mame/drivers/gottlieb.cpp
@@ -421,7 +421,7 @@ WRITE8_MEMBER(gottlieb_state::laserdisc_command_w)
TIMER_CALLBACK_MEMBER(gottlieb_state::laserdisc_philips_callback)
{
- uint32_t newcode = m_laserdisc->get_field_code((param == 17) ? LASERDISC_CODE_LINE17 : LASERDISC_CODE_LINE18, TRUE);
+ uint32_t newcode = m_laserdisc->get_field_code((param == 17) ? LASERDISC_CODE_LINE17 : LASERDISC_CODE_LINE18, true);
/* the PR8210 sends line 17/18 data on each frame; the laserdisc interface
board receives notification and latches the most recent frame number */
@@ -491,7 +491,7 @@ inline void gottlieb_state::audio_end_state()
}
-void gottlieb_state::audio_process_clock(int logit)
+void gottlieb_state::audio_process_clock(bool logit)
{
/* clock the bit through the shift register */
m_laserdisc_audio_bits >>= 1;
@@ -532,7 +532,7 @@ void gottlieb_state::audio_process_clock(int logit)
}
-void gottlieb_state::audio_handle_zero_crossing(const attotime &zerotime, int logit)
+void gottlieb_state::audio_handle_zero_crossing(const attotime &zerotime, bool logit)
{
/* compute time from last clock */
attotime deltaclock = zerotime - m_laserdisc_last_clock;
@@ -581,7 +581,7 @@ void gottlieb_state::audio_handle_zero_crossing(const attotime &zerotime, int lo
void gottlieb_state::laserdisc_audio_process(laserdisc_device &device, int samplerate, int samples, const int16_t *ch0, const int16_t *ch1)
{
- int logit = LOG_AUDIO_DECODE && machine().input().code_pressed(KEYCODE_L);
+ bool logit = LOG_AUDIO_DECODE && machine().input().code_pressed(KEYCODE_L);
attotime time_per_sample = attotime::from_hz(samplerate);
attotime curtime = m_laserdisc_last_time;
int cursamp;
@@ -703,7 +703,7 @@ void gottlieb_state::device_timer(emu_timer &timer, device_timer_id id, int para
nmi_clear(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in gottlieb_state::device_timer");
+ assert_always(false, "Unknown id in gottlieb_state::device_timer");
}
}
diff --git a/src/mame/drivers/gpworld.cpp b/src/mame/drivers/gpworld.cpp
index efe7d45b0b3..eb216e085ba 100644
--- a/src/mame/drivers/gpworld.cpp
+++ b/src/mame/drivers/gpworld.cpp
@@ -450,7 +450,7 @@ void gpworld_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_maincpu->set_input_line(0, CLEAR_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in gpworld_state::device_timer");
+ assert_always(false, "Unknown id in gpworld_state::device_timer");
}
}
diff --git a/src/mame/drivers/groundfx.cpp b/src/mame/drivers/groundfx.cpp
index 6efe31f8f2b..74faf324ed7 100644
--- a/src/mame/drivers/groundfx.cpp
+++ b/src/mame/drivers/groundfx.cpp
@@ -84,7 +84,7 @@ void groundfx_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_maincpu->set_input_line(5, HOLD_LINE); //from 5... ADC port
break;
default:
- assert_always(FALSE, "Unknown id in groundfx_state::device_timer");
+ assert_always(false, "Unknown id in groundfx_state::device_timer");
}
}
diff --git a/src/mame/drivers/gticlub.cpp b/src/mame/drivers/gticlub.cpp
index 6c40020cc4e..400f364e127 100644
--- a/src/mame/drivers/gticlub.cpp
+++ b/src/mame/drivers/gticlub.cpp
@@ -495,7 +495,7 @@ MACHINE_START_MEMBER(gticlub_state,gticlub)
m_maincpu->ppcdrc_set_options(PPCDRC_COMPATIBLE_OPTIONS);
/* configure fast RAM regions for DRC */
- m_maincpu->ppcdrc_add_fastram(0x00000000, 0x000fffff, FALSE, m_work_ram);
+ m_maincpu->ppcdrc_add_fastram(0x00000000, 0x000fffff, false, m_work_ram);
m_sound_irq_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(gticlub_state::sound_irq), this));
}
diff --git a/src/mame/drivers/gunbustr.cpp b/src/mame/drivers/gunbustr.cpp
index 1c09749e67a..b5e1d38b314 100644
--- a/src/mame/drivers/gunbustr.cpp
+++ b/src/mame/drivers/gunbustr.cpp
@@ -61,7 +61,7 @@ void gunbustr_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_maincpu->set_input_line(5, HOLD_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in gunbustr_state::device_timer");
+ assert_always(false, "Unknown id in gunbustr_state::device_timer");
}
}
diff --git a/src/mame/drivers/h19.cpp b/src/mame/drivers/h19.cpp
index cd908ddda2b..ad6cbfc1fe9 100644
--- a/src/mame/drivers/h19.cpp
+++ b/src/mame/drivers/h19.cpp
@@ -95,7 +95,7 @@ void h19_state::device_timer(emu_timer &timer, device_timer_id id, int param, vo
m_beep->set_state(0);
break;
default:
- assert_always(FALSE, "Unknown id in h19_state::device_timer");
+ assert_always(false, "Unknown id in h19_state::device_timer");
}
}
diff --git a/src/mame/drivers/harddriv.cpp b/src/mame/drivers/harddriv.cpp
index 3edf8bfde49..815cf4f2032 100644
--- a/src/mame/drivers/harddriv.cpp
+++ b/src/mame/drivers/harddriv.cpp
@@ -1429,7 +1429,7 @@ static MACHINE_CONFIG_FRAGMENT( driver_nomsp )
MCFG_CPU_ADD("gsp", TMS34010, HARDDRIV_GSP_CLOCK)
MCFG_CPU_PROGRAM_MAP(driver_gsp_map)
- MCFG_TMS340X0_HALT_ON_RESET(TRUE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(true) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(4000000) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(4) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_IND16_CB(harddriv_state, scanline_driver) /* scanline callback (indexed16) */
@@ -1465,7 +1465,7 @@ static MACHINE_CONFIG_FRAGMENT( driver_msp )
/* basic machine hardware */
MCFG_CPU_ADD("msp", TMS34010, XTAL_50MHz)
MCFG_CPU_PROGRAM_MAP(driver_msp_map)
- MCFG_TMS340X0_HALT_ON_RESET(TRUE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(true) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(5000000) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(2) /* pixels per clock */
MCFG_TMS340X0_OUTPUT_INT_CB(WRITELINE(harddriv_state, hdmsp_irq_gen))
@@ -1504,7 +1504,7 @@ static MACHINE_CONFIG_FRAGMENT( multisync_msp )
/* basic machine hardware */
MCFG_CPU_ADD("msp", TMS34010, XTAL_50MHz)
MCFG_CPU_PROGRAM_MAP(driver_msp_map)
- MCFG_TMS340X0_HALT_ON_RESET(TRUE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(true) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(5000000) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(2) /* pixels per clock */
MCFG_TMS340X0_OUTPUT_INT_CB(WRITELINE(harddriv_state, hdmsp_irq_gen))
@@ -4634,7 +4634,7 @@ ROM_END
void harddriv_state::init_driver()
{
/* note that we're not multisync */
- m_gsp_multisync = FALSE;
+ m_gsp_multisync = false;
}
@@ -4642,7 +4642,7 @@ void harddriv_state::init_driver()
void harddriv_state::init_multisync(int compact_inputs)
{
/* note that we're multisync */
- m_gsp_multisync = TRUE;
+ m_gsp_multisync = true;
// if we have a JSA board, install the read/write handlers
if (m_jsa.found())
diff --git a/src/mame/drivers/hng64.cpp b/src/mame/drivers/hng64.cpp
index df56b07a5c4..590fbbec061 100644
--- a/src/mame/drivers/hng64.cpp
+++ b/src/mame/drivers/hng64.cpp
@@ -1504,9 +1504,9 @@ void hng64_state::machine_start()
m_maincpu->mips3drc_set_options(MIPS3DRC_FASTEST_OPTIONS + MIPS3DRC_STRICT_VERIFY);
/* configure fast RAM regions */
- m_maincpu->add_fastram(0x00000000, 0x00ffffff, FALSE, m_mainram);
- m_maincpu->add_fastram(0x04000000, 0x05ffffff, TRUE, m_cart);
- m_maincpu->add_fastram(0x1fc00000, 0x1fc7ffff, TRUE, m_rombase);
+ m_maincpu->add_fastram(0x00000000, 0x00ffffff, false, m_mainram);
+ m_maincpu->add_fastram(0x04000000, 0x05ffffff, true, m_cart);
+ m_maincpu->add_fastram(0x1fc00000, 0x1fc7ffff, true, m_rombase);
m_comm_rom = memregion("user2")->base();
m_comm_ram = std::make_unique<uint8_t[]>(0x10000);
diff --git a/src/mame/drivers/hornet.cpp b/src/mame/drivers/hornet.cpp
index fd696f62d68..47a51974a83 100644
--- a/src/mame/drivers/hornet.cpp
+++ b/src/mame/drivers/hornet.cpp
@@ -959,7 +959,7 @@ void hornet_state::machine_start()
m_maincpu->ppcdrc_set_options(PPCDRC_COMPATIBLE_OPTIONS);
/* configure fast RAM regions for DRC */
- m_maincpu->ppcdrc_add_fastram(0x00000000, 0x003fffff, FALSE, m_workram);
+ m_maincpu->ppcdrc_add_fastram(0x00000000, 0x003fffff, false, m_workram);
save_item(NAME(m_led_reg0));
save_item(NAME(m_led_reg1));
diff --git a/src/mame/drivers/indigo.cpp b/src/mame/drivers/indigo.cpp
index 5459b32ed69..cad8d597283 100644
--- a/src/mame/drivers/indigo.cpp
+++ b/src/mame/drivers/indigo.cpp
@@ -493,7 +493,7 @@ void indigo_state::device_timer(emu_timer &timer, device_timer_id id, int param,
indigo_timer_rtc();
break;
default:
- assert_always(FALSE, "Unknown id in indigo_state::device_timer");
+ assert_always(false, "Unknown id in indigo_state::device_timer");
}
}
diff --git a/src/mame/drivers/indy_indigo2.cpp b/src/mame/drivers/indy_indigo2.cpp
index a82db77fa31..0f1b16a2e49 100644
--- a/src/mame/drivers/indy_indigo2.cpp
+++ b/src/mame/drivers/indy_indigo2.cpp
@@ -1011,7 +1011,7 @@ void ip22_state::device_timer(emu_timer &timer, device_timer_id id, int param, v
ip22_dma(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in ip22_state::device_timer");
+ assert_always(false, "Unknown id in ip22_state::device_timer");
}
}
diff --git a/src/mame/drivers/intv.cpp b/src/mame/drivers/intv.cpp
index fcceca312c2..c73695c5d33 100644
--- a/src/mame/drivers/intv.cpp
+++ b/src/mame/drivers/intv.cpp
@@ -430,7 +430,7 @@ void intv_state::device_timer(emu_timer &timer, device_timer_id id, int param, v
intv_btb_fill(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in intv_state::device_timer");
+ assert_always(false, "Unknown id in intv_state::device_timer");
}
}
diff --git a/src/mame/drivers/iteagle.cpp b/src/mame/drivers/iteagle.cpp
index 0013f2c7b00..79c605cc60a 100644
--- a/src/mame/drivers/iteagle.cpp
+++ b/src/mame/drivers/iteagle.cpp
@@ -135,8 +135,8 @@ void iteagle_state::machine_start()
m_maincpu->mips3drc_set_options(MIPS3DRC_FASTEST_OPTIONS);
/* configure fast RAM regions for DRC */
- //m_maincpu->mips3drc_add_fastram(0x00000000, 16*1024*1024-1, FALSE, m_rambase);
- //m_maincpu->mips3drc_add_fastram(0x1fc00000, 0x1fc7ffff, TRUE, m_rombase);
+ //m_maincpu->mips3drc_add_fastram(0x00000000, 16*1024*1024-1, false, m_rambase);
+ //m_maincpu->mips3drc_add_fastram(0x1fc00000, 0x1fc7ffff, true, m_rombase);
}
void iteagle_state::machine_reset()
diff --git a/src/mame/drivers/itech8.cpp b/src/mame/drivers/itech8.cpp
index 04e290ef237..f6db97c176c 100644
--- a/src/mame/drivers/itech8.cpp
+++ b/src/mame/drivers/itech8.cpp
@@ -658,7 +658,7 @@ void itech8_state::device_timer(emu_timer &timer, device_timer_id id, int param,
delayed_z80_control_w(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in itech8_state::device_timer");
+ assert_always(false, "Unknown id in itech8_state::device_timer");
}
}
diff --git a/src/mame/drivers/jpmimpct.cpp b/src/mame/drivers/jpmimpct.cpp
index f57727acceb..80024130d43 100644
--- a/src/mame/drivers/jpmimpct.cpp
+++ b/src/mame/drivers/jpmimpct.cpp
@@ -838,7 +838,7 @@ static MACHINE_CONFIG_START( jpmimpct, jpmimpct_state )
MCFG_CPU_ADD("dsp", TMS34010, 40000000)
MCFG_CPU_PROGRAM_MAP(tms_program_map)
- MCFG_TMS340X0_HALT_ON_RESET(TRUE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(true) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(40000000/16) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(4) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_RGB32_CB(jpmimpct_state, scanline_update) /* scanline updater (rgb32) */
diff --git a/src/mame/drivers/jr100.cpp b/src/mame/drivers/jr100.cpp
index fc0b989c390..b5fa3f94cc4 100644
--- a/src/mame/drivers/jr100.cpp
+++ b/src/mame/drivers/jr100.cpp
@@ -285,7 +285,7 @@ WRITE8_MEMBER(jr100_state::jr100_via_write_a)
WRITE8_MEMBER(jr100_state::jr100_via_write_b)
{
- m_use_pcg = (data & 0x20) ? TRUE : FALSE;
+ m_use_pcg = (data & 0x20) ? true : false;
m_speaker_data = data>>7;
}
diff --git a/src/mame/drivers/kinst.cpp b/src/mame/drivers/kinst.cpp
index 0688dc743fe..da993b6e34f 100644
--- a/src/mame/drivers/kinst.cpp
+++ b/src/mame/drivers/kinst.cpp
@@ -203,9 +203,9 @@ void kinst_state::machine_start()
m_maincpu->mips3drc_set_options(MIPS3DRC_FASTEST_OPTIONS);
/* configure fast RAM regions */
- m_maincpu->add_fastram(0x08000000, 0x087fffff, FALSE, m_rambase2);
- m_maincpu->add_fastram(0x00000000, 0x0007ffff, FALSE, m_rambase);
- m_maincpu->add_fastram(0x1fc00000, 0x1fc7ffff, TRUE, m_rombase);
+ m_maincpu->add_fastram(0x08000000, 0x087fffff, false, m_rambase2);
+ m_maincpu->add_fastram(0x00000000, 0x0007ffff, false, m_rambase);
+ m_maincpu->add_fastram(0x1fc00000, 0x1fc7ffff, true, m_rombase);
}
@@ -292,7 +292,7 @@ void kinst_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_maincpu->set_input_line(0, CLEAR_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in kinst_state::device_timer");
+ assert_always(false, "Unknown id in kinst_state::device_timer");
}
}
diff --git a/src/mame/drivers/laserbat.cpp b/src/mame/drivers/laserbat.cpp
index fcb7a3df640..049e4c0e573 100644
--- a/src/mame/drivers/laserbat.cpp
+++ b/src/mame/drivers/laserbat.cpp
@@ -460,7 +460,7 @@ void laserbat_state_base::device_timer(emu_timer &timer, device_timer_id id, int
video_line(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in laserbat_state_base::device_timer");
+ assert_always(false, "Unknown id in laserbat_state_base::device_timer");
}
}
diff --git a/src/mame/drivers/lethalj.cpp b/src/mame/drivers/lethalj.cpp
index 961505765ba..2b4914e93ac 100644
--- a/src/mame/drivers/lethalj.cpp
+++ b/src/mame/drivers/lethalj.cpp
@@ -633,7 +633,7 @@ static MACHINE_CONFIG_START( gameroom, lethalj_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", TMS34010, MASTER_CLOCK)
MCFG_CPU_PROGRAM_MAP(lethalj_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(VIDEO_CLOCK) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_IND16_CB(lethalj_state, scanline_update) /* scanline updater (indexed16) */
diff --git a/src/mame/drivers/m10.cpp b/src/mame/drivers/m10.cpp
index ad8e5ccd3df..d3323bab19f 100644
--- a/src/mame/drivers/m10.cpp
+++ b/src/mame/drivers/m10.cpp
@@ -492,7 +492,7 @@ void m10_state::device_timer(emu_timer &timer, device_timer_id id, int param, vo
interrupt_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in m10_state::device_timer");
+ assert_always(false, "Unknown id in m10_state::device_timer");
}
}
diff --git a/src/mame/drivers/macs.cpp b/src/mame/drivers/macs.cpp
index d6bc3b094c1..709a24aff47 100644
--- a/src/mame/drivers/macs.cpp
+++ b/src/mame/drivers/macs.cpp
@@ -508,9 +508,9 @@ static MACHINE_CONFIG_START( macs, macs_state )
MCFG_SCREEN_PALETTE("maincpu:palette")
MCFG_GENERIC_CARTSLOT_ADD_WITH_DEFAULT("slot_a", generic_plain_slot, "macs_cart", "rom")
- MCFG_SET_IMAGE_LOADABLE(FALSE)
+ MCFG_SET_IMAGE_LOADABLE(false)
MCFG_GENERIC_CARTSLOT_ADD_WITH_DEFAULT("slot_b", generic_plain_slot, "macs_cart", "rom")
- MCFG_SET_IMAGE_LOADABLE(FALSE)
+ MCFG_SET_IMAGE_LOADABLE(false)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/mappy.cpp b/src/mame/drivers/mappy.cpp
index 090a46a8d81..1d563e22c73 100644
--- a/src/mame/drivers/mappy.cpp
+++ b/src/mame/drivers/mappy.cpp
@@ -762,7 +762,7 @@ void mappy_state::device_timer(emu_timer &timer, device_timer_id id, int param,
motos_io_run(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in mappy_state::device_timer");
+ assert_always(false, "Unknown id in mappy_state::device_timer");
}
}
diff --git a/src/mame/drivers/megadriv.cpp b/src/mame/drivers/megadriv.cpp
index 50f0203c989..a3734c3240a 100644
--- a/src/mame/drivers/megadriv.cpp
+++ b/src/mame/drivers/megadriv.cpp
@@ -463,7 +463,7 @@ DRIVER_INIT_MEMBER(md_cons_state, genesis)
if (m_32x)
{
- m_32x->set_32x_pal(FALSE);
+ m_32x->set_32x_pal(false);
m_32x->set_framerate(60);
m_32x->set_total_scanlines(262);
}
@@ -485,7 +485,7 @@ DRIVER_INIT_MEMBER(md_cons_state, md_eur)
if (m_32x)
{
- m_32x->set_32x_pal(TRUE);
+ m_32x->set_32x_pal(true);
m_32x->set_framerate(50);
m_32x->set_total_scanlines(313);
}
@@ -507,7 +507,7 @@ DRIVER_INIT_MEMBER(md_cons_state, md_jpn)
if (m_32x)
{
- m_32x->set_32x_pal(FALSE);
+ m_32x->set_32x_pal(false);
m_32x->set_framerate(60);
m_32x->set_total_scanlines(262);
}
diff --git a/src/mame/drivers/megatech.cpp b/src/mame/drivers/megatech.cpp
index bdea357a590..d65f00b76c1 100644
--- a/src/mame/drivers/megatech.cpp
+++ b/src/mame/drivers/megatech.cpp
@@ -776,7 +776,7 @@ static MACHINE_CONFIG_DERIVED( megatech_fixedslot, megatech )
// add cart slots
MCFG_MEGATECH_CARTSLOT_ADD("mt_slot1", mt_cart1)
- MCFG_SET_IMAGE_LOADABLE(FALSE)
+ MCFG_SET_IMAGE_LOADABLE(false)
MACHINE_CONFIG_END
diff --git a/src/mame/drivers/mekd2.cpp b/src/mame/drivers/mekd2.cpp
index 62cfc782b1b..80f3d3bc00f 100644
--- a/src/mame/drivers/mekd2.cpp
+++ b/src/mame/drivers/mekd2.cpp
@@ -205,7 +205,7 @@ void mekd2_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_maincpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in mekd2_state::device_timer");
+ assert_always(false, "Unknown id in mekd2_state::device_timer");
}
}
diff --git a/src/mame/drivers/metalmx.cpp b/src/mame/drivers/metalmx.cpp
index d5de7b61536..c9942e3c8bd 100644
--- a/src/mame/drivers/metalmx.cpp
+++ b/src/mame/drivers/metalmx.cpp
@@ -695,7 +695,7 @@ static MACHINE_CONFIG_START( metalmx, metalmx_state )
MCFG_CPU_ADD("gsp", TMS34020, 40000000) /* Unverified */
MCFG_CPU_PROGRAM_MAP(gsp_map)
- MCFG_TMS340X0_HALT_ON_RESET(TRUE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(true) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(4000000) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(2) /* pixels per clock */
MCFG_TMS340X0_OUTPUT_INT_CB(INPUTLINE("maincpu", 4))
diff --git a/src/mame/drivers/metro.cpp b/src/mame/drivers/metro.cpp
index 7fadec702d9..4e94917d7b6 100644
--- a/src/mame/drivers/metro.cpp
+++ b/src/mame/drivers/metro.cpp
@@ -213,7 +213,7 @@ void metro_state::device_timer(emu_timer &timer, device_timer_id id, int param,
metro_blit_done(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in metro_state::device_timer");
+ assert_always(false, "Unknown id in metro_state::device_timer");
}
}
diff --git a/src/mame/drivers/mgolf.cpp b/src/mame/drivers/mgolf.cpp
index b7dda8a524a..ddd157745a8 100644
--- a/src/mame/drivers/mgolf.cpp
+++ b/src/mame/drivers/mgolf.cpp
@@ -147,7 +147,7 @@ void mgolf_state::device_timer(emu_timer &timer, device_timer_id id, int param,
interrupt_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in mgolf_state::device_timer");
+ assert_always(false, "Unknown id in mgolf_state::device_timer");
}
}
diff --git a/src/mame/drivers/micro3d.cpp b/src/mame/drivers/micro3d.cpp
index 9aace987ed1..eb87f1365df 100644
--- a/src/mame/drivers/micro3d.cpp
+++ b/src/mame/drivers/micro3d.cpp
@@ -296,7 +296,7 @@ static MACHINE_CONFIG_START( micro3d, micro3d_state )
MCFG_CPU_ADD("vgb", TMS34010, XTAL_40MHz)
MCFG_CPU_PROGRAM_MAP(vgbmem)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(XTAL_40MHz / 8) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(4) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_IND16_CB(micro3d_state, scanline_update) /* scanline updater (indexed16) */
diff --git a/src/mame/drivers/midtunit.cpp b/src/mame/drivers/midtunit.cpp
index d6d3a606fff..9e3ded89edc 100644
--- a/src/mame/drivers/midtunit.cpp
+++ b/src/mame/drivers/midtunit.cpp
@@ -592,7 +592,7 @@ static MACHINE_CONFIG_START( tunit_core, midtunit_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", TMS34010, CPU_CLOCK)
MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(PIXEL_CLOCK) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(2) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_IND16_CB(midtunit_state, scanline_update) /* scanline updater (indexed16) */
diff --git a/src/mame/drivers/midvunit.cpp b/src/mame/drivers/midvunit.cpp
index 0014ae286cd..ade829ea04c 100644
--- a/src/mame/drivers/midvunit.cpp
+++ b/src/mame/drivers/midvunit.cpp
@@ -520,7 +520,7 @@ READ32_MEMBER(midvunit_state::midvplus_misc_r)
WRITE32_MEMBER(midvunit_state::midvplus_misc_w)
{
uint32_t olddata = m_midvplus_misc[offset];
- int logit = 1;
+ bool logit = true;
COMBINE_DATA(&m_midvplus_misc[offset]);
@@ -531,12 +531,12 @@ WRITE32_MEMBER(midvunit_state::midvplus_misc_w)
if ((olddata ^ m_midvplus_misc[offset]) & 0x0010)
{
m_watchdog->reset_w(space, 0, 0);
- logit = 0;
+ logit = false;
}
break;
case 3:
- logit = 0;
+ logit = false;
break;
}
diff --git a/src/mame/drivers/midwunit.cpp b/src/mame/drivers/midwunit.cpp
index db03a3654f1..9061598abd0 100644
--- a/src/mame/drivers/midwunit.cpp
+++ b/src/mame/drivers/midwunit.cpp
@@ -620,7 +620,7 @@ static MACHINE_CONFIG_START( wunit, midwunit_state )
MCFG_CPU_ADD("maincpu", TMS34010, 50000000)
MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(PIXEL_CLOCK) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_IND16_CB(midtunit_state, scanline_update) /* scanline updater (indexed16) */
diff --git a/src/mame/drivers/midxunit.cpp b/src/mame/drivers/midxunit.cpp
index bbe705f1bfd..93c396177e8 100644
--- a/src/mame/drivers/midxunit.cpp
+++ b/src/mame/drivers/midxunit.cpp
@@ -243,7 +243,7 @@ static MACHINE_CONFIG_START( midxunit, midxunit_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", TMS34020, 40000000)
MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(PIXEL_CLOCK) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_IND16_CB(midxunit_state, scanline_update) /* scanline updater (indexed16) */
diff --git a/src/mame/drivers/midyunit.cpp b/src/mame/drivers/midyunit.cpp
index 7fd9c9dea4f..a74d34f5eca 100644
--- a/src/mame/drivers/midyunit.cpp
+++ b/src/mame/drivers/midyunit.cpp
@@ -1072,7 +1072,7 @@ static MACHINE_CONFIG_START( zunit, midyunit_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", TMS34010, FAST_MASTER_CLOCK)
MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(MEDRES_PIXEL_CLOCK) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(2) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_IND16_CB(midyunit_state, scanline_update) /* scanline updater (indexed16) */
@@ -1114,7 +1114,7 @@ static MACHINE_CONFIG_START( yunit_core, midyunit_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", TMS34010, SLOW_MASTER_CLOCK)
MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(STDRES_PIXEL_CLOCK) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(2) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_IND16_CB(midyunit_state, scanline_update) /* scanline updater (indexed16) */
diff --git a/src/mame/drivers/midzeus.cpp b/src/mame/drivers/midzeus.cpp
index 057259dc562..83fec0c4d9f 100644
--- a/src/mame/drivers/midzeus.cpp
+++ b/src/mame/drivers/midzeus.cpp
@@ -106,7 +106,7 @@ MACHINE_RESET_MEMBER(midzeus_state,midzeus)
*m_ram_base <<= 1;
m_maincpu->reset();
- cmos_protected = TRUE;
+ cmos_protected = true;
}
@@ -146,7 +146,7 @@ WRITE32_MEMBER(midzeus_state::cmos_w)
COMBINE_DATA(&m_nvram[offset]);
else
logerror("%06X:timekeeper_w with bitlatch[2] = %d, cmos_protected = %d\n", space.device().safe_pc(), bitlatch[2], cmos_protected);
- cmos_protected = TRUE;
+ cmos_protected = true;
}
@@ -158,7 +158,7 @@ READ32_MEMBER(midzeus_state::cmos_r)
WRITE32_MEMBER(midzeus_state::cmos_protect_w)
{
- cmos_protected = FALSE;
+ cmos_protected = false;
}
@@ -181,7 +181,7 @@ WRITE32_MEMBER(midzeus_state::zeus2_timekeeper_w)
m_m48t35->write(space, offset, data, 0xff);
else
logerror("%s:zeus2_timekeeper_w with bitlatch[2] = %d, cmos_protected = %d\n", machine().describe_context(), bitlatch[2], cmos_protected);
- cmos_protected = TRUE;
+ cmos_protected = true;
}
diff --git a/src/mame/drivers/mjsister.cpp b/src/mame/drivers/mjsister.cpp
index d45687dac4e..e5949372fd0 100644
--- a/src/mame/drivers/mjsister.cpp
+++ b/src/mame/drivers/mjsister.cpp
@@ -190,7 +190,7 @@ void mjsister_state::device_timer(emu_timer &timer, device_timer_id id, int para
dac_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in mjsister_state::device_timer");
+ assert_always(false, "Unknown id in mjsister_state::device_timer");
}
}
diff --git a/src/mame/drivers/mlanding.cpp b/src/mame/drivers/mlanding.cpp
index febfef81e74..f7e78ffd41e 100644
--- a/src/mame/drivers/mlanding.cpp
+++ b/src/mame/drivers/mlanding.cpp
@@ -404,7 +404,7 @@ void mlanding_state::device_timer(emu_timer &timer, device_timer_id id, int para
break;
default:
- assert_always(FALSE, "Unknown id in mlanding_state::device_timer");
+ assert_always(false, "Unknown id in mlanding_state::device_timer");
}
}
diff --git a/src/mame/drivers/model3.cpp b/src/mame/drivers/model3.cpp
index a49b05f83c5..640235eeb13 100644
--- a/src/mame/drivers/model3.cpp
+++ b/src/mame/drivers/model3.cpp
@@ -1267,7 +1267,7 @@ static void configure_fast_ram(running_machine &machine)
machine.device<ppc_device>("maincpu")->ppcdrc_set_options(PPCDRC_COMPATIBLE_OPTIONS);
/* configure fast RAM regions for DRC */
- machine.device<ppc_device>("maincpu")->ppcdrc_add_fastram(0x00000000, 0x007fffff, FALSE, state->m_work_ram);
+ machine.device<ppc_device>("maincpu")->ppcdrc_add_fastram(0x00000000, 0x007fffff, false, state->m_work_ram);
}
TIMER_CALLBACK_MEMBER(model3_state::model3_sound_timer_tick)
diff --git a/src/mame/drivers/mw8080bw.cpp b/src/mame/drivers/mw8080bw.cpp
index f9054d29e03..55663a4fce9 100644
--- a/src/mame/drivers/mw8080bw.cpp
+++ b/src/mame/drivers/mw8080bw.cpp
@@ -2262,11 +2262,11 @@ static MACHINE_CONFIG_DERIVED( spcenctr, mw8080bw_root )
/* timers */
MCFG_TIMER_DRIVER_ADD_PERIODIC("strobeon", mw8080bw_state, spcenctr_strobe_timer_callback, attotime::from_hz(SPCENCTR_STROBE_FREQ))
- MCFG_TIMER_PARAM(TRUE) /* indicates strobe ON */
+ MCFG_TIMER_PARAM(true) /* indicates strobe ON */
MCFG_TIMER_DRIVER_ADD_PERIODIC("strobeoff", mw8080bw_state, spcenctr_strobe_timer_callback, attotime::from_hz(SPCENCTR_STROBE_FREQ))
MCFG_TIMER_START_DELAY(attotime::from_hz(SPCENCTR_STROBE_FREQ) * (100 - SPCENCTR_STROBE_DUTY_CYCLE) / 100)
- MCFG_TIMER_PARAM(FALSE) /* indicates strobe OFF */
+ MCFG_TIMER_PARAM(false) /* indicates strobe OFF */
/* video hardware */
MCFG_SCREEN_MODIFY("screen")
diff --git a/src/mame/drivers/namcos23.cpp b/src/mame/drivers/namcos23.cpp
index cceca9fcbde..826ea006129 100644
--- a/src/mame/drivers/namcos23.cpp
+++ b/src/mame/drivers/namcos23.cpp
@@ -3442,7 +3442,7 @@ void namcos23_state::machine_start()
m_c361.timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(namcos23_state::c361_timer_cb),this));
m_c361.timer->adjust(attotime::never);
- m_maincpu->add_fastram(0, m_mainram.bytes()-1, FALSE, reinterpret_cast<uint32_t *>(memshare("mainram")->ptr()));
+ m_maincpu->add_fastram(0, m_mainram.bytes()-1, false, reinterpret_cast<uint32_t *>(memshare("mainram")->ptr()));
}
diff --git a/src/mame/drivers/neodriv.hxx b/src/mame/drivers/neodriv.hxx
index b543e9c2f36..c63d211207d 100644
--- a/src/mame/drivers/neodriv.hxx
+++ b/src/mame/drivers/neodriv.hxx
@@ -4,7 +4,7 @@
// a single cart in slot 1, with pre-defined cart type
#define NEOGEO_CONFIG_ONE_FIXED_CARTSLOT(_default) \
MCFG_NEOGEO_CARTRIDGE_ADD("cslot1", neogeo_cart, _default) \
- MCFG_SET_IMAGE_LOADABLE(FALSE)
+ MCFG_SET_IMAGE_LOADABLE(false)
// machine configw for one-game fixed config, loaded without using softlists
diff --git a/src/mame/drivers/neogeo.cpp b/src/mame/drivers/neogeo.cpp
index 488c5926942..6be7974edc3 100644
--- a/src/mame/drivers/neogeo.cpp
+++ b/src/mame/drivers/neogeo.cpp
@@ -1729,7 +1729,7 @@ MACHINE_CONFIG_END
// a single cart in slot 1, with pre-defined cart type
#define NEOGEO_CONFIG_ONE_FIXED_CARTSLOT(_default) \
MCFG_NEOGEO_CARTRIDGE_ADD("cslot1", neogeo_cart, _default) \
- MCFG_SET_IMAGE_LOADABLE(FALSE)
+ MCFG_SET_IMAGE_LOADABLE(false)
static MACHINE_CONFIG_DERIVED( mvs, neogeo_arcade )
MCFG_DEVICE_REMOVE("edge")
diff --git a/src/mame/drivers/nes.cpp b/src/mame/drivers/nes.cpp
index 14a7fdcc098..0fd9a519025 100644
--- a/src/mame/drivers/nes.cpp
+++ b/src/mame/drivers/nes.cpp
@@ -169,7 +169,7 @@ void nes_state::setup_disk(nes_disksys_device *slot)
slot->vram_alloc(0x2000);
slot->prgram_alloc(0x8000);
- slot->pcb_start(machine(), m_ciram.get(), FALSE);
+ slot->pcb_start(machine(), m_ciram.get(), false);
m_ppu->space(AS_PROGRAM).install_readwrite_handler(0, 0x1fff, read8_delegate(FUNC(device_nes_cart_interface::chr_r),(device_nes_cart_interface *)slot), write8_delegate(FUNC(device_nes_cart_interface::chr_w),(device_nes_cart_interface *)slot));
m_ppu->space(AS_PROGRAM).install_readwrite_handler(0x2000, 0x3eff, read8_delegate(FUNC(device_nes_cart_interface::nt_r),(device_nes_cart_interface *)slot), write8_delegate(FUNC(device_nes_cart_interface::nt_w),(device_nes_cart_interface *)slot));
m_ppu->set_scanline_callback(ppu2c0x_scanline_delegate(FUNC(device_nes_cart_interface::scanline_irq),(device_nes_cart_interface *)slot));
diff --git a/src/mame/drivers/notetaker.cpp b/src/mame/drivers/notetaker.cpp
index 04c4f01d788..635cffb6481 100644
--- a/src/mame/drivers/notetaker.cpp
+++ b/src/mame/drivers/notetaker.cpp
@@ -209,7 +209,7 @@ void notetaker_state::device_timer(emu_timer &timer, device_timer_id id, int par
timer_fifoclk(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in notetaker_state::device_timer");
+ assert_always(false, "Unknown id in notetaker_state::device_timer");
}
}
diff --git a/src/mame/drivers/nwk-tr.cpp b/src/mame/drivers/nwk-tr.cpp
index d58b4874f42..3df6f9ab198 100644
--- a/src/mame/drivers/nwk-tr.cpp
+++ b/src/mame/drivers/nwk-tr.cpp
@@ -618,7 +618,7 @@ void nwktr_state::machine_start()
m_maincpu->ppcdrc_set_options(PPCDRC_COMPATIBLE_OPTIONS);
/* configure fast RAM regions for DRC */
- m_maincpu->ppcdrc_add_fastram(0x00000000, 0x003fffff, FALSE, m_work_ram);
+ m_maincpu->ppcdrc_add_fastram(0x00000000, 0x003fffff, false, m_work_ram);
m_sound_irq_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(nwktr_state::sound_irq), this));
}
diff --git a/src/mame/drivers/okean240.cpp b/src/mame/drivers/okean240.cpp
index 501bce4769f..5810d6983d2 100644
--- a/src/mame/drivers/okean240.cpp
+++ b/src/mame/drivers/okean240.cpp
@@ -380,7 +380,7 @@ void okean240_state::device_timer(emu_timer &timer, device_timer_id id, int para
membank("boot")->set_entry(0);
break;
default:
- assert_always(FALSE, "Unknown id in okean240_state::device_timer");
+ assert_always(false, "Unknown id in okean240_state::device_timer");
}
}
diff --git a/src/mame/drivers/osi.cpp b/src/mame/drivers/osi.cpp
index cc84900606c..383009f271c 100644
--- a/src/mame/drivers/osi.cpp
+++ b/src/mame/drivers/osi.cpp
@@ -889,7 +889,7 @@ void sb2m600_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_beeper->set_clock(300);
break;
default:
- assert_always(FALSE, "Unknown id in sb2m600_state::device_timer");
+ assert_always(false, "Unknown id in sb2m600_state::device_timer");
}
}
diff --git a/src/mame/drivers/othunder.cpp b/src/mame/drivers/othunder.cpp
index cff8f9ff9a5..dc830b11a3c 100644
--- a/src/mame/drivers/othunder.cpp
+++ b/src/mame/drivers/othunder.cpp
@@ -336,7 +336,7 @@ void othunder_state::device_timer(emu_timer &timer, device_timer_id id, int para
update_irq();
break;
default:
- assert_always(FALSE, "Unknown id in othunder_state::device_timer");
+ assert_always(false, "Unknown id in othunder_state::device_timer");
}
}
diff --git a/src/mame/drivers/parodius.cpp b/src/mame/drivers/parodius.cpp
index 9fbdf1d8eac..d608636c982 100644
--- a/src/mame/drivers/parodius.cpp
+++ b/src/mame/drivers/parodius.cpp
@@ -77,7 +77,7 @@ void parodius_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_audiocpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in parodius_state::device_timer");
+ assert_always(false, "Unknown id in parodius_state::device_timer");
}
}
diff --git a/src/mame/drivers/pasogo.cpp b/src/mame/drivers/pasogo.cpp
index 39568522111..26de7d26cff 100644
--- a/src/mame/drivers/pasogo.cpp
+++ b/src/mame/drivers/pasogo.cpp
@@ -208,7 +208,7 @@ void pasogo_state::machine_start()
system_time systime;
memset(&m_vg230, 0, sizeof(m_vg230));
- m_vg230.pmu.write_protected = TRUE;
+ m_vg230.pmu.write_protected = true;
machine().base_datetime(systime);
m_vg230.rtc.seconds = systime.local_time.second;
@@ -221,7 +221,7 @@ void pasogo_state::machine_start()
READ8_MEMBER( pasogo_state::vg230_io_r )
{
- int log = TRUE;
+ int log = true;
uint8_t data = 0;
m_vg230.bios_timer.data += 0x100; //HACK
@@ -246,22 +246,22 @@ READ8_MEMBER( pasogo_state::vg230_io_r )
case 0x31:
data = m_vg230.bios_timer.data >> 8;
- log = FALSE;
+ log = false;
break;
case 0x70:
data = m_vg230.rtc.seconds;
- log = FALSE;
+ log = false;
break;
case 0x71:
data = m_vg230.rtc.minutes;
- log = FALSE;
+ log = false;
break;
case 0x72:
data = m_vg230.rtc.hours;
- log = FALSE;
+ log = false;
break;
case 0x73:
@@ -274,7 +274,7 @@ READ8_MEMBER( pasogo_state::vg230_io_r )
case 0x79:
/*rtc status*/
- log = FALSE;
+ log = false;
break;
case 0x7a:
@@ -289,8 +289,8 @@ READ8_MEMBER( pasogo_state::vg230_io_r )
data &= ~1;
if (m_vg230.pmu.write_protected)
data |= 1;
- m_vg230.pmu.write_protected = FALSE;
- log = FALSE;
+ m_vg230.pmu.write_protected = false;
+ log = false;
break;
}
@@ -307,7 +307,7 @@ READ8_MEMBER( pasogo_state::vg230_io_r )
WRITE8_MEMBER( pasogo_state::vg230_io_w )
{
- int log = TRUE;
+ int log = true;
if (offset & 1)
{
@@ -357,14 +357,14 @@ WRITE8_MEMBER( pasogo_state::vg230_io_w )
case 0x79:
m_vg230.rtc.onehertz_interrupt_on = data & 1;
m_vg230.rtc.alarm_interrupt_on = data & 2;
- log = FALSE;
+ log = false;
break;
case 0x7a:
if (data & 2)
{
- m_vg230.rtc.alarm_interrupt_request = FALSE;
- m_vg230.rtc.onehertz_interrupt_request = FALSE; /* update interrupt */
+ m_vg230.rtc.alarm_interrupt_request = false;
+ m_vg230.rtc.onehertz_interrupt_request = false; /* update interrupt */
}
break;
}
diff --git a/src/mame/drivers/pc88va.cpp b/src/mame/drivers/pc88va.cpp
index 00a4273e0d1..5f6244f9c7b 100644
--- a/src/mame/drivers/pc88va.cpp
+++ b/src/mame/drivers/pc88va.cpp
@@ -559,7 +559,7 @@ void pc88va_state::device_timer(emu_timer &timer, device_timer_id id, int param,
pc88va_fdc_motor_start_1(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in pc88va_state::device_timer");
+ assert_always(false, "Unknown id in pc88va_state::device_timer");
}
}
diff --git a/src/mame/drivers/pcfx.cpp b/src/mame/drivers/pcfx.cpp
index 692466e72c4..11a5e93e6e6 100644
--- a/src/mame/drivers/pcfx.cpp
+++ b/src/mame/drivers/pcfx.cpp
@@ -135,7 +135,7 @@ void pcfx_state::device_timer(emu_timer &timer, device_timer_id id, int param, v
pad_func(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in pcfx_state::device_timer");
+ assert_always(false, "Unknown id in pcfx_state::device_timer");
}
}
diff --git a/src/mame/drivers/pegasus.cpp b/src/mame/drivers/pegasus.cpp
index 9242aa05ffd..534db540347 100644
--- a/src/mame/drivers/pegasus.cpp
+++ b/src/mame/drivers/pegasus.cpp
@@ -388,17 +388,17 @@ GFXDECODE_END
// so we check the first 4 bytes for a signature, and decrypt if found.
void pegasus_state::pegasus_decrypt_rom(uint8_t *ROM)
{
- bool doit = FALSE;
+ bool doit = false;
uint8_t b;
uint16_t j;
std::vector<uint8_t> temp_copy;
temp_copy.resize(0x1000);
- if (ROM[0] == 0x02) doit = TRUE;
- if (ROM[0] == 0x1e && ROM[1] == 0xfa && ROM[2] == 0x60 && ROM[3] == 0x71) doit = TRUE; // xbasic 2nd rom
- if (ROM[0] == 0x72 && ROM[1] == 0x62 && ROM[2] == 0xc6 && ROM[3] == 0x36) doit = TRUE; // xbasic 3rd rom
- if (ROM[0] == 0xf0 && ROM[1] == 0x40 && ROM[2] == 0xce && ROM[3] == 0x80) doit = TRUE; // forth 2nd rom (both sets)
- if (ROM[0] == 0x80 && ROM[1] == 0x06 && ROM[2] == 0x68 && ROM[3] == 0x14) doit = TRUE; // pascal 2nd rom
+ if (ROM[0] == 0x02) doit = true;
+ if (ROM[0] == 0x1e && ROM[1] == 0xfa && ROM[2] == 0x60 && ROM[3] == 0x71) doit = true; // xbasic 2nd rom
+ if (ROM[0] == 0x72 && ROM[1] == 0x62 && ROM[2] == 0xc6 && ROM[3] == 0x36) doit = true; // xbasic 3rd rom
+ if (ROM[0] == 0xf0 && ROM[1] == 0x40 && ROM[2] == 0xce && ROM[3] == 0x80) doit = true; // forth 2nd rom (both sets)
+ if (ROM[0] == 0x80 && ROM[1] == 0x06 && ROM[2] == 0x68 && ROM[3] == 0x14) doit = true; // pascal 2nd rom
if (doit)
{
diff --git a/src/mame/drivers/pentagon.cpp b/src/mame/drivers/pentagon.cpp
index b19cee86183..9f0bb0697b1 100644
--- a/src/mame/drivers/pentagon.cpp
+++ b/src/mame/drivers/pentagon.cpp
@@ -163,7 +163,7 @@ void pentagon_state::device_timer(emu_timer &timer, device_timer_id id, int para
irq_off(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in pentagon_state::device_timer");
+ assert_always(false, "Unknown id in pentagon_state::device_timer");
}
}
diff --git a/src/mame/drivers/peplus.cpp b/src/mame/drivers/peplus.cpp
index 79893b003f4..212d7aa09fa 100644
--- a/src/mame/drivers/peplus.cpp
+++ b/src/mame/drivers/peplus.cpp
@@ -416,7 +416,7 @@ void peplus_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_crtc->assert_light_pen_input();
break;
default:
- assert_always(FALSE, "Unknown id in peplus_state::device_timer");
+ assert_always(false, "Unknown id in peplus_state::device_timer");
}
}
@@ -1367,27 +1367,27 @@ MACHINE_CONFIG_END
DRIVER_INIT_MEMBER(peplus_state,nonplus)
{
door_wait = 500;
- m_doorcycle = FALSE;
- m_wingboard = FALSE;
- m_jumper_e16_e17 = FALSE;
+ m_doorcycle = false;
+ m_wingboard = false;
+ m_jumper_e16_e17 = false;
}
/* Normal board */
DRIVER_INIT_MEMBER(peplus_state,peplus)
{
door_wait = 500;
- m_doorcycle = TRUE;
- m_wingboard = FALSE;
- m_jumper_e16_e17 = FALSE;
+ m_doorcycle = true;
+ m_wingboard = false;
+ m_jumper_e16_e17 = false;
}
/* Superboard */
DRIVER_INIT_MEMBER(peplus_state,peplussb)
{
door_wait = 500;
- m_doorcycle = TRUE;
- m_wingboard = FALSE;
- m_jumper_e16_e17 = FALSE;
+ m_doorcycle = true;
+ m_wingboard = false;
+ m_jumper_e16_e17 = false;
peplus_load_superdata("user1");
}
@@ -1395,9 +1395,9 @@ DRIVER_INIT_MEMBER(peplus_state,peplussb)
DRIVER_INIT_MEMBER(peplus_state,pepluss64)
{
door_wait = 500;
- m_doorcycle = TRUE;
- m_wingboard = FALSE;
- m_jumper_e16_e17 = TRUE;
+ m_doorcycle = true;
+ m_wingboard = false;
+ m_jumper_e16_e17 = true;
peplus_load_superdata("user1");
}
@@ -1405,9 +1405,9 @@ DRIVER_INIT_MEMBER(peplus_state,pepluss64)
DRIVER_INIT_MEMBER(peplus_state,peplussbw)
{
door_wait = 12345;
- m_doorcycle = TRUE;
- m_wingboard = TRUE;
- m_jumper_e16_e17 = TRUE;
+ m_doorcycle = true;
+ m_wingboard = true;
+ m_jumper_e16_e17 = true;
peplus_load_superdata("user1");
}
diff --git a/src/mame/drivers/plan80.cpp b/src/mame/drivers/plan80.cpp
index c7f48a1e59b..f980912a824 100644
--- a/src/mame/drivers/plan80.cpp
+++ b/src/mame/drivers/plan80.cpp
@@ -158,7 +158,7 @@ void plan80_state::device_timer(emu_timer &timer, device_timer_id id, int param,
membank("boot")->set_entry(0);
break;
default:
- assert_always(FALSE, "Unknown id in plan80_state::device_timer");
+ assert_always(false, "Unknown id in plan80_state::device_timer");
}
}
diff --git a/src/mame/drivers/pmi80.cpp b/src/mame/drivers/pmi80.cpp
index f890ba63aa0..c1a0e82d503 100644
--- a/src/mame/drivers/pmi80.cpp
+++ b/src/mame/drivers/pmi80.cpp
@@ -67,14 +67,14 @@ READ8_MEMBER( pmi80_state::keyboard_r)
WRITE8_MEMBER( pmi80_state::keyboard_w )
{
m_keyrow = data;
- m_ledready = TRUE;
+ m_ledready = true;
}
WRITE8_MEMBER( pmi80_state::leds_w )
{
if (m_ledready)
{
- m_ledready = FALSE;
+ m_ledready = false;
output().set_digit_value(m_keyrow^0xff, data^0xff);
}
}
diff --git a/src/mame/drivers/policetr.cpp b/src/mame/drivers/policetr.cpp
index 49731bd7d4e..bbd958b02df 100644
--- a/src/mame/drivers/policetr.cpp
+++ b/src/mame/drivers/policetr.cpp
@@ -111,7 +111,7 @@ void policetr_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_maincpu->set_input_line(R3000_IRQ5, ASSERT_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in policetr_state::device_timer");
+ assert_always(false, "Unknown id in policetr_state::device_timer");
}
}
diff --git a/src/mame/drivers/potgoldu.cpp b/src/mame/drivers/potgoldu.cpp
index 3e5c5a6613a..a950e50f19c 100644
--- a/src/mame/drivers/potgoldu.cpp
+++ b/src/mame/drivers/potgoldu.cpp
@@ -75,7 +75,7 @@ static MACHINE_CONFIG_START( potgold, potgold_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", TMS34010, XTAL_40MHz)
MCFG_CPU_PROGRAM_MAP(potgold_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(VIDEO_CLOCK/2) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_RGB32_CB(potgold_state, scanline_update) /* scanline callback (rgb32) */
diff --git a/src/mame/drivers/ptcsol.cpp b/src/mame/drivers/ptcsol.cpp
index 48b49da109e..66ce364ca5c 100644
--- a/src/mame/drivers/ptcsol.cpp
+++ b/src/mame/drivers/ptcsol.cpp
@@ -222,7 +222,7 @@ void sol20_state::device_timer(emu_timer &timer, device_timer_id id, int param,
sol20_boot(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in sol20_state::device_timer");
+ assert_always(false, "Unknown id in sol20_state::device_timer");
}
}
diff --git a/src/mame/drivers/rabbit.cpp b/src/mame/drivers/rabbit.cpp
index 2e88263458f..771595bba2d 100644
--- a/src/mame/drivers/rabbit.cpp
+++ b/src/mame/drivers/rabbit.cpp
@@ -581,7 +581,7 @@ void rabbit_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_maincpu->set_input_line(m_bltirqlevel, HOLD_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in rabbit_state::device_timer");
+ assert_always(false, "Unknown id in rabbit_state::device_timer");
}
}
diff --git a/src/mame/drivers/renegade.cpp b/src/mame/drivers/renegade.cpp
index 42af90ff0c8..4063c1f23ce 100644
--- a/src/mame/drivers/renegade.cpp
+++ b/src/mame/drivers/renegade.cpp
@@ -204,7 +204,7 @@ void renegade_state::machine_start()
DRIVER_INIT_MEMBER(renegade_state,renegade)
{
- m_mcu_sim = FALSE;
+ m_mcu_sim = false;
save_item(NAME(m_from_main));
save_item(NAME(m_from_mcu));
@@ -223,7 +223,7 @@ DRIVER_INIT_MEMBER(renegade_state,renegade)
DRIVER_INIT_MEMBER(renegade_state,kuniokun)
{
- m_mcu_sim = TRUE;
+ m_mcu_sim = true;
m_mcu_checksum = 0x85;
m_mcu_encrypt_table = kuniokun_xor_table;
m_mcu_encrypt_table_len = 0x2a;
@@ -328,7 +328,7 @@ WRITE8_MEMBER(renegade_state::_68705_ddr_c_w)
READ8_MEMBER(renegade_state::mcu_reset_r)
{
- if (m_mcu_sim == TRUE)
+ if (m_mcu_sim == true)
{
m_mcu_key = -1;
m_mcu_input_size = 0;
@@ -343,7 +343,7 @@ READ8_MEMBER(renegade_state::mcu_reset_r)
WRITE8_MEMBER(renegade_state::mcu_w)
{
- if (m_mcu_sim == TRUE)
+ if (m_mcu_sim == true)
{
m_mcu_output_byte = 0;
@@ -537,7 +537,7 @@ void renegade_state::mcu_process_command()
READ8_MEMBER(renegade_state::mcu_r)
{
- if (m_mcu_sim == TRUE)
+ if (m_mcu_sim == true)
{
int result = 1;
@@ -560,7 +560,7 @@ CUSTOM_INPUT_MEMBER(renegade_state::mcu_status_r)
{
uint8_t res = 0;
- if (m_mcu_sim == TRUE)
+ if (m_mcu_sim == true)
{
res = 1;
}
diff --git a/src/mame/drivers/rollerg.cpp b/src/mame/drivers/rollerg.cpp
index d146257fd32..b795c02089c 100644
--- a/src/mame/drivers/rollerg.cpp
+++ b/src/mame/drivers/rollerg.cpp
@@ -58,7 +58,7 @@ void rollerg_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_audiocpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in rollerg_state::device_timer");
+ assert_always(false, "Unknown id in rollerg_state::device_timer");
}
}
diff --git a/src/mame/drivers/samcoupe.cpp b/src/mame/drivers/samcoupe.cpp
index 8ade082cadb..d99fd035066 100644
--- a/src/mame/drivers/samcoupe.cpp
+++ b/src/mame/drivers/samcoupe.cpp
@@ -64,7 +64,7 @@ void samcoupe_state::device_timer(emu_timer &timer, device_timer_id id, int para
sam_video_update_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in samcoupe_state::device_timer");
+ assert_always(false, "Unknown id in samcoupe_state::device_timer");
}
}
diff --git a/src/mame/drivers/scv.cpp b/src/mame/drivers/scv.cpp
index feefce2ea4b..76347b0362f 100644
--- a/src/mame/drivers/scv.cpp
+++ b/src/mame/drivers/scv.cpp
@@ -283,7 +283,7 @@ void scv_state::device_timer(emu_timer &timer, device_timer_id id, int param, vo
break;
default:
- assert_always(FALSE, "Unknown id in scv_state::device_timer");
+ assert_always(false, "Unknown id in scv_state::device_timer");
}
}
diff --git a/src/mame/drivers/seattle.cpp b/src/mame/drivers/seattle.cpp
index 52f021f6728..8fb43455617 100644
--- a/src/mame/drivers/seattle.cpp
+++ b/src/mame/drivers/seattle.cpp
@@ -576,8 +576,8 @@ void seattle_state::machine_start()
m_maincpu->mips3drc_set_options(MIPS3DRC_FASTEST_OPTIONS + MIPS3DRC_STRICT_VERIFY);
/* configure fast RAM regions */
- m_maincpu->add_fastram(0x00000000, 0x007fffff, FALSE, m_rambase);
- m_maincpu->add_fastram(0x1fc00000, 0x1fc7ffff, TRUE, m_rombase);
+ m_maincpu->add_fastram(0x00000000, 0x007fffff, false, m_rambase);
+ m_maincpu->add_fastram(0x1fc00000, 0x1fc7ffff, true, m_rombase);
/* register for save states */
save_item(NAME(m_galileo.reg));
@@ -618,8 +618,8 @@ void seattle_state::machine_reset()
m_galileo.dma_active = -1;
m_vblank_irq_num = 0;
- m_voodoo_stalled = FALSE;
- m_cpu_stalled_on_voodoo = FALSE;
+ m_voodoo_stalled = false;
+ m_cpu_stalled_on_voodoo = false;
/* reset either the DCS2 board or the CAGE board */
if (machine().device("dcs") != nullptr)
@@ -1370,7 +1370,7 @@ WRITE32_MEMBER(seattle_state::seattle_voodoo_w)
fatalerror("seattle_voodoo_w while CPU is stalled\n");
/* remember all the info about this access for later */
- m_cpu_stalled_on_voodoo = TRUE;
+ m_cpu_stalled_on_voodoo = true;
m_cpu_stalled_offset = offset;
m_cpu_stalled_data = data;
m_cpu_stalled_mem_mask = mem_mask;
@@ -1392,7 +1392,7 @@ WRITE_LINE_MEMBER(seattle_state::voodoo_stall)
if (m_galileo.dma_active != -1)
{
if (LOG_DMA) logerror("Stalling DMA%d on voodoo\n", m_galileo.dma_active);
- m_galileo.dma_stalled_on_voodoo[m_galileo.dma_active] = TRUE;
+ m_galileo.dma_stalled_on_voodoo[m_galileo.dma_active] = true;
}
else
{
@@ -1414,7 +1414,7 @@ WRITE_LINE_MEMBER(seattle_state::voodoo_stall)
if (LOG_DMA) logerror("Resuming DMA%d on voodoo\n", which);
/* mark this DMA as no longer stalled */
- m_galileo.dma_stalled_on_voodoo[which] = FALSE;
+ m_galileo.dma_stalled_on_voodoo[which] = false;
/* resume execution */
galileo_perform_dma(space, which);
@@ -1430,7 +1430,7 @@ WRITE_LINE_MEMBER(seattle_state::voodoo_stall)
address_space &space = m_maincpu->space(AS_PROGRAM);
m_voodoo->voodoo_w(space, m_cpu_stalled_offset, m_cpu_stalled_data, m_cpu_stalled_mem_mask);
}
- m_cpu_stalled_on_voodoo = FALSE;
+ m_cpu_stalled_on_voodoo = false;
/* resume CPU execution */
if (LOG_DMA) logerror("Resuming CPU on voodoo\n");
@@ -1709,7 +1709,7 @@ WRITE32_MEMBER(seattle_state::cmos_w)
{
if (m_cmos_write_enabled)
COMBINE_DATA(m_nvram + offset);
- m_cmos_write_enabled = FALSE;
+ m_cmos_write_enabled = false;
}
@@ -1721,7 +1721,7 @@ READ32_MEMBER(seattle_state::cmos_r)
WRITE32_MEMBER(seattle_state::cmos_protect_w)
{
- m_cmos_write_enabled = TRUE;
+ m_cmos_write_enabled = true;
}
diff --git a/src/mame/drivers/segaorun.cpp b/src/mame/drivers/segaorun.cpp
index b83934e5e39..d54eaf90868 100644
--- a/src/mame/drivers/segaorun.cpp
+++ b/src/mame/drivers/segaorun.cpp
@@ -647,7 +647,7 @@ void segaorun_state::device_timer(emu_timer &timer, device_timer_id id, int para
}
default:
- assert_always(FALSE, "Unknown id in segaorun_state::device_timer");
+ assert_always(false, "Unknown id in segaorun_state::device_timer");
}
}
diff --git a/src/mame/drivers/segas18.cpp b/src/mame/drivers/segas18.cpp
index b9a012bc170..067311bd557 100644
--- a/src/mame/drivers/segas18.cpp
+++ b/src/mame/drivers/segas18.cpp
@@ -144,7 +144,7 @@ void segas18_state::init_generic(segas18_rom_board rom_board)
// configure VDP
m_vdp->set_use_cram(1);
- m_vdp->set_vdp_pal(FALSE);
+ m_vdp->set_vdp_pal(false);
m_vdp->set_framerate(60);
m_vdp->set_total_scanlines(262);
m_vdp->stop_timers(); // 315-5124 timers
diff --git a/src/mame/drivers/simpsons.cpp b/src/mame/drivers/simpsons.cpp
index ebeee4e30e2..117110d950f 100644
--- a/src/mame/drivers/simpsons.cpp
+++ b/src/mame/drivers/simpsons.cpp
@@ -174,7 +174,7 @@ void simpsons_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_maincpu->set_input_line(KONAMI_FIRQ_LINE, HOLD_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in simpsons_state::device_timer");
+ assert_always(false, "Unknown id in simpsons_state::device_timer");
}
}
diff --git a/src/mame/drivers/skeetsht.cpp b/src/mame/drivers/skeetsht.cpp
index b08b1738b4c..2842d1ba1f9 100644
--- a/src/mame/drivers/skeetsht.cpp
+++ b/src/mame/drivers/skeetsht.cpp
@@ -234,7 +234,7 @@ static MACHINE_CONFIG_START( skeetsht, skeetsht_state )
MCFG_CPU_ADD("tms", TMS34010, 48000000)
MCFG_CPU_PROGRAM_MAP(tms_program_map)
- MCFG_TMS340X0_HALT_ON_RESET(TRUE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(true) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(48000000 / 8) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_RGB32_CB(skeetsht_state, scanline_update) /* scanline updater (rgb32) */
diff --git a/src/mame/drivers/skimaxx.cpp b/src/mame/drivers/skimaxx.cpp
index 02998de3ad2..de0a8fc86b4 100644
--- a/src/mame/drivers/skimaxx.cpp
+++ b/src/mame/drivers/skimaxx.cpp
@@ -503,7 +503,7 @@ static MACHINE_CONFIG_START( skimaxx, skimaxx_state )
/* video hardware */
MCFG_CPU_ADD("tms", TMS34010, XTAL_50MHz)
MCFG_CPU_PROGRAM_MAP(tms_program_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(50000000/8) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(2) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_IND16_CB(skimaxx_state, scanline_update) /* scanline updater (indexed16) */
diff --git a/src/mame/drivers/slapshot.cpp b/src/mame/drivers/slapshot.cpp
index 51c15d8c17d..1c754a78cc1 100644
--- a/src/mame/drivers/slapshot.cpp
+++ b/src/mame/drivers/slapshot.cpp
@@ -154,7 +154,7 @@ void slapshot_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_maincpu->set_input_line(6, HOLD_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in slapshot_state::device_timer");
+ assert_always(false, "Unknown id in slapshot_state::device_timer");
}
}
diff --git a/src/mame/drivers/sliver.cpp b/src/mame/drivers/sliver.cpp
index 981a388e991..4a32ce3c7ce 100644
--- a/src/mame/drivers/sliver.cpp
+++ b/src/mame/drivers/sliver.cpp
@@ -267,7 +267,7 @@ void sliver_state::render_jpeg()
jpeg_mem_src(&cinfo, memregion("user2")->base()+addr, memregion("user2")->bytes()-addr);
- jpeg_read_header(&cinfo, TRUE);
+ jpeg_read_header(&cinfo, true);
jpeg_start_decompress(&cinfo);
int row_stride = cinfo.output_width * cinfo.output_components;
diff --git a/src/mame/drivers/socrates.cpp b/src/mame/drivers/socrates.cpp
index 01a59389811..10f9c3a3045 100644
--- a/src/mame/drivers/socrates.cpp
+++ b/src/mame/drivers/socrates.cpp
@@ -332,7 +332,7 @@ void socrates_state::device_timer(emu_timer &timer, device_timer_id id, int para
clear_irq_cb(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in socrates_state::device_timer");
+ assert_always(false, "Unknown id in socrates_state::device_timer");
}
}
diff --git a/src/mame/drivers/spacefb.cpp b/src/mame/drivers/spacefb.cpp
index 6ac2bbcbf81..f471f1b307e 100644
--- a/src/mame/drivers/spacefb.cpp
+++ b/src/mame/drivers/spacefb.cpp
@@ -137,7 +137,7 @@ void spacefb_state::device_timer(emu_timer &timer, device_timer_id id, int param
interrupt_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in spacefb_state::device_timer");
+ assert_always(false, "Unknown id in spacefb_state::device_timer");
}
}
diff --git a/src/mame/drivers/sprint4.cpp b/src/mame/drivers/sprint4.cpp
index 2000e13a6b4..28267e732ba 100644
--- a/src/mame/drivers/sprint4.cpp
+++ b/src/mame/drivers/sprint4.cpp
@@ -51,7 +51,7 @@ void sprint4_state::device_timer(emu_timer &timer, device_timer_id id, int param
nmi_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in sprint4_state::device_timer");
+ assert_always(false, "Unknown id in sprint4_state::device_timer");
}
}
diff --git a/src/mame/drivers/ssystem3.cpp b/src/mame/drivers/ssystem3.cpp
index 9779cfb1fce..cad16d1c612 100644
--- a/src/mame/drivers/ssystem3.cpp
+++ b/src/mame/drivers/ssystem3.cpp
@@ -57,18 +57,18 @@ void ssystem3_state::ssystem3_playfield_getfigure(int x, int y, int *figure, int
void ssystem3_state::ssystem3_playfield_reset()
{
memset(&m_playfield, 0, sizeof(m_playfield));
- m_playfield.signal=FALSE;
- // m_playfield.on=TRUE; //m_configuration->read()&1;
+ m_playfield.signal=false;
+ // m_playfield.on=true; //m_configuration->read()&1;
}
void ssystem3_state::ssystem3_playfield_write(int reset, int signal)
{
- int d=FALSE;
+ int d=false;
if (!reset) {
m_playfield.count=0;
m_playfield.bit=0;
- m_playfield.started=FALSE;
+ m_playfield.started=false;
m_playfield.signal=signal;
m_playfield.time=machine().time();
}
@@ -83,7 +83,7 @@ void ssystem3_state::ssystem3_playfield_write(int reset, int signal)
if (m_playfield.started) {
// 0 twice as long low
// 1 twice as long high
- if (m_playfield.low_time > m_playfield.high_time) d=TRUE;
+ if (m_playfield.low_time > m_playfield.high_time) d=true;
m_playfield.data&=~(1<<(m_playfield.bit^7));
if (d) m_playfield.data|=1<<(m_playfield.bit^7);
@@ -93,7 +93,7 @@ void ssystem3_state::ssystem3_playfield_write(int reset, int signal)
m_playfield.u.data[m_playfield.count]=m_playfield.data;
m_playfield.bit=0;
m_playfield.count=(m_playfield.count+1)%ARRAY_LENGTH(m_playfield.u.data);
- if (m_playfield.count==0) m_playfield.started=FALSE;
+ if (m_playfield.count==0) m_playfield.started=false;
}
}
@@ -101,7 +101,7 @@ void ssystem3_state::ssystem3_playfield_write(int reset, int signal)
attotime t=machine().time();
m_playfield.low_time= t - m_playfield.time;
m_playfield.time=t;
- m_playfield.started=TRUE;
+ m_playfield.started=true;
}
m_playfield.signal=signal;
}
@@ -110,7 +110,7 @@ void ssystem3_state::ssystem3_playfield_read(int *on, int *ready)
{
*on = !(m_configuration->read() & 1);
// *on=!m_playfield.on;
- *ready=FALSE;
+ *ready=false;
}
WRITE8_MEMBER(ssystem3_state::ssystem3_via_write_a)
diff --git a/src/mame/drivers/superqix.cpp b/src/mame/drivers/superqix.cpp
index 8c0092da733..736b5b64da1 100644
--- a/src/mame/drivers/superqix.cpp
+++ b/src/mame/drivers/superqix.cpp
@@ -217,7 +217,7 @@ void superqix_state::device_timer(emu_timer &timer, device_timer_id id, int para
hle_68705_w_cb(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in superqix_state::device_timer");
+ assert_always(false, "Unknown id in superqix_state::device_timer");
}
}
diff --git a/src/mame/drivers/svision.cpp b/src/mame/drivers/svision.cpp
index 422b620c286..1ac8bbe699c 100644
--- a/src/mame/drivers/svision.cpp
+++ b/src/mame/drivers/svision.cpp
@@ -68,8 +68,8 @@ void svision_state::svision_irq()
TIMER_CALLBACK_MEMBER(svision_state::svision_timer)
{
- m_svision.timer_shot = TRUE;
- m_svision.timer1->enable(FALSE);
+ m_svision.timer_shot = true;
+ m_svision.timer1->enable(false);
svision_irq();
}
@@ -111,12 +111,12 @@ READ8_MEMBER(svision_state::svision_r)
break;
case 0x24:
- m_svision.timer_shot = FALSE;
+ m_svision.timer_shot = false;
svision_irq();
break;
case 0x25:
- *m_dma_finished = FALSE;
+ *m_dma_finished = false;
svision_irq();
break;
@@ -161,7 +161,7 @@ WRITE8_MEMBER(svision_state::svision_w)
{
delay = 256;
}
- m_svision.timer1->enable(TRUE);
+ m_svision.timer1->enable(true);
m_svision.timer1->reset(m_maincpu->cycles_to_attotime(value * delay));
break;
@@ -441,14 +441,14 @@ DRIVER_INIT_MEMBER(svision_state, svision)
{
m_svision.timer1 = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(svision_state::svision_timer),this));
m_dma_finished = m_sound->dma_finished();
- m_pet.on = FALSE;
+ m_pet.on = false;
}
DRIVER_INIT_MEMBER(svision_state, svisions)
{
m_svision.timer1 = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(svision_state::svision_timer),this));
m_dma_finished = m_sound->dma_finished();
- m_pet.on = TRUE;
+ m_pet.on = true;
m_pet.timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(svision_state::svision_pet_timer),this));
}
@@ -490,15 +490,15 @@ void svision_state::machine_start()
void svision_state::machine_reset()
{
- m_svision.timer_shot = FALSE;
- *m_dma_finished = FALSE;
+ m_svision.timer_shot = false;
+ *m_dma_finished = false;
}
MACHINE_RESET_MEMBER(svision_state,tvlink)
{
svision_state::machine_reset();
- m_tvlink.palette_on = FALSE;
+ m_tvlink.palette_on = false;
memset(m_reg + 0x800, 0xff, 0x40); // normally done from m_tvlink microcontroller
m_reg[0x82a] = 0xdf;
diff --git a/src/mame/drivers/symbolics.cpp b/src/mame/drivers/symbolics.cpp
index 717969f81f9..99050a1597a 100644
--- a/src/mame/drivers/symbolics.cpp
+++ b/src/mame/drivers/symbolics.cpp
@@ -264,7 +264,7 @@ INPUT_PORTS_END
outfifo_read_cb(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in symbolics_state::device_timer");
+ assert_always(false, "Unknown id in symbolics_state::device_timer");
}
}
diff --git a/src/mame/drivers/sys2900.cpp b/src/mame/drivers/sys2900.cpp
index c5a5c8ec001..3e263d74931 100644
--- a/src/mame/drivers/sys2900.cpp
+++ b/src/mame/drivers/sys2900.cpp
@@ -89,7 +89,7 @@ void sys2900_state::device_timer(emu_timer &timer, device_timer_id id, int param
membank("boot")->set_entry(0);
break;
default:
- assert_always(FALSE, "Unknown id in sys2900_state::device_timer");
+ assert_always(false, "Unknown id in sys2900_state::device_timer");
}
}
diff --git a/src/mame/drivers/taito_b.cpp b/src/mame/drivers/taito_b.cpp
index af00f46deea..9ce94e177cb 100644
--- a/src/mame/drivers/taito_b.cpp
+++ b/src/mame/drivers/taito_b.cpp
@@ -232,7 +232,7 @@ void taitob_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_maincpu->set_input_line(3, HOLD_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in taitob_state::device_timer");
+ assert_always(false, "Unknown id in taitob_state::device_timer");
}
}
diff --git a/src/mame/drivers/taito_f2.cpp b/src/mame/drivers/taito_f2.cpp
index aabd6d7326a..fdcbb3e53d9 100644
--- a/src/mame/drivers/taito_f2.cpp
+++ b/src/mame/drivers/taito_f2.cpp
@@ -582,7 +582,7 @@ void taitof2_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_maincpu->set_input_line(6, HOLD_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in taitof2_state::device_timer");
+ assert_always(false, "Unknown id in taitof2_state::device_timer");
}
}
diff --git a/src/mame/drivers/taito_f3.cpp b/src/mame/drivers/taito_f3.cpp
index b4f572f28df..e3cecd934c1 100644
--- a/src/mame/drivers/taito_f3.cpp
+++ b/src/mame/drivers/taito_f3.cpp
@@ -402,7 +402,7 @@ void taito_f3_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_maincpu->set_input_line(3, HOLD_LINE); // some signal from video hardware?
break;
default:
- assert_always(FALSE, "Unknown id in taito_f3_state::device_timer");
+ assert_always(false, "Unknown id in taito_f3_state::device_timer");
}
}
diff --git a/src/mame/drivers/taito_z.cpp b/src/mame/drivers/taito_z.cpp
index 85ac739a5a0..fa5da0a08a9 100644
--- a/src/mame/drivers/taito_z.cpp
+++ b/src/mame/drivers/taito_z.cpp
@@ -1029,7 +1029,7 @@ void taitoz_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_subcpu->set_input_line(5, HOLD_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in taitoz_state::device_timer");
+ assert_always(false, "Unknown id in taitoz_state::device_timer");
}
}
diff --git a/src/mame/drivers/taitotz.cpp b/src/mame/drivers/taitotz.cpp
index 4b39476a343..61053858ade 100644
--- a/src/mame/drivers/taitotz.cpp
+++ b/src/mame/drivers/taitotz.cpp
@@ -2542,7 +2542,7 @@ void taitotz_state::machine_start()
m_maincpu->ppcdrc_set_options(PPCDRC_COMPATIBLE_OPTIONS);
/* configure fast RAM regions for DRC */
- m_maincpu->ppcdrc_add_fastram(0x40000000, 0x40ffffff, FALSE, m_work_ram);
+ m_maincpu->ppcdrc_add_fastram(0x40000000, 0x40ffffff, false, m_work_ram);
}
diff --git a/src/mame/drivers/tec1.cpp b/src/mame/drivers/tec1.cpp
index 7172185f140..a45c5022e99 100644
--- a/src/mame/drivers/tec1.cpp
+++ b/src/mame/drivers/tec1.cpp
@@ -287,10 +287,10 @@ TIMER_CALLBACK_MEMBER(tec1_state::tec1_kbd_callback)
{
m_kbd = tec1_convert_col_to_bin(i, m_kbd_row);
m_maincpu->set_input_line(INPUT_LINE_NMI, HOLD_LINE);
- m_key_pressed = TRUE;
+ m_key_pressed = true;
}
else
- m_key_pressed = FALSE;
+ m_key_pressed = false;
}
diff --git a/src/mame/drivers/tehkanwc.cpp b/src/mame/drivers/tehkanwc.cpp
index e765e81c02f..c97671a8230 100644
--- a/src/mame/drivers/tehkanwc.cpp
+++ b/src/mame/drivers/tehkanwc.cpp
@@ -161,7 +161,7 @@ void tehkanwc_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_audiocpu->set_input_line(INPUT_LINE_RESET, PULSE_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in tehkanwc_state::device_timer");
+ assert_always(false, "Unknown id in tehkanwc_state::device_timer");
}
}
diff --git a/src/mame/drivers/thayers.cpp b/src/mame/drivers/thayers.cpp
index 69bb19a5f44..9df9043f85e 100644
--- a/src/mame/drivers/thayers.cpp
+++ b/src/mame/drivers/thayers.cpp
@@ -117,7 +117,7 @@ void thayers_state::device_timer(emu_timer &timer, device_timer_id id, int param
check_interrupt();
break;
default:
- assert_always(FALSE, "Unknown id in thayers_state::device_timer");
+ assert_always(false, "Unknown id in thayers_state::device_timer");
}
}
diff --git a/src/mame/drivers/thunderx.cpp b/src/mame/drivers/thunderx.cpp
index cb9802ea382..eb6557969fa 100644
--- a/src/mame/drivers/thunderx.cpp
+++ b/src/mame/drivers/thunderx.cpp
@@ -56,7 +56,7 @@ void thunderx_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_maincpu->set_input_line(KONAMI_FIRQ_LINE, HOLD_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in thunderx_state::device_timer");
+ assert_always(false, "Unknown id in thunderx_state::device_timer");
}
}
diff --git a/src/mame/drivers/ti99_4p.cpp b/src/mame/drivers/ti99_4p.cpp
index 5a3ff0cf9b1..2c949331c8f 100644
--- a/src/mame/drivers/ti99_4p.cpp
+++ b/src/mame/drivers/ti99_4p.cpp
@@ -211,10 +211,10 @@ private:
int m_keyboard_column;
int m_check_alphalock;
- // True if SGCPU DSR is enabled
+ // true if SGCPU DSR is enabled
bool m_internal_dsr;
- // True if SGCPU rom6 is enabled
+ // true if SGCPU rom6 is enabled
bool m_internal_rom6;
// Offset to the ROM6 bank.
@@ -223,10 +223,10 @@ private:
// Wait states
int m_waitcount;
- // TRUE when mapper is active
+ // true when mapper is active
bool m_map_mode;
- // TRUE when mapper registers are accessible
+ // true when mapper registers are accessible
bool m_access_mapper;
// Value on address bus (after being set by setaddress)
diff --git a/src/mame/drivers/ti99_8.cpp b/src/mame/drivers/ti99_8.cpp
index 0c9f9d7a646..578451594ae 100644
--- a/src/mame/drivers/ti99_8.cpp
+++ b/src/mame/drivers/ti99_8.cpp
@@ -624,8 +624,8 @@ WRITE_LINE_MEMBER( ti99_8_state::console_reset )
m_tms9901->rst1_line(state);
// Pull up the CRUS and PTGEN lines (9901 outputs have been deactivated, pull-up resistors on the board show effect)
- m_mainboard->crus_in(TRUE); // assert
- m_mainboard->ptgen_in(TRUE); // clear
+ m_mainboard->crus_in(true); // assert
+ m_mainboard->ptgen_in(true); // clear
// Setting ready to false so that automatic wait states are enabled
m_cpu->ready_line(CLEAR_LINE);
diff --git a/src/mame/drivers/tickee.cpp b/src/mame/drivers/tickee.cpp
index ef49cfa2965..e4305c097da 100644
--- a/src/mame/drivers/tickee.cpp
+++ b/src/mame/drivers/tickee.cpp
@@ -133,7 +133,7 @@ void tickee_state::device_timer(emu_timer &timer, device_timer_id id, int param,
setup_gun_interrupts(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in tickee_state::device_timer");
+ assert_always(false, "Unknown id in tickee_state::device_timer");
}
}
@@ -745,7 +745,7 @@ static MACHINE_CONFIG_START( tickee, tickee_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", TMS34010, XTAL_40MHz)
MCFG_CPU_PROGRAM_MAP(tickee_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(VIDEO_CLOCK/2) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_RGB32_CB(tickee_state, scanline_update) /* scanline callback (rgb32) */
@@ -793,7 +793,7 @@ static MACHINE_CONFIG_START( rapidfir, tickee_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", TMS34010, XTAL_50MHz)
MCFG_CPU_PROGRAM_MAP(rapidfir_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(VIDEO_CLOCK/2) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_RGB32_CB(tickee_state, rapidfir_scanline_update) /* scanline callback (rgb32) */
@@ -827,7 +827,7 @@ static MACHINE_CONFIG_START( mouseatk, tickee_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", TMS34010, XTAL_40MHz)
MCFG_CPU_PROGRAM_MAP(mouseatk_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(VIDEO_CLOCK/2) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_RGB32_CB(tickee_state, scanline_update) /* scanline callback (rgb32) */
diff --git a/src/mame/drivers/tm990189.cpp b/src/mame/drivers/tm990189.cpp
index 47de4b0de97..d02335f9d2f 100644
--- a/src/mame/drivers/tm990189.cpp
+++ b/src/mame/drivers/tm990189.cpp
@@ -202,13 +202,13 @@ MACHINE_RESET_MEMBER(tm990189_state,tm990_189_v)
TIMER_CALLBACK_MEMBER(tm990189_state::clear_load)
{
- m_load_state = FALSE;
+ m_load_state = false;
m_tms9980a->set_input_line(INT_9980A_LOAD, CLEAR_LINE);
}
void tm990189_state::hold_load()
{
- m_load_state = TRUE;
+ m_load_state = true;
m_tms9980a->set_input_line(INT_9980A_LOAD, ASSERT_LINE);
machine().scheduler().timer_set(attotime::from_msec(100), timer_expired_delegate(FUNC(tm990189_state::clear_load),this));
}
diff --git a/src/mame/drivers/tmc1800.cpp b/src/mame/drivers/tmc1800.cpp
index 8f29c7c8375..e14ef133b13 100644
--- a/src/mame/drivers/tmc1800.cpp
+++ b/src/mame/drivers/tmc1800.cpp
@@ -856,7 +856,7 @@ void tmc1800_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_beeper->set_clock(0);
break;
default:
- assert_always(FALSE, "Unknown id in tmc1800_state::device_timer");
+ assert_always(false, "Unknown id in tmc1800_state::device_timer");
}
}
diff --git a/src/mame/drivers/tmnt.cpp b/src/mame/drivers/tmnt.cpp
index 9be3468f7b0..c1895ba01c0 100644
--- a/src/mame/drivers/tmnt.cpp
+++ b/src/mame/drivers/tmnt.cpp
@@ -264,7 +264,7 @@ void tmnt_state::device_timer(emu_timer &timer, device_timer_id id, int param, v
m_audiocpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in tmnt_state::device_timer");
+ assert_always(false, "Unknown id in tmnt_state::device_timer");
}
}
diff --git a/src/mame/drivers/toaplan2.cpp b/src/mame/drivers/toaplan2.cpp
index f72d12138c1..8ef996f6445 100644
--- a/src/mame/drivers/toaplan2.cpp
+++ b/src/mame/drivers/toaplan2.cpp
@@ -491,7 +491,7 @@ void toaplan2_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_maincpu->set_input_line(param, HOLD_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in toaplan2_state::device_timer");
+ assert_always(false, "Unknown id in toaplan2_state::device_timer");
}
}
diff --git a/src/mame/drivers/trucocl.cpp b/src/mame/drivers/trucocl.cpp
index 0442654d422..5eb979039b8 100644
--- a/src/mame/drivers/trucocl.cpp
+++ b/src/mame/drivers/trucocl.cpp
@@ -54,7 +54,7 @@ void trucocl_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_maincpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in trucocl_state::device_timer");
+ assert_always(false, "Unknown id in trucocl_state::device_timer");
}
}
diff --git a/src/mame/drivers/tubep.cpp b/src/mame/drivers/tubep.cpp
index 55e55cc5721..bedbfe33415 100644
--- a/src/mame/drivers/tubep.cpp
+++ b/src/mame/drivers/tubep.cpp
@@ -270,7 +270,7 @@ void tubep_state::device_timer(emu_timer &timer, device_timer_id id, int param,
rjammer_scanline_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in tubep_state::device_timer");
+ assert_always(false, "Unknown id in tubep_state::device_timer");
}
}
diff --git a/src/mame/drivers/tugboat.cpp b/src/mame/drivers/tugboat.cpp
index f966679576a..201dbce16ae 100644
--- a/src/mame/drivers/tugboat.cpp
+++ b/src/mame/drivers/tugboat.cpp
@@ -184,8 +184,8 @@ uint32_t tugboat_state::screen_update(screen_device &screen, bitmap_ind16 &bitma
int startaddr1 = m_hd46505_1_reg[0x0c]*256 + m_hd46505_1_reg[0x0d];
- draw_tilemap(bitmap,cliprect,startaddr0,0,1,FALSE);
- draw_tilemap(bitmap,cliprect,startaddr1,2,3,TRUE);
+ draw_tilemap(bitmap,cliprect,startaddr0,0,1,false);
+ draw_tilemap(bitmap,cliprect,startaddr1,2,3,true);
return 0;
}
@@ -219,7 +219,7 @@ void tugboat_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_interrupt_timer->adjust(m_screen->frame_period());
break;
default:
- assert_always(FALSE, "Unknown id in tugboat_state::device_timer");
+ assert_always(false, "Unknown id in tugboat_state::device_timer");
}
}
diff --git a/src/mame/drivers/tx0.cpp b/src/mame/drivers/tx0.cpp
index 551085c58e7..c1e075a7623 100644
--- a/src/mame/drivers/tx0.cpp
+++ b/src/mame/drivers/tx0.cpp
@@ -919,7 +919,7 @@ void tx0_state::magtape_callback()
schedule_select();
}
- m_magtape.sel_pending = FALSE;
+ m_magtape.sel_pending = false;
m_maincpu->io_complete();
}
break;
@@ -1104,7 +1104,7 @@ void tx0_state::magtape_callback()
{
if (m_magtape.cpy_pending)
{ /* read command */
- m_magtape.u.read.space_flag = FALSE;
+ m_magtape.u.read.space_flag = false;
m_maincpu->set_state_int(TX0_IOS,1);
m_maincpu->set_state_int(TX0_LR, ((m_maincpu->state_int(TX0_LR) >> 1) & 0333333)
| ((buf & 040) << 12) | ((buf & 020) << 10) | ((buf & 010) << 8) | ((buf & 004) << 6) | ((buf & 002) << 4) | ((buf & 001) << 2));
@@ -1114,7 +1114,7 @@ void tx0_state::magtape_callback()
}
else
{ /* space command */
- m_magtape.u.read.space_flag = TRUE;
+ m_magtape.u.read.space_flag = true;
}
m_magtape.u.read.state = MTRDS_STATE1;
}
@@ -1327,7 +1327,7 @@ void tx0_state::magtape_callback()
WRITE_LINE_MEMBER( tx0_state::tx0_sel )
{
- m_magtape.sel_pending = TRUE;
+ m_magtape.sel_pending = true;
if (m_magtape.state == MTS_UNSELECTED)
{
@@ -1358,7 +1358,7 @@ WRITE_LINE_MEMBER( tx0_state::tx0_io_cpy )
break;
case 1: /* read */
case 3: /* write */
- m_magtape.cpy_pending = TRUE;
+ m_magtape.cpy_pending = true;
break;
}
break;
diff --git a/src/mame/drivers/ultratnk.cpp b/src/mame/drivers/ultratnk.cpp
index 75ffd7ecca3..b4ee892ce4c 100644
--- a/src/mame/drivers/ultratnk.cpp
+++ b/src/mame/drivers/ultratnk.cpp
@@ -51,7 +51,7 @@ void ultratnk_state::device_timer(emu_timer &timer, device_timer_id id, int para
nmi_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in ultratnk_state::device_timer");
+ assert_always(false, "Unknown id in ultratnk_state::device_timer");
}
}
diff --git a/src/mame/drivers/ultrsprt.cpp b/src/mame/drivers/ultrsprt.cpp
index 72a6f532dcb..f7489774d36 100644
--- a/src/mame/drivers/ultrsprt.cpp
+++ b/src/mame/drivers/ultrsprt.cpp
@@ -186,7 +186,7 @@ void ultrsprt_state::machine_start()
m_maincpu->ppcdrc_set_options(PPCDRC_COMPATIBLE_OPTIONS);
/* configure fast RAM regions for DRC */
- m_maincpu->ppcdrc_add_fastram(0xff000000, 0xff01ffff, FALSE, m_workram);
+ m_maincpu->ppcdrc_add_fastram(0xff000000, 0xff01ffff, false, m_workram);
m_vram = std::make_unique<uint8_t[]>(VRAM_PAGE_BYTES * VRAM_PAGES);
diff --git a/src/mame/drivers/undrfire.cpp b/src/mame/drivers/undrfire.cpp
index f0e86fe6f65..2a32dd649ea 100644
--- a/src/mame/drivers/undrfire.cpp
+++ b/src/mame/drivers/undrfire.cpp
@@ -211,7 +211,7 @@ void undrfire_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_maincpu->set_input_line(5, HOLD_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in undrfire_state::device_timer");
+ assert_always(false, "Unknown id in undrfire_state::device_timer");
}
}
diff --git a/src/mame/drivers/vegas.cpp b/src/mame/drivers/vegas.cpp
index 437eb030350..0eae12d407e 100644
--- a/src/mame/drivers/vegas.cpp
+++ b/src/mame/drivers/vegas.cpp
@@ -608,8 +608,8 @@ void vegas_state::machine_start()
m_maincpu->mips3drc_set_options(MIPS3DRC_FASTEST_OPTIONS + MIPS3DRC_STRICT_VERIFY + MIPS3DRC_FLUSH_PC);
/* configure fast RAM regions */
- m_maincpu->add_fastram(0x00000000, m_rambase.bytes() - 1, FALSE, m_rambase);
- m_maincpu->add_fastram(0x1fc00000, 0x1fc7ffff, TRUE, m_rombase);
+ m_maincpu->add_fastram(0x00000000, m_rambase.bytes() - 1, false, m_rambase);
+ m_maincpu->add_fastram(0x1fc00000, 0x1fc7ffff, true, m_rombase);
/* register for save states */
save_item(NAME(m_nile_irq_state));
@@ -998,7 +998,8 @@ TIMER_CALLBACK_MEMBER(vegas_state::nile_timer_callback)
READ32_MEMBER( vegas_state::nile_r )
{
uint32_t result = m_nile_regs[offset];
- int logit = 1, which;
+ bool logit = true;
+ int which;
switch (offset)
{
@@ -1116,7 +1117,8 @@ READ32_MEMBER( vegas_state::nile_r )
WRITE32_MEMBER( vegas_state::nile_w )
{
uint32_t olddata = m_nile_regs[offset];
- int logit = 1, which;
+ bool logit = true;
+ int which;
COMBINE_DATA(&m_nile_regs[offset]);
diff --git a/src/mame/drivers/vendetta.cpp b/src/mame/drivers/vendetta.cpp
index 83864fea3ec..70370178f4a 100644
--- a/src/mame/drivers/vendetta.cpp
+++ b/src/mame/drivers/vendetta.cpp
@@ -173,7 +173,7 @@ void vendetta_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_audiocpu->set_input_line(INPUT_LINE_NMI, ASSERT_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in vendetta_state::device_timer");
+ assert_always(false, "Unknown id in vendetta_state::device_timer");
}
}
diff --git a/src/mame/drivers/videopin.cpp b/src/mame/drivers/videopin.cpp
index 8eca7894418..c7e607114e5 100644
--- a/src/mame/drivers/videopin.cpp
+++ b/src/mame/drivers/videopin.cpp
@@ -54,7 +54,7 @@ void videopin_state::device_timer(emu_timer &timer, device_timer_id id, int para
interrupt_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in videopin_state::device_timer");
+ assert_always(false, "Unknown id in videopin_state::device_timer");
}
}
diff --git a/src/mame/drivers/viper.cpp b/src/mame/drivers/viper.cpp
index d7e8abfeaed..5300d5d199c 100644
--- a/src/mame/drivers/viper.cpp
+++ b/src/mame/drivers/viper.cpp
@@ -2154,7 +2154,7 @@ void viper_state::machine_start()
m_maincpu->ppcdrc_set_options(PPCDRC_COMPATIBLE_OPTIONS);
/* configure fast RAM regions for DRC */
- m_maincpu->ppcdrc_add_fastram(0x00000000, 0x00ffffff, FALSE, m_workram);
+ m_maincpu->ppcdrc_add_fastram(0x00000000, 0x00ffffff, false, m_workram);
ds2430_rom = (uint8_t*)memregion("ds2430")->base();
}
diff --git a/src/mame/drivers/vis.cpp b/src/mame/drivers/vis.cpp
index ae114068b95..42f1f36e348 100644
--- a/src/mame/drivers/vis.cpp
+++ b/src/mame/drivers/vis.cpp
@@ -49,7 +49,7 @@ vis_audio_device::vis_audio_device(const machine_config &mconfig, const char *ta
void vis_audio_device::device_start()
{
set_isa_device();
- m_isa->set_dma_channel(7, this, FALSE);
+ m_isa->set_dma_channel(7, this, false);
m_isa->install_device(0x0220, 0x022f, read8_delegate(FUNC(vis_audio_device::pcm_r), this), write8_delegate(FUNC(vis_audio_device::pcm_w), this));
m_isa->install_device(0x0388, 0x038b, read8_delegate(FUNC(ymf262_device::read), subdevice<ymf262_device>("ymf262")), write8_delegate(FUNC(ymf262_device::write), subdevice<ymf262_device>("ymf262")));
m_pcm = timer_alloc();
diff --git a/src/mame/drivers/vk100.cpp b/src/mame/drivers/vk100.cpp
index 715681f7bba..b51fa3b3eb0 100644
--- a/src/mame/drivers/vk100.cpp
+++ b/src/mame/drivers/vk100.cpp
@@ -332,7 +332,7 @@ void vk100_state::device_timer(emu_timer &timer, device_timer_id id, int param,
execute_vg(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in vk100_state::device_timer");
+ assert_always(false, "Unknown id in vk100_state::device_timer");
}
}
diff --git a/src/mame/drivers/wgp.cpp b/src/mame/drivers/wgp.cpp
index 0e8ae61a122..49a1175c7f3 100644
--- a/src/mame/drivers/wgp.cpp
+++ b/src/mame/drivers/wgp.cpp
@@ -446,7 +446,7 @@ void wgp_state::device_timer(emu_timer &timer, device_timer_id id, int param, vo
m_subcpu->set_input_line(6, HOLD_LINE); /* assumes Z80 sandwiched between the 68Ks */
break;
default:
- assert_always(FALSE, "Unknown id in wgp_state::device_timer");
+ assert_always(false, "Unknown id in wgp_state::device_timer");
}
}
diff --git a/src/mame/drivers/wolfpack.cpp b/src/mame/drivers/wolfpack.cpp
index dc6beaf56e0..34bc3289fce 100644
--- a/src/mame/drivers/wolfpack.cpp
+++ b/src/mame/drivers/wolfpack.cpp
@@ -20,7 +20,7 @@ void wolfpack_state::device_timer(emu_timer &timer, device_timer_id id, int para
periodic_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in wolfpack_state::device_timer");
+ assert_always(false, "Unknown id in wolfpack_state::device_timer");
}
}
diff --git a/src/mame/drivers/x68k.cpp b/src/mame/drivers/x68k.cpp
index 18bf474249d..7bd67852e8e 100644
--- a/src/mame/drivers/x68k.cpp
+++ b/src/mame/drivers/x68k.cpp
@@ -184,7 +184,7 @@ void x68k_state::device_timer(emu_timer &timer, device_timer_id id, int param, v
m_hd63450->drq3_w(0);
break;
default:
- assert_always(FALSE, "Unknown id in x68k_state::device_timer");
+ assert_always(false, "Unknown id in x68k_state::device_timer");
}
}
diff --git a/src/mame/drivers/xtheball.cpp b/src/mame/drivers/xtheball.cpp
index 97718df2ca4..cff86858d25 100644
--- a/src/mame/drivers/xtheball.cpp
+++ b/src/mame/drivers/xtheball.cpp
@@ -338,7 +338,7 @@ static MACHINE_CONFIG_START( xtheball, xtheball_state )
MCFG_CPU_ADD("maincpu", TMS34010, 40000000)
MCFG_CPU_PROGRAM_MAP(main_map)
- MCFG_TMS340X0_HALT_ON_RESET(FALSE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(false) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(10000000) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(1) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_RGB32_CB(xtheball_state, scanline_update) /* scanline updater (rgb32) */
diff --git a/src/mame/drivers/zr107.cpp b/src/mame/drivers/zr107.cpp
index 5fea7a14e30..311366f4bb2 100644
--- a/src/mame/drivers/zr107.cpp
+++ b/src/mame/drivers/zr107.cpp
@@ -465,7 +465,7 @@ void zr107_state::machine_start()
m_maincpu->ppcdrc_set_options(PPCDRC_COMPATIBLE_OPTIONS);
/* configure fast RAM regions for DRC */
- m_maincpu->ppcdrc_add_fastram(0x00000000, 0x000fffff, FALSE, m_workram);
+ m_maincpu->ppcdrc_add_fastram(0x00000000, 0x000fffff, false, m_workram);
}
static ADDRESS_MAP_START( zr107_map, AS_PROGRAM, 32, zr107_state )
diff --git a/src/mame/drivers/zrt80.cpp b/src/mame/drivers/zrt80.cpp
index a617d9e93e9..b4b6986fa20 100644
--- a/src/mame/drivers/zrt80.cpp
+++ b/src/mame/drivers/zrt80.cpp
@@ -81,7 +81,7 @@ void zrt80_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_beep->set_state(0);
break;
default:
- assert_always(FALSE, "Unknown id in zrt80_state::device_timer");
+ assert_always(false, "Unknown id in zrt80_state::device_timer");
}
}
diff --git a/src/mame/includes/gottlieb.h b/src/mame/includes/gottlieb.h
index f59b76fbd59..2dddb114062 100644
--- a/src/mame/includes/gottlieb.h
+++ b/src/mame/includes/gottlieb.h
@@ -137,8 +137,8 @@ public:
TIMER_CALLBACK_MEMBER(nmi_clear);
void draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprect);
inline void audio_end_state();
- void audio_process_clock(int logit);
- void audio_handle_zero_crossing(const attotime &zerotime, int logit);
+ void audio_process_clock(bool logit);
+ void audio_handle_zero_crossing(const attotime &zerotime, bool logit);
void laserdisc_audio_process(laserdisc_device &device, int samplerate, int samples, const int16_t *ch0, const int16_t *ch1);
protected:
diff --git a/src/mame/includes/jaguar.h b/src/mame/includes/jaguar.h
index 0c3b7ace2e9..d4f0df5b025 100644
--- a/src/mame/includes/jaguar.h
+++ b/src/mame/includes/jaguar.h
@@ -291,9 +291,9 @@ protected:
/* from jagobj.c */
void jagobj_init();
- uint32_t *process_bitmap(uint16_t *scanline, uint32_t *objdata, int vc, int logit);
- uint32_t *process_scaled_bitmap(uint16_t *scanline, uint32_t *objdata, int vc, int logit);
- uint32_t *process_branch(uint32_t *objdata, int vc, int logit);
+ uint32_t *process_bitmap(uint16_t *scanline, uint32_t *objdata, int vc, bool logit);
+ uint32_t *process_scaled_bitmap(uint16_t *scanline, uint32_t *objdata, int vc, bool logit);
+ uint32_t *process_branch(uint32_t *objdata, int vc, bool logit);
void process_object_list(int vc, uint16_t *_scanline);
void bitmap_4_draw(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint8_t flags, int32_t dxpos, uint16_t *clutbase);
void bitmap_4_0(uint16_t *scanline, int32_t firstpix, int32_t iwidth, uint32_t *src, int32_t xpos, uint16_t *clutbase);
diff --git a/src/mame/includes/midzeus.h b/src/mame/includes/midzeus.h
index 515325cc7f9..b8178140d0e 100644
--- a/src/mame/includes/midzeus.h
+++ b/src/mame/includes/midzeus.h
@@ -73,12 +73,12 @@ public:
TIMER_CALLBACK_MEMBER(invasn_gun_callback);
private:
void exit_handler();
- void zeus_pointer_w(uint32_t which, uint32_t data, int logit);
- void zeus_register16_w(offs_t offset, uint16_t data, int logit);
- void zeus_register32_w(offs_t offset, uint32_t data, int logit);
+ void zeus_pointer_w(uint32_t which, uint32_t data, bool logit);
+ void zeus_register16_w(offs_t offset, uint16_t data, bool logit);
+ void zeus_register32_w(offs_t offset, uint32_t data, bool logit);
void zeus_register_update(offs_t offset);
int zeus_fifo_process(const uint32_t *data, int numwords);
- void zeus_draw_model(uint32_t texdata, int logit);
+ void zeus_draw_model(uint32_t texdata, bool logit);
void log_fifo_command(const uint32_t *data, int numwords, const char *suffix);
void log_waveram(uint32_t length_and_base);
diff --git a/src/mame/includes/midzeus2.h b/src/mame/includes/midzeus2.h
index f7cb4eb442b..5d407a6689c 100644
--- a/src/mame/includes/midzeus2.h
+++ b/src/mame/includes/midzeus2.h
@@ -22,10 +22,10 @@ public:
private:
TIMER_CALLBACK_MEMBER(int_timer_callback);
void exit_handler2();
- void zeus2_register32_w(offs_t offset, uint32_t data, int logit);
- void zeus2_register_update(offs_t offset, uint32_t oldval, int logit);
- int zeus2_fifo_process(const uint32_t *data, int numwords);
+ void zeus2_register32_w(offs_t offset, uint32_t data, bool logit);
+ void zeus2_register_update(offs_t offset, uint32_t oldval, bool logit);
+ bool zeus2_fifo_process(const uint32_t *data, int numwords);
void zeus2_pointer_write(uint8_t which, uint32_t value);
- void zeus2_draw_model(uint32_t baseaddr, uint16_t count, int logit);
+ void zeus2_draw_model(uint32_t baseaddr, uint16_t count, bool logit);
void log_fifo_command(const uint32_t *data, int numwords, const char *suffix);
};
diff --git a/src/mame/includes/ninjakd2.h b/src/mame/includes/ninjakd2.h
index 0e0600d4f37..0bea69afaf3 100644
--- a/src/mame/includes/ninjakd2.h
+++ b/src/mame/includes/ninjakd2.h
@@ -43,7 +43,7 @@ public:
uint8_t m_omegaf_io_protection_input;
int m_omegaf_io_protection_tic;
int m_next_sprite_overdraw_enabled;
- int (*m_stencil_compare_function) (uint16_t pal);
+ bool (*m_stencil_compare_function) (uint16_t pal);
int m_sprites_updated;
bitmap_ind16 m_sprites_bitmap;
int m_robokid_sprites;
diff --git a/src/mame/includes/rallyx.h b/src/mame/includes/rallyx.h
index 4a30ca2e129..a7787db6a88 100644
--- a/src/mame/includes/rallyx.h
+++ b/src/mame/includes/rallyx.h
@@ -88,7 +88,7 @@ public:
void draw_stars( bitmap_ind16 &bitmap, const rectangle &cliprect );
void rallyx_draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
void locomotn_draw_sprites( screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect );
- void rallyx_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, int transpen );
- void jungler_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, int transpen );
- void locomotn_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, int transpen );
+ void rallyx_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, bool transpen );
+ void jungler_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, bool transpen );
+ void locomotn_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, bool transpen );
};
diff --git a/src/mame/includes/segag80v.h b/src/mame/includes/segag80v.h
index b7b507421d7..b9836a02489 100644
--- a/src/mame/includes/segag80v.h
+++ b/src/mame/includes/segag80v.h
@@ -71,7 +71,7 @@ public:
virtual void machine_start() override;
virtual void video_start() override;
uint32_t screen_update_segag80v(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
- inline int adjust_xy(int rawx, int rawy, int *outx, int *outy);
+ inline bool adjust_xy(int rawx, int rawy, int *outx, int *outy);
void sega_generate_vector_list();
offs_t decrypt_offset(address_space &space, offs_t offset);
inline uint8_t demangle(uint8_t d7d6, uint8_t d5d4, uint8_t d3d2, uint8_t d1d0);
diff --git a/src/mame/machine/amiga.cpp b/src/mame/machine/amiga.cpp
index 032b14b2026..d76ba2b2f71 100644
--- a/src/mame/machine/amiga.cpp
+++ b/src/mame/machine/amiga.cpp
@@ -1390,13 +1390,13 @@ WRITE16_MEMBER( amiga_state::custom_chip_w )
case REG_SPR0CTL: case REG_SPR1CTL: case REG_SPR2CTL: case REG_SPR3CTL:
case REG_SPR4CTL: case REG_SPR5CTL: case REG_SPR6CTL: case REG_SPR7CTL:
/* disable comparitor on writes here */
- amiga_sprite_enable_comparitor(space.machine(), (offset - REG_SPR0CTL) / 4, FALSE);
+ amiga_sprite_enable_comparitor(space.machine(), (offset - REG_SPR0CTL) / 4, false);
break;
case REG_SPR0DATA: case REG_SPR1DATA: case REG_SPR2DATA: case REG_SPR3DATA:
case REG_SPR4DATA: case REG_SPR5DATA: case REG_SPR6DATA: case REG_SPR7DATA:
/* enable comparitor on writes here */
- amiga_sprite_enable_comparitor(space.machine(), (offset - REG_SPR0DATA) / 4, TRUE);
+ amiga_sprite_enable_comparitor(space.machine(), (offset - REG_SPR0DATA) / 4, true);
break;
case REG_COP1LCH:
diff --git a/src/mame/machine/amstrad.cpp b/src/mame/machine/amstrad.cpp
index 611a2cbaf41..8e4f44da91f 100644
--- a/src/mame/machine/amstrad.cpp
+++ b/src/mame/machine/amstrad.cpp
@@ -234,7 +234,7 @@ void amstrad_state::device_timer(emu_timer &timer, device_timer_id id, int param
cb_set_resolution(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in amstrad_state::device_timer");
+ assert_always(false, "Unknown id in amstrad_state::device_timer");
}
}
@@ -2071,7 +2071,7 @@ WRITE8_MEMBER(amstrad_state::amstrad_cpc_io_w)
/* printer port d7 */
if (data == 0x0c && m_system_type == SYSTEM_PLUS)
- m_printer_bit8_selected = TRUE;
+ m_printer_bit8_selected = true;
m_asic.addr_6845 = data;
break;
@@ -2086,7 +2086,7 @@ WRITE8_MEMBER(amstrad_state::amstrad_cpc_io_w)
if (m_printer_bit8_selected && m_system_type == SYSTEM_PLUS)
{
m_centronics->write_data7(BIT(data, 3));
- m_printer_bit8_selected = FALSE;
+ m_printer_bit8_selected = false;
}
if ( m_asic.addr_6845 == 0x01 )
@@ -3287,7 +3287,7 @@ DEVICE_IMAGE_LOAD_MEMBER(amstrad_state, amstrad_plus_cartridge)
{
uint32_t size = m_cart->common_get_size("rom");
unsigned char header[12];
- bool is_cpr = FALSE;
+ bool is_cpr = false;
logerror("IMG: loading CPC+ cartridge file\n");
// check for .CPR header
@@ -3301,7 +3301,7 @@ DEVICE_IMAGE_LOAD_MEMBER(amstrad_state, amstrad_plus_cartridge)
}
else
{
- is_cpr = TRUE;
+ is_cpr = true;
size -= 12;
}
}
diff --git a/src/mame/machine/arkanoid.cpp b/src/mame/machine/arkanoid.cpp
index 7f3af3157ce..3784267b820 100644
--- a/src/mame/machine/arkanoid.cpp
+++ b/src/mame/machine/arkanoid.cpp
@@ -108,7 +108,7 @@ void arkanoid_state::device_timer(emu_timer &timer, device_timer_id id, int para
timer_68705_increment(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in arkanoid_state::device_timer");
+ assert_always(false, "Unknown id in arkanoid_state::device_timer");
}
}
diff --git a/src/mame/machine/asic65.cpp b/src/mame/machine/asic65.cpp
index a1ea4d222a1..15d6c723e85 100644
--- a/src/mame/machine/asic65.cpp
+++ b/src/mame/machine/asic65.cpp
@@ -195,7 +195,7 @@ void asic65_device::device_timer(emu_timer &timer, device_timer_id id, int param
m_ourcpu->set_input_line(0, ASSERT_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in asic65_device::device_timer");
+ assert_always(false, "Unknown id in asic65_device::device_timer");
}
}
diff --git a/src/mame/machine/bbc.cpp b/src/mame/machine/bbc.cpp
index 32d3e876085..ef099311db6 100644
--- a/src/mame/machine/bbc.cpp
+++ b/src/mame/machine/bbc.cpp
@@ -886,8 +886,8 @@ WRITE8_MEMBER(bbc_state::bbcb_via_system_write_portb)
{
/* VSP TMS 5220 */
m_b1_speech_read = 1;
- //logerror("Speech read select TRUE\n");
- if (m_tms) m_tms->rsq_w(TRUE);
+ //logerror("Speech read select true\n");
+ if (m_tms) m_tms->rsq_w(true);
}
}
break;
@@ -904,8 +904,8 @@ WRITE8_MEMBER(bbc_state::bbcb_via_system_write_portb)
{
/* VSP TMS 5220 */
m_b2_speech_write = 1;
- //logerror("Speech write select TRUE\n");
- if (m_tms) m_tms->wsq_w(TRUE);
+ //logerror("Speech write select true\n");
+ if (m_tms) m_tms->wsq_w(true);
}
}
break;
@@ -969,8 +969,8 @@ WRITE8_MEMBER(bbc_state::bbcb_via_system_write_portb)
{
/* VSP TMS 5220 */
m_b1_speech_read = 0;
- //logerror("Speech read select FALSE\n");
- if (m_tms) m_tms->rsq_w(FALSE);
+ //logerror("Speech read select false\n");
+ if (m_tms) m_tms->rsq_w(false);
}
}
break;
@@ -987,8 +987,8 @@ WRITE8_MEMBER(bbc_state::bbcb_via_system_write_portb)
{
/* VSP TMS 5220 */
m_b2_speech_write = 0;
- //logerror("Speech write select FALSE\n");
- if (m_tms) m_tms->wsq_w(FALSE);
+ //logerror("Speech write select false\n");
+ if (m_tms) m_tms->wsq_w(false);
}
}
break;
diff --git a/src/mame/machine/bebox.cpp b/src/mame/machine/bebox.cpp
index 2fc0a30f0f8..0454baf3dd6 100644
--- a/src/mame/machine/bebox.cpp
+++ b/src/mame/machine/bebox.cpp
@@ -752,7 +752,7 @@ void bebox_state::device_timer(emu_timer &timer, device_timer_id id, int param,
case TIMER_GET_DEVICES:
break;
default:
- assert_always(FALSE, "Unknown id in bebox_state::device_timer");
+ assert_always(false, "Unknown id in bebox_state::device_timer");
}
}
diff --git a/src/mame/machine/bublbobl.cpp b/src/mame/machine/bublbobl.cpp
index 2e66aad50ff..b4ae1801938 100644
--- a/src/mame/machine/bublbobl.cpp
+++ b/src/mame/machine/bublbobl.cpp
@@ -100,7 +100,7 @@ void bublbobl_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_mcu->set_input_line(0, CLEAR_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in bublbobl_state::device_timer");
+ assert_always(false, "Unknown id in bublbobl_state::device_timer");
}
}
diff --git a/src/mame/machine/concept.cpp b/src/mame/machine/concept.cpp
index 1192bd7bd62..12486edf4f6 100644
--- a/src/mame/machine/concept.cpp
+++ b/src/mame/machine/concept.cpp
@@ -42,7 +42,7 @@ void concept_state::machine_start()
m_pending_interrupts = 0;
/* initialize clock interface */
- m_clock_enable = FALSE /*TRUE*/;
+ m_clock_enable = false /*true*/;
save_item(NAME(m_pending_interrupts));
save_item(NAME(m_clock_enable));
diff --git a/src/mame/machine/cps2crypt.cpp b/src/mame/machine/cps2crypt.cpp
index efdff933a9f..568df93be34 100644
--- a/src/mame/machine/cps2crypt.cpp
+++ b/src/mame/machine/cps2crypt.cpp
@@ -672,7 +672,7 @@ static void cps2_decrypt(running_machine &machine, uint16_t *rom, uint16_t *dec,
{
char loadingMessage[256]; // for displaying with UI
sprintf(loadingMessage, "Decrypting %d%%", i*100/0x10000);
- machine.ui().set_startup_text(loadingMessage,FALSE);
+ machine.ui().set_startup_text(loadingMessage,false);
}
diff --git a/src/mame/machine/dai.cpp b/src/mame/machine/dai.cpp
index f785feeed92..df557ed0fed 100644
--- a/src/mame/machine/dai.cpp
+++ b/src/mame/machine/dai.cpp
@@ -31,7 +31,7 @@ void dai_state::device_timer(emu_timer &timer, device_timer_id id, int param, vo
timer_set(attotime::from_hz(100), TIMER_TMS5501);
break;
default:
- assert_always(FALSE, "Unknown id in dai_state::device_timer");
+ assert_always(false, "Unknown id in dai_state::device_timer");
}
}
diff --git a/src/mame/machine/decocass_tape.cpp b/src/mame/machine/decocass_tape.cpp
index a4ae654f5b9..0dfa178c1d5 100644
--- a/src/mame/machine/decocass_tape.cpp
+++ b/src/mame/machine/decocass_tape.cpp
@@ -343,11 +343,11 @@ uint8_t decocass_tape_device::get_status_bits()
/*-------------------------------------------------
- tape_is_present - return TRUE if the tape is
+ tape_is_present - return true if the tape is
present
-------------------------------------------------*/
-uint8_t decocass_tape_device::is_present()
+bool decocass_tape_device::is_present()
{
return m_tape_data.found();
}
diff --git a/src/mame/machine/decocass_tape.h b/src/mame/machine/decocass_tape.h
index ee6b2837308..829923339a4 100644
--- a/src/mame/machine/decocass_tape.h
+++ b/src/mame/machine/decocass_tape.h
@@ -10,7 +10,7 @@ public:
~decocass_tape_device() {}
uint8_t get_status_bits();
- uint8_t is_present();
+ bool is_present();
void change_speed(int8_t newspeed);
protected:
diff --git a/src/mame/machine/electron.cpp b/src/mame/machine/electron.cpp
index 23b3a00e799..6fc6149edf7 100644
--- a/src/mame/machine/electron.cpp
+++ b/src/mame/machine/electron.cpp
@@ -43,7 +43,7 @@ void electron_state::device_timer(emu_timer &timer, device_timer_id id, int para
electron_scanline_interrupt(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in electron_state::device_timer");
+ assert_always(false, "Unknown id in electron_state::device_timer");
}
}
diff --git a/src/mame/machine/fddebug.cpp b/src/mame/machine/fddebug.cpp
index ee7fe6f69f0..0c908535926 100644
--- a/src/mame/machine/fddebug.cpp
+++ b/src/mame/machine/fddebug.cpp
@@ -576,7 +576,7 @@ static void set_default_key_params(running_machine &machine)
{
fd1094_global = default_keys[keynum].global;
fd1094_seed = default_keys[keynum].seed;
- keydirty = TRUE;
+ keydirty = true;
break;
}
}
@@ -604,7 +604,7 @@ static void load_overlay_file(running_machine &machine)
}
/* mark the key dirty */
- keydirty = TRUE;
+ keydirty = true;
}
@@ -680,7 +680,7 @@ void fd1094_regenerate_key(running_machine &machine)
machine.debug_view().update_all(DVT_DISASSEMBLY);
/* reset keydirty */
- keydirty = FALSE;
+ keydirty = false;
}
@@ -925,7 +925,7 @@ static void execute_fdignore(running_machine &machine, int ref, int params, cons
/* support 0 or 1 parameters */
if (params == 1 && strcmp(param[0], "all") == 0)
{
- ignore_all = TRUE;
+ ignore_all = true;
machine.debugger().console().printf("Ignoring all unknown opcodes\n");
return;
}
@@ -1050,7 +1050,7 @@ static void execute_fdsearch(running_machine &machine, int ref, int params, cons
{
address_space &space = machine->debugger().cpu().get_visible_cpu()->memory().space(AS_PROGRAM);
int pc = space.device().safe_pc();
- int length, first = TRUE;
+ int length, first = true;
uint8_t instrdata[2];
uint16_t decoded;
@@ -1092,7 +1092,7 @@ static void execute_fdsearch(running_machine &machine, int ref, int params, cons
break;
}
keystatus[pc/2] |= SEARCH_MASK;
- first = FALSE;
+ first = false;
/* decode the first word */
decoded = fd1094_decode(pc/2, coderegion[pc/2], keyregion, 0);
@@ -1177,7 +1177,7 @@ static void execute_fddasm(running_machine &machine, int ref, int params, const
address_space &space = machine->debugger().cpu().get_visible_cpu()->memory().space(AS_PROGRAM);
int origstate = fd1094_set_state(keyregion, -1);
const char *filename;
- int skipped = FALSE;
+ int skipped = false;
uint32_t pcaddr;
/* extract the parameters */
@@ -1196,7 +1196,7 @@ static void execute_fddasm(running_machine &machine, int ref, int params, const
for (pcaddr = 0; pcaddr < coderegion_words; )
{
uint8_t instrbuffer[10];
- int unknowns = FALSE;
+ int unknowns = false;
int length, pcoffs;
char disasm[256];
uint16_t decoded;
@@ -1206,7 +1206,7 @@ static void execute_fddasm(running_machine &machine, int ref, int params, const
if ((keystatus[pcaddr] & STATE_MASK) == 0)
{
pcaddr++;
- skipped = TRUE;
+ skipped = true;
continue;
}
@@ -1225,7 +1225,7 @@ static void execute_fddasm(running_machine &machine, int ref, int params, const
if ((keystatus[pcaddr + pcoffs] & STATUS_MASK) == STATUS_UNVISITED)
{
pcaddr++;
- skipped = TRUE;
+ skipped = true;
continue;
}
decoded = fd1094_decode(pcaddr + pcoffs, coderegion[pcaddr + pcoffs], keyregion, 0);
@@ -1239,7 +1239,7 @@ static void execute_fddasm(running_machine &machine, int ref, int params, const
/* print the line */
if (skipped)
file.printf("\n");
- skipped = FALSE;
+ skipped = false;
file.printf(" %02X %06X:", keystatus[pcaddr] >> 8, pcaddr * 2);
for (pcoffs = 0; pcoffs < 5; pcoffs++)
{
@@ -1248,7 +1248,7 @@ static void execute_fddasm(running_machine &machine, int ref, int params, const
static const char statchar[] = "? =?";
int keystat = keystatus[pcaddr + pcoffs] & STATUS_MASK;
if (keystat != STATUS_LOCKED && keystat != STATUS_NOCHANGE)
- unknowns = TRUE;
+ unknowns = true;
file.printf(" %02X%02X%c", instrbuffer[pcoffs*2+0], instrbuffer[pcoffs*2+1], statchar[keystat]);
}
else
@@ -1436,7 +1436,7 @@ static fd1094_possibility *try_all_possibilities(address_space &space, int basep
if (numposs == 1)
{
keystatus[pcaddr] = (keystatus[pcaddr] & ~STATUS_MASK) | STATUS_NOCHANGE;
- keydirty = TRUE;
+ keydirty = true;
}
}
@@ -1543,7 +1543,7 @@ static void tag_possibility(running_machine &machine, fd1094_possibility *possda
{
keystatus[keyaddr] = (keystatus[keyaddr] & ~HIBITS_MASK) | (possdata->keybuffer[pcoffs] & HIBITS_MASK);
keystatus[pcaddr] = (keystatus[pcaddr] & ~STATE_MASK & ~STATUS_MASK) | (curfdstate << 8) | newstat[pcoffs];
- keydirty = TRUE;
+ keydirty = true;
}
else
keystatus[pcaddr] = (keystatus[pcaddr] & ~STATE_MASK) | (curfdstate << 8);
@@ -1603,7 +1603,7 @@ static void perform_constrained_search(running_machine &machine)
// machine.debugger().console().printf("Checking global key %08X (PC=%06X)....\n", global, (output[2] << 16) | output[3]);
/* use the IRQ handler to find more possibilities */
- numseeds = find_constraint_sequence(global, FALSE);
+ numseeds = find_constraint_sequence(global, false);
if (numseeds > 0)
{
int i;
@@ -1634,7 +1634,7 @@ static uint32_t find_global_key_matches(uint32_t startwith, uint16_t *output)
fd1094_set_state(key, FD1094_STATE_RESET);
/* if we match, iterate over the second key byte */
- output[0] = fd1094_decode(0x000000, coderegion[0], key, TRUE);
+ output[0] = fd1094_decode(0x000000, coderegion[0], key, true);
if ((output[0] & constraints[0].mask) == constraints[0].value)
/* iterate over the second key byte, limiting the scope to known valid keys */
@@ -1647,7 +1647,7 @@ static uint32_t find_global_key_matches(uint32_t startwith, uint16_t *output)
fd1094_set_state(key, FD1094_STATE_RESET);
/* if we match, iterate over the third key byte */
- output[1] = fd1094_decode(0x000001, coderegion[1], key, TRUE);
+ output[1] = fd1094_decode(0x000001, coderegion[1], key, true);
if ((output[1] & constraints[1].mask) == constraints[1].value)
/* iterate over the third key byte, limiting the scope to known valid keys */
@@ -1660,7 +1660,7 @@ static uint32_t find_global_key_matches(uint32_t startwith, uint16_t *output)
fd1094_set_state(key, FD1094_STATE_RESET);
/* if we match, iterate over the fourth key byte */
- output[2] = fd1094_decode(0x000002, coderegion[2], key, TRUE);
+ output[2] = fd1094_decode(0x000002, coderegion[2], key, true);
if ((output[2] & constraints[2].mask) == constraints[2].value)
/* iterate over the fourth key byte, limiting the scope to known valid keys */
@@ -1673,7 +1673,7 @@ static uint32_t find_global_key_matches(uint32_t startwith, uint16_t *output)
fd1094_set_state(key, FD1094_STATE_RESET);
/* if we match, return the value */
- output[3] = fd1094_decode(0x000003, coderegion[3], key, TRUE);
+ output[3] = fd1094_decode(0x000003, coderegion[3], key, true);
if ((output[3] & constraints[3].mask) == constraints[3].value)
return (key0 << 24) | (key1 << 16) | (key2 << 8) | key3;
}
@@ -1741,7 +1741,7 @@ static int find_constraint_sequence(uint32_t global, int quick)
{
/* see if this works */
key[keyaddr] = keyvalue;
- decrypted = fd1094_decode(pcaddr, coderegion[pcaddr], key, FALSE);
+ decrypted = fd1094_decode(pcaddr, coderegion[pcaddr], key, false);
/* if we got a match, stop; we're done */
if ((decrypted & curr->mask) == curr->value)
@@ -1774,7 +1774,7 @@ static int find_constraint_sequence(uint32_t global, int quick)
{
/* see if this works */
key[keyaddr] = keyvalue;
- decrypted = fd1094_decode(pcaddr, coderegion[pcaddr], key, FALSE);
+ decrypted = fd1094_decode(pcaddr, coderegion[pcaddr], key, false);
/* if we got a match, then iterate over all possible PRNG sequences starting with this */
if ((decrypted & minkeyaddr->mask) == minkeyaddr->value)
@@ -1838,18 +1838,18 @@ static int does_key_work_for_constraints(const uint16_t *base, uint8_t *key)
key[keyaddr] = (key[keyaddr] & ~0xc0) | hibits;
/* decrypt using this key; stop if we get a match */
- decrypted = fd1094_decode(pcaddr, base[pcaddr], key, FALSE);
+ decrypted = fd1094_decode(pcaddr, base[pcaddr], key, false);
if ((decrypted & curr->mask) == curr->value)
break;
}
/* if we failed to match, we're done */
if (hibits >= 0x100)
- return FALSE;
+ return false;
}
/* got a match on all entries */
- return TRUE;
+ return true;
}
@@ -2282,7 +2282,7 @@ static int validate_ea(address_space &space, uint32_t pc, uint8_t modereg, const
}
/* should never get here */
- assert(FALSE);
+ assert(false);
return 0;
}
@@ -2295,7 +2295,7 @@ static int validate_ea(address_space &space, uint32_t pc, uint8_t modereg, const
static int validate_opcode(address_space &space, uint32_t pc, const uint8_t *opdata, int maxwords)
{
uint32_t immvalue = 0;
- int iffy = FALSE;
+ int iffy = false;
int offset = 0;
uint16_t opcode;
uint32_t flags;
@@ -2373,7 +2373,7 @@ static int validate_opcode(address_space &space, uint32_t pc, const uint8_t *opd
if (valid == 0)
return 0;
if (valid == 2)
- iffy = TRUE;
+ iffy = true;
}
/* process the EA, if present */
@@ -2390,7 +2390,7 @@ static int validate_opcode(address_space &space, uint32_t pc, const uint8_t *opd
if (ealen < 0)
{
ealen = -ealen;
- iffy = TRUE;
+ iffy = true;
}
/* advance past the ea */
@@ -2411,7 +2411,7 @@ static int validate_opcode(address_space &space, uint32_t pc, const uint8_t *opd
if (ealen < 0)
{
ealen = -ealen;
- iffy = TRUE;
+ iffy = true;
}
/* advance past the ea */
diff --git a/src/mame/machine/galaxy.cpp b/src/mame/machine/galaxy.cpp
index 1fc4c053dc0..39ecc7ae595 100644
--- a/src/mame/machine/galaxy.cpp
+++ b/src/mame/machine/galaxy.cpp
@@ -51,7 +51,7 @@ INTERRUPT_GEN_MEMBER(galaxy_state::galaxy_interrupt)
IRQ_CALLBACK_MEMBER(galaxy_state::galaxy_irq_callback)
{
galaxy_set_timer();
- m_interrupts_enabled = TRUE;
+ m_interrupts_enabled = true;
return 0xff;
}
@@ -186,7 +186,7 @@ MACHINE_RESET_MEMBER(galaxy_state,galaxy)
if (ioport("ROM2")->read())
membank("bank10")->set_base(memregion("maincpu")->base() + 0x1000);
- m_interrupts_enabled = TRUE;
+ m_interrupts_enabled = true;
}
DRIVER_INIT_MEMBER(galaxy_state,galaxyp)
@@ -207,5 +207,5 @@ MACHINE_RESET_MEMBER(galaxy_state,galaxyp)
space.install_read_bank(0xe000, 0xefff, "bank11");
space.nop_write(0xe000, 0xefff);
membank("bank11")->set_base(memregion("maincpu")->base() + 0xe000);
- m_interrupts_enabled = TRUE;
+ m_interrupts_enabled = true;
}
diff --git a/src/mame/machine/gb.cpp b/src/mame/machine/gb.cpp
index 97684a34240..713f4f4f9d5 100644
--- a/src/mame/machine/gb.cpp
+++ b/src/mame/machine/gb.cpp
@@ -192,7 +192,7 @@ MACHINE_START_MEMBER(gb_state,sgb)
save_sgb_only();
if (m_cartslot && m_cartslot->get_sgb_hack()) {
- dynamic_cast<sgb_ppu_device*>(m_ppu.target())->set_sgb_hack(TRUE);
+ dynamic_cast<sgb_ppu_device*>(m_ppu.target())->set_sgb_hack(true);
}
}
diff --git a/src/mame/machine/harddriv.cpp b/src/mame/machine/harddriv.cpp
index e28b307dd16..22a50214cf7 100644
--- a/src/mame/machine/harddriv.cpp
+++ b/src/mame/machine/harddriv.cpp
@@ -142,9 +142,9 @@ READ16_MEMBER( harddriv_state::hd68k_gsp_io_r )
{
uint16_t result;
offset = (offset / 2) ^ 1;
- m_hd34010_host_access = TRUE;
+ m_hd34010_host_access = true;
result = m_gsp->host_r(space, offset, 0xffff);
- m_hd34010_host_access = FALSE;
+ m_hd34010_host_access = false;
return result;
}
@@ -152,9 +152,9 @@ READ16_MEMBER( harddriv_state::hd68k_gsp_io_r )
WRITE16_MEMBER( harddriv_state::hd68k_gsp_io_w )
{
offset = (offset / 2) ^ 1;
- m_hd34010_host_access = TRUE;
+ m_hd34010_host_access = true;
m_gsp->host_w(space, offset, data, 0xffff);
- m_hd34010_host_access = FALSE;
+ m_hd34010_host_access = false;
}
@@ -169,9 +169,9 @@ READ16_MEMBER( harddriv_state::hd68k_msp_io_r )
{
uint16_t result;
offset = (offset / 2) ^ 1;
- m_hd34010_host_access = TRUE;
+ m_hd34010_host_access = true;
result = m_msp.found() ? m_msp->host_r(space, offset, 0xffff) : 0xffff;
- m_hd34010_host_access = FALSE;
+ m_hd34010_host_access = false;
return result;
}
@@ -181,9 +181,9 @@ WRITE16_MEMBER( harddriv_state::hd68k_msp_io_w )
offset = (offset / 2) ^ 1;
if (m_msp.found())
{
- m_hd34010_host_access = TRUE;
+ m_hd34010_host_access = true;
m_msp->host_w(space, offset, data, 0xffff);
- m_hd34010_host_access = FALSE;
+ m_hd34010_host_access = false;
}
}
@@ -1574,20 +1574,20 @@ READ16_MEMBER( harddriv_state::hd68k_dsk_rom_r )
WRITE16_MEMBER( harddriv_state::hd68k_dsk_dsp32_w )
{
- m_dsk_pio_access = TRUE;
+ m_dsk_pio_access = true;
if (m_dsp32.found()) m_dsp32->pio_w(offset, data);
- m_dsk_pio_access = FALSE;
+ m_dsk_pio_access = false;
}
READ16_MEMBER( harddriv_state::hd68k_dsk_dsp32_r )
{
uint16_t result;
- m_dsk_pio_access = TRUE;
+ m_dsk_pio_access = true;
if (m_dsp32.found()) result = m_dsp32->pio_r(offset);
else result = 0x00;
- m_dsk_pio_access = FALSE;
+ m_dsk_pio_access = false;
return result;
}
diff --git a/src/mame/machine/inder_vid.cpp b/src/mame/machine/inder_vid.cpp
index 2e3a7680a61..325134d8e3d 100644
--- a/src/mame/machine/inder_vid.cpp
+++ b/src/mame/machine/inder_vid.cpp
@@ -90,7 +90,7 @@ ADDRESS_MAP_END
static MACHINE_CONFIG_FRAGMENT( inder_vid )
MCFG_CPU_ADD("tms", TMS34010, XTAL_40MHz)
MCFG_CPU_PROGRAM_MAP(megaphx_tms_map)
- MCFG_TMS340X0_HALT_ON_RESET(TRUE) /* halt on reset */
+ MCFG_TMS340X0_HALT_ON_RESET(true) /* halt on reset */
MCFG_TMS340X0_PIXEL_CLOCK(XTAL_40MHz/12) /* pixel clock */
MCFG_TMS340X0_PIXELS_PER_CLOCK(2) /* pixels per clock */
MCFG_TMS340X0_SCANLINE_RGB32_CB(inder_vid_device, scanline) /* scanline updater (RGB32) */
diff --git a/src/mame/machine/kaneko_calc3.cpp b/src/mame/machine/kaneko_calc3.cpp
index 1e7811e194f..44beeb77977 100644
--- a/src/mame/machine/kaneko_calc3.cpp
+++ b/src/mame/machine/kaneko_calc3.cpp
@@ -99,7 +99,7 @@ void kaneko_calc3_device::device_timer(emu_timer &timer, device_timer_id id, int
reset_run_timer();
break;
default:
- assert_always(FALSE, "Unknown id in kaneko_calc3_device::device_timer");
+ assert_always(false, "Unknown id in kaneko_calc3_device::device_timer");
}
}
diff --git a/src/mame/machine/kaypro.cpp b/src/mame/machine/kaypro.cpp
index 078d17b5e75..c4e1d8fcaa2 100644
--- a/src/mame/machine/kaypro.cpp
+++ b/src/mame/machine/kaypro.cpp
@@ -220,7 +220,7 @@ void kaypro_state::device_timer(emu_timer &timer, device_timer_id id, int param,
break;
default:
- assert_always(FALSE, "Unknown id in kaypro_state::device_timer");
+ assert_always(false, "Unknown id in kaypro_state::device_timer");
}
}
diff --git a/src/mame/machine/lynx.cpp b/src/mame/machine/lynx.cpp
index fcb0bc461a7..21713ad0f77 100644
--- a/src/mame/machine/lynx.cpp
+++ b/src/mame/machine/lynx.cpp
@@ -97,7 +97,7 @@ inline void lynx_state::lynx_plot_pixel(const int mode, const int16_t x, const i
uint16_t screen;
uint16_t colbuf;
- m_blitter.everon = TRUE;
+ m_blitter.everon = true;
screen = m_blitter.screen + y * 80 + x / 2;
colbuf = m_blitter.colbuf + y * 80 + x / 2;
@@ -491,7 +491,7 @@ void lynx_state::lynx_blit_lines()
int ydir = 0, xdir = 0;
int flip = 0;
- m_blitter.everon = FALSE;
+ m_blitter.everon = false;
switch (m_blitter.spr_ctl1 & 0x03) /* Initial drawing direction */
{
@@ -598,7 +598,7 @@ void lynx_state::device_timer(emu_timer &timer, device_timer_id id, int param, v
lynx_uart_timer(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in lynx_state::device_timer");
+ assert_always(false, "Unknown id in lynx_state::device_timer");
}
}
@@ -823,10 +823,10 @@ void lynx_state::lynx_divide()
left = m_suzy.data[MATH_H] | (m_suzy.data[MATH_G] << 8) | (m_suzy.data[MATH_F] << 16) | (m_suzy.data[MATH_E] << 24);
right = m_suzy.data[MATH_P] | (m_suzy.data[MATH_N] << 8);
- m_suzy.accumulate_overflow = FALSE;
+ m_suzy.accumulate_overflow = false;
if (right == 0)
{
- m_suzy.accumulate_overflow = TRUE; /* during divisions, this bit is used to detect denominator = 0 */
+ m_suzy.accumulate_overflow = true; /* during divisions, this bit is used to detect denominator = 0 */
res = 0xffffffff;
mod = 0; //?
}
@@ -859,7 +859,7 @@ void lynx_state::lynx_multiply()
EFGH
Accumulate JKLM
*/
- m_suzy.accumulate_overflow = FALSE;
+ m_suzy.accumulate_overflow = false;
left = m_suzy.data[MATH_B] | (m_suzy.data[MATH_A] << 8);
right = m_suzy.data[MATH_D] | (m_suzy.data[MATH_C] << 8);
@@ -883,7 +883,7 @@ void lynx_state::lynx_multiply()
accu += res;
if (accu < res)
- m_suzy.accumulate_overflow = TRUE;
+ m_suzy.accumulate_overflow = true;
m_suzy.data[MATH_M] = accu;
m_suzy.data[MATH_L] = accu >> 8;
@@ -1180,7 +1180,7 @@ WRITE8_MEMBER(lynx_state::suzy_write)
/* Writing to M (0x6c) will also clear the accumulator overflow bit */
case MATH_M:
- m_suzy.accumulate_overflow = FALSE;
+ m_suzy.accumulate_overflow = false;
break;
case MATH_C:
/* If we are going to perform a signed multiplication, we store the sign and convert the number
@@ -1602,7 +1602,7 @@ void lynx_state::lynx_uart_reset()
TIMER_CALLBACK_MEMBER(lynx_state::lynx_uart_loopback_timer)
{
- m_uart.received = FALSE;
+ m_uart.received = false;
}
TIMER_CALLBACK_MEMBER(lynx_state::lynx_uart_timer)
@@ -1610,13 +1610,13 @@ TIMER_CALLBACK_MEMBER(lynx_state::lynx_uart_timer)
if (m_uart.buffer_loaded)
{
m_uart.data_to_send = m_uart.buffer;
- m_uart.buffer_loaded = FALSE;
+ m_uart.buffer_loaded = false;
timer_set(attotime::from_usec(11*16), TIMER_UART);
}
else
{
- m_uart.sending = FALSE;
- m_uart.received = TRUE;
+ m_uart.sending = false;
+ m_uart.received = true;
m_uart.data_received = m_uart.data_to_send;
timer_set(attotime::from_usec(11*16), TIMER_UART_LOOPBACK);
if (m_uart.serctl & 0x40)
@@ -1670,11 +1670,11 @@ WRITE8_MEMBER(lynx_state::lynx_uart_w)
if (m_uart.sending)
{
m_uart.buffer = data;
- m_uart.buffer_loaded = TRUE;
+ m_uart.buffer_loaded = true;
}
else
{
- m_uart.sending = TRUE;
+ m_uart.sending = true;
m_uart.data_to_send = data;
// timing not accurate, baude rate should be calculated from timer 4 backup value and clock rate
timer_set(attotime::from_usec(11*16), TIMER_UART);
diff --git a/src/mame/machine/mac.cpp b/src/mame/machine/mac.cpp
index c2413522911..5a30f0c1980 100644
--- a/src/mame/machine/mac.cpp
+++ b/src/mame/machine/mac.cpp
@@ -325,14 +325,14 @@ void mac_state::v8_resize()
/* ROM mirror */
memory_size = memregion("bootrom")->bytes();
memory_data = memregion("bootrom")->base();
- is_rom = TRUE;
+ is_rom = true;
}
else
{
/* RAM */
memory_size = m_ram->size();
memory_data = m_ram->pointer();
- is_rom = FALSE;
+ is_rom = false;
}
// printf("mac_v8_resize: memory_size = %x, ctrl bits %02x (overlay %d = %s)\n", memory_size, m_rbv_regs[1] & 0xe0, m_overlay, is_rom ? "ROM" : "RAM");
@@ -402,7 +402,7 @@ void mac_state::set_memory_overlay(int overlay)
int is_rom;
/* normalize overlay */
- overlay = overlay ? TRUE : FALSE;
+ overlay = overlay ? true : false;
if (overlay != m_overlay)
{
@@ -412,14 +412,14 @@ void mac_state::set_memory_overlay(int overlay)
/* ROM mirror */
memory_size = memregion("bootrom")->bytes();
memory_data = memregion("bootrom")->base();
- is_rom = TRUE;
+ is_rom = true;
}
else
{
/* RAM */
memory_size = m_ram->size();
memory_data = m_ram->pointer();
- is_rom = FALSE;
+ is_rom = false;
}
/* install the memory */
@@ -643,8 +643,8 @@ void mac_state::keyboard_init()
int i;
/* init flag */
- m_kbd_comm = FALSE;
- m_kbd_receive = FALSE;
+ m_kbd_comm = false;
+ m_kbd_receive = false;
m_kbd_shift_reg=0;
m_kbd_shift_count=0;
@@ -681,34 +681,34 @@ TIMER_CALLBACK_MEMBER(mac_state::kbd_clock)
{
int i;
- if (m_kbd_comm == TRUE)
+ if (m_kbd_comm == true)
{
for (i=0; i<8; i++)
{
/* Put data on CB2 if we are sending*/
- if (m_kbd_receive == FALSE)
+ if (m_kbd_receive == false)
m_via1->write_cb2(m_kbd_shift_reg&0x80?1:0);
m_kbd_shift_reg <<= 1;
m_via1->write_cb1(0);
m_via1->write_cb1(1);
}
- if (m_kbd_receive == TRUE)
+ if (m_kbd_receive == true)
{
- m_kbd_receive = FALSE;
+ m_kbd_receive = false;
/* Process the command received from mac */
keyboard_receive(m_kbd_shift_reg & 0xff);
}
else
{
/* Communication is over */
- m_kbd_comm = FALSE;
+ m_kbd_comm = false;
}
}
}
void mac_state::kbd_shift_out(int data)
{
- if (m_kbd_comm == TRUE)
+ if (m_kbd_comm == true)
{
m_kbd_shift_reg = data;
machine().scheduler().timer_set(attotime::from_msec(1), timer_expired_delegate(FUNC(mac_state::kbd_clock),this));
@@ -717,14 +717,14 @@ void mac_state::kbd_shift_out(int data)
WRITE_LINE_MEMBER(mac_state::mac_via_out_cb2)
{
- if (m_kbd_comm == FALSE && state == 0)
+ if (m_kbd_comm == false && state == 0)
{
/* Mac pulls CB2 down to initiate communication */
- m_kbd_comm = TRUE;
- m_kbd_receive = TRUE;
+ m_kbd_comm = true;
+ m_kbd_receive = true;
machine().scheduler().timer_set(attotime::from_usec(100), timer_expired_delegate(FUNC(mac_state::kbd_clock),this));
}
- if (m_kbd_comm == TRUE && m_kbd_receive == TRUE)
+ if (m_kbd_comm == true && m_kbd_receive == true)
{
/* Shift in what mac is sending */
m_kbd_shift_reg = (m_kbd_shift_reg & ~1) | state;
@@ -2115,11 +2115,11 @@ void mac_state::mac_driver_init(model_t model)
if (model < MODEL_MAC_PORTABLE)
{
/* set up RAM mirror at 0x600000-0x6fffff (0x7fffff ???) */
- mac_install_memory(0x600000, 0x6fffff, m_ram->size(), m_ram->pointer(), FALSE, "bank2");
+ mac_install_memory(0x600000, 0x6fffff, m_ram->size(), m_ram->pointer(), false, "bank2");
/* set up ROM at 0x400000-0x4fffff (-0x5fffff for mac 128k/512k/512ke) */
mac_install_memory(0x400000, (model >= MODEL_MAC_PLUS) ? 0x4fffff : 0x5fffff,
- memregion("bootrom")->bytes(), memregion("bootrom")->base(), TRUE, "bank3");
+ memregion("bootrom")->bytes(), memregion("bootrom")->base(), true, "bank3");
}
m_overlay = -1;
@@ -2253,7 +2253,7 @@ void mac_state::vblank_irq()
#ifndef MAC_USE_EMULATED_KBD
/* handle keyboard */
- if (m_kbd_comm == TRUE && m_kbd_receive == FALSE)
+ if (m_kbd_comm == true && m_kbd_receive == false)
{
int keycode = scan_keyboard();
diff --git a/src/mame/machine/macrtc.cpp b/src/mame/machine/macrtc.cpp
index fc92e8660b6..ac615c0db4e 100644
--- a/src/mame/machine/macrtc.cpp
+++ b/src/mame/machine/macrtc.cpp
@@ -265,7 +265,7 @@ void rtc3430042_device::rtc_execute_cmd(int data)
/* Write-protect register */
if (LOG_RTC)
printf("RTC write to write-protect register, data = %X\n", (int) m_rtc_data_byte&0x80);
- m_rtc_write_protect = (m_rtc_data_byte & 0x80) ? TRUE : FALSE;
+ m_rtc_write_protect = (m_rtc_data_byte & 0x80) ? true : false;
break;
case 16: case 17: case 18: case 19: /* RAM address $00-$0f */
diff --git a/src/mame/machine/mbee.cpp b/src/mame/machine/mbee.cpp
index b947362a433..992066db3d0 100644
--- a/src/mame/machine/mbee.cpp
+++ b/src/mame/machine/mbee.cpp
@@ -23,7 +23,7 @@ void mbee_state::device_timer(emu_timer &timer, device_timer_id id, int param, v
timer_newkb(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in mbee_state::device_timer");
+ assert_always(false, "Unknown id in mbee_state::device_timer");
}
}
diff --git a/src/mame/machine/mega32x.cpp b/src/mame/machine/mega32x.cpp
index e9aabbd27c6..9f60b344e00 100644
--- a/src/mame/machine/mega32x.cpp
+++ b/src/mame/machine/mega32x.cpp
@@ -1136,7 +1136,7 @@ WRITE16_MEMBER( sega_32x_device::_32x_common_vdp_regs_w )
{
m_32x_fb_swap = data & 1;
- _32x_check_framebuffer_swap(TRUE);
+ _32x_check_framebuffer_swap(true);
}
break;
diff --git a/src/mame/machine/megadriv.cpp b/src/mame/machine/megadriv.cpp
index 6f811e4f439..9347060ab1a 100644
--- a/src/mame/machine/megadriv.cpp
+++ b/src/mame/machine/megadriv.cpp
@@ -1016,7 +1016,7 @@ DRIVER_INIT_MEMBER(md_base_state,megadriv_c2)
megadriv_init_common();
m_vdp->set_use_cram(0); // C2 uses its own palette ram
- m_vdp->set_vdp_pal(FALSE);
+ m_vdp->set_vdp_pal(false);
m_vdp->set_framerate(60);
m_vdp->set_total_scanlines(262);
@@ -1031,7 +1031,7 @@ DRIVER_INIT_MEMBER(md_base_state, megadriv)
// todo: move this to the device interface?
m_vdp->set_use_cram(1);
- m_vdp->set_vdp_pal(FALSE);
+ m_vdp->set_vdp_pal(false);
m_vdp->set_framerate(60);
m_vdp->set_total_scanlines(262);
@@ -1044,7 +1044,7 @@ DRIVER_INIT_MEMBER(md_base_state, megadrij)
// todo: move this to the device interface?
m_vdp->set_use_cram(1);
- m_vdp->set_vdp_pal(FALSE);
+ m_vdp->set_vdp_pal(false);
m_vdp->set_framerate(60);
m_vdp->set_total_scanlines(262);
@@ -1057,7 +1057,7 @@ DRIVER_INIT_MEMBER(md_base_state, megadrie)
// todo: move this to the device interface?
m_vdp->set_use_cram(1);
- m_vdp->set_vdp_pal(TRUE);
+ m_vdp->set_vdp_pal(true);
m_vdp->set_framerate(50);
m_vdp->set_total_scanlines(313);
diff --git a/src/mame/machine/meters.cpp b/src/mame/machine/meters.cpp
index 178a08ed853..055aee26d18 100644
--- a/src/mame/machine/meters.cpp
+++ b/src/mame/machine/meters.cpp
@@ -64,7 +64,7 @@ void meters_device::device_reset()
void meters_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr)
{
if (id >= m_number_mtr)
- assert_always(FALSE, "Unknown id in meters_device::device_timer");
+ assert_always(false, "Unknown id in meters_device::device_timer");
m_meter_info[param].count++;
}
diff --git a/src/mame/machine/micro3d.cpp b/src/mame/machine/micro3d.cpp
index d5d6d4c13f2..4929e2c64ec 100644
--- a/src/mame/machine/micro3d.cpp
+++ b/src/mame/machine/micro3d.cpp
@@ -241,7 +241,7 @@ void micro3d_state::device_timer(emu_timer &timer, device_timer_id id, int param
adc_done_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in micro3d_state::device_timer");
+ assert_always(false, "Unknown id in micro3d_state::device_timer");
}
}
diff --git a/src/mame/machine/microtan.cpp b/src/mame/machine/microtan.cpp
index 191f833705c..c17fdc93dd8 100644
--- a/src/mame/machine/microtan.cpp
+++ b/src/mame/machine/microtan.cpp
@@ -235,7 +235,7 @@ void microtan_state::device_timer(emu_timer &timer, device_timer_id id, int para
microtan_pulse_nmi(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in microtan_state::device_timer");
+ assert_always(false, "Unknown id in microtan_state::device_timer");
}
}
diff --git a/src/mame/machine/mikro80.cpp b/src/mame/machine/mikro80.cpp
index 47977753419..c7047740860 100644
--- a/src/mame/machine/mikro80.cpp
+++ b/src/mame/machine/mikro80.cpp
@@ -66,7 +66,7 @@ void mikro80_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_bank1->set_entry(0);
break;
default:
- assert_always(FALSE, "Unknown id in mikro80_state::device_timer");
+ assert_always(false, "Unknown id in mikro80_state::device_timer");
}
}
diff --git a/src/mame/machine/mtx.cpp b/src/mame/machine/mtx.cpp
index 0df25eedd63..11a4eb3d76a 100644
--- a/src/mame/machine/mtx.cpp
+++ b/src/mame/machine/mtx.cpp
@@ -30,7 +30,7 @@
READ8_MEMBER(mtx_state::mtx_strobe_r)
{
/* set STROBE low */
- m_centronics->write_strobe(FALSE);
+ m_centronics->write_strobe(false);
return 0xff;
}
@@ -180,7 +180,7 @@ READ8_MEMBER(mtx_state::mtx_prt_r)
uint8_t data = 0;
/* reset STROBE to high */
- m_centronics->write_strobe( TRUE);
+ m_centronics->write_strobe( true);
data |= m_centronics_busy << 0;
data |= m_centronics_fault << 1;
diff --git a/src/mame/machine/mz700.cpp b/src/mame/machine/mz700.cpp
index 8ffa62e528d..1a2ccd1f3a5 100644
--- a/src/mame/machine/mz700.cpp
+++ b/src/mame/machine/mz700.cpp
@@ -39,8 +39,8 @@
DRIVER_INIT_MEMBER(mz_state,mz700)
{
- m_mz700 = TRUE;
- m_mz700_mode = TRUE;
+ m_mz700 = true;
+ m_mz700_mode = true;
m_videoram = std::make_unique<uint8_t[]>(0x1000);
memset(m_videoram.get(), 0, sizeof(uint8_t) * 0x1000);
@@ -58,8 +58,8 @@ DRIVER_INIT_MEMBER(mz_state,mz700)
DRIVER_INIT_MEMBER(mz_state,mz800)
{
- m_mz700 = FALSE;
- m_mz700_mode = true;//FALSE;
+ m_mz700 = false;
+ m_mz700_mode = true;//false;
/* video ram */
m_videoram = std::make_unique<uint8_t[]>(0x4000);
@@ -255,7 +255,7 @@ WRITE8_MEMBER(mz_state::mz700_bank_1_w)
//membank("bank7")->set_base(m_ram->pointer() + 0xd000);
m_bankf->set_bank(0); //ram
}
- m_mz700_ram_vram = FALSE;
+ m_mz700_ram_vram = false;
}
}
else
@@ -266,7 +266,7 @@ WRITE8_MEMBER(mz_state::mz700_bank_1_w)
//spc.install_readwrite_bank(0xe000, 0xffff, "bank8");
//membank("bank8")->set_base(m_ram->pointer() + 0xe000);
m_bankf->set_bank(0); //ram
- m_mz800_ram_monitor = FALSE;
+ m_mz800_ram_monitor = false;
}
}
}
@@ -303,7 +303,7 @@ WRITE8_MEMBER(mz_state::mz700_bank_3_w)
//membank("bank9")->set_base(m_colorram);
membank("bankd")->set_entry(1);
}
- m_mz700_ram_vram = TRUE;
+ m_mz700_ram_vram = true;
/* switch in memory mapped i/o devices */
if (m_mz700)
@@ -325,7 +325,7 @@ WRITE8_MEMBER(mz_state::mz700_bank_3_w)
//spc.nop_write(0xe000, 0xffff);
//membank("bank8")->set_base(memregion("monitor")->base() + 0x2000);
m_bankf->set_bank(1); // devices + rom
- m_mz800_ram_monitor = TRUE;
+ m_mz800_ram_monitor = true;
}
}
}
@@ -336,7 +336,7 @@ WRITE8_MEMBER(mz_state::mz700_bank_4_w)
if (m_mz700_mode)
{
- m_mz700_ram_lock = FALSE; /* reset lock */
+ m_mz700_ram_lock = false; /* reset lock */
mz700_bank_2_w(space, 0, 0); /* switch in monitor rom */
mz700_bank_3_w(space, 0, 0); /* switch in videoram, colorram, and mmio */
@@ -392,9 +392,9 @@ WRITE8_MEMBER(mz_state::mz700_bank_4_w)
//spc.nop_write(0xe000, 0xffff);
//membank("bank8")->set_base(memregion("monitor")->base() + 0x2000);
m_bankf->set_bank(1); // devices + rom
- m_mz800_ram_monitor = TRUE;
+ m_mz800_ram_monitor = true;
- m_mz800_ram_lock = FALSE; /* reset lock? */
+ m_mz800_ram_lock = false; /* reset lock? */
}
}
@@ -405,7 +405,7 @@ WRITE8_MEMBER(mz_state::mz700_bank_5_w)
if (m_mz700_mode)
{
/* prevent access from 0xd000 to 0xffff */
- m_mz700_ram_lock = TRUE;
+ m_mz700_ram_lock = true;
if (m_mz700)
m_banke->set_bank(2);
else
@@ -416,7 +416,7 @@ WRITE8_MEMBER(mz_state::mz700_bank_5_w)
else
{
/* prevent access from 0xe000 to 0xffff */
- m_mz800_ram_lock = TRUE;
+ m_mz800_ram_lock = true;
//spc.nop_readwrite(0xe000, 0xffff);
m_bankf->set_bank(2);
}
@@ -426,7 +426,7 @@ WRITE8_MEMBER(mz_state::mz700_bank_6_w)
{
if (m_mz700_mode)
{
- m_mz700_ram_lock = FALSE;
+ m_mz700_ram_lock = false;
/* restore access */
if (m_mz700_ram_vram)
@@ -436,7 +436,7 @@ WRITE8_MEMBER(mz_state::mz700_bank_6_w)
}
else
{
- m_mz800_ram_lock = FALSE;
+ m_mz800_ram_lock = false;
/* restore access from 0xe000 to 0xffff */
if (m_mz800_ram_monitor)
diff --git a/src/mame/machine/n64.cpp b/src/mame/machine/n64.cpp
index 4c81a8e427e..bf0ec04fb22 100644
--- a/src/mame/machine/n64.cpp
+++ b/src/mame/machine/n64.cpp
@@ -2731,7 +2731,7 @@ void n64_state::machine_start()
m_vr4300->mips3drc_set_options(MIPS3DRC_COMPATIBLE_OPTIONS);
/* configure fast RAM regions */
- //m_vr4300->add_fastram(0x00000000, 0x007fffff, FALSE, m_rdram);
+ //m_vr4300->add_fastram(0x00000000, 0x007fffff, false, m_rdram);
rsp_device *rsp = machine().device<rsp_device>("rsp");
rsp->rspdrc_set_options(RSPDRC_STRICT_VERIFY);
diff --git a/src/mame/machine/nb1413m3.cpp b/src/mame/machine/nb1413m3.cpp
index 2ceb65ddc1b..92efbb0c1fe 100644
--- a/src/mame/machine/nb1413m3.cpp
+++ b/src/mame/machine/nb1413m3.cpp
@@ -107,7 +107,7 @@ void nb1413m3_device::device_timer(emu_timer &timer, device_timer_id id, int par
timer_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in nb1413m3_device::device_timer");
+ assert_always(false, "Unknown id in nb1413m3_device::device_timer");
}
}
diff --git a/src/mame/machine/opwolf.cpp b/src/mame/machine/opwolf.cpp
index 730749fe763..30728cdbe61 100644
--- a/src/mame/machine/opwolf.cpp
+++ b/src/mame/machine/opwolf.cpp
@@ -488,7 +488,7 @@ void opwolf_state::device_timer(emu_timer &timer, device_timer_id id, int param,
cchip_timer(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in opwolf_state::device_timer");
+ assert_always(false, "Unknown id in opwolf_state::device_timer");
}
}
diff --git a/src/mame/machine/osborne1.cpp b/src/mame/machine/osborne1.cpp
index 26fbcb8b9a2..cd649cef91a 100644
--- a/src/mame/machine/osborne1.cpp
+++ b/src/mame/machine/osborne1.cpp
@@ -364,7 +364,7 @@ void osborne1_state::device_timer(emu_timer &timer, device_timer_id id, int para
update_acia_rxc_txc();
break;
default:
- assert_always(FALSE, "Unknown id in osborne1_state::device_timer");
+ assert_always(false, "Unknown id in osborne1_state::device_timer");
}
}
diff --git a/src/mame/machine/pc1251.cpp b/src/mame/machine/pc1251.cpp
index 126d1810d94..65076ae58bf 100644
--- a/src/mame/machine/pc1251.cpp
+++ b/src/mame/machine/pc1251.cpp
@@ -113,7 +113,7 @@ void pc1251_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_power = 0;
break;
default:
- assert_always(FALSE, "Unknown id in pc1251_state::device_timer");
+ assert_always(false, "Unknown id in pc1251_state::device_timer");
}
}
diff --git a/src/mame/machine/pc1350.cpp b/src/mame/machine/pc1350.cpp
index ad439a3e523..89cfd7b64da 100644
--- a/src/mame/machine/pc1350.cpp
+++ b/src/mame/machine/pc1350.cpp
@@ -93,7 +93,7 @@ void pc1350_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_power=0;
break;
default:
- assert_always(FALSE, "Unknown id in pc1350_state::device_timer");
+ assert_always(false, "Unknown id in pc1350_state::device_timer");
}
}
diff --git a/src/mame/machine/pc1401.cpp b/src/mame/machine/pc1401.cpp
index 64f28f77b12..2924e405ad4 100644
--- a/src/mame/machine/pc1401.cpp
+++ b/src/mame/machine/pc1401.cpp
@@ -128,7 +128,7 @@ void pc1401_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_power = 0;
break;
default:
- assert_always(FALSE, "Unknown id in pc1401_state::device_timer");
+ assert_always(false, "Unknown id in pc1401_state::device_timer");
}
}
diff --git a/src/mame/machine/pc1403.cpp b/src/mame/machine/pc1403.cpp
index f477573c43a..db97958690b 100644
--- a/src/mame/machine/pc1403.cpp
+++ b/src/mame/machine/pc1403.cpp
@@ -155,7 +155,7 @@ void pc1403_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_power=0;
break;
default:
- assert_always(FALSE, "Unknown id in pc1403_state::device_timer");
+ assert_always(false, "Unknown id in pc1403_state::device_timer");
}
}
diff --git a/src/mame/machine/pmd85.cpp b/src/mame/machine/pmd85.cpp
index 7ce7b4ef4a5..5bcc0cdcdae 100644
--- a/src/mame/machine/pmd85.cpp
+++ b/src/mame/machine/pmd85.cpp
@@ -658,7 +658,7 @@ void pmd85_state::device_timer(emu_timer &timer, device_timer_id id, int param,
pmd85_cassette_timer_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in pmd85_state::device_timer");
+ assert_always(false, "Unknown id in pmd85_state::device_timer");
}
}
diff --git a/src/mame/machine/poly88.cpp b/src/mame/machine/poly88.cpp
index 6f499517821..11a8ed5de3e 100644
--- a/src/mame/machine/poly88.cpp
+++ b/src/mame/machine/poly88.cpp
@@ -28,7 +28,7 @@ void poly88_state::device_timer(emu_timer &timer, device_timer_id id, int param,
poly88_cassette_timer_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in poly88_state::device_timer");
+ assert_always(false, "Unknown id in poly88_state::device_timer");
}
}
diff --git a/src/mame/machine/radio86.cpp b/src/mame/machine/radio86.cpp
index 6c2cd63ae29..8c083958504 100644
--- a/src/mame/machine/radio86.cpp
+++ b/src/mame/machine/radio86.cpp
@@ -122,7 +122,7 @@ void radio86_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_bank1->set_entry(0);
break;
default:
- assert_always(FALSE, "Unknown id in radio86_state::device_timer");
+ assert_always(false, "Unknown id in radio86_state::device_timer");
}
}
diff --git a/src/mame/machine/samcoupe.cpp b/src/mame/machine/samcoupe.cpp
index a8a62c357d7..fa7a5fe80ca 100644
--- a/src/mame/machine/samcoupe.cpp
+++ b/src/mame/machine/samcoupe.cpp
@@ -119,7 +119,7 @@ void samcoupe_state::samcoupe_install_ext_mem(address_space &space)
else
mem = nullptr;
- samcoupe_update_bank(space, 3, mem, FALSE);
+ samcoupe_update_bank(space, 3, mem, false);
/* bank 4 */
if (m_hext >> 6 < m_ram->size() >> 20)
@@ -127,7 +127,7 @@ void samcoupe_state::samcoupe_install_ext_mem(address_space &space)
else
mem = nullptr;
- samcoupe_update_bank(space, 4, mem, FALSE);
+ samcoupe_update_bank(space, 4, mem, false);
}
@@ -145,12 +145,12 @@ void samcoupe_state::samcoupe_update_memory(address_space &space)
memory = &m_ram->pointer()[(m_lmpr & page_mask) * 0x4000];
else
memory = nullptr; /* Attempt to page in non existant ram region */
- is_readonly = FALSE;
+ is_readonly = false;
}
else
{
memory = rom; /* Rom0 paged in */
- is_readonly = TRUE;
+ is_readonly = true;
}
samcoupe_update_bank(space, 1, memory, is_readonly);
@@ -160,7 +160,7 @@ void samcoupe_state::samcoupe_update_memory(address_space &space)
memory = &m_ram->pointer()[((m_lmpr + 1) & page_mask) * 0x4000];
else
memory = nullptr; /* Attempt to page in non existant ram region */
- samcoupe_update_bank(space, 2, memory, FALSE);
+ samcoupe_update_bank(space, 2, memory, false);
/* only update bank 3 and 4 when external memory is not enabled */
if (m_hmpr & HMPR_MCNTRL)
@@ -174,14 +174,14 @@ void samcoupe_state::samcoupe_update_memory(address_space &space)
memory = &m_ram->pointer()[(m_hmpr & page_mask)*0x4000];
else
memory = nullptr; /* Attempt to page in non existant ram region */
- samcoupe_update_bank(space, 3, memory, FALSE);
+ samcoupe_update_bank(space, 3, memory, false);
/* BANK4 */
if (m_lmpr & LMPR_ROM1) /* Is Rom1 paged in at bank 4 */
{
memory = rom + 0x4000;
- is_readonly = TRUE;
+ is_readonly = true;
}
else
{
@@ -189,9 +189,9 @@ void samcoupe_state::samcoupe_update_memory(address_space &space)
memory = &m_ram->pointer()[((m_hmpr + 1) & page_mask) * 0x4000];
else
memory = nullptr; /* Attempt to page in non existant ram region */
- is_readonly = FALSE;
+ is_readonly = false;
}
- samcoupe_update_bank(space, 4, memory, FALSE);
+ samcoupe_update_bank(space, 4, memory, false);
}
/* video memory location */
diff --git a/src/mame/machine/snes.cpp b/src/mame/machine/snes.cpp
index 4c0030abf77..3b688b45e03 100644
--- a/src/mame/machine/snes.cpp
+++ b/src/mame/machine/snes.cpp
@@ -69,7 +69,7 @@ void snes_state::device_timer(emu_timer &timer, device_timer_id id, int param, v
snes_hblank_tick(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in snes_state::device_timer");
+ assert_always(false, "Unknown id in snes_state::device_timer");
}
}
diff --git a/src/mame/machine/sorcerer.cpp b/src/mame/machine/sorcerer.cpp
index 9300588e6fb..b140bf7094e 100644
--- a/src/mame/machine/sorcerer.cpp
+++ b/src/mame/machine/sorcerer.cpp
@@ -41,7 +41,7 @@ void sorcerer_state::device_timer(emu_timer &timer, device_timer_id id, int para
sorcerer_reset(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in sorcerer_state::device_timer");
+ assert_always(false, "Unknown id in sorcerer_state::device_timer");
}
}
diff --git a/src/mame/machine/special.cpp b/src/mame/machine/special.cpp
index 1bd7b492b7d..9f1e23b3631 100644
--- a/src/mame/machine/special.cpp
+++ b/src/mame/machine/special.cpp
@@ -139,7 +139,7 @@ void special_state::device_timer(emu_timer &timer, device_timer_id id, int param
break;
}
default:
- assert_always(FALSE, "Unknown id in special_state::device_timer");
+ assert_always(false, "Unknown id in special_state::device_timer");
}
}
diff --git a/src/mame/machine/stfight.cpp b/src/mame/machine/stfight.cpp
index 9ce6b1aee62..d8c8cfe2a28 100644
--- a/src/mame/machine/stfight.cpp
+++ b/src/mame/machine/stfight.cpp
@@ -135,7 +135,7 @@ void stfight_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_maincpu->set_input_line_and_vector(0, HOLD_LINE, 0xd7);
break;
default:
- assert_always(FALSE, "Unknown id in stfight_state::device_timer");
+ assert_always(false, "Unknown id in stfight_state::device_timer");
}
}
diff --git a/src/mame/machine/swtpc09.cpp b/src/mame/machine/swtpc09.cpp
index e34554d64fa..7f325b2a2b0 100644
--- a/src/mame/machine/swtpc09.cpp
+++ b/src/mame/machine/swtpc09.cpp
@@ -208,14 +208,14 @@ void swtpc09_state::swtpc09_irq_handler(uint8_t peripheral, uint8_t state)
if (!m_active_interrupt && m_interrupt) //no active interrupt and it needs to be asserted
{
m_maincpu->set_input_line(INPUT_LINE_IRQ0, ASSERT_LINE);
- m_active_interrupt=TRUE;
+ m_active_interrupt=true;
LOG(("swtpc09_irq_assert %02X\n", peripheral));
}
else if (m_active_interrupt && !m_interrupt) //active interrupt and it needs to be cleared
{
m_maincpu->set_input_line(INPUT_LINE_IRQ0, CLEAR_LINE);
LOG(("swtpc09_irq_clear %02X\n", peripheral));
- m_active_interrupt=FALSE;
+ m_active_interrupt=false;
}
}
@@ -779,7 +779,7 @@ DRIVER_INIT_MEMBER( swtpc09_state, swtpc09 )
m_fdc_status = 0; // for floppy controller
m_system_type = FLEX_DMF2;
m_interrupt = 0;
- m_active_interrupt = FALSE;
+ m_active_interrupt = false;
/* reset the 6844 */
for (i = 0; i < 4; i++)
@@ -801,7 +801,7 @@ DRIVER_INIT_MEMBER( swtpc09_state, swtpc09i )
m_fdc_status = 0; // for floppy controller
m_system_type = FLEX_DC4_PIAIDE;
m_interrupt = 0;
- m_active_interrupt = FALSE;
+ m_active_interrupt = false;
/* reset the 6844 */
for (i = 0; i < 4; i++)
@@ -823,7 +823,7 @@ DRIVER_INIT_MEMBER( swtpc09_state, swtpc09u )
m_fdc_status = 0; // for floppy controller
m_system_type = UNIFLEX_DMF2;
m_interrupt = 0;
- m_active_interrupt = FALSE;
+ m_active_interrupt = false;
/* reset the 6844 */
for (i = 0; i < 4; i++)
@@ -846,7 +846,7 @@ DRIVER_INIT_MEMBER( swtpc09_state, swtpc09d3 )
m_via_ca1_input = 0;
m_system_type = UNIFLEX_DMF3;
m_interrupt = 0;
- m_active_interrupt = FALSE;
+ m_active_interrupt = false;
/* reset the 6844 */
diff --git a/src/mame/machine/ut88.cpp b/src/mame/machine/ut88.cpp
index b9307a8fe1e..caaa2a2542d 100644
--- a/src/mame/machine/ut88.cpp
+++ b/src/mame/machine/ut88.cpp
@@ -48,7 +48,7 @@ void ut88_state::device_timer(emu_timer &timer, device_timer_id id, int param, v
timer_set(attotime::from_hz(60), TIMER_UPDATE_DISPLAY);
break;
default:
- assert_always(FALSE, "Unknown id in ut88_state::device_timer");
+ assert_always(false, "Unknown id in ut88_state::device_timer");
}
}
diff --git a/src/mame/machine/vectrex.cpp b/src/mame/machine/vectrex.cpp
index 1c6a7f72dee..dda048384f4 100644
--- a/src/mame/machine/vectrex.cpp
+++ b/src/mame/machine/vectrex.cpp
@@ -74,7 +74,7 @@ void vectrex_state::device_timer(emu_timer &timer, device_timer_id id, int param
update_signal(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in vectrex_state::device_timer");
+ assert_always(false, "Unknown id in vectrex_state::device_timer");
}
}
diff --git a/src/mame/machine/volfied.cpp b/src/mame/machine/volfied.cpp
index e324c186123..93887ccaecd 100644
--- a/src/mame/machine/volfied.cpp
+++ b/src/mame/machine/volfied.cpp
@@ -287,7 +287,7 @@ void volfied_state::device_timer(emu_timer &timer, device_timer_id id, int param
volfied_timer_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in volfied_state::device_timer");
+ assert_always(false, "Unknown id in volfied_state::device_timer");
}
}
diff --git a/src/mame/video/amiga.cpp b/src/mame/video/amiga.cpp
index 153915e9a58..0f7b6b9a192 100644
--- a/src/mame/video/amiga.cpp
+++ b/src/mame/video/amiga.cpp
@@ -192,7 +192,7 @@ void amiga_copper_setpc(running_machine &machine, uint32_t pc)
state->logerror("copper_setpc(%06x)\n", pc);
state->m_copper_pc = pc;
- state->m_copper_waiting = FALSE;
+ state->m_copper_waiting = false;
}
@@ -224,7 +224,7 @@ int amiga_copper_execute_next(running_machine &machine, int xpos)
if ((curpos & state->m_copper_waitmask) >= (state->m_copper_waitval & state->m_copper_waitmask) &&
(!state->m_copper_waitblit || !(CUSTOM_REG(REG_DMACON) & DMACON_BBUSY)))
{
- state->m_copper_waiting = FALSE;
+ state->m_copper_waiting = false;
#if GUESS_COPPER_OFFSET
return xpos + COPPER_CYCLES_TO_PIXELS(1 + state->m_wait_offset);
#else
@@ -284,8 +284,8 @@ int amiga_copper_execute_next(running_machine &machine, int xpos)
state->m_copper_waitval = 0xffff;
state->m_copper_waitmask = 0xffff;
- state->m_copper_waitblit = FALSE;
- state->m_copper_waiting = TRUE;
+ state->m_copper_waitblit = false;
+ state->m_copper_waiting = true;
return 511;
}
@@ -309,7 +309,7 @@ int amiga_copper_execute_next(running_machine &machine, int xpos)
if (LOG_COPPER)
state->logerror(" Waiting for %04x & %04x (currently %04x)\n", state->m_copper_waitval, state->m_copper_waitmask, (state->m_last_scanline << 8) | (xpos >> 1));
- state->m_copper_waiting = TRUE;
+ state->m_copper_waiting = true;
}
/* handle a skip */
diff --git a/src/mame/video/arcadia.cpp b/src/mame/video/arcadia.cpp
index 05bd523d840..36e3c5cd6b3 100644
--- a/src/mame/video/arcadia.cpp
+++ b/src/mame/video/arcadia.cpp
@@ -477,7 +477,7 @@ void arcadia_state::draw_char(uint8_t *ch, int charcode, int y, int x)
void arcadia_state::vh_draw_line(int y, uint8_t chars1[16])
{
int x, ch, j, h;
- int graphics = m_graphics;
+ bool graphics = m_graphics;
h = m_doublescan ? 16 : 8 ;
if (m_bitmap->height() - m_line < h)
@@ -495,8 +495,8 @@ void arcadia_state::vh_draw_line(int y, uint8_t chars1[16])
{
switch (ch)
{
- case 0xc0: graphics=TRUE;break;
- case 0x40: graphics=FALSE;break;
+ case 0xc0: graphics=true;break;
+ case 0x40: graphics=false;break;
// case 0x80:
// alien invaders shields are empty 0x80
// popmessage(5, "graphics code 0x80 used");
@@ -514,9 +514,9 @@ int arcadia_state::sprite_collision(int n1, int n2)
{
int k, b1, b2, x;
if (m_pos[n1].x+8<=m_pos[n2].x)
- return FALSE;
+ return false;
if (m_pos[n1].x>=m_pos[n2].x+8)
- return FALSE;
+ return false;
for (k=0; k<8; k++)
{
@@ -532,9 +532,9 @@ int arcadia_state::sprite_collision(int n1, int n2)
if (x>0)
b1>>=x;
if (b1&b2)
- return TRUE;
+ return true;
}
- return FALSE;
+ return false;
}
@@ -547,7 +547,7 @@ void arcadia_state::draw_sprites()
m_reg.d.collision_sprite|=0x3f;
for (i=0; i<4; i++)
{
- int doublescan = FALSE;
+ int doublescan = false;
if (m_pos[i].y<=-YPOS) continue;
if (m_pos[i].y>=m_bitmap->height()-YPOS-8) continue;
if (m_pos[i].x<=-XPOS) continue;
@@ -557,19 +557,19 @@ void arcadia_state::draw_sprites()
{
case 0:
color=(m_reg.d.pal[3]>>3)&7;
- doublescan=m_reg.d.pal[3]&0x80?FALSE:TRUE;
+ doublescan=m_reg.d.pal[3]&0x80?false:true;
break;
case 1:
color=m_reg.d.pal[3]&7;
- doublescan=m_reg.d.pal[3]&0x40?FALSE:TRUE;
+ doublescan=m_reg.d.pal[3]&0x40?false:true;
break;
case 2:
color=(m_reg.d.pal[2]>>3)&7;
- doublescan=m_reg.d.pal[2]&0x80?FALSE:TRUE;
+ doublescan=m_reg.d.pal[2]&0x80?false:true;
break;
case 3:
color=m_reg.d.pal[2]&7;
- doublescan=m_reg.d.pal[2]&0x40?FALSE:TRUE;
+ doublescan=m_reg.d.pal[2]&0x40?false:true;
break;
}
for (k=0; k<8; k++)
diff --git a/src/mame/video/astrocde.cpp b/src/mame/video/astrocde.cpp
index 467fe56e62a..1efd9c9f14d 100644
--- a/src/mame/video/astrocde.cpp
+++ b/src/mame/video/astrocde.cpp
@@ -384,7 +384,7 @@ void astrocde_state::device_timer(emu_timer &timer, device_timer_id id, int para
scanline_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in astrocde_state::device_timer");
+ assert_always(false, "Unknown id in astrocde_state::device_timer");
}
}
diff --git a/src/mame/video/btime.cpp b/src/mame/video/btime.cpp
index 30711ffe8c7..f0341bb9c6a 100644
--- a/src/mame/video/btime.cpp
+++ b/src/mame/video/btime.cpp
@@ -417,10 +417,10 @@ uint32_t btime_state::screen_update_btime(screen_device &screen, bitmap_ind16 &b
}
draw_background(bitmap, cliprect, m_btime_tilemap, 0);
- draw_chars(bitmap, cliprect, TRUE, 0, -1);
+ draw_chars(bitmap, cliprect, true, 0, -1);
}
else
- draw_chars(bitmap, cliprect, FALSE, 0, -1);
+ draw_chars(bitmap, cliprect, false, 0, -1);
draw_sprites(bitmap, cliprect, 0, 1, 0, m_videoram, 0x20);
@@ -430,7 +430,7 @@ uint32_t btime_state::screen_update_btime(screen_device &screen, bitmap_ind16 &b
uint32_t btime_state::screen_update_eggs(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- draw_chars(bitmap, cliprect, FALSE, 0, -1);
+ draw_chars(bitmap, cliprect, false, 0, -1);
draw_sprites(bitmap, cliprect, 0, 0, 0, m_videoram, 0x20);
return 0;
@@ -439,7 +439,7 @@ uint32_t btime_state::screen_update_eggs(screen_device &screen, bitmap_ind16 &bi
uint32_t btime_state::screen_update_lnc(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- draw_chars(bitmap, cliprect, FALSE, 0, -1);
+ draw_chars(bitmap, cliprect, false, 0, -1);
draw_sprites(bitmap, cliprect, 0, 1, 2, m_videoram, 0x20);
return 0;
@@ -451,10 +451,10 @@ uint32_t btime_state::screen_update_zoar(screen_device &screen, bitmap_ind16 &bi
if (m_bnj_scroll1 & 0x04)
{
draw_background(bitmap, cliprect, m_zoar_scrollram, m_btime_palette);
- draw_chars(bitmap, cliprect, TRUE, m_btime_palette + 1, -1);
+ draw_chars(bitmap, cliprect, true, m_btime_palette + 1, -1);
}
else
- draw_chars(bitmap, cliprect, FALSE, m_btime_palette + 1, -1);
+ draw_chars(bitmap, cliprect, false, m_btime_palette + 1, -1);
/* The order is important for correct priorities */
draw_sprites(bitmap, cliprect, m_btime_palette + 1, 1, 2, m_videoram + 0x1f, 0x20);
@@ -499,13 +499,13 @@ uint32_t btime_state::screen_update_bnj(screen_device &screen, bitmap_ind16 &bit
/* copy the low priority characters followed by the sprites
then the high priority characters */
- draw_chars(bitmap, cliprect, TRUE, 0, 1);
+ draw_chars(bitmap, cliprect, true, 0, 1);
draw_sprites(bitmap, cliprect, 0, 0, 0, m_videoram, 0x20);
- draw_chars(bitmap, cliprect, TRUE, 0, 0);
+ draw_chars(bitmap, cliprect, true, 0, 0);
}
else
{
- draw_chars(bitmap, cliprect, FALSE, 0, -1);
+ draw_chars(bitmap, cliprect, false, 0, -1);
draw_sprites(bitmap, cliprect, 0, 0, 0, m_videoram, 0x20);
}
@@ -537,7 +537,7 @@ uint32_t btime_state::screen_update_cookrace(screen_device &screen, bitmap_ind16
8*sx,8*sy);
}
- draw_chars(bitmap, cliprect, TRUE, 0, -1);
+ draw_chars(bitmap, cliprect, true, 0, -1);
draw_sprites(bitmap, cliprect, 0, 1, 0, m_videoram, 0x20);
return 0;
@@ -546,7 +546,7 @@ uint32_t btime_state::screen_update_cookrace(screen_device &screen, bitmap_ind16
uint32_t btime_state::screen_update_disco(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- draw_chars(bitmap, cliprect, FALSE, m_btime_palette, -1);
+ draw_chars(bitmap, cliprect, false, m_btime_palette, -1);
draw_sprites(bitmap, cliprect, m_btime_palette, 0, 0, m_spriteram, 1);
return 0;
diff --git a/src/mame/video/cchasm.cpp b/src/mame/video/cchasm.cpp
index b7b1e3394e2..e97437241ef 100644
--- a/src/mame/video/cchasm.cpp
+++ b/src/mame/video/cchasm.cpp
@@ -27,7 +27,7 @@ void cchasm_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_maincpu->set_input_line(2, ASSERT_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in cchasm_state::device_timer");
+ assert_always(false, "Unknown id in cchasm_state::device_timer");
}
}
diff --git a/src/mame/video/cischeat.cpp b/src/mame/video/cischeat.cpp
index c73e906811d..6042562e7d5 100644
--- a/src/mame/video/cischeat.cpp
+++ b/src/mame/video/cischeat.cpp
@@ -887,8 +887,8 @@ uint32_t cischeat_state::screen_update_bigrun(screen_device &screen, bitmap_ind1
for (i = 7; i >= 4; i--)
{ /* bitmap, road, min_priority, max_priority, transparency */
- if (active_layers1 & 0x10) cischeat_draw_road(bitmap,cliprect,0,i,i,FALSE);
- if (active_layers1 & 0x20) cischeat_draw_road(bitmap,cliprect,1,i,i,TRUE);
+ if (active_layers1 & 0x10) cischeat_draw_road(bitmap,cliprect,0,i,i,false);
+ if (active_layers1 & 0x20) cischeat_draw_road(bitmap,cliprect,1,i,i,true);
}
flag = 0;
@@ -897,8 +897,8 @@ uint32_t cischeat_state::screen_update_bigrun(screen_device &screen, bitmap_ind1
for (i = 3; i >= 0; i--)
{ /* bitmap, road, min_priority, max_priority, transparency */
- if (active_layers1 & 0x10) cischeat_draw_road(bitmap,cliprect,0,i,i,TRUE);
- if (active_layers1 & 0x20) cischeat_draw_road(bitmap,cliprect,1,i,i,TRUE);
+ if (active_layers1 & 0x10) cischeat_draw_road(bitmap,cliprect,0,i,i,true);
+ if (active_layers1 & 0x20) cischeat_draw_road(bitmap,cliprect,1,i,i,true);
}
if (active_layers1 & 0x08) bigrun_draw_sprites(bitmap,cliprect,15,0);
@@ -932,8 +932,8 @@ uint32_t cischeat_state::screen_update_cischeat(screen_device &screen, bitmap_in
bitmap.fill(0, cliprect);
/* bitmap, road, priority, transparency */
- if (active_layers1 & 0x10) cischeat_draw_road(bitmap,cliprect,0,7,5,FALSE);
- if (active_layers1 & 0x20) cischeat_draw_road(bitmap,cliprect,1,7,5,TRUE);
+ if (active_layers1 & 0x10) cischeat_draw_road(bitmap,cliprect,0,7,5,false);
+ if (active_layers1 & 0x20) cischeat_draw_road(bitmap,cliprect,1,7,5,true);
flag = 0;
cischeat_tmap_DRAW(0)
@@ -941,11 +941,11 @@ uint32_t cischeat_state::screen_update_cischeat(screen_device &screen, bitmap_in
cischeat_tmap_DRAW(1)
if (active_layers1 & 0x08) cischeat_draw_sprites(bitmap,cliprect,15,3);
- if (active_layers1 & 0x10) cischeat_draw_road(bitmap,cliprect,0,4,1,TRUE);
- if (active_layers1 & 0x20) cischeat_draw_road(bitmap,cliprect,1,4,1,TRUE);
+ if (active_layers1 & 0x10) cischeat_draw_road(bitmap,cliprect,0,4,1,true);
+ if (active_layers1 & 0x20) cischeat_draw_road(bitmap,cliprect,1,4,1,true);
if (active_layers1 & 0x08) cischeat_draw_sprites(bitmap,cliprect,2,2);
- if (active_layers1 & 0x10) cischeat_draw_road(bitmap,cliprect,0,0,0,TRUE);
- if (active_layers1 & 0x20) cischeat_draw_road(bitmap,cliprect,1,0,0,TRUE);
+ if (active_layers1 & 0x10) cischeat_draw_road(bitmap,cliprect,0,0,0,true);
+ if (active_layers1 & 0x20) cischeat_draw_road(bitmap,cliprect,1,0,0,true);
if (active_layers1 & 0x08) cischeat_draw_sprites(bitmap,cliprect,1,0);
cischeat_tmap_DRAW(2)
@@ -982,8 +982,8 @@ uint32_t cischeat_state::screen_update_f1gpstar(screen_device &screen, bitmap_in
/* 1: clouds 5, grad 7, road 0 2: clouds 5, grad 7, road 0, tunnel roof 0 */
/* road 1!! 0!! */ /* bitmap, road, min_priority, max_priority, transparency */
- if (active_layers1 & 0x20) f1gpstar_draw_road(bitmap,cliprect,1,6,7,TRUE);
- if (active_layers1 & 0x10) f1gpstar_draw_road(bitmap,cliprect,0,6,7,TRUE);
+ if (active_layers1 & 0x20) f1gpstar_draw_road(bitmap,cliprect,1,6,7,true);
+ if (active_layers1 & 0x10) f1gpstar_draw_road(bitmap,cliprect,0,6,7,true);
flag = 0;
cischeat_tmap_DRAW(0)
@@ -991,14 +991,14 @@ uint32_t cischeat_state::screen_update_f1gpstar(screen_device &screen, bitmap_in
cischeat_tmap_DRAW(1)
/* road 1!! 0!! */ /* bitmap, road, min_priority, max_priority, transparency */
- if (active_layers1 & 0x20) f1gpstar_draw_road(bitmap,cliprect,1,1,5,TRUE);
- if (active_layers1 & 0x10) f1gpstar_draw_road(bitmap,cliprect,0,1,5,TRUE);
+ if (active_layers1 & 0x20) f1gpstar_draw_road(bitmap,cliprect,1,1,5,true);
+ if (active_layers1 & 0x10) f1gpstar_draw_road(bitmap,cliprect,0,1,5,true);
if (active_layers1 & 0x08) cischeat_draw_sprites(bitmap,cliprect,15,2);
/* road 1!! 0!! */ /* bitmap, road, min_priority, max_priority, transparency */
- if (active_layers1 & 0x20) f1gpstar_draw_road(bitmap,cliprect,1,0,0,TRUE);
- if (active_layers1 & 0x10) f1gpstar_draw_road(bitmap,cliprect,0,0,0,TRUE);
+ if (active_layers1 & 0x20) f1gpstar_draw_road(bitmap,cliprect,1,0,0,true);
+ if (active_layers1 & 0x10) f1gpstar_draw_road(bitmap,cliprect,0,0,0,true);
if (active_layers1 & 0x08) cischeat_draw_sprites(bitmap,cliprect,1,1);
cischeat_tmap_DRAW(2)
diff --git a/src/mame/video/dcheese.cpp b/src/mame/video/dcheese.cpp
index 0c21ac95555..37c0fe12b69 100644
--- a/src/mame/video/dcheese.cpp
+++ b/src/mame/video/dcheese.cpp
@@ -83,7 +83,7 @@ void dcheese_state::device_timer(emu_timer &timer, device_timer_id id, int param
dcheese_signal_irq(param);
break;
default:
- assert_always(FALSE, "Unknown id in dcheese_state::device_timer");
+ assert_always(false, "Unknown id in dcheese_state::device_timer");
}
}
diff --git a/src/mame/video/exidy.cpp b/src/mame/video/exidy.cpp
index 83ad3f224ae..01a7ee98540 100644
--- a/src/mame/video/exidy.cpp
+++ b/src/mame/video/exidy.cpp
@@ -270,7 +270,7 @@ void exidy_state::device_timer(emu_timer &timer, device_timer_id id, int param,
break;
default:
- assert_always(FALSE, "Unknown id in exidy_state::device_timer");
+ assert_always(false, "Unknown id in exidy_state::device_timer");
}
}
diff --git a/src/mame/video/exidy440.cpp b/src/mame/video/exidy440.cpp
index 10dd35f4381..0a5e8580699 100644
--- a/src/mame/video/exidy440.cpp
+++ b/src/mame/video/exidy440.cpp
@@ -410,7 +410,7 @@ void exidy440_state::update_screen(screen_device &screen, bitmap_ind16 &bitmap,
uint32_t exidy440_state::screen_update_exidy440(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
/* redraw the screen */
- update_screen(screen, bitmap, cliprect, 0, TRUE);
+ update_screen(screen, bitmap, cliprect, 0, true);
/* generate an interrupt once/frame for the beam */
if (cliprect.max_y == screen.visible_area().max_y)
@@ -442,7 +442,7 @@ uint32_t exidy440_state::screen_update_exidy440(screen_device &screen, bitmap_in
uint32_t exidy440_state::screen_update_topsecex(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
/* redraw the screen */
- update_screen(screen, bitmap, cliprect, m_topsecex_yscroll, FALSE);
+ update_screen(screen, bitmap, cliprect, m_topsecex_yscroll, false);
return 0;
}
diff --git a/src/mame/video/firetrk.cpp b/src/mame/video/firetrk.cpp
index 080e574515c..492c904852d 100644
--- a/src/mame/video/firetrk.cpp
+++ b/src/mame/video/firetrk.cpp
@@ -358,14 +358,14 @@ uint32_t firetrk_state::screen_update_firetrk(screen_device &screen, bitmap_ind1
m_tilemap2->draw(screen, m_helper1, playfield_window, 0, 0);
m_helper2.fill(0xff, playfield_window);
- firetrk_draw_car(m_helper2, playfield_window, 0, FALSE);
+ firetrk_draw_car(m_helper2, playfield_window, 0, false);
check_collision(0);
m_helper2.fill(0xff, playfield_window);
- firetrk_draw_car(m_helper2, playfield_window, 1, FALSE);
+ firetrk_draw_car(m_helper2, playfield_window, 1, false);
check_collision(1);
- *m_blink = FALSE;
+ *m_blink = false;
}
return 0;
@@ -391,10 +391,10 @@ uint32_t firetrk_state::screen_update_superbug(screen_device &screen, bitmap_ind
m_tilemap2->draw(screen, m_helper1, playfield_window, 0, 0);
m_helper2.fill(0xff, playfield_window);
- superbug_draw_car(m_helper2, playfield_window, FALSE);
+ superbug_draw_car(m_helper2, playfield_window, false);
check_collision(0);
- *m_blink = FALSE;
+ *m_blink = false;
}
return 0;
@@ -411,8 +411,8 @@ uint32_t firetrk_state::screen_update_montecar(screen_device &screen, bitmap_ind
bitmap.fill(0x2c, cliprect);
m_tilemap1->draw(screen, bitmap, playfield_window, 0, 0);
- montecar_draw_car(bitmap, playfield_window, 0, FALSE);
- montecar_draw_car(bitmap, playfield_window, 1, FALSE);
+ montecar_draw_car(bitmap, playfield_window, 0, false);
+ montecar_draw_car(bitmap, playfield_window, 1, false);
draw_text(bitmap, cliprect, m_alpha_num_ram + 0x00, 24, 0x20, 0x08);
draw_text(bitmap, cliprect, m_alpha_num_ram + 0x20, 16, 0x20, 0x08);
@@ -421,11 +421,11 @@ uint32_t firetrk_state::screen_update_montecar(screen_device &screen, bitmap_ind
m_tilemap2->draw(screen, m_helper1, playfield_window, 0, 0);
m_helper2.fill(0xff, playfield_window);
- montecar_draw_car(m_helper2, playfield_window, 0, TRUE);
+ montecar_draw_car(m_helper2, playfield_window, 0, true);
check_collision(0);
m_helper2.fill(0xff, playfield_window);
- montecar_draw_car(m_helper2, playfield_window, 1, TRUE);
+ montecar_draw_car(m_helper2, playfield_window, 1, true);
check_collision(1);
}
diff --git a/src/mame/video/gaelco3d.cpp b/src/mame/video/gaelco3d.cpp
index 38f88d1ca64..e8721eee36c 100644
--- a/src/mame/video/gaelco3d.cpp
+++ b/src/mame/video/gaelco3d.cpp
@@ -385,7 +385,7 @@ WRITE32_MEMBER(gaelco3d_state::gaelco3d_render_w)
m_poly->render_poly(*m_screen, &m_polydata_buffer[0]);
m_polydata_count = 0;
}
- m_video_changed = TRUE;
+ m_video_changed = true;
}
#if DISPLAY_STATS
@@ -471,7 +471,7 @@ uint32_t gaelco3d_state::screen_update_gaelco3d(screen_device &screen, bitmap_in
if (m_video_changed)
copybitmap(bitmap, m_poly->screenbits(), 0,1, 0,0, cliprect);
ret = m_video_changed;
- m_video_changed = FALSE;
+ m_video_changed = false;
}
logerror("---update---\n");
diff --git a/src/mame/video/galaxian.cpp b/src/mame/video/galaxian.cpp
index e2e53d9a0cb..12fa18015c3 100644
--- a/src/mame/video/galaxian.cpp
+++ b/src/mame/video/galaxian.cpp
@@ -782,7 +782,7 @@ void galaxian_state::stars_init()
int i;
/* reset the blink and enabled states */
- m_stars_enabled = FALSE;
+ m_stars_enabled = false;
m_stars_blink_state = 0;
/* precalculate the RNG */
diff --git a/src/mame/video/galaxy.cpp b/src/mame/video/galaxy.cpp
index 7e67fbd29c4..f4eeef8a916 100644
--- a/src/mame/video/galaxy.cpp
+++ b/src/mame/video/galaxy.cpp
@@ -19,7 +19,7 @@ TIMER_CALLBACK_MEMBER(galaxy_state::gal_video)
{
address_space &space = m_maincpu->space(AS_PROGRAM);
int y, x;
- if (m_interrupts_enabled == TRUE)
+ if (m_interrupts_enabled == true)
{
uint8_t *gfx = m_region_gfx1->base();
uint8_t dat = (m_latch_value & 0x3c) >> 2;
@@ -123,12 +123,12 @@ void galaxy_state::video_start()
uint32_t galaxy_state::screen_update_galaxy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
m_gal_video_timer->adjust(attotime::zero, 0, attotime::never);
- if (m_interrupts_enabled == FALSE)
+ if (m_interrupts_enabled == false)
{
const rectangle black_area(0, 384 - 1, 0, 208 - 1);
m_bitmap.fill(0, black_area);
}
- m_interrupts_enabled = FALSE;
+ m_interrupts_enabled = false;
copybitmap(bitmap, m_bitmap, 0, 0, 0, 0, cliprect);
return 0;
}
diff --git a/src/mame/video/gameplan.cpp b/src/mame/video/gameplan.cpp
index d47a82923ed..8d70e38120c 100644
--- a/src/mame/video/gameplan.cpp
+++ b/src/mame/video/gameplan.cpp
@@ -51,7 +51,7 @@ void gameplan_state::device_timer(emu_timer &timer, device_timer_id id, int para
via_0_ca1_timer_callback(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in gameplan_state::device_timer");
+ assert_always(false, "Unknown id in gameplan_state::device_timer");
}
}
diff --git a/src/mame/video/gottlieb.cpp b/src/mame/video/gottlieb.cpp
index 1be6bd01568..e7fa9c62acd 100644
--- a/src/mame/video/gottlieb.cpp
+++ b/src/mame/video/gottlieb.cpp
@@ -69,8 +69,8 @@ WRITE8_MEMBER(gottlieb_state::gottlieb_laserdisc_video_control_w)
/* bit 2 video enable (0 = black screen) */
/* bit 3 genlock control (1 = show laserdisc image) */
- m_laserdisc->overlay_enable((data & 0x04) ? TRUE : FALSE);
- m_laserdisc->video_enable(((data & 0x0c) == 0x0c) ? TRUE : FALSE);
+ m_laserdisc->overlay_enable((data & 0x04) ? true : false);
+ m_laserdisc->video_enable(((data & 0x0c) == 0x0c) ? true : false);
/* configure the palette if the laserdisc is enabled */
m_transparent0 = (data >> 3) & 1;
@@ -142,7 +142,7 @@ void gottlieb_state::video_start()
4, resistances, m_weights, 180, 0,
4, resistances, m_weights, 180, 0,
4, resistances, m_weights, 180, 0);
- m_transparent0 = FALSE;
+ m_transparent0 = false;
/* configure the background tilemap */
m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(gottlieb_state::get_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
@@ -167,7 +167,7 @@ VIDEO_START_MEMBER(gottlieb_state,screwloo)
4, resistances, m_weights, 180, 0,
4, resistances, m_weights, 180, 0,
4, resistances, m_weights, 180, 0);
- m_transparent0 = FALSE;
+ m_transparent0 = false;
/* configure the background tilemap */
m_bg_tilemap = &machine().tilemap().create(*m_gfxdecode, tilemap_get_info_delegate(FUNC(gottlieb_state::get_screwloo_bg_tile_info),this), TILEMAP_SCAN_ROWS, 8, 8, 32, 32);
diff --git a/src/mame/video/hyhoo.cpp b/src/mame/video/hyhoo.cpp
index 7903dfa1f29..ab1baaa04db 100644
--- a/src/mame/video/hyhoo.cpp
+++ b/src/mame/video/hyhoo.cpp
@@ -61,7 +61,7 @@ void hyhoo_state::device_timer(emu_timer &timer, device_timer_id id, int param,
m_nb1413m3->m_busyflag = 1;
break;
default:
- assert_always(FALSE, "Unknown id in hyhoo_state::device_timer");
+ assert_always(false, "Unknown id in hyhoo_state::device_timer");
}
}
diff --git a/src/mame/video/jagobj.hxx b/src/mame/video/jagobj.hxx
index 41ad1f8a636..c11ff0f73f0 100644
--- a/src/mame/video/jagobj.hxx
+++ b/src/mame/video/jagobj.hxx
@@ -559,7 +559,7 @@ static inline uint8_t lookup_pixel(const uint32_t *src, int i, int pitch, int de
*
*************************************/
-uint32_t *jaguar_state::process_bitmap(uint16_t *scanline, uint32_t *objdata, int vc, int logit)
+uint32_t *jaguar_state::process_bitmap(uint16_t *scanline, uint32_t *objdata, int vc, bool logit)
{
/* extract minimal data */
uint32_t upper = objdata[0];
@@ -737,7 +737,7 @@ uint32_t *jaguar_state::process_bitmap(uint16_t *scanline, uint32_t *objdata, in
*
*************************************/
-uint32_t *jaguar_state::process_scaled_bitmap(uint16_t *scanline, uint32_t *objdata, int vc, int logit)
+uint32_t *jaguar_state::process_scaled_bitmap(uint16_t *scanline, uint32_t *objdata, int vc, bool logit)
{
/* extract data */
uint32_t upper = objdata[0];
@@ -953,7 +953,7 @@ uint32_t *jaguar_state::process_scaled_bitmap(uint16_t *scanline, uint32_t *objd
*
*************************************/
-uint32_t *jaguar_state::process_branch(uint32_t *objdata, int vc, int logit)
+uint32_t *jaguar_state::process_branch(uint32_t *objdata, int vc, bool logit)
{
uint32_t upper = objdata[0];
uint32_t lower = objdata[1];
@@ -1019,7 +1019,7 @@ void jaguar_state::process_object_list(int vc, uint16_t *scanline)
{
int done = 0, count = 0;
uint32_t *objdata;
- int logit;
+ bool logit;
int x;
/* erase the scanline first */
diff --git a/src/mame/video/lethalj.cpp b/src/mame/video/lethalj.cpp
index 068569629fc..f6242e519d2 100644
--- a/src/mame/video/lethalj.cpp
+++ b/src/mame/video/lethalj.cpp
@@ -110,7 +110,7 @@ void lethalj_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_maincpu->set_input_line(0, ASSERT_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in lethalj_state::device_timer");
+ assert_always(false, "Unknown id in lethalj_state::device_timer");
}
}
diff --git a/src/mame/video/m92.cpp b/src/mame/video/m92.cpp
index 9ddb6f7c334..1329b260427 100644
--- a/src/mame/video/m92.cpp
+++ b/src/mame/video/m92.cpp
@@ -56,7 +56,7 @@ void m92_state::device_timer(emu_timer &timer, device_timer_id id, int param, vo
m92_sprite_interrupt();
break;
default:
- assert_always(FALSE, "Unknown id in m92_state::device_timer");
+ assert_always(false, "Unknown id in m92_state::device_timer");
}
}
@@ -220,13 +220,13 @@ WRITE16_MEMBER(m92_state::m92_master_control_w)
/* update size (bit 2) */
if (m_pf_master_control[offset] & 0x04)
{
- layer->tmap->enable(FALSE);
+ layer->tmap->enable(false);
layer->wide_tmap->enable((~m_pf_master_control[offset] >> 4) & 1);
}
else
{
layer->tmap->enable((~m_pf_master_control[offset] >> 4) & 1);
- layer->wide_tmap->enable(FALSE);
+ layer->wide_tmap->enable(false);
}
/* mark everything dirty of the VRAM base or size changes */
diff --git a/src/mame/video/micro3d.cpp b/src/mame/video/micro3d.cpp
index 13e48322f46..fa15bf259f3 100644
--- a/src/mame/video/micro3d.cpp
+++ b/src/mame/video/micro3d.cpp
@@ -482,7 +482,7 @@ int micro3d_state::clip_triangle(micro3d_vtx *v, micro3d_vtx *vout, int num_vert
void micro3d_state::draw_triangles(uint32_t attr)
{
int i;
- int triangles = 0;
+ bool triangles = false;
int vertices = m_fifo_idx / 3;
int min_y = 0x3ff;
int max_y = 0;
@@ -548,7 +548,7 @@ void micro3d_state::draw_triangles(uint32_t attr)
micro3d_vtx a = vclip_list[0];
micro3d_vtx b = vclip_list[1];
- triangles = TRUE;
+ triangles = true;
a.x += m_x_mid;
a.y += m_y_mid;
@@ -589,7 +589,7 @@ void micro3d_state::draw_triangles(uint32_t attr)
}
}
- if (triangles == TRUE)
+ if (triangles == true)
rasterise_spans(min_y, max_y, attr);
}
diff --git a/src/mame/video/midtunit.cpp b/src/mame/video/midtunit.cpp
index 6105b83be55..075e3c366f1 100644
--- a/src/mame/video/midtunit.cpp
+++ b/src/mame/video/midtunit.cpp
@@ -589,7 +589,7 @@ void midtunit_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_maincpu->set_input_line(0, ASSERT_LINE);
break;
default:
- assert_always(FALSE, "Unknown id in midtunit_state::device_timer");
+ assert_always(false, "Unknown id in midtunit_state::device_timer");
}
}
diff --git a/src/mame/video/midvunit.cpp b/src/mame/video/midvunit.cpp
index 19e215939dc..2fb9ef2031d 100644
--- a/src/mame/video/midvunit.cpp
+++ b/src/mame/video/midvunit.cpp
@@ -47,7 +47,7 @@ void midvunit_state::device_timer(emu_timer &timer, device_timer_id id, int para
scanline_timer_cb(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in midvunit_state::device_timer");
+ assert_always(false, "Unknown id in midvunit_state::device_timer");
}
}
@@ -77,13 +77,13 @@ void midvunit_state::video_start()
save_item(NAME(m_dma_data_index));
save_item(NAME(m_page_control));
- m_video_changed = TRUE;
+ m_video_changed = true;
machine().save().register_postload(save_prepost_delegate(FUNC(midvunit_state::postload), this));
}
void midvunit_state::postload()
{
- m_video_changed = TRUE;
+ m_video_changed = true;
}
/*************************************
@@ -295,7 +295,7 @@ void midvunit_renderer::process_dma_queue()
{
/* if we're rendering to the same page we're viewing, it has changed */
if ((((m_state.m_page_control >> 2) ^ m_state.m_page_control) & 1) == 0 || WATCH_RENDER)
- m_state.m_video_changed = TRUE;
+ m_state.m_video_changed = true;
/* fill in the vertex data */
vertex_t vert[4];
@@ -420,7 +420,7 @@ WRITE32_MEMBER(midvunit_state::midvunit_page_control_w)
/* watch for the display page to change */
if ((m_page_control ^ data) & 1)
{
- m_video_changed = TRUE;
+ m_video_changed = true;
if (LOG_DMA && machine().input().code_pressed(KEYCODE_L))
logerror("##########################################################\n");
m_screen->update_partial(m_screen->vpos() - 1);
@@ -488,7 +488,7 @@ WRITE32_MEMBER(midvunit_state::midvunit_videoram_w)
{
int visbase = (m_page_control & 1) ? 0x40000 : 0x00000;
if ((offset & 0x40000) == visbase)
- m_video_changed = TRUE;
+ m_video_changed = true;
}
COMBINE_DATA(&m_videoram[offset]);
}
@@ -559,7 +559,7 @@ uint32_t midvunit_state::screen_update_midvunit(screen_device &screen, bitmap_in
/* if the video didn't change, indicate as much */
if (!m_video_changed)
return UPDATE_HAS_NOT_CHANGED;
- m_video_changed = FALSE;
+ m_video_changed = false;
/* determine the base of the videoram */
#if WATCH_RENDER
diff --git a/src/mame/video/midyunit.cpp b/src/mame/video/midyunit.cpp
index 32d56ccb96a..57266ea88f7 100644
--- a/src/mame/video/midyunit.cpp
+++ b/src/mame/video/midyunit.cpp
@@ -369,7 +369,7 @@ void midyunit_state::device_timer(emu_timer &timer, device_timer_id id, int para
autoerase_line(ptr, param);
break;
default:
- assert_always(FALSE, "Unknown id in midyunit_state::device_timer");
+ assert_always(false, "Unknown id in midyunit_state::device_timer");
}
}
diff --git a/src/mame/video/midzeus.cpp b/src/mame/video/midzeus.cpp
index f73e84fa393..ac2280cd234 100644
--- a/src/mame/video/midzeus.cpp
+++ b/src/mame/video/midzeus.cpp
@@ -71,7 +71,7 @@ public:
void render_poly(int32_t scanline, const extent_t& extent, const mz_poly_extra_data& object, int threadid);
void render_poly_solid_fixedz(int32_t scanline, const extent_t& extent, const mz_poly_extra_data& object, int threadid);
- void zeus_draw_quad(int long_fmt, const uint32_t *databuffer, uint32_t texdata, int logit);
+ void zeus_draw_quad(int long_fmt, const uint32_t *databuffer, uint32_t texdata, bool logit);
void zeus_draw_debug_quad(const rectangle& rect, const vertex_t* vert);
private:
@@ -401,7 +401,7 @@ uint32_t midzeus_state::screen_update_midzeus(screen_device &screen, bitmap_ind1
READ32_MEMBER(midzeus_state::zeus_r)
{
- int logit = (offset < 0xb0 || offset > 0xb7);
+ bool logit = (offset < 0xb0 || offset > 0xb7);
uint32_t result = m_zeusbase[offset & ~1];
switch (offset & ~1)
@@ -471,7 +471,7 @@ READ32_MEMBER(midzeus_state::zeus_r)
WRITE32_MEMBER(midzeus_state::zeus_w)
{
- int logit = zeus_enable_logging || ((offset < 0xb0 || offset > 0xb7) && (offset < 0xe0 || offset > 0xe1));
+ bool logit = zeus_enable_logging || ((offset < 0xb0 || offset > 0xb7) && (offset < 0xe0 || offset > 0xe1));
if (logit)
logerror("%06X:zeus_w", space.device().safe_pc());
@@ -494,7 +494,7 @@ WRITE32_MEMBER(midzeus_state::zeus_w)
*
*************************************/
-void midzeus_state::zeus_pointer_w(uint32_t which, uint32_t data, int logit)
+void midzeus_state::zeus_pointer_w(uint32_t which, uint32_t data, bool logit)
{
switch (which & 0xffffff)
{
@@ -562,7 +562,7 @@ void midzeus_state::zeus_pointer_w(uint32_t which, uint32_t data, int logit)
*
*************************************/
-void midzeus_state::zeus_register16_w(offs_t offset, uint16_t data, int logit)
+void midzeus_state::zeus_register16_w(offs_t offset, uint16_t data, bool logit)
{
/* writes to register $CC need to force a partial update */
if ((offset & ~1) == 0xcc)
@@ -586,7 +586,7 @@ void midzeus_state::zeus_register16_w(offs_t offset, uint16_t data, int logit)
}
-void midzeus_state::zeus_register32_w(offs_t offset, uint32_t data, int logit)
+void midzeus_state::zeus_register32_w(offs_t offset, uint32_t data, bool logit)
{
/* writes to register $CC need to force a partial update */
if ((offset & ~1) == 0xcc)
@@ -804,7 +804,7 @@ int midzeus_state::zeus_fifo_process(const uint32_t *data, int numwords)
case 0x00:
case 0x01:
if (numwords < 2 && data[0] != 0)
- return FALSE;
+ return false;
if (log_fifo)
log_fifo_command(data, numwords, "");
zeus_pointer_w(data[0] & 0xffffff, data[1], log_fifo);
@@ -828,7 +828,7 @@ int midzeus_state::zeus_fifo_process(const uint32_t *data, int numwords)
/* in model data, this is 0x19 */
case 0x18:
if (numwords < 2)
- return FALSE;
+ return false;
if (log_fifo)
log_fifo_command(data, numwords, " -- reg32");
zeus_register32_w((data[0] >> 16) & 0x7f, data[1], log_fifo);
@@ -850,7 +850,7 @@ int midzeus_state::zeus_fifo_process(const uint32_t *data, int numwords)
{
/* requires 8 words total */
if (numwords < 8)
- return FALSE;
+ return false;
if (log_fifo)
{
log_fifo_command(data, numwords, "");
@@ -882,7 +882,7 @@ int midzeus_state::zeus_fifo_process(const uint32_t *data, int numwords)
/* requires 13 words total */
if (numwords < 13)
- return FALSE;
+ return false;
if (log_fifo)
{
log_fifo_command(data, numwords, "");
@@ -931,7 +931,7 @@ int midzeus_state::zeus_fifo_process(const uint32_t *data, int numwords)
case 0x23:
case 0x2e:
if (numwords < 2)
- return FALSE;
+ return false;
if (log_fifo)
{
log_fifo_command(data, numwords, "");
@@ -951,7 +951,7 @@ int midzeus_state::zeus_fifo_process(const uint32_t *data, int numwords)
if (is_mk4b)
{
if (numwords < 2)
- return FALSE;
+ return false;
break;
}
@@ -959,7 +959,7 @@ int midzeus_state::zeus_fifo_process(const uint32_t *data, int numwords)
case 0x28:
case 0x30:
if (numwords < 4 || ((data[0] & 0x808000) && numwords < 10))
- return FALSE;
+ return false;
if (log_fifo)
log_fifo_command(data, numwords, " -- alt. quad and hack screen clear\n");
@@ -975,7 +975,7 @@ int midzeus_state::zeus_fifo_process(const uint32_t *data, int numwords)
else
{
uint32_t texdata = (m_zeusbase[0x06] << 16) | (m_zeusbase[0x00] >> 16);
- poly->zeus_draw_quad(FALSE, data, texdata, log_fifo);
+ poly->zeus_draw_quad(false, data, texdata, log_fifo);
}
break;
@@ -990,7 +990,7 @@ int midzeus_state::zeus_fifo_process(const uint32_t *data, int numwords)
/* 0x67: render model with inline texture info */
case 0x67:
if (numwords < 3)
- return FALSE;
+ return false;
if (log_fifo)
log_fifo_command(data, numwords, "");
zeus_objdata = data[1];
@@ -1003,7 +1003,7 @@ int midzeus_state::zeus_fifo_process(const uint32_t *data, int numwords)
log_fifo_command(data, numwords, "\n");
break;
}
- return TRUE;
+ return true;
}
@@ -1014,11 +1014,11 @@ int midzeus_state::zeus_fifo_process(const uint32_t *data, int numwords)
*
*************************************/
-void midzeus_state::zeus_draw_model(uint32_t texdata, int logit)
+void midzeus_state::zeus_draw_model(uint32_t texdata, bool logit)
{
uint32_t databuffer[32];
int databufcount = 0;
- int model_done = FALSE;
+ int model_done = false;
if (logit)
logerror(" -- model @ %08X\n", zeus_objdata);
@@ -1063,7 +1063,7 @@ void midzeus_state::zeus_draw_model(uint32_t texdata, int logit)
case 0x08:
if (logit)
logerror("end of model\n");
- model_done = TRUE;
+ model_done = true;
break;
case 0x0c: /* mk4/invasn */
@@ -1089,7 +1089,7 @@ void midzeus_state::zeus_draw_model(uint32_t texdata, int logit)
case 0x25: /* mk4 */
case 0x28: /* mk4r1 */
case 0x30: /* invasn */
- poly->zeus_draw_quad(TRUE, databuffer, texdata, logit);
+ poly->zeus_draw_quad(true, databuffer, texdata, logit);
break;
default:
@@ -1113,7 +1113,7 @@ void midzeus_state::zeus_draw_model(uint32_t texdata, int logit)
*
*************************************/
-void midzeus_renderer::zeus_draw_quad(int long_fmt, const uint32_t *databuffer, uint32_t texdata, int logit)
+void midzeus_renderer::zeus_draw_quad(int long_fmt, const uint32_t *databuffer, uint32_t texdata, bool logit)
{
poly_vertex clipvert[8];
poly_vertex vert[4];
@@ -1535,7 +1535,7 @@ void midzeus_state::log_waveram(uint32_t length_and_base)
uint32_t numoctets = (length_and_base >> 24) + 1;
const uint32_t *ptr = (const uint32_t *)waveram0_ptr_from_block_addr(length_and_base);
uint32_t checksum = length_and_base;
- int foundit = FALSE;
+ int foundit = false;
int i;
for (i = 0; i < numoctets; i++)
@@ -1544,7 +1544,7 @@ void midzeus_state::log_waveram(uint32_t length_and_base)
for (i = 0; i < ARRAY_LENGTH(recent_entries); i++)
if (recent_entries[i].lab == length_and_base && recent_entries[i].checksum == checksum)
{
- foundit = TRUE;
+ foundit = true;
break;
}
diff --git a/src/mame/video/midzeus2.cpp b/src/mame/video/midzeus2.cpp
index 5f4d1d9b963..ff7690a6bd6 100644
--- a/src/mame/video/midzeus2.cpp
+++ b/src/mame/video/midzeus2.cpp
@@ -64,7 +64,7 @@ public:
void render_poly_8bit(int32_t scanline, const extent_t& extent, const mz2_poly_extra_data& object, int threadid);
- void zeus2_draw_quad(const uint32_t *databuffer, uint32_t texoffs, int logit);
+ void zeus2_draw_quad(const uint32_t *databuffer, uint32_t texoffs, bool logit);
private:
midzeus2_state& m_state;
@@ -426,7 +426,7 @@ if (machine().input().code_pressed(KEYCODE_DOWN)) { zbase -= 1.0f; popmessage("Z
READ32_MEMBER( midzeus2_state::zeus2_r )
{
- int logit = (offset != 0x00 && offset != 0x01 && offset != 0x54 && offset != 0x48 && offset != 0x49 && offset != 0x58 && offset != 0x59 && offset != 0x5a);
+ bool logit = (offset != 0x00 && offset != 0x01 && offset != 0x54 && offset != 0x48 && offset != 0x49 && offset != 0x58 && offset != 0x59 && offset != 0x5a);
uint32_t result = m_zeusbase[offset];
#if TRACK_REG_USAGE
@@ -475,7 +475,7 @@ READ32_MEMBER( midzeus2_state::zeus2_r )
WRITE32_MEMBER( midzeus2_state::zeus2_w )
{
- int logit = (offset != 0x08 &&
+ bool logit = (offset != 0x08 &&
(offset != 0x20 || data != 0) &&
offset != 0x40 && offset != 0x41 && offset != 0x48 && offset != 0x49 && offset != 0x4e &&
offset != 0x50 && offset != 0x51 && offset != 0x57 && offset != 0x58 && offset != 0x59 && offset != 0x5a && offset != 0x5e);
@@ -492,7 +492,7 @@ WRITE32_MEMBER( midzeus2_state::zeus2_w )
*
*************************************/
-void midzeus2_state::zeus2_register32_w(offs_t offset, uint32_t data, int logit)
+void midzeus2_state::zeus2_register32_w(offs_t offset, uint32_t data, bool logit)
{
uint32_t oldval = m_zeusbase[offset];
@@ -538,7 +538,7 @@ if (regdata_count[offset] < 256)
*
*************************************/
-void midzeus2_state::zeus2_register_update(offs_t offset, uint32_t oldval, int logit)
+void midzeus2_state::zeus2_register_update(offs_t offset, uint32_t oldval, bool logit)
{
/* handle the writes; only trigger on low accesses */
switch (offset)
@@ -792,7 +792,7 @@ if (subregdata_count[which] < 256)
*
*************************************/
-int midzeus2_state::zeus2_fifo_process(const uint32_t *data, int numwords)
+bool midzeus2_state::zeus2_fifo_process(const uint32_t *data, int numwords)
{
int dataoffs = 0;
@@ -802,7 +802,7 @@ int midzeus2_state::zeus2_fifo_process(const uint32_t *data, int numwords)
/* 0x05: write 32-bit value to low registers */
case 0x05:
if (numwords < 2)
- return FALSE;
+ return false;
if (log_fifo)
log_fifo_command(data, numwords, " -- reg32");
if (((data[0] >> 16) & 0x7f) != 0x08)
@@ -812,13 +812,13 @@ int midzeus2_state::zeus2_fifo_process(const uint32_t *data, int numwords)
/* 0x08: set matrix and point (thegrid) */
case 0x08:
if (numwords < 14)
- return FALSE;
+ return false;
dataoffs = 1;
/* 0x07: set matrix and point (crusnexo) */
case 0x07:
if (numwords < 13)
- return FALSE;
+ return false;
/* extract the matrix from the raw data */
zeus_matrix[0][0] = tms3203x_device::fp_to_float(data[dataoffs + 1]);
@@ -854,7 +854,7 @@ int midzeus2_state::zeus2_fifo_process(const uint32_t *data, int numwords)
case 0x15:
case 0x16:
if (numwords < 4)
- return FALSE;
+ return false;
/* extract the translation point from the raw data */
zeus_point[0] = tms3203x_device::fp_to_float(data[1]);
@@ -874,7 +874,7 @@ int midzeus2_state::zeus2_fifo_process(const uint32_t *data, int numwords)
/* 0x1c: */
case 0x1c:
if (numwords < 4)
- return FALSE;
+ return false;
if (log_fifo)
{
log_fifo_command(data, numwords, " -- unknown control + hack clear screen\n");
@@ -902,7 +902,7 @@ int midzeus2_state::zeus2_fifo_process(const uint32_t *data, int numwords)
case 0x23:
case 0x24:
if (numwords < 2)
- return FALSE;
+ return false;
if (log_fifo)
log_fifo_command(data, numwords, "");
zeus2_draw_model(data[1], data[0] & 0xffff, log_fifo);
@@ -920,7 +920,7 @@ int midzeus2_state::zeus2_fifo_process(const uint32_t *data, int numwords)
/* 0x38: direct render quad (crusnexo) */
case 0x38:
if (numwords < 12)
- return FALSE;
+ return false;
if (log_fifo)
log_fifo_command(data, numwords, "");
break;
@@ -940,7 +940,7 @@ int midzeus2_state::zeus2_fifo_process(const uint32_t *data, int numwords)
}
break;
}
- return TRUE;
+ return true;
}
@@ -951,11 +951,11 @@ int midzeus2_state::zeus2_fifo_process(const uint32_t *data, int numwords)
*
*************************************/
-void midzeus2_state::zeus2_draw_model(uint32_t baseaddr, uint16_t count, int logit)
+void midzeus2_state::zeus2_draw_model(uint32_t baseaddr, uint16_t count, bool logit)
{
uint32_t databuffer[32];
int databufcount = 0;
- int model_done = FALSE;
+ bool model_done = false;
uint32_t texoffs = 0;
int quadsize = zeus_quad_size;
@@ -1056,7 +1056,7 @@ void midzeus2_state::zeus2_draw_model(uint32_t baseaddr, uint16_t count, int log
*
*************************************/
-void midzeus2_renderer::zeus2_draw_quad(const uint32_t *databuffer, uint32_t texoffs, int logit)
+void midzeus2_renderer::zeus2_draw_quad(const uint32_t *databuffer, uint32_t texoffs, bool logit)
{
poly_vertex clipvert[8];
poly_vertex vert[4];
diff --git a/src/mame/video/model3.cpp b/src/mame/video/model3.cpp
index 07a7a04f8bc..e8ec96fe7e6 100644
--- a/src/mame/video/model3.cpp
+++ b/src/mame/video/model3.cpp
@@ -1530,7 +1530,7 @@ void model3_state::draw_model(uint32_t addr)
uint32_t header[7];
int index = 0;
- int last_polygon = FALSE, first_polygon = TRUE, back_face = FALSE;
+ bool last_polygon = false, first_polygon = true, back_face = false;
int num_vertices;
int i, v, vi;
float fixed_point_fraction;
@@ -1575,13 +1575,13 @@ void model3_state::draw_model(uint32_t addr)
if (first_polygon && (header[0] & 0x0f) != 0)
return;
- first_polygon = FALSE;
+ first_polygon = false;
if (header[6] == 0)
return;
if (header[1] & 0x4)
- last_polygon = TRUE;
+ last_polygon = true;
if ((header[0] & 0x300) == 0x300) // TODO: broken polygons in srally2 have these bits set
return;
diff --git a/src/mame/video/nbmj8688.cpp b/src/mame/video/nbmj8688.cpp
index 11b4b41e70e..7e42b075668 100644
--- a/src/mame/video/nbmj8688.cpp
+++ b/src/mame/video/nbmj8688.cpp
@@ -276,7 +276,7 @@ void nbmj8688_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_nb1413m3->m_busyflag = 1;
break;
default:
- assert_always(FALSE, "Unknown id in nbmj8688_state::device_timer");
+ assert_always(false, "Unknown id in nbmj8688_state::device_timer");
}
}
diff --git a/src/mame/video/nbmj8891.cpp b/src/mame/video/nbmj8891.cpp
index 8a20330d1f7..f941d6c61bf 100644
--- a/src/mame/video/nbmj8891.cpp
+++ b/src/mame/video/nbmj8891.cpp
@@ -313,7 +313,7 @@ void nbmj8891_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_nb1413m3->m_busyflag = 1;
break;
default:
- assert_always(FALSE, "Unknown id in nbmj8891_state::device_timer");
+ assert_always(false, "Unknown id in nbmj8891_state::device_timer");
}
}
diff --git a/src/mame/video/nbmj8900.cpp b/src/mame/video/nbmj8900.cpp
index 47527e12186..eb1693d7896 100644
--- a/src/mame/video/nbmj8900.cpp
+++ b/src/mame/video/nbmj8900.cpp
@@ -205,7 +205,7 @@ void nbmj8900_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_nb1413m3->m_busyflag = 1;
break;
default:
- assert_always(FALSE, "Unknown id in nbmj8900_state::device_timer");
+ assert_always(false, "Unknown id in nbmj8900_state::device_timer");
}
}
diff --git a/src/mame/video/nbmj8991.cpp b/src/mame/video/nbmj8991.cpp
index eb817e579b8..f30184c2d21 100644
--- a/src/mame/video/nbmj8991.cpp
+++ b/src/mame/video/nbmj8991.cpp
@@ -173,7 +173,7 @@ void nbmj8991_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_nb1413m3->m_busyflag = 1;
break;
default:
- assert_always(FALSE, "Unknown id in nbmj8991_state::device_timer");
+ assert_always(false, "Unknown id in nbmj8991_state::device_timer");
}
}
diff --git a/src/mame/video/nbmj9195.cpp b/src/mame/video/nbmj9195.cpp
index 38a15086760..828f18e646c 100644
--- a/src/mame/video/nbmj9195.cpp
+++ b/src/mame/video/nbmj9195.cpp
@@ -187,7 +187,7 @@ void nbmj9195_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_nb19010_busyflag = 1;
break;
default:
- assert_always(FALSE, "Unknown id in nbmj9195_state::device_timer");
+ assert_always(false, "Unknown id in nbmj9195_state::device_timer");
}
}
diff --git a/src/mame/video/ninjakd2.cpp b/src/mame/video/ninjakd2.cpp
index 2815ab6ab2f..ad398a36310 100644
--- a/src/mame/video/ninjakd2.cpp
+++ b/src/mame/video/ninjakd2.cpp
@@ -139,11 +139,11 @@ void ninjakd2_state::video_init_common(uint32_t vram_alloc_size)
save_item(NAME(m_robokid_bg2_bank));
}
-static int stencil_ninjakd2( uint16_t pal );
-static int stencil_mnight( uint16_t pal );
-static int stencil_arkarea( uint16_t pal );
-static int stencil_robokid( uint16_t pal );
-static int stencil_omegaf( uint16_t pal );
+static bool stencil_ninjakd2( uint16_t pal );
+static bool stencil_mnight( uint16_t pal );
+static bool stencil_arkarea( uint16_t pal );
+static bool stencil_robokid( uint16_t pal );
+static bool stencil_omegaf( uint16_t pal );
void ninjakd2_state::video_start()
{
@@ -409,11 +409,11 @@ void ninjakd2_state::draw_sprites( bitmap_ind16 &bitmap)
}
}
-static int stencil_ninjakd2( uint16_t pal ) { return( (pal & 0xf0) == 0xf0 ); }
-static int stencil_mnight( uint16_t pal ) { return( (pal & 0xf0) == 0xf0 ); }
-static int stencil_arkarea( uint16_t pal ) { return( (pal & 0xf0) == 0xf0 ); }
-static int stencil_robokid( uint16_t pal ) { return( (pal & 0xf0) < 0xe0 ); }
-static int stencil_omegaf( uint16_t pal ) { return( TRUE ); }
+static bool stencil_ninjakd2( uint16_t pal ) { return( (pal & 0xf0) == 0xf0 ); }
+static bool stencil_mnight( uint16_t pal ) { return( (pal & 0xf0) == 0xf0 ); }
+static bool stencil_arkarea( uint16_t pal ) { return( (pal & 0xf0) == 0xf0 ); }
+static bool stencil_robokid( uint16_t pal ) { return( (pal & 0xf0) < 0xe0 ); }
+static bool stencil_omegaf( uint16_t pal ) { return( true ); }
////// OVERDRAW STENCIL UNKNOWN
////// NINJAKD2 023459ABCDE F 1678
////// MNIGHT 0134568ABCDE F 279
diff --git a/src/mame/video/niyanpai.cpp b/src/mame/video/niyanpai.cpp
index 6d9a3bcfe92..e720dfebeb8 100644
--- a/src/mame/video/niyanpai.cpp
+++ b/src/mame/video/niyanpai.cpp
@@ -170,7 +170,7 @@ void niyanpai_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_nb19010_busyflag = 1;
break;
default:
- assert_always(FALSE, "Unknown id in niyanpai_state::device_timer");
+ assert_always(false, "Unknown id in niyanpai_state::device_timer");
}
}
diff --git a/src/mame/video/pastelg.cpp b/src/mame/video/pastelg.cpp
index c53d40f3c73..d8148976217 100644
--- a/src/mame/video/pastelg.cpp
+++ b/src/mame/video/pastelg.cpp
@@ -147,7 +147,7 @@ void pastelg_state::device_timer(emu_timer &timer, device_timer_id id, int param
m_nb1413m3->m_busyflag = 1;
break;
default:
- assert_always(FALSE, "Unknown id in pastelg_state::device_timer");
+ assert_always(false, "Unknown id in pastelg_state::device_timer");
}
}
diff --git a/src/mame/video/rallyx.cpp b/src/mame/video/rallyx.cpp
index 74606591b2f..f0368f335c7 100644
--- a/src/mame/video/rallyx.cpp
+++ b/src/mame/video/rallyx.cpp
@@ -488,7 +488,7 @@ void rallyx_state::locomotn_draw_sprites( screen_device &screen, bitmap_ind16 &b
}
}
-void rallyx_state::rallyx_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, int transpen )
+void rallyx_state::rallyx_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, bool transpen )
{
int offs;
@@ -518,7 +518,7 @@ void rallyx_state::rallyx_draw_bullets( bitmap_ind16 &bitmap, const rectangle &c
}
}
-void rallyx_state::jungler_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, int transpen )
+void rallyx_state::jungler_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, bool transpen )
{
int offs;
@@ -546,7 +546,7 @@ void rallyx_state::jungler_draw_bullets( bitmap_ind16 &bitmap, const rectangle &
}
}
-void rallyx_state::locomotn_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, int transpen )
+void rallyx_state::locomotn_draw_bullets( bitmap_ind16 &bitmap, const rectangle &cliprect, bool transpen )
{
int offs;
@@ -608,9 +608,9 @@ uint32_t rallyx_state::screen_update_rallyx(screen_device &screen, bitmap_ind16
m_bg_tilemap->draw(screen, bitmap, bg_clip, 1, 1);
m_fg_tilemap->draw(screen, bitmap, fg_clip, 1, 1);
- rallyx_draw_bullets(bitmap, cliprect, TRUE);
+ rallyx_draw_bullets(bitmap, cliprect, true);
rallyx_draw_sprites(screen, bitmap, cliprect);
- rallyx_draw_bullets(bitmap, cliprect, FALSE);
+ rallyx_draw_bullets(bitmap, cliprect, false);
return 0;
}
@@ -642,9 +642,9 @@ uint32_t rallyx_state::screen_update_jungler(screen_device &screen, bitmap_ind16
m_bg_tilemap->draw(screen, bitmap, bg_clip, 1, 0);
m_fg_tilemap->draw(screen, bitmap, fg_clip, 1, 0);
- jungler_draw_bullets(bitmap, cliprect, TRUE);
+ jungler_draw_bullets(bitmap, cliprect, true);
rallyx_draw_sprites(screen, bitmap, cliprect);
- jungler_draw_bullets(bitmap, cliprect, FALSE);
+ jungler_draw_bullets(bitmap, cliprect, false);
if (m_stars_enable)
draw_stars(bitmap, cliprect);
@@ -687,9 +687,9 @@ uint32_t rallyx_state::screen_update_locomotn(screen_device &screen, bitmap_ind1
m_bg_tilemap->draw(screen, bitmap, bg_clip, 1, 1);
m_fg_tilemap->draw(screen, bitmap, fg_clip, 1, 1);
- locomotn_draw_bullets(bitmap, cliprect, TRUE);
+ locomotn_draw_bullets(bitmap, cliprect, true);
locomotn_draw_sprites(screen, bitmap, cliprect);
- locomotn_draw_bullets(bitmap, cliprect, FALSE);
+ locomotn_draw_bullets(bitmap, cliprect, false);
if (m_stars_enable)
draw_stars(bitmap, cliprect);
diff --git a/src/mame/video/segag80r.cpp b/src/mame/video/segag80r.cpp
index 7e41cc65d76..908da5a53a1 100644
--- a/src/mame/video/segag80r.cpp
+++ b/src/mame/video/segag80r.cpp
@@ -29,7 +29,7 @@ void segag80r_state::device_timer(emu_timer &timer, device_timer_id id, int para
m_vblank_latch = 0;
break;
default:
- assert_always(FALSE, "Unknown id in segag80r_state::device_timer");
+ assert_always(false, "Unknown id in segag80r_state::device_timer");
}
}
diff --git a/src/mame/video/segag80v.cpp b/src/mame/video/segag80v.cpp
index df294e575a1..b643b120397 100644
--- a/src/mame/video/segag80v.cpp
+++ b/src/mame/video/segag80v.cpp
@@ -77,9 +77,9 @@
*/
-inline int segag80v_state::adjust_xy(int rawx, int rawy, int *outx, int *outy)
+inline bool segag80v_state::adjust_xy(int rawx, int rawy, int *outx, int *outy)
{
- int clipped = FALSE;
+ bool clipped = false;
/* first apply the XOR at 0x200 */
*outx = (rawx & 0x7ff) ^ 0x200;
@@ -87,17 +87,17 @@ inline int segag80v_state::adjust_xy(int rawx, int rawy, int *outx, int *outy)
/* apply clipping logic to X */
if ((*outx & 0x600) == 0x200)
- *outx = 0x000, clipped = TRUE;
+ *outx = 0x000, clipped = true;
else if ((*outx & 0x600) == 0x400)
- *outx = 0x3ff, clipped = TRUE;
+ *outx = 0x3ff, clipped = true;
else
*outx &= 0x3ff;
/* apply clipping logic to Y */
if ((*outy & 0x600) == 0x200)
- *outy = 0x000, clipped = TRUE;
+ *outy = 0x000, clipped = true;
else if ((*outy & 0x600) == 0x400)
- *outy = 0x3ff, clipped = TRUE;
+ *outy = 0x3ff, clipped = true;
else
*outy &= 0x3ff;
diff --git a/src/mame/video/stic.cpp b/src/mame/video/stic.cpp
index 7ecf0cd38d6..20106936c97 100644
--- a/src/mame/video/stic.cpp
+++ b/src/mame/video/stic.cpp
@@ -170,7 +170,7 @@ void stic_device::intv_plot_box(bitmap_ind16 &bitmap, int x, int y, int w, int h
}
-int stic_device::sprites_collide(int spriteNum1, int spriteNum2)
+bool stic_device::sprites_collide(int spriteNum1, int spriteNum2)
{
int16_t x0, y0, w0, h0, x1, y1, w1, h1, x2, y2, w2, h2;
@@ -188,7 +188,7 @@ int stic_device::sprites_collide(int spriteNum1, int spriteNum2)
if ((x1 >= x2 + w2) || (y1 >= y2 + h2) ||
(x2 >= x1 + w1) || (y2 >= y1 + h1))
- return FALSE;
+ return false;
// iterate over the intersecting bits to see if any touch
x0 = std::max(x1, x2);
@@ -205,11 +205,11 @@ int stic_device::sprites_collide(int spriteNum1, int spriteNum2)
{
if (m_sprite_buffers[spriteNum1][x0 + x1][y0 + y1] &&
m_sprite_buffers[spriteNum2][x0 + x2][y0 + y2])
- return TRUE;
+ return true;
}
}
- return FALSE;
+ return false;
}
void stic_device::determine_sprite_collisions()
@@ -423,8 +423,8 @@ void stic_device::copy_sprites_to_background(bitmap_ind16 &bitmap)
if (s->xpos == 0 || (!s->coll && !s->visible))
continue;
- borderCollision = FALSE;
- foregroundCollision = FALSE;
+ borderCollision = false;
+ foregroundCollision = false;
spritePixelHeight = (s->quady ? 4 : 1) * (s->doubley ? 2 : 1) * (s->doubleyres ? 2 : 1) * STIC_CARD_HEIGHT;
width = (s->doublex ? 2 : 1) * STIC_CARD_WIDTH;
@@ -451,7 +451,7 @@ void stic_device::copy_sprites_to_background(bitmap_ind16 &bitmap)
if ((nextX < leftBorder) || (nextX > rightBorder) ||
(nextY < topBorder) || (nextY > bottomBorder))
{
- borderCollision = TRUE;
+ borderCollision = true;
continue;
}
@@ -460,7 +460,7 @@ void stic_device::copy_sprites_to_background(bitmap_ind16 &bitmap)
//check for foreground collision
if (currentPixel & FOREGROUND_BIT)
{
- foregroundCollision = TRUE;
+ foregroundCollision = true;
if (s->behind_foreground)
continue;
}
diff --git a/src/mame/video/stic.h b/src/mame/video/stic.h
index ce13bf4cb86..4a341297c65 100644
--- a/src/mame/video/stic.h
+++ b/src/mame/video/stic.h
@@ -506,7 +506,7 @@ private:
void intv_set_pixel(bitmap_ind16 &bitmap, int x, int y, uint32_t color);
uint32_t intv_get_pixel(bitmap_ind16 &bitmap, int x, int y);
void intv_plot_box(bitmap_ind16 &bm, int x, int y, int w, int h, int color);
- int sprites_collide(int spriteNum1, int spriteNum2);
+ bool sprites_collide(int spriteNum1, int spriteNum2);
void determine_sprite_collisions();
void render_sprites();
void render_line(bitmap_ind16 &bitmap, uint8_t nextByte, uint16_t x, uint16_t y, uint8_t fgcolor, uint8_t bgcolor);
diff --git a/src/mame/video/tank8.cpp b/src/mame/video/tank8.cpp
index 456dcaa38c7..b0f292c8ac9 100644
--- a/src/mame/video/tank8.cpp
+++ b/src/mame/video/tank8.cpp
@@ -177,7 +177,7 @@ void tank8_state::device_timer(emu_timer &timer, device_timer_id id, int param,
set_collision(param);
break;
default:
- assert_always(FALSE, "Unknown id in tank8_state::device_timer");
+ assert_always(false, "Unknown id in tank8_state::device_timer");
}
}
diff --git a/src/mame/video/triplhnt.cpp b/src/mame/video/triplhnt.cpp
index 741bb4c2da3..93a46f5bce6 100644
--- a/src/mame/video/triplhnt.cpp
+++ b/src/mame/video/triplhnt.cpp
@@ -34,7 +34,7 @@ void triplhnt_state::device_timer(emu_timer &timer, device_timer_id id, int para
triplhnt_set_collision(param);
break;
default:
- assert_always(FALSE, "Unknown id in triplhnt_state::device_timer");
+ assert_always(false, "Unknown id in triplhnt_state::device_timer");
}
}
diff --git a/src/mame/video/vc4000.cpp b/src/mame/video/vc4000.cpp
index 49a9d3ec218..a0af5563c58 100644
--- a/src/mame/video/vc4000.cpp
+++ b/src/mame/video/vc4000.cpp
@@ -88,23 +88,23 @@ READ8_MEMBER( vc4000_state::vc4000_video_r )
if (m_video.sprites[3].finished)
{
data |= 1;
- m_video.sprites[3].finished = FALSE;
+ m_video.sprites[3].finished = false;
}
if (m_video.sprites[2].finished)
{
data |= 2;
- m_video.sprites[2].finished = FALSE;
+ m_video.sprites[2].finished = false;
}
if (m_video.sprites[1].finished)
{
data |= 4;
- m_video.sprites[1].finished = FALSE;
+ m_video.sprites[1].finished = false;
}
if (m_video.sprites[0].finished)
{
data |= 8;
- m_video.sprites[0].finished = FALSE;
+ m_video.sprites[0].finished = false;
}
break;
@@ -416,10 +416,10 @@ void vc4000_state::vc4000_sprite_update(bitmap_ind16 &bitmap, uint8_t *collision
This->y=This->data->y1;
This->state=0;
This->delay=0;
- This->finished=FALSE;
+ This->finished=false;
}
- This->finished_now=FALSE;
+ This->finished_now=false;
if (m_video.line>VC4000_END_LINE) return;
@@ -455,8 +455,8 @@ void vc4000_state::vc4000_sprite_update(bitmap_ind16 &bitmap, uint8_t *collision
if (This->state>10)
{
- This->finished=TRUE;
- This->finished_now=TRUE;
+ This->finished=true;
+ This->finished_now=true;
}
break;
@@ -509,8 +509,8 @@ void vc4000_state::vc4000_sprite_update(bitmap_ind16 &bitmap, uint8_t *collision
This->delay=0;
This->state++;
if (This->state<23) break;
- This->finished=TRUE;
- This->finished_now=TRUE;
+ This->finished=true;
+ This->finished_now=true;
This->state=11;
break;
}
diff --git a/src/mame/video/vrender0.cpp b/src/mame/video/vrender0.cpp
index 64e5098825c..0d681d8ba74 100644
--- a/src/mame/video/vrender0.cpp
+++ b/src/mame/video/vrender0.cpp
@@ -395,7 +395,7 @@ static const _DrawTemplate DrawTile[]=
#define Packet(i) space.read_word(PacketPtr + 2 * i)
-//Returns TRUE if the operation was a flip (sync or async)
+//Returns true if the operation was a flip (sync or async)
int vr0video_device::vrender0_ProcessPacket(uint32_t PacketPtr, uint16_t *Dest, uint8_t *TEXTURE)
{
address_space &space = m_cpu->space(AS_PROGRAM);
diff --git a/src/mame/video/zaxxon.cpp b/src/mame/video/zaxxon.cpp
index c9b67568b9e..8108599ebfc 100644
--- a/src/mame/video/zaxxon.cpp
+++ b/src/mame/video/zaxxon.cpp
@@ -447,7 +447,7 @@ void zaxxon_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect,
uint32_t zaxxon_state::screen_update_zaxxon(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- draw_background(bitmap, cliprect, TRUE);
+ draw_background(bitmap, cliprect, true);
draw_sprites(bitmap, cliprect, 0x140, 0x180);
m_fg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
return 0;
@@ -456,7 +456,7 @@ uint32_t zaxxon_state::screen_update_zaxxon(screen_device &screen, bitmap_ind16
uint32_t zaxxon_state::screen_update_futspy(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- draw_background(bitmap, cliprect, TRUE);
+ draw_background(bitmap, cliprect, true);
draw_sprites(bitmap, cliprect, 0x180, 0x180);
m_fg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
return 0;
@@ -465,7 +465,7 @@ uint32_t zaxxon_state::screen_update_futspy(screen_device &screen, bitmap_ind16
uint32_t zaxxon_state::screen_update_razmataz(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- draw_background(bitmap, cliprect, FALSE);
+ draw_background(bitmap, cliprect, false);
draw_sprites(bitmap, cliprect, 0x140, 0x180);
m_fg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
return 0;
@@ -474,7 +474,7 @@ uint32_t zaxxon_state::screen_update_razmataz(screen_device &screen, bitmap_ind1
uint32_t zaxxon_state::screen_update_congo(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect)
{
- draw_background(bitmap, cliprect, TRUE);
+ draw_background(bitmap, cliprect, true);
draw_sprites(bitmap, cliprect, 0x280, 0x180);
m_fg_tilemap->draw(screen, bitmap, cliprect, 0, 0);
return 0;
diff --git a/src/mame/video/zx.cpp b/src/mame/video/zx.cpp
index a786911adf6..197e1cd0120 100644
--- a/src/mame/video/zx.cpp
+++ b/src/mame/video/zx.cpp
@@ -32,7 +32,7 @@ void zx_state::device_timer(emu_timer &timer, device_timer_id id, int param, voi
zx_ula_hsync();
break;
default:
- assert_always(FALSE, "Unknown id in zx_state::device_timer");
+ assert_always(false, "Unknown id in zx_state::device_timer");
}
}