From 780490d9ac651f0aafe6fe3e6c2ece9b7e800fbe Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 22 Dec 2024 05:34:00 +1100 Subject: [PATCH] srcclean and cleanup --- hash/cassvisn_cart.xml | 12 +++++----- hash/megadriv.xml | 2 +- hash/spectrum_cass.xml | 2 +- src/devices/bus/rs232/teletex800.cpp | 4 ++-- src/devices/bus/sg1000_exp/sk1100.cpp | 2 +- src/devices/cpu/upd777/upd777.cpp | 14 +++++------ src/devices/cpu/upd777/upd777dasm.cpp | 4 ++-- src/devices/video/pc_vga_cirrus.cpp | 2 +- src/emu/layout/teletex800.lay | 34 +++++++++++++-------------- src/frontend/mame/luaengine.cpp | 12 +++++----- src/mame/amiga/amiga_v.cpp | 6 ++--- src/mame/amiga/amigaaga.cpp | 2 +- src/mame/apple/dafb.cpp | 4 ++-- src/mame/dataeast/dec8.cpp | 4 ++-- src/mame/dataeast/kchamp_v.cpp | 10 ++++---- src/mame/dynax/dynax.cpp | 6 ++--- src/mame/jaleco/megasys1.h | 4 ++-- src/mame/midway/williams.cpp | 2 +- src/mame/misc/cvs.cpp | 14 +++++------ src/mame/misc/goldnpkr.cpp | 4 ++-- src/mame/psion/mc400.cpp | 8 +++---- src/mame/skeleton/easy_karaoke.cpp | 10 ++++---- src/mame/toaplan/dogyuun.cpp | 2 +- src/mame/toaplan/dt7.cpp | 10 ++++---- src/mame/toaplan/enmadaio.cpp | 2 +- src/mame/toaplan/pipibibi.cpp | 2 +- src/mame/toaplan/snowbro2.cpp | 4 ++-- src/mame/toaplan/truxton2.cpp | 2 +- src/mame/zaccaria/quasar.cpp | 2 +- 29 files changed, 93 insertions(+), 93 deletions(-) diff --git a/hash/cassvisn_cart.xml b/hash/cassvisn_cart.xml index 9fbb64e17bb68..fc95747bfd9ed 100644 --- a/hash/cassvisn_cart.xml +++ b/hash/cassvisn_cart.xml @@ -29,7 +29,7 @@ Note on PRG size (from CPU documentation) Physically, 128 * 15 * 12 = 23,040 bits Logically, 127 * 15 * 12 = 22,860 bits (as final word of each page is inaccessible by the CPU) -the ROM files below store 12 bit in a 16-bit word with 4 bits unused, so 128 * 15 * (12+4) +the ROM files below store 12 bit in a 16-bit word with 4 bits unused, so 128 * 15 * (12+4) --> @@ -43,7 +43,7 @@ the ROM files below store 12 bit in a 16-bit word with 4 bits unused, so 128 * 1 - + @@ -65,7 +65,7 @@ the ROM files below store 12 bit in a 16-bit word with 4 bits unused, so 128 * 1 - + Galaxian @@ -76,7 +76,7 @@ the ROM files below store 12 bit in a 16-bit word with 4 bits unused, so 128 * 1 - + @@ -92,7 +92,7 @@ the ROM files below store 12 bit in a 16-bit word with 4 bits unused, so 128 * 1 - + @@ -211,5 +211,5 @@ the ROM files below store 12 bit in a 16-bit word with 4 bits unused, so 128 * 1 - + diff --git a/hash/megadriv.xml b/hash/megadriv.xml index c36c6f9750133..e829d519ede6f 100644 --- a/hash/megadriv.xml +++ b/hash/megadriv.xml @@ -3019,7 +3019,7 @@ Crashes after EA logo, requires better [VDP] irq handling + See: https://www.youtube.com/watch?v=_1uGkfw5ky8 --> Fix-it Felix Jr. (v1.0) 2013 diff --git a/hash/spectrum_cass.xml b/hash/spectrum_cass.xml index bce7a30f1761f..7d3b910bfe34b 100644 --- a/hash/spectrum_cass.xml +++ b/hash/spectrum_cass.xml @@ -72378,7 +72378,7 @@ Side B - Game 1: The Dragonstar Trilogy Part III (Delta 4 Software) - + Éditeur de Manoir 2012 diff --git a/src/devices/bus/rs232/teletex800.cpp b/src/devices/bus/rs232/teletex800.cpp index 46bac3bb5fd1f..0bde70f4f677c 100644 --- a/src/devices/bus/rs232/teletex800.cpp +++ b/src/devices/bus/rs232/teletex800.cpp @@ -88,7 +88,7 @@ class teletex_800_device : public device_t, public device_rs232_port_interface m_all_led.resolve(); m_time_led.resolve(); m_date_led.resolve(); - m_year_led.resolve(); + m_year_led.resolve(); m_rx_digits.resolve(); m_tx_digits.resolve(); } @@ -129,7 +129,7 @@ class teletex_800_device : public device_t, public device_rs232_port_interface { } - constexpr static const z80_daisy_config z80_daisy_chain[] = + constexpr static const z80_daisy_config z80_daisy_chain[] = { { nullptr } }; diff --git a/src/devices/bus/sg1000_exp/sk1100.cpp b/src/devices/bus/sg1000_exp/sk1100.cpp index f65451827bdc5..f0ad03885629b 100644 --- a/src/devices/bus/sg1000_exp/sk1100.cpp +++ b/src/devices/bus/sg1000_exp/sk1100.cpp @@ -90,7 +90,7 @@ static INPUT_PORTS_START( sk1100_keys ) PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME(u8"\u2193") PORT_CODE(KEYCODE_DOWN) PORT_CHAR(UCHAR_MAMEKEY(DOWN)) // U+2193 = ↓ PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME(u8"] \u30E0 } \u300d LIST") PORT_CODE(KEYCODE_BACKSLASH) PORT_CHAR(']', 0x30e0) PORT_CHAR('}', 0x300d) // ム 」 - PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME(u8"[ \u309C { \u300c THEN") PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR('[', 0x309c) PORT_CHAR('{', 0x300c) // ゜ 「 + PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME(u8"[ \u309C { \u300c THEN") PORT_CODE(KEYCODE_CLOSEBRACE) PORT_CHAR('[', 0x309c) PORT_CHAR('{', 0x300c) // ゜ 「 PORT_START("PA5") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_KEYBOARD ) PORT_NAME(u8"6 \u30AA & COLOR") PORT_CODE(KEYCODE_6) PORT_CHAR('6', 0x30aa) PORT_CHAR('&', 0x30a9) // オ ォ diff --git a/src/devices/cpu/upd777/upd777.cpp b/src/devices/cpu/upd777/upd777.cpp index fda5e638bb4b0..d915c031b8745 100644 --- a/src/devices/cpu/upd777/upd777.cpp +++ b/src/devices/cpu/upd777/upd777.cpp @@ -60,7 +60,7 @@ void upd777_cpu_device::internal_data_map(address_map &map) // 00 yyyyyyp (y = ypos, p = PRIO) // 01 xxxxxxx (x = xpos) // 02 ttttttt (t = pattern) - // 03 YYYRGBS (Y = , RGB = color, S=ySUB) + // 03 YYYRGBS (Y = , RGB = color, S=ySUB) map(0x00, 0x7f).ram().share("datamem"); } @@ -254,7 +254,7 @@ inline void upd777_cpu_device::set_frs(u8 frs) { m_frs = frs & 0x7f; } inline void upd777_cpu_device::set_fls(u8 fls) { m_fls = fls & 0x7f; } // MODE is a 7-bit register with the following format -// 6543210 +// 6543210 // rbhpRGB (r = reverberate sound effect, b = brightness, h = hue, p = black/prio, RGB = color) inline void upd777_cpu_device::set_mode(u8 mode) { m_mode = mode & 0x7f; } @@ -517,7 +517,7 @@ void upd777_cpu_device::do_op() { if (!non) { - if ((srcreg1 & srcreg2) == 0) // skip if (x·y) makes zero, N->L[2:1] + if ((srcreg1 & srcreg2) == 0) // skip if (x·y) makes zero, N->L[2:1] m_skip = 1; } else @@ -569,7 +569,7 @@ void upd777_cpu_device::do_op() } else if ((inst & 0b1111'1010'0000) == 0b0011'0010'0000) { - // 0b0011'0r1R'oonn (where r = reg1, R = reg2, o = optype, and n = next l value) + // 0b0011'0r1R'oonn (where r = reg1, R = reg2, o = optype, and n = next l value) // 320 AND A1[7:1] and A1[7:1], store to A1[7:1], N->L[2:1] // 324 Add A1[7:1] and A1[7:1], store to A1[7:1], N->L[2:1] // 328 OR A1[7:1] and A1[7:1], store to A1[7:1], N->L[2:1] @@ -606,7 +606,7 @@ void upd777_cpu_device::do_op() src1 = src1 + src2; // not in this case? //if (src1 & 0x80) - // m_skip = 1; + // m_skip = 1; break; } case 2: // OR @@ -719,7 +719,7 @@ void upd777_cpu_device::do_op() } else if ((inst & 0b1111'1100'0010) == 0b0100'0100'0000) { - // 0b0100'01dg'ks0n (where d = DISP, G = GPE, K = KIE, S = SME, n = A11) + // 0b0100'01dg'ks0n (where d = DISP, G = GPE, K = KIE, S = SME, n = A11) // 440 Set D to DISP, G to GPE, K to KIE, S to SME, N->A[11] const int d = (inst >> 5) & 0x1; const int g = (inst >> 4) & 0x1; @@ -1172,7 +1172,7 @@ uint32_t upd777_cpu_device::screen_update(screen_device &screen, bitmap_ind16 &b // 0x68-0x6f are 'Y Repeat' (7x7) // 0x70-0x77 are 'XY Repeat' (8x7) // 0x78-0x7f are 'X Repeat' (8x7) -// +// // NOTE, sprite patterns *7 and *f are unused so documentation expresses these ranges as to 66, 6e etc. rather than 67 6f // // it isn't clear how the 'Bent' effect etc. is enabled, as clearly not all patterns in this range should use it? diff --git a/src/devices/cpu/upd777/upd777dasm.cpp b/src/devices/cpu/upd777/upd777dasm.cpp index fd7597b8bab39..5ebd92eb451d1 100644 --- a/src/devices/cpu/upd777/upd777dasm.cpp +++ b/src/devices/cpu/upd777/upd777dasm.cpp @@ -135,7 +135,7 @@ offs_t upd777_disassembler::disassemble(std::ostream &stream, offs_t pc, const u else if (((inst & 0b1111'0000'0000) == 0b0010'0000'0000) && ((inst & 0b0000'0000'1100) != 0b0000'0000'0100)) { // 0b0010'rrnR'oonn where rr = reg1 (A1, A2, M or H), n = invert condition, R = reg2 (A1 or A2) and oo = optype (only 0,2,3 are valid, no cases here for 1) nn = next l value - // + // // optype · (AND) // 200 Skip if (A1[7:1]·A1[7:1]) makes zero, N->L[2:1] // 220 Skip if (A1[7:1]·A1[7:1]) makes non zero, N->L[2:1] @@ -499,6 +499,6 @@ offs_t upd777_disassembler::disassemble(std::ostream &stream, offs_t pc, const u { util::stream_format(stream, "%04x ", inst); } - + return 1; } diff --git a/src/devices/video/pc_vga_cirrus.cpp b/src/devices/video/pc_vga_cirrus.cpp index 475018b6a8797..04af15eb8ce5c 100644 --- a/src/devices/video/pc_vga_cirrus.cpp +++ b/src/devices/video/pc_vga_cirrus.cpp @@ -1190,7 +1190,7 @@ uint8_t cirrus_gd5428_vga_device::mem_r(offs_t offset) // FIXME: workaround crash behaviour in picasso2 // it will otherwise provide an offset of 0x1fxxxx in the gc_locked below - // causing a crash during adapter init + // causing a crash during adapter init if(svga.rgb8_en || svga.rgb15_en || svga.rgb16_en || svga.rgb24_en) { return svga_device::mem_linear_r((offset & 0xffff) + bank * 0x10000); diff --git a/src/emu/layout/teletex800.lay b/src/emu/layout/teletex800.lay index b34f144cb5543..381c48ef34f80 100644 --- a/src/emu/layout/teletex800.lay +++ b/src/emu/layout/teletex800.lay @@ -9,11 +9,11 @@ license:CC0-1.0 - + - + @@ -21,8 +21,8 @@ license:CC0-1.0 - - + + @@ -38,38 +38,38 @@ license:CC0-1.0 - + - + - + - + - + - + - + - - - + + + @@ -151,17 +151,17 @@ license:CC0-1.0 - + - + - + diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp index ec5ccb03e8e3d..53455d8cc5fc7 100644 --- a/src/frontend/mame/luaengine.cpp +++ b/src/frontend/mame/luaengine.cpp @@ -1467,12 +1467,12 @@ void lua_engine::initialize() { switch (m.phase()) { - case machine_phase::PREINIT: return "preinit"; - case machine_phase::INIT: return "init"; - case machine_phase::RESET: return "reset"; - case machine_phase::RUNNING: return "running"; - case machine_phase::EXIT: return "exit"; - default: return ""; + case machine_phase::PREINIT: return "preinit"; + case machine_phase::INIT: return "init"; + case machine_phase::RESET: return "reset"; + case machine_phase::RUNNING: return "running"; + case machine_phase::EXIT: return "exit"; + default: return ""; } }); diff --git a/src/mame/amiga/amiga_v.cpp b/src/mame/amiga/amiga_v.cpp index 8458feb38d613..411e0f015e62d 100644 --- a/src/mame/amiga/amiga_v.cpp +++ b/src/mame/amiga/amiga_v.cpp @@ -550,7 +550,7 @@ void amiga_state::render_scanline(bitmap_rgb32 &bitmap, int scanline) for (int x = 0; x < (amiga_state::SCREEN_WIDTH / 2) + 10; x++) { int sprpix; - const bool out_of_beam = x >= amiga_state::SCREEN_WIDTH / 2; + const bool out_of_beam = x >= amiga_state::SCREEN_WIDTH / 2; /* time to execute the copper? */ if (x == next_copper_x) @@ -602,10 +602,10 @@ void amiga_state::render_scanline(bitmap_rgb32 &bitmap, int scanline) /* clear the target pixels to the background color as a starting point */ if (dst != nullptr && !out_of_beam) - { + { dst[x*2+0] = dst[x*2+1] = m_palette->pen(CUSTOM_REG(REG_COLOR00)); - } + } /* if we hit the first fetch pixel, reset the counters and latch the delays */ if (x == ddf_start_pixel) diff --git a/src/mame/amiga/amigaaga.cpp b/src/mame/amiga/amigaaga.cpp index 76b69ea25effa..d60dc1a5ba336 100644 --- a/src/mame/amiga/amigaaga.cpp +++ b/src/mame/amiga/amigaaga.cpp @@ -549,7 +549,7 @@ void amiga_state::aga_render_scanline(bitmap_rgb32 &bitmap, int scanline) for (int x = 0; x < (amiga_state::SCREEN_WIDTH / 2) + offset_hack[bitplane_fmode]; x++) { int sprpix; - const bool out_of_beam = x >= amiga_state::SCREEN_WIDTH / 2; + const bool out_of_beam = x >= amiga_state::SCREEN_WIDTH / 2; /* time to execute the copper? */ if (x == next_copper_x) diff --git a/src/mame/apple/dafb.cpp b/src/mame/apple/dafb.cpp index eee10437eb8e1..0d0c7eba8ba2a 100644 --- a/src/mame/apple/dafb.cpp +++ b/src/mame/apple/dafb.cpp @@ -207,7 +207,7 @@ static INPUT_PORTS_START(monitor_config) PORT_CONFSETTING(0x02, u8"Mac RGB Display (12\" 512\u00d7384)") // "Rubik" (modified IIgs AppleColor RGB) PORT_CONFSETTING(0x03, u8"Mac Two-Page Display (B&W 21\" 1152\u00d7870)") // "2 Page" PORT_CONFSETTING(0x06, u8"Mac Hi-Res Display (12-14\" 640\u00d7480)") // "High Res" - PORT_CONFSETTING(0x07, u8"No monitor, disable internal video") // No monitor connected + PORT_CONFSETTING(0x07, u8"No monitor, disable internal video") // No monitor connected PORT_CONFSETTING(ext(0, 0, 0), "PAL Encoder (640\u00d7480, 768\u00d7576)") PORT_CONFSETTING(ext(1, 1, 0), "NTSC Encoder (512\u00d7384, 640\u00d7480)") PORT_CONFSETTING(ext(1, 1, 3), "640x480 VGA") @@ -225,7 +225,7 @@ static INPUT_PORTS_START(monitor_config_noconv) PORT_CONFSETTING(0x02, u8"Mac RGB Display (12\" 512\u00d7384)") // "Rubik" (modified IIgs AppleColor RGB) PORT_CONFSETTING(0x03, u8"Mac Two-Page Display (B&W 21\" 1152\u00d7870)") // "2 Page" PORT_CONFSETTING(0x06, u8"Mac Hi-Res Display (12-14\" 640\u00d7480)") // "High Res" - PORT_CONFSETTING(0x07, u8"No monitor, disable internal video") // No monitor connected + PORT_CONFSETTING(0x07, u8"No monitor, disable internal video") // No monitor connected PORT_CONFSETTING(ext(1, 1, 3), "640x480 VGA") PORT_CONFSETTING(ext(2, 3, 1), "832x624 16\" RGB") // "Goldfish" or "16 inch RGB" PORT_CONFSETTING(ext(3, 2, 2), "1024\u00d7768 19\" RGB"); diff --git a/src/mame/dataeast/dec8.cpp b/src/mame/dataeast/dec8.cpp index 7b7a02806f12a..22109ebfb1d1a 100644 --- a/src/mame/dataeast/dec8.cpp +++ b/src/mame/dataeast/dec8.cpp @@ -1205,7 +1205,7 @@ static INPUT_PORTS_START( ghostb ) PORT_START("DSW0") PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) // Tested on real hardware PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) - // 1-2 should be coinage. + // 1-2 should be coinage. // PORT_DIPNAME( 0x03, 0x03, DEF_STR( Coin_A ) ) PORT_DIPLOCATION("SW1:1,2") // PORT_DIPSETTING( 0x00, DEF_STR( 2C_1C ) ) // PORT_DIPSETTING( 0x03, DEF_STR( 1C_1C ) ) @@ -1752,7 +1752,7 @@ static const gfx_layout sr_sprites = { 16*8, 1+(16*8), 2+(16*8), 3+(16*8), 4+(16*8), 5+(16*8), 6+(16*8), 7+(16*8), 0,1,2,3,4,5,6,7 }, { 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 ,8*8,9*8,10*8,11*8,12*8,13*8,14*8,15*8 }, -// { 0*8, 2*8, 1*8, 3*8, 4*8, 6*8, 5*8, 7*8 ,8*8,10*8,9*8,11*8,12*8,14*8,13*8,15*8 }, bootleg decode +// { 0*8, 2*8, 1*8, 3*8, 4*8, 6*8, 5*8, 7*8 ,8*8,10*8,9*8,11*8,12*8,14*8,13*8,15*8 }, bootleg decode 16*16 }; diff --git a/src/mame/dataeast/kchamp_v.cpp b/src/mame/dataeast/kchamp_v.cpp index 27430241779c0..3096a4c70f42a 100644 --- a/src/mame/dataeast/kchamp_v.cpp +++ b/src/mame/dataeast/kchamp_v.cpp @@ -57,11 +57,11 @@ void kchamp_state::draw_sprites(bitmap_ind16 &bitmap, const rectangle &cliprect, { /* sprite format: - Offset Encoding - 0 YYYYYYYY - 1 TTTTTTTT - tile# - 2 FGGTCCCC - y flip, gfx bank, high bit of tile#, color - 3 XXXXXXXX + Offset Encoding + 0 YYYYYYYY + 1 TTTTTTTT - tile# + 2 FGGTCCCC - y flip, gfx bank, high bit of tile#, color + 3 XXXXXXXX */ int attr = m_spriteram[offs + 2]; diff --git a/src/mame/dynax/dynax.cpp b/src/mame/dynax/dynax.cpp index e827513ffad79..61488f6735b83 100644 --- a/src/mame/dynax/dynax.cpp +++ b/src/mame/dynax/dynax.cpp @@ -3628,7 +3628,7 @@ static INPUT_PORTS_START( mjreach ) PORT_DIPNAME( 0x20, 0x00, "Last Chance" ) PORT_DIPLOCATION("DIP-SW3:6") // ラストチャンス PORT_DIPSETTING( 0x20, DEF_STR(Off) ) // 無 PORT_DIPSETTING( 0x00, DEF_STR(On) ) // 有 - PORT_DIPNAME( 0xc0, 0x00, "Last Chance Tsumo Count" ) PORT_DIPLOCATION("DIP-SW3:7,8") // ラストチャンスのツモ回数 + PORT_DIPNAME( 0xc0, 0x00, "Last Chance Count" ) PORT_DIPLOCATION("DIP-SW3:7,8") // ラストチャンスのツモ回数 PORT_DIPSETTING( 0xc0, "1" ) PORT_DIPSETTING( 0x80, "3" ) PORT_DIPSETTING( 0x00, "5" ) @@ -3653,7 +3653,7 @@ static INPUT_PORTS_START( mjreach ) PORT_DIPNAME( 0x20, 0x00, "In-Game Messages" ) PORT_DIPLOCATION("DIP-SW4:6") // ゲーム中のメッセージ PORT_DIPSETTING( 0x20, DEF_STR(Off) ) // 無 PORT_DIPSETTING( 0x00, DEF_STR(On) ) // 有 (shows when kan/pon/chi/ron is possible) - PORT_DIPNAME( 0x40, 0x00, DEF_STR(Unused) ) PORT_DIPLOCATION("DIP-SW4:7") // ON固定 + PORT_DIPNAME( 0x40, 0x00, DEF_STR(Unknown) ) PORT_DIPLOCATION("DIP-SW4:7") // ON固定 PORT_DIPSETTING( 0x40, DEF_STR(Off) ) PORT_DIPSETTING( 0x00, DEF_STR(On) ) PORT_DIPNAME( 0x80, 0x80, "Super Revolver Jackpot Payout Rate" ) PORT_DIPLOCATION("DIP-SW4:8") // スパーレボルバーのJACK-POTの出率 @@ -3679,7 +3679,7 @@ static INPUT_PORTS_START( mjreach ) PORT_DIPNAME( 0x40, 0x40, "Renchan Gal Display" ) PORT_DIPLOCATION("DIP-SW4:9") // 連荘ギャルの表示の方式 PORT_DIPSETTING( 0x40, "After Each Win" ) // 勝つごとに表示 (= On according to manual page?) PORT_DIPSETTING( 0x00, "After 3 Consecutive Wins" ) // 3連荘のみ表示 (= Off according to manual page?) - PORT_DIPNAME( 0x80, 0x80, DEF_STR(Unused) ) PORT_DIPLOCATION("DIP-SW4:10") // OFF固定 + PORT_DIPNAME( 0x80, 0x80, DEF_STR(Unknown) ) PORT_DIPLOCATION("DIP-SW4:10") // OFF固定 PORT_DIPSETTING( 0x80, DEF_STR(Off) ) PORT_DIPSETTING( 0x00, DEF_STR(On) ) diff --git a/src/mame/jaleco/megasys1.h b/src/mame/jaleco/megasys1.h index 5c8393e8bdfdc..4aa6c4c73b292 100644 --- a/src/mame/jaleco/megasys1.h +++ b/src/mame/jaleco/megasys1.h @@ -91,8 +91,8 @@ class megasys1_state : public driver_device void system_base(machine_config &config) ATTR_COLD; void system_B(machine_config &config) ATTR_COLD; - void system_C(machine_config &config) ATTR_COLD; - + void system_C(machine_config &config) ATTR_COLD; + void megasys1_palette(palette_device &palette); virtual void draw_sprites(screen_device &screen, bitmap_ind16 &bitmap,const rectangle &cliprect); diff --git a/src/mame/midway/williams.cpp b/src/mame/midway/williams.cpp index fe2cb299380cc..aef8ed98ea234 100644 --- a/src/mame/midway/williams.cpp +++ b/src/mame/midway/williams.cpp @@ -41,7 +41,7 @@ **************************************************************************** - CA00-CA07 blitter (Stargate and Defender do not have blitter) + CA00-CA07 blitter (Stargate and Defender do not have blitter) CB00 6 bits of the video counters bits 2-7 diff --git a/src/mame/misc/cvs.cpp b/src/mame/misc/cvs.cpp index 5783a7f8b05cc..df31ef4a03be2 100644 --- a/src/mame/misc/cvs.cpp +++ b/src/mame/misc/cvs.cpp @@ -687,16 +687,16 @@ void cvs_state::sh_trigger_w(offs_t offset, u8 data) I have recordings available. - 0x1884 - Enables an XP8038 frequency generator IC - Reflected on pin 10 of a 4016. - The frequency is set by 0x1840, the 8 bit DAC register. - Not all 0x1840 values were tested, but: - 0x00 - off, 0x1884 enable has no sound. - 0x55,0xAA,0xFF - increasing value has higher frequency + Reflected on pin 10 of a 4016. + The frequency is set by 0x1840, the 8 bit DAC register. + Not all 0x1840 values were tested, but: + 0x00 - off, 0x1884 enable has no sound. + 0x55,0xAA,0xFF - increasing value has higher frequency - 0x1885 - A scope showed this halving the XP8038 amplitude with a little decay. - Causes 4016 pin 11 to rise (on) and decay-fall (off) + Causes 4016 pin 11 to rise (on) and decay-fall (off) - 0x1886 - Outputs a complete Galaxia-style ship fire sound, with attack-to-on and decay-to-off. - 0x1887 - Reflected on an LM380. - Causes an envelope-like operation on the XP8038 tone with attack (on) and decay (off). + Causes an envelope-like operation on the XP8038 tone with attack (on) and decay (off). */ data &= 1; diff --git a/src/mame/misc/goldnpkr.cpp b/src/mame/misc/goldnpkr.cpp index d25e579333722..275196bb39fc3 100644 --- a/src/mame/misc/goldnpkr.cpp +++ b/src/mame/misc/goldnpkr.cpp @@ -6057,7 +6057,7 @@ ROM_END The second set is a hack of the first with unknown mods. */ -ROM_START( potnpkro ) // ICP-1 wires hack set. +ROM_START( potnpkro ) // ICP-1 wires hack set. ROM_REGION( 0x10000, "maincpu", 0 ) ROM_LOAD( "7.16a", 0x6000, 0x1000, CRC(2dc5e372) SHA1(70a251efe879bc1122baa78984251041a355c895) ) ROM_LOAD( "x.17a", 0x7000, 0x1000, CRC(1694a0d8) SHA1(bb1132d1e75347ad5156d2b3866aad255f7d53ca) ) @@ -6076,7 +6076,7 @@ ROM_START( potnpkro ) // ICP-1 wires hack set. ROM_LOAD( "tbp24s10n_wh.bin", 0x0000, 0x0100, CRC(7f31066b) SHA1(15420780ec6b2870fc4539ec3afe4f0c58eedf12) ) ROM_END -ROM_START( potnpkrp ) // ICP-1 PROM mod set. +ROM_START( potnpkrp ) // ICP-1 PROM mod set. ROM_REGION( 0x10000, "maincpu", 0 ) ROM_LOAD( "6.16a", 0x6000, 0x1000, CRC(2dc5e372) SHA1(70a251efe879bc1122baa78984251041a355c895) ) ROM_LOAD( "95_09_hn71_7.17a", 0x7000, 0x1000, CRC(2353317a) SHA1(18bf8cfe30aaa4b05207cc250ec1c024bc19ed56) ) diff --git a/src/mame/psion/mc400.cpp b/src/mame/psion/mc400.cpp index 0b28a9d45d308..4d2e0ce53ef10 100644 --- a/src/mame/psion/mc400.cpp +++ b/src/mame/psion/mc400.cpp @@ -277,10 +277,10 @@ INPUT_CHANGED_MEMBER(psionmc_state::key_on) //INPUT_CHANGED_MEMBER(psionmc_state::reset) //{ -// if (newval) -// { -// m_asic2->reset_w(0); -// } +// if (newval) +// { +// m_asic2->reset_w(0); +// } //} INPUT_CHANGED_MEMBER(psionmc_state::digitiser_changed) diff --git a/src/mame/skeleton/easy_karaoke.cpp b/src/mame/skeleton/easy_karaoke.cpp index 47db0842f7880..a69b987f4e1f9 100644 --- a/src/mame/skeleton/easy_karaoke.cpp +++ b/src/mame/skeleton/easy_karaoke.cpp @@ -79,11 +79,11 @@ ------------------ - For units which allow downloadable songs the only difference in the bootloader ROMs is a couple of bytes - at the end. This may be used as security, to tie the downloads stored in the flash ROM to the units as - the format of the downloaded data in the flash ROMs appears to be different in each case, starting with - different unique bytes after the header information for each unit we've seen. (maybe encryption?) - The bootloader ROM has a unique ID on a sticker in each case too (could be a bytesum, haven't checked) + For units which allow downloadable songs the only difference in the bootloader ROMs is a couple of bytes + at the end. This may be used as security, to tie the downloads stored in the flash ROM to the units as + the format of the downloaded data in the flash ROMs appears to be different in each case, starting with + different unique bytes after the header information for each unit we've seen. (maybe encryption?) + The bootloader ROM has a unique ID on a sticker in each case too (could be a bytesum, haven't checked) *******************************************************************************/ diff --git a/src/mame/toaplan/dogyuun.cpp b/src/mame/toaplan/dogyuun.cpp index 00a780f6cf15b..28230636490ab 100644 --- a/src/mame/toaplan/dogyuun.cpp +++ b/src/mame/toaplan/dogyuun.cpp @@ -115,7 +115,7 @@ void dogyuun_state::video_start() void dogyuun_state::screen_vblank(int state) { - if (state) // rising edge + if (state) // rising edge { m_vdp[0]->screen_eof(); m_vdp[1]->screen_eof(); diff --git a/src/mame/toaplan/dt7.cpp b/src/mame/toaplan/dt7.cpp index a8ab367ef92fd..a78b1933f602e 100644 --- a/src/mame/toaplan/dt7.cpp +++ b/src/mame/toaplan/dt7.cpp @@ -12,7 +12,7 @@ - verify frequencies on chips - verify alt titles, some regions have 'Car Fighting' as a subtitle, region comes from EEPROM? - verify text layer palettes - - service mode doesn't display properly + - service mode doesn't display properly - currently only coins up with service button - sound dies after one stage? */ @@ -256,9 +256,9 @@ u8 dt7_state::dt7_shared_ram_hack_r(offs_t offset) int pc = m_maincpu->pc(); if (pc == 0x7d84) { return 0xff; } // status? - + u32 addr = (offset * 2) + 0x610000; - + if (addr == 0x061f00c) { return m_sysport->read(); } if (addr == 0x061d000) { return 0x00; } // settings (from EEPROM?) including flipscreen if (addr == 0x061d002) { return 0x00; } // settings (from EEPROM?) dipswitch? @@ -266,7 +266,7 @@ u8 dt7_state::dt7_shared_ram_hack_r(offs_t offset) if (addr == 0x061f004) { return m_p1port->read(); } // P1 inputs if (addr == 0x061f006) { return m_p2port->read(); } // P2 inputs //if (addr == 0x061f00e) { return machine().rand(); } // P2 coin / start - + logerror("%08x: dt7_shared_ram_hack_r address %08x ret %02x\n", pc, addr, ret); return ret; @@ -282,7 +282,7 @@ void dt7_state::shared_ram_audio_w(offs_t offset, u8 data) // just a helper function to try and debug the sound CPU a bit more easily //int pc = m_audiocpu->pc(); //if (offset == 0xf004 / 2) - // logerror("%08x: shared_ram_audio_w address %08x data %02x\n", pc, offset, data); + // logerror("%08x: shared_ram_audio_w address %08x data %02x\n", pc, offset, data); shared_ram_w(offset, data); } diff --git a/src/mame/toaplan/enmadaio.cpp b/src/mame/toaplan/enmadaio.cpp index e9c27126e1b3d..2d7f6e47f2c4d 100644 --- a/src/mame/toaplan/enmadaio.cpp +++ b/src/mame/toaplan/enmadaio.cpp @@ -77,7 +77,7 @@ u32 enmadaio_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, c void enmadaio_state::screen_vblank(int state) { - if (state) // rising edge + if (state) // rising edge { m_vdp->screen_eof(); } diff --git a/src/mame/toaplan/pipibibi.cpp b/src/mame/toaplan/pipibibi.cpp index 5cf6109866630..f0691d09117ef 100644 --- a/src/mame/toaplan/pipibibi.cpp +++ b/src/mame/toaplan/pipibibi.cpp @@ -26,7 +26,7 @@ pipibibsp TP-025 Toaplan Pipi & Bibis / Whoopee!! (Prototype) pipibibsbl bootleg Toaplan Pipi & Bibis / Whoopee!! (based of the prototype) TODO: - - move bootlegs to oneshot.cpp driver + - move bootlegs to oneshot.cpp driver */ namespace { diff --git a/src/mame/toaplan/snowbro2.cpp b/src/mame/toaplan/snowbro2.cpp index 131464c50d9b6..ffd36945edc22 100644 --- a/src/mame/toaplan/snowbro2.cpp +++ b/src/mame/toaplan/snowbro2.cpp @@ -20,7 +20,7 @@ Name Board No Maker Game name ---------------------------------------------------------------------------- snowbro2 TP-033 Hanafram Snow Bros. 2 - With New Elves - + */ namespace { @@ -75,7 +75,7 @@ u32 snowbro2_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, c } void snowbro2_state::screen_vblank(int state) -{ +{ if (state) // rising edge { m_vdp->screen_eof(); diff --git a/src/mame/toaplan/truxton2.cpp b/src/mame/toaplan/truxton2.cpp index e2350d30fcd43..84ddee1720ac6 100644 --- a/src/mame/toaplan/truxton2.cpp +++ b/src/mame/toaplan/truxton2.cpp @@ -136,7 +136,7 @@ void truxton2_state::tx_linescroll_w(offs_t offset, u16 data, u16 mem_mask) void truxton2_state::screen_vblank(int state) -{ +{ if (state) // rising edge { m_vdp->screen_eof(); diff --git a/src/mame/zaccaria/quasar.cpp b/src/mame/zaccaria/quasar.cpp index 5727e34e7949a..fc8890f69d9f8 100644 --- a/src/mame/zaccaria/quasar.cpp +++ b/src/mame/zaccaria/quasar.cpp @@ -508,7 +508,7 @@ static INPUT_PORTS_START( quasar ) PORT_DIPSETTING( 0x00, DEF_STR( On ) ) PORT_DIPNAME( 0x30, 0x20, "Sound Program" ) PORT_DIPLOCATION("SOUND:3,4") PORT_DIPSETTING( 0x00, "Invalid 1" ) - PORT_DIPSETTING( 0x10, "Invalid 1" ) + PORT_DIPSETTING( 0x10, "Invalid 1" ) PORT_DIPSETTING( 0x30, "Invalid 2" ) PORT_DIPSETTING( 0x20, "Quasar" ) INPUT_PORTS_END