summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-02-23 13:20:34 +1100
committer Vas Crabb <vas@vastheman.com>2020-02-23 13:20:34 +1100
commitf7dbca352773388d67c8f8b52e243fa915f4040a (patch)
treed3b7972499324855bd53293aa435596ccb0c0dab /src/mame
parent7adc4fa47c09c1fd5658b68cd357d612dff5bc41 (diff)
srcclean and manual adjustments (nw)
Diffstat (limited to 'src/mame')
-rw-r--r--src/mame/audio/cmi01a.cpp2
-rw-r--r--src/mame/audio/cmi01a.h2
-rw-r--r--src/mame/drivers/alfaskop41xx.cpp23
-rw-r--r--src/mame/drivers/at.cpp2
-rw-r--r--src/mame/drivers/cmi.cpp4
-rw-r--r--src/mame/drivers/ddenlovr.cpp24
-rw-r--r--src/mame/drivers/equites.cpp16
-rw-r--r--src/mame/drivers/gaelco2.cpp10
-rw-r--r--src/mame/drivers/gb.cpp2
-rw-r--r--src/mame/drivers/goodejan.cpp12
-rw-r--r--src/mame/drivers/iphone2g.cpp8
-rw-r--r--src/mame/drivers/iris3130.cpp96
-rw-r--r--src/mame/drivers/konamigs.cpp36
-rw-r--r--src/mame/drivers/midqslvr.cpp4
-rw-r--r--src/mame/drivers/mjsister.cpp6
-rw-r--r--src/mame/drivers/naomi.cpp2
-rw-r--r--src/mame/drivers/pdt3100.cpp4
-rw-r--r--src/mame/drivers/raiden2.cpp2
-rw-r--r--src/mame/drivers/spg29x.cpp2
-rw-r--r--src/mame/drivers/spg2xx.cpp8
-rw-r--r--src/mame/drivers/spg2xx_jakks_tvtouch.cpp2
-rw-r--r--src/mame/drivers/sunplus_unsp20soc.cpp12
-rw-r--r--src/mame/drivers/tulip1.cpp50
-rw-r--r--src/mame/drivers/vt1682.cpp4
-rw-r--r--src/mame/drivers/xavix2.cpp10
-rw-r--r--src/mame/drivers/xyonix.cpp6
-rw-r--r--src/mame/machine/alfaskop_s41_kb.cpp44
-rw-r--r--src/mame/machine/alfaskop_s41_kb.h2
-rw-r--r--src/mame/machine/m6502_swap_op_d5_d6.cpp2
-rw-r--r--src/mame/machine/nl_stuntcyc.cpp2
-rw-r--r--src/mame/video/1942.cpp2
-rw-r--r--src/mame/video/armedf.cpp2
-rw-r--r--src/mame/video/boogwing.cpp2
33 files changed, 203 insertions, 202 deletions
diff --git a/src/mame/audio/cmi01a.cpp b/src/mame/audio/cmi01a.cpp
index 3b291255382..97e4655ce30 100644
--- a/src/mame/audio/cmi01a.cpp
+++ b/src/mame/audio/cmi01a.cpp
@@ -10,7 +10,7 @@
#include "audio/cmi01a.h"
#include "machine/input_merger.h"
-#define VERBOSE (0)
+#define VERBOSE (0)
#include "logmacro.h"
#define MASTER_OSCILLATOR XTAL(34'291'712)
diff --git a/src/mame/audio/cmi01a.h b/src/mame/audio/cmi01a.h
index 8989d12728b..d6faf8ebe37 100644
--- a/src/mame/audio/cmi01a.h
+++ b/src/mame/audio/cmi01a.h
@@ -56,7 +56,7 @@ private:
void run_voice();
void update_wave_addr(int inc);
- uint32_t m_channel;
+ uint32_t m_channel;
emu_timer * m_zx_timer;
uint8_t m_zx_flag;
uint8_t m_zx_ff;
diff --git a/src/mame/drivers/alfaskop41xx.cpp b/src/mame/drivers/alfaskop41xx.cpp
index 5f6c660181f..a8bc37061f5 100644
--- a/src/mame/drivers/alfaskop41xx.cpp
+++ b/src/mame/drivers/alfaskop41xx.cpp
@@ -94,7 +94,7 @@ private:
required_device<mc6845_device> m_crtc;
required_device<screen_device> m_screen;
required_shared_ptr<uint8_t> m_vram;
- required_device<pls100_device> m_pla;
+ required_device<pls100_device> m_pla;
/* Video controller */
required_region_ptr<uint8_t> m_chargen;
@@ -206,8 +206,8 @@ void alfaskop4110_state::mem_map(address_map &map)
// IRQ mask setting
map(0xffe8, 0xfff7).rom().lrw8( NAME([this](offs_t offset) -> uint8_t
- {
- if (!machine().side_effects_disabled()) LOGIO("AMSK read set %04x\n", offset >> 1);
+ {
+ if (!machine().side_effects_disabled()) LOGIO("AMSK read set %04x\n", offset >> 1);
m_imsk = (offset >> 1) & 7;
return ((uint8_t *) memregion("roms")->base() + 0x7e8)[offset];
}),
@@ -219,7 +219,7 @@ void alfaskop4110_state::mem_map(address_map &map)
// Address modification
map(0xfff8, 0xfff9).rom().lrw8( NAME([this](offs_t offset) -> uint8_t
- {
+ {
uint16_t ploffs = (~m_irq & 0xff) | ((m_imsk & 0x07) << 8) | 0x000 | (0x18 << 11);
uint8_t tmp = ((uint8_t *) memregion("roms")->base())[0x7e0 | offset | ((m_pla->read(ploffs) & 0xf0) >> 3)];
if (!machine().side_effects_disabled())
@@ -227,7 +227,8 @@ void alfaskop4110_state::mem_map(address_map &map)
LOGIO("AMOD read %04x: %02x\n", offset, tmp);
LOGIO("AMOD pla read %04x: %02x ==> %04x\n", ploffs, m_pla->read(ploffs), (0xffe0 | offset | ((m_pla->read(ploffs) & 0xf0) >> 3)));
}
- return tmp; }),
+ return tmp;
+ }),
NAME([this](offs_t offset, uint8_t data) // TODO: Check what a write does if anything
{
if (!machine().side_effects_disabled()) LOGIO("AMOD write %04x\n", offset);
@@ -235,8 +236,8 @@ void alfaskop4110_state::mem_map(address_map &map)
map(0xfffa, 0xffff).rom().region("roms", 0x7fa);
#else
- map(0xf800, 0xffff).rom().region("roms", 0);
-#endif
+ map(0xf800, 0xffff).rom().region("roms", 0);
+#endif
}
void alfaskop4120_state::mem_map(address_map &map)
@@ -403,15 +404,15 @@ void alfaskop4110_state::alfaskop4110(machine_config &config)
* 7 - PB7 output - not used
*/
m_mic_pia->writepa_handler().set([this](offs_t offset, uint8_t data)
- {
+ {
LOGMIC("->MIC PIA: Port A write %02x\n", data);
LOGMIC(" PA1 - KBD reset %s\n", BIT(data, 1) ? "active" : "inactive");
LOGMIC(" PA5 - Int out %s\n", BIT(data, 5) ? "enabled": "disabled");
LOGMIC(" PA6 - I4 latch %s\n", BIT(data, 6) ? "enabled": "disabled");
- });
+ });
m_mic_pia->writepb_handler().set([this](offs_t offset, uint8_t data)
- {
+ {
LOGMIC("->MIC PIA: Port B write %02x\n", data);
LOGMIC(" PB0 - Reset PC-error %s\n", BIT(data, 0) ? "active" : "inactive");
LOGMIC(" PB1 - %s generated by MPU\n", BIT(data, 1) ? "VMAX" : "VMA 1");
@@ -420,7 +421,7 @@ void alfaskop4110_state::alfaskop4110(machine_config &config)
LOGMIC(" PB4 - Option Char Generator %s\n", BIT(data, 4) ? "enabled" : "disabled");
LOGMIC(" PB5 - MPU Address Mode %s\n", BIT(data, 5) ? "1" : "0");
LOGMIC(" PB6 - Reset of devices %s\n", BIT(data, 6) ? "active" : "inactive");
- });
+ });
m_mic_pia->readpa_handler().set([this](offs_t offset) -> uint8_t
{
diff --git a/src/mame/drivers/at.cpp b/src/mame/drivers/at.cpp
index 98b8dd4e635..e84b474701a 100644
--- a/src/mame/drivers/at.cpp
+++ b/src/mame/drivers/at.cpp
@@ -2067,7 +2067,7 @@ ROM_START( v286c )
ROM_REGION16_LE(0x20000, "bios", 0)
ROM_LOAD16_BYTE( "system-bios_kyocera_a2-2_lo.bin", 0x18000, 0x4000, CRC(160c4759) SHA1(937c1bb9483efeba895e038b7132e0e7e5a9aaa4) )
ROM_LOAD16_BYTE( "system-bios_kyocera_a2-2_hi.bin", 0x18001, 0x4000, CRC(cfe0cbef) SHA1(2610d727d13fa67c7bd9b3545d7846e880c3da37) )
-
+
ROM_REGION(0x4000, "pega", 0)
ROM_LOAD( "ega-bios_paradise_video-1.bin", 0x0000, 0x4000, CRC(2db77b0b) SHA1(d31ddbbde5be0b0603e9f569c3f924e0afc7c8e4) )
ROM_END
diff --git a/src/mame/drivers/cmi.cpp b/src/mame/drivers/cmi.cpp
index 31081ddc2cc..45c1c3bd2e1 100644
--- a/src/mame/drivers/cmi.cpp
+++ b/src/mame/drivers/cmi.cpp
@@ -104,11 +104,11 @@
#include "screen.h"
#include "speaker.h"
-#define VERBOSE (0)
+#define VERBOSE (0)
#include "logmacro.h"
#define Q209_CPU_CLOCK (40.21_MHz_XTAL / 40) // verified by manual
-#define SYSTEM_CAS_CLOCK (40.21_MHz_XTAL / 20) // likewise
+#define SYSTEM_CAS_CLOCK (40.21_MHz_XTAL / 20) // likewise
#define M6809_CLOCK 8000000 // wrong
#define MASTER_OSCILLATOR 34.291712_MHz_XTAL
diff --git a/src/mame/drivers/ddenlovr.cpp b/src/mame/drivers/ddenlovr.cpp
index 867c73eb9dc..36d82109ec6 100644
--- a/src/mame/drivers/ddenlovr.cpp
+++ b/src/mame/drivers/ddenlovr.cpp
@@ -103,7 +103,7 @@ TODO:
- mjflove: Transparency problems in title screen, staff roll and gal display (the background is not visible)
-- mjflove: 1st level sports a slot-like gal rotation that is hidden in 2nd with a solid green color.
+- mjflove: 1st level sports a slot-like gal rotation that is hidden in 2nd with a solid green color.
Most likely a bug, related to above?
- implement palette RAM enable in most games. Done for seljan2 (in a convoluted way).
@@ -160,11 +160,11 @@ The drawing operation is verified (quiz365) to modify ddenlovr_blit_y.
enum { BLIT_NEXT = 0, BLIT_LINE, BLIT_COPY, BLIT_SKIP, BLIT_CHANGE_NUM, BLIT_CHANGE_PEN, BLIT_UNKNOWN, BLIT_STOP };
-static const int ddenlovr_commands[8] = { BLIT_NEXT, BLIT_LINE, BLIT_COPY, BLIT_SKIP,
+static const int ddenlovr_commands[8] = { BLIT_NEXT, BLIT_LINE, BLIT_COPY, BLIT_SKIP,
BLIT_UNKNOWN, BLIT_CHANGE_NUM, BLIT_CHANGE_PEN, BLIT_STOP };
-static const int hanakanz_commands[8] = { BLIT_NEXT, BLIT_CHANGE_PEN, BLIT_CHANGE_NUM, BLIT_UNKNOWN,
+static const int hanakanz_commands[8] = { BLIT_NEXT, BLIT_CHANGE_PEN, BLIT_CHANGE_NUM, BLIT_UNKNOWN,
BLIT_SKIP, BLIT_COPY, BLIT_LINE, BLIT_STOP };
-static const int mjflove_commands[8] = { BLIT_STOP, BLIT_CHANGE_PEN, BLIT_CHANGE_NUM, BLIT_UNKNOWN,
+static const int mjflove_commands[8] = { BLIT_STOP, BLIT_CHANGE_PEN, BLIT_CHANGE_NUM, BLIT_UNKNOWN,
BLIT_SKIP, BLIT_COPY, BLIT_LINE, BLIT_NEXT };
class ddenlovr_state : public dynax_state
@@ -8232,16 +8232,16 @@ INPUT_PORTS_END
static INPUT_PORTS_START( hparadis )
PORT_START("P1")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) PORT_PLAYER(1) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x00)
- PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x00)
+ PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(1) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x00)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(1) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x00)
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x00)
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x00)
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(1) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x00)
PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40)
- PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0xc0, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("P2") /* IN1 - Player 2 */
- PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNKNOWN )
+ PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_START("SYSTEM")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 )
@@ -8282,16 +8282,16 @@ static INPUT_PORTS_START( hparadis )
PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x00)
PORT_START("KEY3")
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_HANAFUDA_D ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40)
+ PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_HANAFUDA_D ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_HANAFUDA_H ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40) // L
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40) // PON
- PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40)
- PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40)
+ PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40)
+ PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40)
PORT_BIT( 0x3f, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x00)
PORT_START("KEY4")
- PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40)
+ PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40) // "t"
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40) // "w"
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN ) PORT_CONDITION("DSW1", 0x40, EQUALS, 0x40) // Flip Flop
@@ -13067,4 +13067,4 @@ GAME( 1998, mjreach1, 0, mjreach1, mjreach1, ddenlovr_state, empty_init
GAME( 1999, jongtei, 0, jongtei, jongtei, ddenlovr_state, empty_init, ROT0, "Dynax", "Mahjong Jong-Tei [BET] (Japan, NM532-01)", MACHINE_NO_COCKTAIL )
GAME( 2000, mjgnight, 0, mjgnight, mjgnight, ddenlovr_state, empty_init, ROT0, "Techno-Top", "Mahjong Gorgeous Night [BET] (Japan, TSM003-01)", MACHINE_NO_COCKTAIL )
GAME( 2002, daimyojn, 0, daimyojn, daimyojn, ddenlovr_state, empty_init, ROT0, "Dynax / Techno-Top / Techno-Planning", "Mahjong Daimyojin [BET] (Japan, T017-PB-00)", MACHINE_NO_COCKTAIL )
-GAME( 2004, momotaro, 0, daimyojn, daimyojn, ddenlovr_state, init_momotaro, ROT0, "Techno-Top", "Mahjong Momotarou [BET] (Japan, T027-RB-01)", MACHINE_NO_COCKTAIL | MACHINE_IMPERFECT_GRAPHICS | MACHINE_NOT_WORKING )
+GAME( 2004, momotaro, 0, daimyojn, daimyojn, ddenlovr_state, init_momotaro, ROT0, "Techno-Top", "Mahjong Momotarou [BET] (Japan, T027-RB-01)", MACHINE_NO_COCKTAIL | MACHINE_IMPERFECT_GRAPHICS | MACHINE_NOT_WORKING )
diff --git a/src/mame/drivers/equites.cpp b/src/mame/drivers/equites.cpp
index a510802602e..54c90e03a25 100644
--- a/src/mame/drivers/equites.cpp
+++ b/src/mame/drivers/equites.cpp
@@ -105,12 +105,12 @@ Notes:
- similarly, splndrbt hardware only appears to be capable of displaying 24 sprites.
This time, they are consecutive in RAM.
-- gekisou doesn't have dip-switches but battery backed RAM.
- By pressing service button (F2) at any time after POST operator can access to
- a simple config menu with no setting OSD indication about what they do but just a
- laconic number for each, basically mimicking an actual dip bank.
- END arrows indicates where to exit and return back to title screen, basically
- giving the operator to either read or rewrite all the settings.
+- gekisou doesn't have dip-switches but battery backed RAM.
+ By pressing service button (F2) at any time after POST operator can access to
+ a simple config menu with no setting OSD indication about what they do but just a
+ laconic number for each, basically mimicking an actual dip bank.
+ END arrows indicates where to exit and return back to title screen, basically
+ giving the operator to either read or rewrite all the settings.
Defaults are all ON.
Settings: 1 2 3 4 5 6 7 8
@@ -155,9 +155,9 @@ TODO:
- gekisou: there is a small glitch during the text intro at the beginning of player
2 game in cocktail mode: a white line spills out from the text box as characters
in the last line are written. This might well be a bug in the original.
- Update: background is actually misaligned one line, cfr. the blue buildings
+ Update: background is actually misaligned one line, cfr. the blue buildings
that are near the status bar (missing on the other side).
-
+
- splndrbt, hvoltage: the interpretation of the scaling PROMs might be wrong.
The sprite x scaling is not used at all because I couldn't figure it out.
Sprite y scaling is slightly wrong and leaves gaps in tall objects.
diff --git a/src/mame/drivers/gaelco2.cpp b/src/mame/drivers/gaelco2.cpp
index f05769434e7..76edbb56a08 100644
--- a/src/mame/drivers/gaelco2.cpp
+++ b/src/mame/drivers/gaelco2.cpp
@@ -710,7 +710,7 @@ READ16_MEMBER(gaelco2_state::srollnd_share_sim_r)
if (m_maincpu->pc() == 0x00857e) // after restoring default values (write back to nvram)
ret = 0x0000;
-
+
// reads a bunch of data (game specific? backup ram? default backup ram?) from device (0x180 words - copied to start of RAM)
if (m_maincpu->pc() == 0x83da)
@@ -719,7 +719,7 @@ READ16_MEMBER(gaelco2_state::srollnd_share_sim_r)
if (offset == 0x274 / 2)
{
- // ret = 0x3112; // checked after copy, otherwise you get password? prompt
+ // ret = 0x3112; // checked after copy, otherwise you get password? prompt
// the 'password' for bootup (reset to default values) is stored at 13454 in ROM
// sequence value: 0800 0800 1000 4000 2000
@@ -730,8 +730,8 @@ READ16_MEMBER(gaelco2_state::srollnd_share_sim_r)
// default key: x c z x b
// 0400 0800 1000 2000 4000 (just a default unused sequence?)
- // z x c v b
-
+ // z x c v b
+
// 0400 0400 1000 0800 4000 for advanced internal options in service mode
// z z c x b
}
@@ -754,7 +754,7 @@ void gaelco2_state::srollnd_map(address_map& map)
{
play2000_map(map);
- map(0xfe8000, 0xfeffff).ram().rw(FUNC(gaelco2_state::srollnd_share_sim_r), FUNC(gaelco2_state::srollnd_share_sim_w)).share("shareram");
+ map(0xfe8000, 0xfeffff).ram().rw(FUNC(gaelco2_state::srollnd_share_sim_r), FUNC(gaelco2_state::srollnd_share_sim_w)).share("shareram");
}
diff --git a/src/mame/drivers/gb.cpp b/src/mame/drivers/gb.cpp
index 8270253d478..3ad8db7e058 100644
--- a/src/mame/drivers/gb.cpp
+++ b/src/mame/drivers/gb.cpp
@@ -850,7 +850,7 @@ HT-81400
BB35-E012-0A09
REV.1
-I couldn't find a data sheet, but I did see
+I couldn't find a data sheet, but I did see
"81300 is described as PCM speech synthesizer 5.6s" and
"81400 as PCM speech synthesizer 8.4s" (which is 50% larger)
diff --git a/src/mame/drivers/goodejan.cpp b/src/mame/drivers/goodejan.cpp
index 0ee9b2e6e50..5b30a8a5670 100644
--- a/src/mame/drivers/goodejan.cpp
+++ b/src/mame/drivers/goodejan.cpp
@@ -66,7 +66,7 @@ Secret menu hack [totmejan only] (I couldn't find official way to enter, so it's
Keys: Z
PC=ECC72; 'HMODE' screen
- TODO: find an actual way to access above, at worst find a suitable entry point -AS;
+ TODO: find an actual way to access above, at worst find a suitable entry point -AS;
*******************************************************************************************/
@@ -518,10 +518,10 @@ static INPUT_PORTS_START( goodejan )
PORT_DIPSETTING( 0x0200, "2000" )
PORT_DIPSETTING( 0x0100, "1000" )
PORT_DIPSETTING( 0x0000, "3000" )
-/*
- * [totmejan]
+/*
+ * [totmejan]
* Before every hand game calls a subroutine at 0xe7c19, and reads these 2 bits from 0x01A28 work RAM buffer.
- * This affects the tile distribution RNG via a complex algo for the end goal of giving the player a more or less
+ * This affects the tile distribution RNG via a complex algo for the end goal of giving the player a more or less
* favorable hand depending on the setting.
*/
PORT_DIPNAME( 0x0c00, 0x0c00, DEF_STR( Difficulty ) ) PORT_DIPLOCATION("DSWB:3,4")
@@ -613,9 +613,9 @@ void goodejan_state::goodejan(machine_config &config)
/* video hardware */
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
- // guess: assume ~59.61 Hz like toki, assume clock coming from the otherwise unused 12 MHz XTal
+ // guess: assume ~59.61 Hz like toki, assume clock coming from the otherwise unused 12 MHz XTal
// (audio one don't give valid ranges for the provided HSync)
- screen.set_raw(GOODEJAN_MHZ3/2, 390, 0, 256, 258, 16, 240);
+ screen.set_raw(GOODEJAN_MHZ3/2, 390, 0, 256, 258, 16, 240);
screen.set_screen_update(FUNC(goodejan_state::screen_update));
screen.set_palette(m_palette);
screen.screen_vblank().set(FUNC(goodejan_state::vblank_irq));
diff --git a/src/mame/drivers/iphone2g.cpp b/src/mame/drivers/iphone2g.cpp
index 897bd09a767..04542519084 100644
--- a/src/mame/drivers/iphone2g.cpp
+++ b/src/mame/drivers/iphone2g.cpp
@@ -110,8 +110,8 @@ DEFINE_DEVICE_TYPE(IPHONE2G_SPI, iphone2g_spi_device, "iphone2g_spi", "iPhone 2G
iphone2g_spi_device::iphone2g_spi_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, type, tag, owner, clock)
- , device_memory_interface(mconfig, *this)
- , m_mmio_config("mmio", ENDIANNESS_LITTLE, 32, 32, 0)
+ , device_memory_interface(mconfig, *this)
+ , m_mmio_config("mmio", ENDIANNESS_LITTLE, 32, 32, 0)
, m_out_irq_func(*this)
{
}
@@ -195,8 +195,8 @@ DEFINE_DEVICE_TYPE(IPHONE2G_TIMER, iphone2g_timer_device, "iphone2g_timer", "iPh
iphone2g_timer_device::iphone2g_timer_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, type, tag, owner, clock)
- , device_memory_interface(mconfig, *this)
- , m_mmio_config("mmio", ENDIANNESS_LITTLE, 32, 32, 0)
+ , device_memory_interface(mconfig, *this)
+ , m_mmio_config("mmio", ENDIANNESS_LITTLE, 32, 32, 0)
, m_out_irq_func(*this)
{
}
diff --git a/src/mame/drivers/iris3130.cpp b/src/mame/drivers/iris3130.cpp
index a8ad62f5175..b6a5e0ef6a4 100644
--- a/src/mame/drivers/iris3130.cpp
+++ b/src/mame/drivers/iris3130.cpp
@@ -8,7 +8,7 @@
0x30000000 - 0x30017fff ROM (3x32k)
0x30800000 - 0x30800000 Mouse Buttons (1)
0x31000000 - 0x31000001 Mouse Quadrature (2)
- 0x31800000 - 0x31800001 DIP Switches
+ 0x31800000 - 0x31800001 DIP Switches
0x32000000 - 0x3200000f DUART0 (serial console on channel B at 19200 baud 8N1, channel A set to 600 baud 8N1 (mouse?))
0x32800000 - 0x3280000f DUART1 (printer/modem?)
0x33000000 - 0x330007ff SRAM (2k)
@@ -25,7 +25,7 @@
0x3f000000 - 0x3f000001 Stack Limit (2)
TODO:
- Most everything
+ Most everything
Interrupts:
M68K:
@@ -45,11 +45,11 @@
#include <vector>
-#define LOG_RTC (1 << 0)
-#define LOG_INVALID_SEGMENT (1 << 1)
-#define LOG_OTHER (1 << 2)
+#define LOG_RTC (1 << 0)
+#define LOG_INVALID_SEGMENT (1 << 1)
+#define LOG_OTHER (1 << 2)
-#define VERBOSE (LOG_OTHER)
+#define VERBOSE (LOG_OTHER)
#include "logmacro.h"
@@ -153,48 +153,48 @@ private:
MOUSE_BUTTON_RIGHT = 0x01,
MOUSE_BUTTON_MIDDLE = 0x02,
MOUSE_BUTTON_LEFT = 0x04,
- BOARD_REV1 = 0x60, /* Board revision - #1 */
- BOARD_REV2 = 0x50, /* Board revision - #2 */
-
- MOUSE_XFIRE = 0x01, /* X Quadrature Fired, active low */
- MOUSE_XCHANGE = 0x02, /* MOUSE_XCHANGE ? x-- : x++ */
- MOUSE_YFIRE = 0x04, /* Y Quadrature Fired, active low */
- MOUSE_YCHANGE = 0x08, /* MOUSE_YCHANGE ? y-- : y++ */
-
- PAR_UR = 0x01, /* Check parity on user-mode reads */
- PAR_UW = 0x02, /* Check parity on user-mode writes */
- PAR_KR = 0x04, /* Check parity on kernel-mode reads */
- PAR_KW = 0x08, /* Check parity on kernel-mode writes */
- PAR_DIS0 = 0x10, /* Disable access to DUART0 and LEDs */
- PAR_DIS1 = 0x20, /* Disable access to DUART1 */
- PAR_MBR = 0x40, /* Check parity on multibus reads */
- PAR_MBW = 0x80, /* Check parity on multibus writes */
-
- MBP_DCACC = 0x01, /* Display controller access (I/O page 4) */
- MBP_UCACC = 0x02, /* Update controller access (I/O page 3) */
- MBP_GFACC = 0x04, /* Allow GF access (I/O page 1) */
- MBP_DMACC = 0x08, /* Allow GL2 DMA access (0x8nnnnn - x0bnnnnn) */
- MBP_LIOACC = 0x10, /* Allow lower I/O access (0x0nnnnn - 0x7nnnnn) */
- MBP_HIOACC = 0x20, /* Allow upper I/O access (0x8nnnnn - 0xfnnnnn) */
- MBP_LMACC = 0x40, /* Allow lower memory access (0x0nnnnn - 0x7nnnnn) */
- MBP_HMACC = 0x80, /* Allow upper memory access (0x8nnnnn - 0xfnnnnn) */
-
- STATUS_DIAG0 = 0,
- STATUS_DIAG1 = 1,
- STATUS_DIAG2 = 2,
- STATUS_DIAG3 = 3,
- STATUS_ENABEXT = 4,
- STATUS_ENABINT = 5,
- STATUS_BINIT = 6,
- STATUS_NOTBOOT = 7,
- STATUS_USERFPA = 8,
- STATUS_USERGE = 9,
- STATUS_SLAVE = 10,
- STATUS_ENABCBRQ = 11,
- STATUS_NOTGEMASTER = 12,
- STATUS_GENBAD = 13,
- STATUS_ENABWDOG = 14,
- STATUS_QUICK_TOUT = 15
+ BOARD_REV1 = 0x60, /* Board revision - #1 */
+ BOARD_REV2 = 0x50, /* Board revision - #2 */
+
+ MOUSE_XFIRE = 0x01, /* X Quadrature Fired, active low */
+ MOUSE_XCHANGE = 0x02, /* MOUSE_XCHANGE ? x-- : x++ */
+ MOUSE_YFIRE = 0x04, /* Y Quadrature Fired, active low */
+ MOUSE_YCHANGE = 0x08, /* MOUSE_YCHANGE ? y-- : y++ */
+
+ PAR_UR = 0x01, /* Check parity on user-mode reads */
+ PAR_UW = 0x02, /* Check parity on user-mode writes */
+ PAR_KR = 0x04, /* Check parity on kernel-mode reads */
+ PAR_KW = 0x08, /* Check parity on kernel-mode writes */
+ PAR_DIS0 = 0x10, /* Disable access to DUART0 and LEDs */
+ PAR_DIS1 = 0x20, /* Disable access to DUART1 */
+ PAR_MBR = 0x40, /* Check parity on multibus reads */
+ PAR_MBW = 0x80, /* Check parity on multibus writes */
+
+ MBP_DCACC = 0x01, /* Display controller access (I/O page 4) */
+ MBP_UCACC = 0x02, /* Update controller access (I/O page 3) */
+ MBP_GFACC = 0x04, /* Allow GF access (I/O page 1) */
+ MBP_DMACC = 0x08, /* Allow GL2 DMA access (0x8nnnnn - x0bnnnnn) */
+ MBP_LIOACC = 0x10, /* Allow lower I/O access (0x0nnnnn - 0x7nnnnn) */
+ MBP_HIOACC = 0x20, /* Allow upper I/O access (0x8nnnnn - 0xfnnnnn) */
+ MBP_LMACC = 0x40, /* Allow lower memory access (0x0nnnnn - 0x7nnnnn) */
+ MBP_HMACC = 0x80, /* Allow upper memory access (0x8nnnnn - 0xfnnnnn) */
+
+ STATUS_DIAG0 = 0,
+ STATUS_DIAG1 = 1,
+ STATUS_DIAG2 = 2,
+ STATUS_DIAG3 = 3,
+ STATUS_ENABEXT = 4,
+ STATUS_ENABINT = 5,
+ STATUS_BINIT = 6,
+ STATUS_NOTBOOT = 7,
+ STATUS_USERFPA = 8,
+ STATUS_USERGE = 9,
+ STATUS_SLAVE = 10,
+ STATUS_ENABCBRQ = 11,
+ STATUS_NOTGEMASTER = 12,
+ STATUS_GENBAD = 13,
+ STATUS_ENABWDOG = 14,
+ STATUS_QUICK_TOUT = 15
};
std::vector<uint8_t> m_file_data;
diff --git a/src/mame/drivers/konamigs.cpp b/src/mame/drivers/konamigs.cpp
index c54726212e0..718a09a10c2 100644
--- a/src/mame/drivers/konamigs.cpp
+++ b/src/mame/drivers/konamigs.cpp
@@ -258,10 +258,10 @@ READ64_MEMBER(gsan_state::portc_r)
WRITE64_MEMBER(gsan_state::portc_w)
{
/* DDR
- ---- x--- /Coin counter
- --x- ---- Start button lamp
- -x-- ---- Right button lamp
- x--- ---- Left button lamp
+ ---- x--- /Coin counter
+ --x- ---- Start button lamp
+ -x-- ---- Right button lamp
+ x--- ---- Left button lamp
*/
m_portc_data = data;
@@ -270,10 +270,10 @@ WRITE64_MEMBER(gsan_state::portc_w)
WRITE64_MEMBER(gsan_state::portc_medal_w)
{
/* Medal
- ---- ---x Medal in counter
- ---- --x- 100Y in counter
- ---- -x-- 10Y in counter
- x--- ---- Hopper
+ ---- ---x Medal in counter
+ ---- --x- 100Y in counter
+ ---- -x-- 10Y in counter
+ x--- ---- Hopper
*/
m_portc_data = data;
@@ -289,22 +289,22 @@ READ64_MEMBER(gsan_state::porte_r)
WRITE64_MEMBER(gsan_state::porte_w)
{
/* DDR
- ---- -x-- Lamp R3
- ---- x--- Lamp R2
- ---x ---- Lamp R1
- --x- ---- Lamp L3
- -x-- ---- Lamp L2
- x--- ---- Lamp L1
+ ---- -x-- Lamp R3
+ ---- x--- Lamp R2
+ ---x ---- Lamp R1
+ --x- ---- Lamp L3
+ -x-- ---- Lamp L2
+ x--- ---- Lamp L1
*/
m_porte_data = data;
}
WRITE64_MEMBER(gsan_state::porte_medal_w)
{
/* Medal
- ---- ---x Medal in lock
- ---- --x- 100Y in lock
- ---- -x-- 10Y in lock
- -x-- ---- Button lamp
+ ---- ---x Medal in lock
+ ---- --x- 100Y in lock
+ ---- -x-- 10Y in lock
+ -x-- ---- Button lamp
*/
m_porte_data = data;
diff --git a/src/mame/drivers/midqslvr.cpp b/src/mame/drivers/midqslvr.cpp
index 2af3b93a9d7..032c0bd7065 100644
--- a/src/mame/drivers/midqslvr.cpp
+++ b/src/mame/drivers/midqslvr.cpp
@@ -45,8 +45,8 @@ Chipsets (VIA Pro133A):
- VT82C694X Northbridge
- VT82C686A Southbridge
-Note: Entirely different motherboard/chipset hardware (most likely needs its own driver). This game's storage device has a
-copy protection scheme that "locks" the storage device to the motherboard's serial number. If a drive doesn't match the
+Note: Entirely different motherboard/chipset hardware (most likely needs its own driver). This game's storage device has a
+copy protection scheme that "locks" the storage device to the motherboard's serial number. If a drive doesn't match the
motherboard's serial number, the game launcher will give an error.
I/O boards:
diff --git a/src/mame/drivers/mjsister.cpp b/src/mame/drivers/mjsister.cpp
index 0496782c7e9..b9eabf8fbac 100644
--- a/src/mame/drivers/mjsister.cpp
+++ b/src/mame/drivers/mjsister.cpp
@@ -149,8 +149,8 @@ MC6845_UPDATE_ROW( mjsister_state::crtc_update_row )
uint8_t c2 = ((data_fg & 0xf0) >> 4);
// 0 is transparent
- if (c1) bitmap.pix32(y, x1) = pen[m_colorbank << 5 | 0x10 | c1];
- if (c2) bitmap.pix32(y, x2) = pen[m_colorbank << 5 | 0x10 | c2];
+ if (c1) bitmap.pix32(y, x1) = pen[m_colorbank << 5 | 0x10 | c1];
+ if (c2) bitmap.pix32(y, x2) = pen[m_colorbank << 5 | 0x10 | c2];
}
}
@@ -299,7 +299,7 @@ void mjsister_state::mjsister_io_map(address_map &map)
map(0x33, 0x33).w(FUNC(mjsister_state::input_sel2_w));
map(0x34, 0x34).w(FUNC(mjsister_state::dac_adr_s_w));
map(0x35, 0x35).w(FUNC(mjsister_state::dac_adr_e_w));
-// map(0x36, 0x36) // writes 0xf8 here once
+// map(0x36, 0x36) // writes 0xf8 here once
}
diff --git a/src/mame/drivers/naomi.cpp b/src/mame/drivers/naomi.cpp
index 4839fe23355..2bb004e5e92 100644
--- a/src/mame/drivers/naomi.cpp
+++ b/src/mame/drivers/naomi.cpp
@@ -4471,7 +4471,7 @@ ROM_START( f355p )
ROM_LOAD("rom1.ic1s", 0x0800000, 0x0800000, BAD_DUMP CRC(ba0ee343) SHA1(d8d8bbfd330c9b9c7fe5974cb2f5f9d6a4ef1477) ) // file: 7ACD 7D37 right sums: 803F 81A7
ROM_LOAD("rom2.ic2s", 0x1000000, 0x0800000, CRC(adf8fa95) SHA1(d91ca2a8b45d744c5a6b84099b12c553acc2a83c) )
- ROM_LOAD("rom3.ic3s", 0x1800000, 0x0800000, BAD_DUMP CRC(90fc7b08) SHA1(ac9b49239f731a9ebfdf998c6d2253dea2f5741c) ) // file: BF7E 589C right sums: BF70 579C
+ ROM_LOAD("rom3.ic3s", 0x1800000, 0x0800000, BAD_DUMP CRC(90fc7b08) SHA1(ac9b49239f731a9ebfdf998c6d2253dea2f5741c) ) // file: BF7E 589C right sums: BF70 579C
ROM_LOAD("rom4.ic4s", 0x2000000, 0x0800000, CRC(9c18fe61) SHA1(acc0447e3aec6233d7211afe9578236e275330c7) )
ROM_LOAD("rom5.ic5s", 0x2800000, 0x0800000, CRC(ed3a6c95) SHA1(8545231342ebbf436551b73e17c91b59f53f47c1) )
ROM_LOAD("rom6.ic6s", 0x3000000, 0x0800000, CRC(a52d4b49) SHA1(9317da85a80d7a0bb8f9af19163724193088f3ab) )
diff --git a/src/mame/drivers/pdt3100.cpp b/src/mame/drivers/pdt3100.cpp
index 8a780333728..1a78bb98095 100644
--- a/src/mame/drivers/pdt3100.cpp
+++ b/src/mame/drivers/pdt3100.cpp
@@ -4,12 +4,12 @@
Skeleton driver for Symbol PDT 3100 handheld computer.
- Parts side
+ Parts side
MCU NEC V25 D70320GJ-8
3 x Flash Intel N28F010
Xtal R160SHAA7
SRAM Hitachi 658512ALFP-8
- LCD side
+ LCD side
CMOS Pseudo Static RAM Toshiba TC518128CFTL-80
Display controller? STI 13130-018
Real-Time Clock plus RAM with Serial Interface MC68HC68T1
diff --git a/src/mame/drivers/raiden2.cpp b/src/mame/drivers/raiden2.cpp
index 6181ef237a0..e25baea3afe 100644
--- a/src/mame/drivers/raiden2.cpp
+++ b/src/mame/drivers/raiden2.cpp
@@ -1303,7 +1303,7 @@ ROM_START( raiden2 )
ROM_REGION( 0x100000, "oki1", 0 ) /* ADPCM samples */
ROM_LOAD( "seibu6.u1017", 0x00000, 0x40000, CRC(fb0fca23) SHA1(4b2217b121a66c5ab6015537609cf908ffedaf86) ) /* PCB silkscreened VOICE1 */
-
+
// Common Raiden II PALs below
ROM_REGION( 0x10000, "pals", 0 ) /* PALS */
ROM_LOAD( "jj4b02__ami18cv8-15.u0342.jed", 0x0000, 0x288, NO_DUMP)
diff --git a/src/mame/drivers/spg29x.cpp b/src/mame/drivers/spg29x.cpp
index a6c2c460272..6e2ac3631be 100644
--- a/src/mame/drivers/spg29x.cpp
+++ b/src/mame/drivers/spg29x.cpp
@@ -53,7 +53,7 @@
-------
- CPU die markings on Big Buck Hunter "SunplusmM LU9001"
+ CPU die markings on Big Buck Hunter "SunplusmM LU9001"
****************************************************************************/
diff --git a/src/mame/drivers/spg2xx.cpp b/src/mame/drivers/spg2xx.cpp
index 70bdecc33ac..dabc3d9942c 100644
--- a/src/mame/drivers/spg2xx.cpp
+++ b/src/mame/drivers/spg2xx.cpp
@@ -33,9 +33,9 @@
Clickstart ( see clickstart.cpp instead)
Wheel of Fortune 2nd Edition
Spider-man - Villain Roundup
- Dream Life Superstar
- Designer's World
- Star Wars TV Touch
+ Dream Life Superstar
+ Designer's World
+ Star Wars TV Touch
"SunPlus QU7074-P69A"
@@ -987,7 +987,7 @@ void spg2xx_game_tmntmutm_state::tmntmutm(machine_config &config)
READ16_MEMBER(spg2xx_game_pballpup_state::porta_r)
{
uint16_t ret = m_io_p1->read() & 0xfff7;
-// logerror("%s: spg2xx_game_pballpup_state::porta_r\n", machine().describe_context());
+// logerror("%s: spg2xx_game_pballpup_state::porta_r\n", machine().describe_context());
ret |= m_eeprom->do_read() ? 0x8 : 0x0;
return ret;
}
diff --git a/src/mame/drivers/spg2xx_jakks_tvtouch.cpp b/src/mame/drivers/spg2xx_jakks_tvtouch.cpp
index 2740b3e871b..cad2ed7f419 100644
--- a/src/mame/drivers/spg2xx_jakks_tvtouch.cpp
+++ b/src/mame/drivers/spg2xx_jakks_tvtouch.cpp
@@ -242,7 +242,7 @@ WRITE_LINE_MEMBER(jakks_tvtouch_state::spi_w)
/*static uint8_t s_value = 0x40;
for (int bit = 7; bit >= 0; bit--)
{
- m_maincpu->spi_rx(BIT(s_value, bit));
+ m_maincpu->spi_rx(BIT(s_value, bit));
}
s_value ^= 0x80;*/
}
diff --git a/src/mame/drivers/sunplus_unsp20soc.cpp b/src/mame/drivers/sunplus_unsp20soc.cpp
index 6154cb54e07..c7e4b3fcf4e 100644
--- a/src/mame/drivers/sunplus_unsp20soc.cpp
+++ b/src/mame/drivers/sunplus_unsp20soc.cpp
@@ -1,16 +1,16 @@
// license:BSD-3-Clause
// copyright-holders:David Haywood
/*
- (unSP 2.0 based System on a Chip)
+ (unSP 2.0 based System on a Chip)
JAKKS call this GPAC800, other sources call it GPL16250
- die markings GCM394
- - Smart Fit Park
- - Spongebob Bikini Bottom 500
- - Mobigo2 (sunplus_unsp20soc_mobigo.cpp)
+ die markings GCM394
+ - Smart Fit Park
+ - Spongebob Bikini Bottom 500
+ - Mobigo2 (sunplus_unsp20soc_mobigo.cpp)
- some of the systems here might use newer dies but the video etc. appears the same.
+ some of the systems here might use newer dies but the video etc. appears the same.
Compared to vii.cpp this is clearly newer, has extra opcodes, different internal map etc. also scaling and higher resolutions based on Spongebob
diff --git a/src/mame/drivers/tulip1.cpp b/src/mame/drivers/tulip1.cpp
index 7bebae8d871..84226d2c083 100644
--- a/src/mame/drivers/tulip1.cpp
+++ b/src/mame/drivers/tulip1.cpp
@@ -5,24 +5,24 @@
CompuData Tulip System I
Hardware:
- - I8086 CPU
- - I8087 FPU (optional)
- - I8089 I/O Processor (optional)
- - 8 kb ROM, 4 + 8 kb graphics ROM
- - 128 to 896 kb RAM
- - 2x TC5517AP VRAM
- - HD46505SP-2 CRT (+ 7220?)
- - MC68B50P ACIA (for the keyboard?)
- - 8256A-P MUART
- - WD2793PL-02 FDC
-
- TODO:
- - No MUART emulation which handles interrupts, timers, serial and
- parallel interfaces.
-
- Notes:
- - If you hit the keyboard a few times it tries to load the OS first
- from floppy and then from the hard drive.
+ - I8086 CPU
+ - I8087 FPU (optional)
+ - I8089 I/O Processor (optional)
+ - 8 kb ROM, 4 + 8 kb graphics ROM
+ - 128 to 896 kb RAM
+ - 2x TC5517AP VRAM
+ - HD46505SP-2 CRT (+ 7220?)
+ - MC68B50P ACIA (for the keyboard?)
+ - 8256A-P MUART
+ - WD2793PL-02 FDC
+
+ TODO:
+ - No MUART emulation which handles interrupts, timers, serial and
+ parallel interfaces.
+
+ Notes:
+ - If you hit the keyboard a few times it tries to load the OS first
+ from floppy and then from the hard drive.
***************************************************************************/
@@ -84,18 +84,18 @@ void tulip1_state::mem_map(address_map &map)
void tulip1_state::io_map(address_map &map)
{
map(0xfc00, 0xfc07).rw(m_fdc, FUNC(wd2793_device::read), FUNC(wd2793_device::write)).umask16(0x00ff);
-// map(0xfca0, 0xfcaf) // ?
-// map(0xfcb0) // ?
-// map(0xfc80) // ?
+// map(0xfca0, 0xfcaf) // ?
+// map(0xfcb0) // ?
+// map(0xfc80) // ?
map(0xfc91, 0xfc91).lr8(NAME([]() -> u8 { return 0x04; })); // ?
-// map(0xfd00, 0xfd1f) // muart
+// map(0xfd00, 0xfd1f) // muart
map(0xfd98, 0xfd98).rw(m_acia, FUNC(acia6850_device::status_r), FUNC(acia6850_device::control_w));
map(0xfd9c, 0xfd9c).rw(m_acia, FUNC(acia6850_device::data_r), FUNC(acia6850_device::data_w));
map(0xfe00, 0xfe00).w(m_crtc, FUNC(hd6845s_device::address_w));
map(0xfe02, 0xfe02).rw(m_crtc, FUNC(hd6845s_device::register_r), FUNC(hd6845s_device::register_w));
-// map(0xfe82) // ?
-// map(0xff00, 0xff1f) // ?
-// map(0xff30) // ?
+// map(0xfe82) // ?
+// map(0xff00, 0xff1f) // ?
+// map(0xff30) // ?
}
static INPUT_PORTS_START( tulip1 )
diff --git a/src/mame/drivers/vt1682.cpp b/src/mame/drivers/vt1682.cpp
index 597433a0cd1..8791fbacba2 100644
--- a/src/mame/drivers/vt1682.cpp
+++ b/src/mame/drivers/vt1682.cpp
@@ -150,7 +150,7 @@ protected:
DECLARE_WRITE_LINE_MEMBER(soundcpu_timera_irq);
DECLARE_WRITE_LINE_MEMBER(soundcpu_timerb_irq);
-
+
DECLARE_WRITE_LINE_MEMBER(maincpu_timer_irq);
required_device<vrt_vt1682_timer_device> m_soundcpu_timer_a_dev;
@@ -5669,7 +5669,7 @@ static INPUT_PORTS_START( exsprt48 )
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(1)
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(1)
- PORT_START("P2")
+ PORT_START("P2")
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
diff --git a/src/mame/drivers/xavix2.cpp b/src/mame/drivers/xavix2.cpp
index 7537c0477ad..7cb949e017e 100644
--- a/src/mame/drivers/xavix2.cpp
+++ b/src/mame/drivers/xavix2.cpp
@@ -114,7 +114,7 @@ void xavix2_state::irq_clear_w(u16 data)
m_int_active &= ~data;
if(!m_int_active)
m_maincpu->set_input_line(0, CLEAR_LINE);
-
+
}
u8 xavix2_state::irq_level_r()
@@ -209,13 +209,13 @@ void xavix2_state::gpu_count_w(u16 data)
}
break;
}
-
+
default:
for(u32 yy=0; yy<sy; yy++)
for(u32 xx=0; xx<sx; xx++)
m_sd[yy+y][xx+x] = 0xffff0000;
break;
- }
+ }
}
}
@@ -258,7 +258,7 @@ void xavix2_state::dma_control_w(u8 data)
auto &prg = m_maincpu->space(AS_PROGRAM);
for(u32 i=0; i != m_dma_count; i++)
prg.write_byte(dadr + i, prg.read_byte(sadr + i));
- m_dma_timer->adjust(attotime::from_ticks(m_dma_count, m_maincpu->clock()));
+ m_dma_timer->adjust(attotime::from_ticks(m_dma_count, m_maincpu->clock()));
}
}
@@ -373,7 +373,7 @@ void xavix2_state::crtc_w(offs_t reg, u16 data)
void xavix2_state::mem(address_map &map)
{
- map(0x00000000, 0x0000ffff).ram();
+ map(0x00000000, 0x0000ffff).ram();
map(0x00010000, 0x00ffffff).rom().region("maincpu", 0x010000);
map(0x40000000, 0x40ffffff).rom().region("maincpu", 0);
diff --git a/src/mame/drivers/xyonix.cpp b/src/mame/drivers/xyonix.cpp
index d0c16b2557c..8302ab4684f 100644
--- a/src/mame/drivers/xyonix.cpp
+++ b/src/mame/drivers/xyonix.cpp
@@ -85,7 +85,7 @@ private:
void main_map(address_map &map);
void port_map(address_map &map);
-// MC6845_UPDATE_ROW(crtc_update_row);
+// MC6845_UPDATE_ROW(crtc_update_row);
};
void xyonix_state::machine_start()
@@ -401,7 +401,7 @@ void xyonix_state::xyonix(machine_config &config)
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
screen.set_raw(16_MHz_XTAL / 2, 508, 0, 320, 256, 0, 224); // 8 MHz?
screen.set_screen_update(FUNC(xyonix_state::screen_update));
-// screen.set_screen_update(m_crtc, FUNC(mc6845_device::screen_update));
+// screen.set_screen_update(m_crtc, FUNC(mc6845_device::screen_update));
screen.set_palette("palette");
GFXDECODE(config, m_gfxdecode, "palette", gfx_xyonix);
@@ -412,7 +412,7 @@ void xyonix_state::xyonix(machine_config &config)
m_crtc->set_screen("screen");
m_crtc->set_show_border_area(false);
m_crtc->set_char_width(4);
-// m_crtc->set_update_row_callback(FUNC(xyonix_state::crtc_update_row));
+// m_crtc->set_update_row_callback(FUNC(xyonix_state::crtc_update_row));
m_crtc->out_vsync_callback().set(FUNC(xyonix_state::nmiclk_w));
/* sound hardware */
diff --git a/src/mame/machine/alfaskop_s41_kb.cpp b/src/mame/machine/alfaskop_s41_kb.cpp
index 733914d636e..ed327b0c7e0 100644
--- a/src/mame/machine/alfaskop_s41_kb.cpp
+++ b/src/mame/machine/alfaskop_s41_kb.cpp
@@ -4,18 +4,18 @@
Alfaskop 4110 keyboard, emulation of the KeyBoard Unit KBU 4140. which often
was attached to the numerical Keyboard eXpansion Unit KXE 4141 which is not
- emulated yet. There is also an optional Magnetic Identification Device MID 4131
+ emulated yet. There is also an optional Magnetic Identification Device MID 4131
TTL-level bi-directional serial matrix keyboard
The KBU 4140 keyboard is controlled by a MC6802@3'579'000Hz in combo with a MC6846.
- The key matrix is scanned with the help of two 74LS164 which is also extended to the
- KXE 4141. The columns are read through a 74LS240. There are 8 LEDs which are
+ The key matrix is scanned with the help of two 74LS164 which is also extended to the
+ KXE 4141. The columns are read through a 74LS240. There are 8 LEDs which are
latched by a 74LS374. The I/O port on the MC6846 is connected to a magnet strip
reader through a MIA interface
- The keyboard serial interface line is interpreted and generated by the timer in
- the MC6846 where both TX and Rx shares the same line on the keyboard side. The
+ The keyboard serial interface line is interpreted and generated by the timer in
+ the MC6846 where both TX and Rx shares the same line on the keyboard side. The
keyboard remains silent until spoken to by the host computer to avoid collisions.
Credits
@@ -211,7 +211,7 @@ alfaskop_s41_keyboard_device::alfaskop_s41_keyboard_device(
: device_t(mconfig, ALFASKOP_S41_KB, tag, owner, clock)
, m_mcu(*this, M6800_TAG)
, m_mc6846(*this, "mc6846")
- , m_rows(*this, "P1%u", 0)
+ , m_rows(*this, "P1%u", 0)
, m_txd_cb(*this)
, m_leds_cb(*this)
, m_rxd_high(true)
@@ -231,7 +231,7 @@ WRITE_LINE_MEMBER(alfaskop_s41_keyboard_device::rxd_w)
// WRITE_LINE_MEMBER(alfaskop_s41_keyboard_device::hold_w)
// {
-// m_hold = CLEAR_LINE == state;
+// m_hold = CLEAR_LINE == state;
// }
WRITE_LINE_MEMBER(alfaskop_s41_keyboard_device::rst_line_w)
@@ -277,15 +277,15 @@ void alfaskop_s41_keyboard_device::device_add_mconfig(machine_config &config)
M6802(config, m_mcu, XTAL(3'579'545)); // Crystal verified from schematics
m_mcu->set_addrmap(AS_PROGRAM, &alfaskop_s41_keyboard_device::alfaskop_s41_kb_mem);
- MC6846(config, m_mc6846, XTAL(3'579'545) / 4); // Driven by E from 6802 == XTAL / 4
+ MC6846(config, m_mc6846, XTAL(3'579'545) / 4); // Driven by E from 6802 == XTAL / 4
m_mc6846->irq().set([this](bool state)
{
LOGIRQ(" [timer IRQ: %s] ", state == ASSERT_LINE ? "asserted" : "cleared");
m_mcu->set_input_line(M6802_IRQ_LINE, state);
});
- m_mc6846->cp2().set([this](bool state){ LOG("CP2:%d\n", state); });
+ m_mc6846->cp2().set([this](bool state){ LOG("CP2:%d\n", state); });
// MIA ID interrupt: m_mc6846->set_input_cp1(1);
- m_mc6846->cto().set([this](bool state){ LOG("CTO:%d\n", state); }); // Not connected to anything
+ m_mc6846->cto().set([this](bool state){ LOG("CTO:%d\n", state); }); // Not connected to anything
}
//-------------------------------------------------
@@ -311,15 +311,15 @@ void alfaskop_s41_keyboard_device::alfaskop_s41_kb_mem(address_map &map)
* Decoder rom byte bits as follows
* 0 - 0x01 Start scanning
* 1 - 0x02 read col
- * 2 - 0x04 shift col clock
+ * 2 - 0x04 shift col clock
* 3 - 0x08 set lamp data
* 4 - 0x10 CS1 mc6846 I/O access - active low
* 5 - 0x20 CS0 mc6846 ROM access - active high
* 6 - 0x40 n/c?
* 7 - 0x80 to KBX
- *
+ *
* F3 <- 0x0f <- 1-11 1 == b800-bfff, f800-ffff // 1111 0011 MC6846 Internal ROM access (CS0 - active high)
- * 43 <- 0x0e <- 1-11 0 == b000-b7ff, f000-f7ff // 0100 0011
+ * 43 <- 0x0e <- 1-11 0 == b000-b7ff, f000-f7ff // 0100 0011
* c3 <- 0x0d <- 1-10 1 == a800-afff, e800-efff // 1100 0011
* c3 <- 0x0c <- 1-10 0 == a000-a7ff, e000-e7ff // 1100 0011
* c3 <- 0x0b <- 1-01 1 == 9800-9fff, d800-dfff // 1100 0011
@@ -331,14 +331,14 @@ void alfaskop_s41_keyboard_device::alfaskop_s41_kb_mem(address_map &map)
* cb <- 0x06 <- 0-11 0 == 3000-37ff, 7000-77ff // 1100 1011 Set lamp data
* c6 <- 0x05 <- 0-10 1 == 2800-2fff, 6800-6fff // 1100 0110 start scan
* c5 <- 0x04 <- 0-10 0 == 2000-27ff, 6000-67ff // 1100 0101 read col
- * c3 <- 0x03 <- 0-01 1 == 1800-1fff, 5800-5fff // 1100 0011
+ * c3 <- 0x03 <- 0-01 1 == 1800-1fff, 5800-5fff // 1100 0011
* c3 <- 0x02 <- 0-01 0 == 1000-17ff, 5000-57ff // 1100 0011
* c3 <- 0x01 <- 0-00 1 == 0800-0fff, 4800-4fff // 1100 0011
* c3 <- 0x00 <- 0-00 0 == 0000-07ff, 4000-47ff // 1100 0011
*/
map(0x0080, 0xffff).lrw8(NAME([this](address_space &space, offs_t offset) -> uint8_t
- {
- uint16_t addr = offset + 0x80;
+ {
+ uint16_t addr = offset + 0x80;
uint8_t index = 0x10 | ((((addr & 0x8000) | ((addr & 0x3800) << 1)) >> 12) & 0x000f); // 0x10 | (((A15 | A13 | A12 | A11) >> 12)
uint8_t ret = 0;
LOGADEC("address_r %04x -> index %02x: %02x\n", offset + 0x80, index, memregion("ad_rom")->base ()[index]);
@@ -359,10 +359,10 @@ void alfaskop_s41_keyboard_device::alfaskop_s41_kb_mem(address_map &map)
logerror(" - unmapped read access at %04x through %02x\n", addr, memregion("ad_rom")->base ()[index]);
}
return ret;
- }),
- NAME( [this](address_space &space, offs_t offset, uint8_t data)
- {
- uint16_t addr = offset + 0x80;
+ }),
+ NAME( [this](address_space &space, offs_t offset, uint8_t data)
+ {
+ uint16_t addr = offset + 0x80;
uint8_t index = 0x10 | ((((addr & 0x8000) | ((addr & 0x3800) << 1)) >> 12) & 0x000f); // 0x10 | (((A15 | A13 | A12 | A11) >> 12)
LOGADEC("address_w %04x -> index %02x: %02x\n", offset + 0x80, index, memregion("ad_rom")->base ()[index]);
switch (memregion("ad_rom")->base ()[index])
@@ -383,8 +383,8 @@ void alfaskop_s41_keyboard_device::alfaskop_s41_kb_mem(address_map &map)
default:
logerror(" - unmapped write access at %04x, %02x through %02x\n", addr, data, memregion("ad_rom")->base ()[index]);
}
- }));
- // map(0xf800, 0xffff).rom().region(M6800_TAG,0);
+ }));
+ // map(0xf800, 0xffff).rom().region(M6800_TAG,0);
}
//-------------------------------------------------
diff --git a/src/mame/machine/alfaskop_s41_kb.h b/src/mame/machine/alfaskop_s41_kb.h
index 8ac29df5f40..1d99ec82264 100644
--- a/src/mame/machine/alfaskop_s41_kb.h
+++ b/src/mame/machine/alfaskop_s41_kb.h
@@ -30,7 +30,7 @@ protected:
virtual tiny_rom_entry const *device_rom_region() const override;
required_device<m6802_cpu_device> m_mcu;
- required_device<mc6846_device> m_mc6846;
+ required_device<mc6846_device> m_mc6846;
required_ioport_array<6> m_rows;
devcb_write_line m_txd_cb; // Callback for KBD-> S41
devcb_write8 m_leds_cb; // Callback for all 8 leds -> layout
diff --git a/src/mame/machine/m6502_swap_op_d5_d6.cpp b/src/mame/machine/m6502_swap_op_d5_d6.cpp
index 32693316f2b..12a853ab807 100644
--- a/src/mame/machine/m6502_swap_op_d5_d6.cpp
+++ b/src/mame/machine/m6502_swap_op_d5_d6.cpp
@@ -7,7 +7,7 @@
6502 with instruction scrambling
Seen on die marked VH2009, used on polmega, silv35
- but also elsewhere
+ but also elsewhere
***************************************************************************/
diff --git a/src/mame/machine/nl_stuntcyc.cpp b/src/mame/machine/nl_stuntcyc.cpp
index 8738117e6d1..04db4c2da12 100644
--- a/src/mame/machine/nl_stuntcyc.cpp
+++ b/src/mame/machine/nl_stuntcyc.cpp
@@ -208,7 +208,7 @@ NETLIST_START(stuntcyc)
RES(R8, 330)
CAP(C2, CAP_U(0.1))
QBJT_SW(Q11, "2N3644")
-
+
NET_C(D2.A, R8.1, Q10.C)
NET_C(COIN_Q, D2.K)
diff --git a/src/mame/video/1942.cpp b/src/mame/video/1942.cpp
index d3da0d3f223..361badaad01 100644
--- a/src/mame/video/1942.cpp
+++ b/src/mame/video/1942.cpp
@@ -214,7 +214,7 @@ void _1942_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect)
// clocks per scanline. With an effective 6MHz pixel clock, this produces a
// horizontal scan rate of exactly 15.625kHz, a standard scan rate for games
// of this era.
- //
+ //
// Sprites are drawn by MAME in reverse order, as the actual hardware only
// permits a transparent pixel to be overwritten by an opaque pixel, and does
// not support opaque-opaque overwriting - i.e., the first sprite to draw wins
diff --git a/src/mame/video/armedf.cpp b/src/mame/video/armedf.cpp
index 868014e9eb4..72f6662209c 100644
--- a/src/mame/video/armedf.cpp
+++ b/src/mame/video/armedf.cpp
@@ -332,7 +332,7 @@ void armedf_state::draw_sprites( bitmap_ind16 &bitmap, const rectangle &cliprect
pmask |= GFX_PMASK_2;
/*
if (pri >= 3)
- pmask |= GFX_PMASK_1;
+ pmask |= GFX_PMASK_1;
*/
if (flip_screen())
diff --git a/src/mame/video/boogwing.cpp b/src/mame/video/boogwing.cpp
index cb564dab27b..3683bf165d3 100644
--- a/src/mame/video/boogwing.cpp
+++ b/src/mame/video/boogwing.cpp
@@ -22,7 +22,7 @@ void boogwing_state::video_start()
fixed, with manual mixing you have full control.
apparently priority is based on a PROM, that should be used if possible.
-
+
Reference video : https://www.youtube.com/watch?v=mRdIlP_erBM (Live stream)
*/
void boogwing_state::mix_boogwing(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)