diff options
| author | 2026-05-20 01:12:44 +1000 | |
|---|---|---|
| committer | 2026-05-20 01:12:44 +1000 | |
| commit | cc1e3ee97a63e778947c30db038fafe3efe2f2c2 (patch) | |
| tree | 711509d66f4d26770b8f78fab362c58e725ea4c0 | |
| parent | 464f95b511ca680c7dbbdd9fd3dddd8085821f91 (diff) | |
srcclean and manual cleanup
73 files changed, 538 insertions, 530 deletions
diff --git a/hash/m5_cass.xml b/hash/m5_cass.xml index 91df19ae72d..c425bd1bff7 100644 --- a/hash/m5_cass.xml +++ b/hash/m5_cass.xml @@ -102,7 +102,7 @@ license:CC0-1.0 </dataarea> </part> </software> - + <!-- similar to P-Designer cart but simpler--> <software name="peditor"> <description>P-Editor</description> diff --git a/hash/spectrum_cass.xml b/hash/spectrum_cass.xml index 494046cd3fb..e6492a0e7d3 100644 --- a/hash/spectrum_cass.xml +++ b/hash/spectrum_cass.xml @@ -33817,7 +33817,7 @@ Side B - Game 3: The Living Daylights - The Computer Game <dataarea name="cass" size="193368"> <rom name="mega mix - alternate - tape 4 - side 2.tzx" size="193368" crc="17c7d04b" sha1="fec9bcd4097140f54aec45b8bf5e2f9ad3dc8d8a"/> </dataarea> - </part> + </part> </software> diff --git a/hash/telestory_cart.xml b/hash/telestory_cart.xml index 9f26784f3a6..e60c69cd03c 100644 --- a/hash/telestory_cart.xml +++ b/hash/telestory_cart.xml @@ -134,7 +134,7 @@ Undumped carts: </dataarea> </part> </software> - + <software name="cinder" supported="no"> <description>Cinderella - Cinderella / Beauties in Bloom (USA)</description> <year>2006</year> diff --git a/hash/yeno_laptop_cart.xml b/hash/yeno_laptop_cart.xml index d68f0c3d9a9..c2cf1f26783 100644 --- a/hash/yeno_laptop_cart.xml +++ b/hash/yeno_laptop_cart.xml @@ -15,7 +15,7 @@ license:CC0-1.0 </dataarea> </part> </software> - + <software name="swissen" supported="no"> <description>Super Wissen (Germany)</description> <year>199?</year> @@ -25,6 +25,6 @@ license:CC0-1.0 <rom name="Superwissen.ic1" size="0x40000" crc="714b4cbe" sha1="d1f5ce30bb8be73ed4edd9ce613c96a9cf7c39ab"/> </dataarea> </part> - </software> + </software> </softwarelist> diff --git a/scripts/src/machine.lua b/scripts/src/machine.lua index e47b20d0b9a..98968a49869 100644 --- a/scripts/src/machine.lua +++ b/scripts/src/machine.lua @@ -3594,7 +3594,7 @@ if MACHINES["SPG2XX"] then MAME_DIR .. "src/devices/machine/generalplus_gpl951xx_soc.cpp", MAME_DIR .. "src/devices/machine/generalplus_gpl951xx_soc.h", MAME_DIR .. "src/devices/machine/generalplus_gpl951xx_rtc.cpp", - MAME_DIR .. "src/devices/machine/generalplus_gpl951xx_rtc.h", + MAME_DIR .. "src/devices/machine/generalplus_gpl951xx_rtc.h", MAME_DIR .. "src/devices/machine/generalplus_gpce4_soc.cpp", MAME_DIR .. "src/devices/machine/generalplus_gpce4_soc.h", MAME_DIR .. "src/devices/machine/generalplus_gpl_dma.cpp", diff --git a/src/devices/bus/abcbus/db4105.h b/src/devices/bus/abcbus/db4105.h index c31e7b41ec5..7c22e67bf07 100644 --- a/src/devices/bus/abcbus/db4105.h +++ b/src/devices/bus/abcbus/db4105.h @@ -25,8 +25,8 @@ // ======================> databoard_4105_device class databoard_4105_device : public device_t, - public nscsi_device_interface, - public device_abcbus_card_interface + public nscsi_device_interface, + public device_abcbus_card_interface { public: // construction/destruction diff --git a/src/devices/bus/centronics/pc6022.cpp b/src/devices/bus/centronics/pc6022.cpp index 6d1f35c8fc9..53bc7e19634 100644 --- a/src/devices/bus/centronics/pc6022.cpp +++ b/src/devices/bus/centronics/pc6022.cpp @@ -2,15 +2,15 @@ // copyright-holders:Devin Acker /********************************************************************** - Skeleton for NEC PC-6022 Color Plotter Printer + Skeleton for NEC PC-6022 Color Plotter Printer - User manual: - https://archive.org/details/nec-pc-6022-color-plotter-printer-users-manual + User manual: + https://archive.org/details/nec-pc-6022-color-plotter-printer-users-manual - Page width is 96mm / 480px. - CPU port A controls the two steppers, and port C controls raising/lowering the pen. - Pen/color selection happens by moving the pen to the left of the print area, then - moving it back and forth 3 times per color change. + Page width is 96mm / 480px. + CPU port A controls the two steppers, and port C controls raising/lowering the pen. + Pen/color selection happens by moving the pen to the left of the print area, then + moving it back and forth 3 times per color change. **********************************************************************/ diff --git a/src/devices/bus/megadrive/md_slot.cpp b/src/devices/bus/megadrive/md_slot.cpp index 3c8387ad871..9792e156ab0 100644 --- a/src/devices/bus/megadrive/md_slot.cpp +++ b/src/devices/bus/megadrive/md_slot.cpp @@ -687,7 +687,7 @@ int base_md_cart_slot_device::get_cart_type(const uint8_t *ROM, uint32_t len) smb_sig[] = { 0x20, 0x4d, 0x41, 0x52, 0x49, 0x4f }, smb2_sig[] = { 0x4e, 0xb9, 0x00, 0x0f, 0x25, 0x84 }, kaiju_sig[] = { 0x19, 0x7c, 0x00, 0x01, 0x00, 0x00 }, -// chifi3_sig[] = { 0xb6, 0x16, 0x66, 0x00, 0x00, 0x4a }, +// chifi3_sig[] = { 0xb6, 0x16, 0x66, 0x00, 0x00, 0x4a }, lionk2_sig[] = { 0x26, 0x79, 0x00, 0xff, 0x00, 0xf4 }, rx3_sig[] = { 0x66, 0x00, 0x00, 0x0e, 0x30, 0x3c }, kof98_sig[] = { 0x9b, 0xfc, 0x00, 0x00, 0x4a, 0x00 }, @@ -774,7 +774,7 @@ int base_md_cart_slot_device::get_cart_type(const uint8_t *ROM, uint32_t len) type = KAIJU; //if (!memcmp(&ROM[0x1780], chifi3_sig, sizeof(chifi3_sig))) - // type = CHINFIGHT3; + // type = CHINFIGHT3; if (!memcmp(&ROM[0x03c2], lionk2_sig, sizeof(lionk2_sig))) type = LIONK2; diff --git a/src/devices/bus/megadrive/md_slot.h b/src/devices/bus/megadrive/md_slot.h index 85db5073265..bfaf79bd93b 100644 --- a/src/devices/bus/megadrive/md_slot.h +++ b/src/devices/bus/megadrive/md_slot.h @@ -56,7 +56,7 @@ enum TILESMJ2, /* 16 Mahjong Tiles II */ BUGSLIFE, /* A Bug's Life */ -// CHINFIGHT3, /* Chinese Fighters 3 */ +// CHINFIGHT3, /* Chinese Fighters 3 */ ELFWOR, /* Linghuan Daoshi Super Magician */ KAIJU, /* Pokemon Stadium */ KOF98, /* King of Fighters '98 */ diff --git a/src/devices/bus/ti99/sidecar/thermal.cpp b/src/devices/bus/ti99/sidecar/thermal.cpp index 70603570e9a..5e431083379 100644 --- a/src/devices/bus/ti99/sidecar/thermal.cpp +++ b/src/devices/bus/ti99/sidecar/thermal.cpp @@ -4,61 +4,61 @@ Thermal Printer Model PHP1900 - - Typical sidecar setup: + + Typical sidecar setup: +-- Thermal Printer v +----------------+---+------+---------- | TI-99/4(A) | | | (PEB connection cable) +------------+---+ |+----+|---------- - | oooooooooo | |---|| || - | oooooooooo | | ^ |+----+| + | oooooooooo | |---|| || + | oooooooooo | | ^ |+----+| +----------------+ | | o | | +------+ - | + | (Speech Synthesizer) - - The Thermal Printer is a sidecar device for the TI-99/4(A) console. It + + The Thermal Printer is a sidecar device for the TI-99/4(A) console. It enabled the user to create printouts of BASIC programs via the LIST "TP" - command, and to create other text-based output using OPEN / PRINT in - BASIC or the usual DSR calls in assembly language. - + command, and to create other text-based output using OPEN / PRINT in + BASIC or the usual DSR calls in assembly language. + Speed is limited from its technology, and special thermal paper is needed. - Beside the standard ASCII set, user-defined patterns may be printed, but - there will always be some empty pixel colums due to the construction of + Beside the standard ASCII set, user-defined patterns may be printed, but + there will always be some empty pixel colums due to the construction of the print heads. - - Some games like "A-Maze-Ing" have a built-in screen dump for the + + Some games like "A-Maze-Ing" have a built-in screen dump for the Thermal Printer (press FCTN-P when the game is over). - - The button on the printer chassis is used to advance the paper. + + The button on the printer chassis is used to advance the paper. Technology: - - The Thermal Printer uses two fixed print heads with 16*5 dots each. - - |***** ***** ***** ... *****|***** ***** ***** ... *****| - 01234 01234 01234 01234 56789 56789 56789 56789 dot number - 15 14 13 0 15 14 13 0 char column number - - |------------------- width of paper --------------------| - - Columns are powered one after another; the selected dots cause the heating - element to get hot at that location. It is possible to activate multiple - columns at once, if the selected dot is supposed to be active in all these - columns. - - Each character column is surrounded by one blank pixel column before and - one blank pixel column after it, so we get 7 dots width per character - column. - - The burning is done while the retriggered monoflop LS122 is active. The - monoflop is a safety precaution to avoid burning the paper during a paper - jam or a crash of the printer driver. - - Pressing the paper feed button causes an interrupt which runs the paper - advance routine in the built-in driver. By default, this is bound to the - END key on the keyboard. + + The Thermal Printer uses two fixed print heads with 16*5 dots each. + + |***** ***** ***** ... *****|***** ***** ***** ... *****| + 01234 01234 01234 01234 56789 56789 56789 56789 dot number + 15 14 13 0 15 14 13 0 char column number + + |------------------- width of paper --------------------| + + Columns are powered one after another; the selected dots cause the heating + element to get hot at that location. It is possible to activate multiple + columns at once, if the selected dot is supposed to be active in all these + columns. + + Each character column is surrounded by one blank pixel column before and + one blank pixel column after it, so we get 7 dots width per character + column. + + The burning is done while the retriggered monoflop LS122 is active. The + monoflop is a safety precaution to avoid burning the paper during a paper + jam or a crash of the printer driver. + + Pressing the paper feed button causes an interrupt which runs the paper + advance routine in the built-in driver. By default, this is bound to the + END key on the keyboard. Michael Zapf May 2026 @@ -93,7 +93,7 @@ namespace bus::ti99::sidecar { #define HEATMF_U8 "heatmf_u8" static constexpr unsigned LEFTPAD = 12; -static constexpr unsigned PAPER_WIDTH = 242; +static constexpr unsigned PAPER_WIDTH = 242; static constexpr unsigned PAPER_HEIGHT = (11*72); /* @@ -111,12 +111,12 @@ ti_thermal_printer_device::ti_thermal_printer_device(const machine_config &mconf { } -void ti_thermal_printer_device::write_line() +void ti_thermal_printer_device::write_line() { // Get the active columns and dots from the latches int actcolumns = (m_latch_u6->output_state() << 8) | m_latch_u7->output_state(); - int actdots = (m_latch_u4->output_state() << 2) | ((m_latch_u5->output_state() & 0xc0) >> 6); - + int actdots = (m_latch_u4->output_state() << 2) | ((m_latch_u5->output_state() & 0xc0) >> 6); + LOGMASKED(LOG_PRINT, "Printing col=%04x dots=%02x\n", actcolumns, actdots); for (int col = 0; col < 16; col++) // multiple columns can be energized { @@ -127,9 +127,9 @@ void ti_thermal_printer_device::write_line() if (BIT(actdots, dot)) { int physcol = (dot >= 5)? (31 - col) : (15 - col); - m_bitmap_printer->draw_pixel(m_bitmap_printer->m_xpos + m_bitmap_printer->draw_pixel(m_bitmap_printer->m_xpos + 7*physcol + (dot%5) + LEFTPAD, - m_bitmap_printer->m_ypos, + m_bitmap_printer->m_ypos, 0x000000); //rrggbb } } @@ -138,8 +138,8 @@ void ti_thermal_printer_device::write_line() } /* - The heat monoflop is a safety feature in case of a paper jam. - It turns off the current of the write heads after 15 ms when not retriggered. + The heat monoflop is a safety feature in case of a paper jam. + It turns off the current of the write heads after 15 ms when not retriggered. */ void ti_thermal_printer_device::enable_column_latches(int state) { @@ -157,7 +157,7 @@ void ti_thermal_printer_device::readz(offs_t offset, uint8_t *value) { *value = m_dsrrom[offset & 0x0fff]; } - + // Pass through to the external port if (m_port != nullptr) m_port->readz(offset, value); @@ -185,9 +185,9 @@ void ti_thermal_printer_device::crureadz(offs_t offset, uint8_t *value) if ((offset & 0xff00) == 0x1800) { // Only delivers a 0 when pressed, else Z - if (m_feed_pressed) *value = 0; + if (m_feed_pressed) *value = 0; } - + // Pass through to the external port if (m_port != nullptr) m_port->crureadz(offset, value); @@ -199,14 +199,14 @@ void ti_thermal_printer_device::cruwrite(offs_t offset, uint8_t data) { LOGMASKED(LOG_CRU, "CRU address = %04x, data = %x\n", offset, data); // LOGMASKED(LOG_CRU, "addr %d, bit %d = %d\n", (offset & 0xf0)>>4, (offset & 0x0e)>>1, data); - + int bitaddr = (offset & 0x0e)>>1; switch (offset & 0xf0) { case 0x00: m_latch_u5->write_bit(bitaddr, data); if (bitaddr == 5) line_feed(); - break; + break; case 0x10: m_latch_u4->write_bit(bitaddr, data); break; @@ -229,7 +229,7 @@ void ti_thermal_printer_device::cruwrite(offs_t offset, uint8_t data) void ti_thermal_printer_device::line_feed() { // Run the stepper - int pattern = bitswap<4>(m_latch_u5->output_state()>>2, 0, 1, 2, 3); + int pattern = bitswap<4>(m_latch_u5->output_state()>>2, 0, 1, 2, 3); m_bitmap_printer->update_pf_stepper(pattern); m_bitmap_printer->update_cr_stepper(1); // have to move the cr stepper to get the page to change m_bitmap_printer->update_cr_stepper(5); @@ -237,7 +237,7 @@ void ti_thermal_printer_device::line_feed() } /* - Just forwarding to the external port + Just forwarding to the external port */ void ti_thermal_printer_device::memen_in(int state) { @@ -263,14 +263,14 @@ void ti_thermal_printer_device::clock_in(int state) void ti_thermal_printer_device::reset_in(int state) { clear_latches(state); - + // Pass through to the external port if (m_port != nullptr) m_port->reset_in(state); } /* - Forward external interrupts to the console. + Forward external interrupts to the console. */ void ti_thermal_printer_device::extint(int state) { @@ -289,7 +289,7 @@ void ti_thermal_printer_device::extready(int state) void ti_thermal_printer_device::clear_latches(int state) { - int value = (state==ASSERT_LINE)? 0 : 1; + int value = (state==ASSERT_LINE)? 0 : 1; m_latch_u5->clear_w(value); m_latch_u4->clear_w(value); m_heatmf_u8->clear_w(value); @@ -330,20 +330,20 @@ void ti_thermal_printer_device::device_add_mconfig(machine_config& config) TTL74123(config, m_heatmf_u8, 0); m_heatmf_u8->set_connection_type(TTL74123_GROUNDED); - m_heatmf_u8->set_resistor_value(RES_K(10)); // actually, the 74122 is used (Rint = 10k) + m_heatmf_u8->set_resistor_value(RES_K(10)); // actually, the 74122 is used (Rint = 10k) m_heatmf_u8->set_capacitor_value(CAP_U(4.7f)); m_heatmf_u8->set_clear_pin_value(1); m_heatmf_u8->set_a_pin_value(0); - + LS259(config, m_latch_u4); // Dots 2-9 - LS259(config, m_latch_u5); // ROM / Heat trigger / stepper / dots 0 and 1 + LS259(config, m_latch_u5); // ROM / Heat trigger / stepper / dots 0 and 1 LS259(config, m_latch_u6); // columns 8-15 and 24-31 LS259(config, m_latch_u7); // columns 0-7 and 16-23 m_latch_u5->q_out_cb<1>().set(m_heatmf_u8, FUNC(ttl74123_device::b_w)); - + m_heatmf_u8->out_cb().set(FUNC(ti_thermal_printer_device::enable_column_latches)); - + TI99_IOPORT(config, m_port, 0, ti99_ioport_options_evpc1, nullptr); m_port->extint_cb().set(FUNC(ti_thermal_printer_device::extint)); m_port->ready_cb().set(FUNC(ti_thermal_printer_device::extready)); @@ -364,4 +364,4 @@ const tiny_rom_entry *ti_thermal_printer_device::device_rom_region() const return ROM_NAME( ti99_thermal ); } -} // end namespace bus::ti99::sidecar
\ No newline at end of file +} // end namespace bus::ti99::sidecar diff --git a/src/devices/bus/ti99/sidecar/thermal.h b/src/devices/bus/ti99/sidecar/thermal.h index 505b1954292..5db6039f19c 100644 --- a/src/devices/bus/ti99/sidecar/thermal.h +++ b/src/devices/bus/ti99/sidecar/thermal.h @@ -4,7 +4,7 @@ Thermal Printer Model PHP1900 - + Michael Zapf May 2026 @@ -26,7 +26,7 @@ class ti_thermal_printer_device : public bus::ti99::internal::ioport_attached_de { public: ti_thermal_printer_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - + void readz(offs_t offset, uint8_t *value) override; void write(offs_t offset, uint8_t data) override; void setaddress_dbin(offs_t offset, int state) override; @@ -41,7 +41,7 @@ public: void reset_in(int state) override; INPUT_CHANGED_MEMBER( feed_button ); - + protected: virtual void device_start() override ATTR_COLD; virtual void device_reset() override ATTR_COLD; @@ -64,7 +64,7 @@ private: required_device<ttl74123_device> m_heatmf_u8; bool m_feed_pressed; - line_state m_ext_int; + line_state m_ext_int; // DSR ROM uint8_t* m_dsrrom; diff --git a/src/devices/cpu/i86/i86.cpp b/src/devices/cpu/i86/i86.cpp index 0fabeacbdf2..befc27d7824 100644 --- a/src/devices/cpu/i86/i86.cpp +++ b/src/devices/cpu/i86/i86.cpp @@ -2,24 +2,24 @@ // copyright-holders:Carl /**************************************************************************** - NEC V20/V30/V33 emulator modified back to a 8086/80186 emulator - - (Re)Written June-September 2000 by Bryan McPhail (mish@tendril.co.uk) based - on code by Oliver Bergmann (Raul_Bloodworth@hotmail.com) who based code - on the i286 emulator by Fabrice Frances which had initial work based on - David Hedley's pcemu(!). - - DIV/IDIV note: it's been observed on real 8086/8088 that DIV and IDIV - set the zero flag in the expected manner according to the quotient. The - firmware for the Akai MPC60 expicitly relies on this behavior. One - example from the routine that calculates how many timer ticks a sample - should play for: - - 5659 sub dx,dx ; sets ZF=1 - 565b mov cx,0x000a ; flags unchanged - 565e div cx ; firmware expects this to affect ZF - 5660 jne 0x5665 - 5662 mov ax,1 ; if ZF=1 the quotient was zero, round up to 1 tick + NEC V20/V30/V33 emulator modified back to a 8086/80186 emulator + + (Re)Written June-September 2000 by Bryan McPhail (mish@tendril.co.uk) based + on code by Oliver Bergmann (Raul_Bloodworth@hotmail.com) who based code + on the i286 emulator by Fabrice Frances which had initial work based on + David Hedley's pcemu(!). + + DIV/IDIV note: it's been observed on real 8086/8088 that DIV and IDIV + set the zero flag in the expected manner according to the quotient. The + firmware for the Akai MPC60 expicitly relies on this behavior. One + example from the routine that calculates how many timer ticks a sample + should play for: + + 5659 sub dx,dx ; sets ZF=1 + 565b mov cx,0x000a ; flags unchanged + 565e div cx ; firmware expects this to affect ZF + 5660 jne 0x5665 + 5662 mov ax,1 ; if ZF=1 the quotient was zero, round up to 1 tick 5665 ... ****************************************************************************/ diff --git a/src/devices/cpu/sharc/sharc.cpp b/src/devices/cpu/sharc/sharc.cpp index 5039686a7c7..5e7c810cb72 100644 --- a/src/devices/cpu/sharc/sharc.cpp +++ b/src/devices/cpu/sharc/sharc.cpp @@ -1337,8 +1337,6 @@ void adsp21062_device::execute_run() (this->*m_sharc_op[(m_core->opcode >> 39) & 0x1ff])(); - - // System register latency effect if (m_core->systemreg_latency_cycles > 0) { diff --git a/src/devices/machine/generalplus_gpce4_soc.cpp b/src/devices/machine/generalplus_gpce4_soc.cpp index 48ae52dde83..e21190ead01 100644 --- a/src/devices/machine/generalplus_gpce4_soc.cpp +++ b/src/devices/machine/generalplus_gpce4_soc.cpp @@ -1019,7 +1019,7 @@ void generalplus_gpce4_soc_device::fiq2_sel_w(u16 data) // 15 SPIEN // 14 --- // 13 LBM -// 12 SPICS_IO (0 = SPI_CS controlled by I/O, 1 = SPI_CS auto controlled) +// 12 SPICS_IO (0 = SPI_CS controlled by I/O, 1 = SPI_CS auto controlled) // // 11 SPIRST // 10 --- diff --git a/src/devices/machine/generalplus_gpl162xx_soc.cpp b/src/devices/machine/generalplus_gpl162xx_soc.cpp index c2975929bdf..3dbc7c4f554 100644 --- a/src/devices/machine/generalplus_gpl162xx_soc.cpp +++ b/src/devices/machine/generalplus_gpl162xx_soc.cpp @@ -561,7 +561,7 @@ void sunplus_gcm394_base_device::int_status1_w(u16 data) // 10 TMBCIF // 9 TMBBIF // 8 TMBAIF -// +// // 7 SDC2 // 6 SDC1 // 5 @@ -585,7 +585,7 @@ u16 sunplus_gcm394_base_device::int_status2_r() if (m_gpl_timebase->timebasec_irq_flag()) ret |= 0x0400; - + return ret; } @@ -1578,7 +1578,7 @@ void sunplus_gcm394_base_device::base_internal_map(address_map &map) map(0x007882, 0x007882).rw(FUNC(sunplus_gcm394_base_device::ioe_dir_r), FUNC(sunplus_gcm394_base_device::ioe_dir_w)); map(0x007883, 0x007883).rw(FUNC(sunplus_gcm394_base_device::ioe_attrib_r), FUNC(sunplus_gcm394_base_device::ioe_attrib_w)); // 7884 - P_IOE_Drv - + // 0x7888 - P_MEM_DRV // 0x7889 - P_MEM_DLY0 // 0x788a - P_MEM_DLY1 @@ -1903,7 +1903,7 @@ IRQ_CALLBACK_MEMBER(sunplus_gcm394_base_device::irq_vector_cb) //logerror("irq_vector_cb %d\n", irqline); //if (irqline == UNSP_IRQ6_LINE) - // set_state_unsynced(UNSP_IRQ6_LINE, CLEAR_LINE); + // set_state_unsynced(UNSP_IRQ6_LINE, CLEAR_LINE); if (irqline == UNSP_IRQ4_LINE) set_state_unsynced(UNSP_IRQ4_LINE, CLEAR_LINE); @@ -1996,7 +1996,7 @@ void sunplus_gcm394_base_device::device_add_mconfig(machine_config &config) m_gpl_dma->dma_complete_callback().set(FUNC(sunplus_gcm394_base_device::dma_complete)); GPL_TIMEBASE(config, m_gpl_timebase, 0); - m_gpl_timebase->updateirqs_callback().set(FUNC(sunplus_gcm394_base_device::update_interrupts)); + m_gpl_timebase->updateirqs_callback().set(FUNC(sunplus_gcm394_base_device::update_interrupts)); GCM394_VIDEO(config, m_spg_video, DERIVED_CLOCK(1, 1), DEVICE_SELF, m_screen); m_spg_video->write_video_irq_callback().set(FUNC(sunplus_gcm394_base_device::videoirq_w)); diff --git a/src/devices/machine/generalplus_gpl162xx_soc.h b/src/devices/machine/generalplus_gpl162xx_soc.h index eed874be1c4..73fa316ae7a 100644 --- a/src/devices/machine/generalplus_gpl162xx_soc.h +++ b/src/devices/machine/generalplus_gpl162xx_soc.h @@ -289,7 +289,7 @@ protected: void mint_ctrl_w(u16 data); virtual void update_interrupts(int state); - + u16 timera_ctrl_r(); void timera_ctrl_w(u16 data); diff --git a/src/devices/machine/generalplus_gpl162xx_soc_video.cpp b/src/devices/machine/generalplus_gpl162xx_soc_video.cpp index c8e8f17c0ac..76c94326008 100644 --- a/src/devices/machine/generalplus_gpl162xx_soc_video.cpp +++ b/src/devices/machine/generalplus_gpl162xx_soc_video.cpp @@ -931,12 +931,12 @@ void gcm394_base_video_device::video_703a_palettebank_w(u16 data) // 14 // 13 // 12 -// +// // 11 IRQ_EN11 R/W TV/TFT Frame End IRQ // 10 IRQ_EN10 R/W Frame buffer FIFO under-run IRQ // 9 IRQ_EN9 R/W Motion detection FIFO under-run IRQ // 8 IRQ_EN8 R/W Sensor position hit IRQ -// +// // 7 IRQ_EN7 R/w Motion detection frame end IRQ // 6 IRQ_EN6 R/W Sensor frame end IRQ // 5 IRQ_EN5 R/W Sprite engine under-run IRQ @@ -974,7 +974,7 @@ void gcm394_base_video_device::videoirq_source_enable_w(u16 data) // 10 IRQ_STS10 Frame buffer FIFO under-run IRQ // 9 IRQ_STS9 Motion detection FIFO under-run IRQ // 8 IRQ_STS8 Sensor position hit IRQ -// +// // 7 IRQ_STS7 Motion detection frame end IRQ // 6 IRQ_STS6 Sensor frame end IRQ // 5 IRQ_STS5 Sprite engine under-run IRQ @@ -1012,12 +1012,12 @@ void gcm394_base_video_device::video_7063_videoirq_source_ack_w(u16 data) // 10 // 9 // 8 -// +// // 7 // 6 // 5 // 4 -// +// // 3 // 2 // 1 BLDLVL[1] @@ -1120,7 +1120,7 @@ void gcm394_base_video_device::video_703c_tvcontrol1_w(u16 data) m_renderer->set_video_reg_3c(data); } -// uncertain, apparently P_STN_COM_Clip or P_TFT_V_Width +// uncertain, apparently P_STN_COM_Clip or P_TFT_V_Width u16 gcm394_base_video_device::video_7051_r() { diff --git a/src/devices/machine/generalplus_gpl951xx_soc.cpp b/src/devices/machine/generalplus_gpl951xx_soc.cpp index ef4dd8277b6..efea49eee48 100644 --- a/src/devices/machine/generalplus_gpl951xx_soc.cpp +++ b/src/devices/machine/generalplus_gpl951xx_soc.cpp @@ -925,17 +925,17 @@ void generalplus_gpl951xx_device::cache_ctrl_w(u16 data) // 14 ADCRIF - Line ADC Converstion Ready interrupt status // 13 PwrONIF - Power on key change event status // 12 OTIF - Over temperature event status -// +// // 11 UARTIF - UART Interrupt status // 10 SPI0 - Serial Peripheral Interface 0 interrupt status // 9 FPIF - FP Interrupt Status (LCD) // 8 -// +// // 7 ASIF - Line ADC Auto Sample Mode FIFO full interrupt status // 6 // 5 AUDBIF - Audio Channel B (CHB) FIFO Empty Interrupt status // 4 AUDAIF - Audio Channel A (CHA) FIFO Empty Interrupt status -// +// // 3 USB - USB interrupt status // 2 DMA - System DMA interrupt status // 1 EXT1IF - External interrupt 1 status (R/W) @@ -1012,17 +1012,17 @@ void generalplus_gpl951xx_device::int_status2_w(u16 data) // 14 TMGIF - TimerG Interrupt status // 13 TMFIF - TimerF Interrupt status // 12 TMEIF - TimerE Interrupt status -// +// // 11 TMDIF - TimerD Interrupt status // 10 TMCIF - TimerC Interrupt status // 9 TMBIF - TimerB Interrupt status // 8 TMAIF - TimerA Interrupt status -// +// // 7 UNEXP - unexpected access Interrupt status // 6 // 5 // 4 -// +// // 3 // 2 BEAT - SPU beat interrupt status (R/W) // 1 diff --git a/src/devices/machine/generalplus_gpl_chx.cpp b/src/devices/machine/generalplus_gpl_chx.cpp index bed0f9c34c0..80fc90ee884 100644 --- a/src/devices/machine/generalplus_gpl_chx.cpp +++ b/src/devices/machine/generalplus_gpl_chx.cpp @@ -72,17 +72,17 @@ void gpl_chx_device::device_reset() // 14 FEMIEN - FIFO Empty Interrupt Enable // 13 CHAEN - CHA Enable // 12 DACBEN -// +// // 11 SIGNEN - used signed data // 10 AMP_PE - Positive-side push-pull amp enable // 9 AMP_NE - Negative-side push-pull amp enable // 8 -// +// // 7 ONE_DAC - Mix CHA and CHB data to CHA // 6 GAIN[3] // 5 GAIN[2] // 4 GAIN[1] -// +// // 3 GAIN[0] // 2 CASCADE1 - External signal1 (ACIN) mixing enable // 1 CASCADE0 - External signal0 (ACIN) mixing enable @@ -143,17 +143,17 @@ void gpl_chx_device::cha_data_w(u16 data) // 14 FFUNRN - CHA FIFO under run flag // 13 // 12 -// +// // 11 // 10 // 9 // 8 FRST - FIFO Reset -// +// // 7 CHAFEILV[3] - CHA FIFO Empty Interrupt Level // 6 CHAFEILV[2] // 5 CHAFEILV[1] // 4 CHAFEILV[0] -// +// // 3 CHAFINX[3] - CHA FIFO Used // 2 CHAFINX[2] // 1 CHAFINX[1] @@ -185,17 +185,17 @@ void gpl_chx_device::cha_fifo_w(u16 data) // 14 FEMIEN - FIFO Empty Interrupt Enable // 13 CHBEN - CHB Enable // 12 SSF - CHB service Frequency (0 = different to CHAA, 1 = the same) -// +// // 11 CHACFG - CHB uses CHA config (0 = CHB config, 1 = CHA config) // 10 MONO - Mono mode (0 = Stereo, 1 = Mono) // 9 // 8 -// +// // 7 // 6 // 5 // 4 -// +// // 3 // 2 // 1 diff --git a/src/devices/machine/generalplus_gpl_timebase.cpp b/src/devices/machine/generalplus_gpl_timebase.cpp index 6c5464d26e9..838ea14400f 100644 --- a/src/devices/machine/generalplus_gpl_timebase.cpp +++ b/src/devices/machine/generalplus_gpl_timebase.cpp @@ -142,7 +142,7 @@ void gpl_timebase_device::timebaseb_ctrl_w(u16 data) case 0x01: m_timebase_b->adjust(attotime::from_hz(16)); break; case 0x02: m_timebase_b->adjust(attotime::from_hz(32)); break; case 0x03: m_timebase_b->adjust(attotime::from_hz(64)); break; - } + } } else { @@ -186,7 +186,7 @@ void gpl_timebase_device::timebasec_ctrl_w(u16 data) case 0x01: m_timebase_c->adjust(attotime::from_hz(256)); break; case 0x02: m_timebase_c->adjust(attotime::from_hz(512)); break; case 0x03: m_timebase_c->adjust(attotime::from_hz(1024)); break; - } + } } else { diff --git a/src/devices/machine/i8251.cpp b/src/devices/machine/i8251.cpp index 1e542d8c26d..8775f639240 100644 --- a/src/devices/machine/i8251.cpp +++ b/src/devices/machine/i8251.cpp @@ -12,7 +12,7 @@ TODO: - BRKDET: if, in Async mode, 16 low RxD bits in succession are clocked - in, the SYNDET pin & status must go high. It will go low upon a + in, the SYNDET pin & status must go high. It will go low upon a status read, same as what happens with sync. *********************************************************************/ diff --git a/src/devices/machine/w83877tf.cpp b/src/devices/machine/w83877tf.cpp index 53eb206aabe..4968383fdca 100644 --- a/src/devices/machine/w83877tf.cpp +++ b/src/devices/machine/w83877tf.cpp @@ -689,8 +689,8 @@ void w83877tf_device::request_irq(int irq, int state) m_isa->irq12_w(state); break; //case 13: - // m_isa->irq13_w(state); - // break; + // m_isa->irq13_w(state); + // break; case 14: m_isa->irq14_w(state); break; diff --git a/src/devices/sound/namco.h b/src/devices/sound/namco.h index 0494bd69bfb..2299bd4176e 100644 --- a/src/devices/sound/namco.h +++ b/src/devices/sound/namco.h @@ -74,7 +74,7 @@ protected: std::unique_ptr<uint8_t[]> m_waveram_alloc; - std::unique_ptr<uint8_t[]> m_soundregs; + std::unique_ptr<uint8_t[]> m_soundregs; }; diff --git a/src/devices/video/huc6260.cpp b/src/devices/video/huc6260.cpp index 0d7508ddfb8..323b56712d7 100644 --- a/src/devices/video/huc6260.cpp +++ b/src/devices/video/huc6260.cpp @@ -14,8 +14,8 @@ VSync is low for 4095 master cycles (3 lines). VSync changes 30 master cycles after HSync would go low. - TODO: - - any differences between battlera VCE and HuC6260? + TODO: + - any differences between battlera VCE and HuC6260? **********************************************************************/ diff --git a/src/devices/video/pc_vga_sis.cpp b/src/devices/video/pc_vga_sis.cpp index 2fbbfd714fb..322e3a0bfe8 100644 --- a/src/devices/video/pc_vga_sis.cpp +++ b/src/devices/video/pc_vga_sis.cpp @@ -1432,7 +1432,7 @@ std::tuple<u8, u8> sis6326_vga_device::flush_true_color_mode() // whatever is this doesn't seem related to the actual video format output // win98se has it enabled, SDD doesn't, both use 24-bit depth anyway -// const u8 res = !BIT(m_ext_sr07, 2); +// const u8 res = !BIT(m_ext_sr07, 2); return std::make_tuple(1, 0); } diff --git a/src/devices/video/zeus2.cpp b/src/devices/video/zeus2.cpp index 22afb660516..01132aa2fa3 100644 --- a/src/devices/video/zeus2.cpp +++ b/src/devices/video/zeus2.cpp @@ -117,7 +117,7 @@ void zeus2_device::device_start() // yoffs // texel_width // zbase -// save_item(NAME(m_system)); +// save_item(NAME(m_system)); save_item(NAME(zeus_fifo)); save_item(NAME(zeus_fifo_words)); save_item(NAME(m_fill_color)); diff --git a/src/lib/formats/m5_dsk.cpp b/src/lib/formats/m5_dsk.cpp index ed6c8a86a37..64c13902b27 100644 --- a/src/lib/formats/m5_dsk.cpp +++ b/src/lib/formats/m5_dsk.cpp @@ -67,7 +67,7 @@ const char* fd5_format::extensions() const noexcept const fd5_format::format fd5_format::formats[] = { // SINGLE-SIDED (SS) – 160 kB { - floppy_image::FF_3, // 3" floppy + floppy_image::FF_3, // 3" floppy floppy_image::SSDD, // single side, double density floppy_image::MFM, 2000, // 2 µs (cca 250 kbps in 300 rpm) diff --git a/src/lib/netlist/nl_setup.h b/src/lib/netlist/nl_setup.h index afafd6d7b27..39741379c5a 100644 --- a/src/lib/netlist/nl_setup.h +++ b/src/lib/netlist/nl_setup.h @@ -36,7 +36,7 @@ setup.register_dip_alias_arr(#pin1 ", " #__VA_ARGS__); // to be used to reference new library truth table devices -#define NET_REGISTER_DEV(type, name, ...) \ +#define NET_REGISTER_DEV(type, name, ...) \ setup.register_dev(#type, #name __VA_OPT__(, {PSTRINGIFY_VA(__VA_ARGS__)})); #define NET_CONNECT(name, input, output) \ diff --git a/src/mame/adp/stellafr.cpp b/src/mame/adp/stellafr.cpp index ca7709014f3..bf48fb6035b 100644 --- a/src/mame/adp/stellafr.cpp +++ b/src/mame/adp/stellafr.cpp @@ -678,7 +678,7 @@ GAMEL(1997, multprim, 0, sus_tk, stellafr, stellafr_state, empty_init, RO GAMEL(1997, mystjack, 0, sus_tk, stellafr, stellafr_state, empty_init, ROT0, "ADP", "Mystery Jackpot", MACHINE_NOT_WORKING | MACHINE_MECHANICAL | MACHINE_REQUIRES_ARTWORK, layout_stellafr ) GAMEL(1997, nunran, 0, sus_tk, stellafr, stellafr_state, empty_init, ROT0, "ADP", "Nun Ran", MACHINE_NOT_WORKING | MACHINE_MECHANICAL | MACHINE_REQUIRES_ARTWORK, layout_stellafr ) GAMEL(1998, allfred, 0, sus_tk, stellafr, stellafr_state, empty_init, ROT0, "Stella", "Allfred", MACHINE_NOT_WORKING | MACHINE_MECHANICAL | MACHINE_REQUIRES_ARTWORK, layout_stellafr ) -GAMEL(1998, glksstrn, 0, sus_tk, stellafr, stellafr_state, empty_init, ROT0, "ADP", u8"Glücks-Stern", MACHINE_NOT_WORKING | MACHINE_MECHANICAL | MACHINE_REQUIRES_ARTWORK, layout_stellafr ) +GAMEL(1998, glksstrn, 0, sus_tk, stellafr, stellafr_state, empty_init, ROT0, "ADP", u8"Glücks-Stern", MACHINE_NOT_WORKING | MACHINE_MECHANICAL | MACHINE_REQUIRES_ARTWORK, layout_stellafr ) GAMEL(1998, grnada, 0, sus_tk, stellafr, stellafr_state, empty_init, ROT0, "ADP", "Granada", MACHINE_NOT_WORKING | MACHINE_MECHANICAL | MACHINE_REQUIRES_ARTWORK, layout_stellafr ) GAMEL(1998, taipan, 0, sus_tk, stellafr, stellafr_state, empty_init, ROT0, "Nova", "Tai Pan Money", MACHINE_NOT_WORKING | MACHINE_MECHANICAL | MACHINE_REQUIRES_ARTWORK, layout_stellafr ) GAMEL(1998, bigwinnr, 0, sus_tk, stellafr, stellafr_state, empty_init, ROT0, "Nova", "Big Winner", MACHINE_NOT_WORKING | MACHINE_MECHANICAL | MACHINE_REQUIRES_ARTWORK, layout_stellafr ) diff --git a/src/mame/comad/zerozone.cpp b/src/mame/comad/zerozone.cpp index aa3872154ba..917b90524f7 100644 --- a/src/mame/comad/zerozone.cpp +++ b/src/mame/comad/zerozone.cpp @@ -9,7 +9,7 @@ CPU 1 : 68000, uses irq 1 - memory map : + memory map : 0x000000 - 0x01ffff : ROM 0x080000 - 0x08000f : input ports and dipswitches diff --git a/src/mame/excellent/es9606.cpp b/src/mame/excellent/es9606.cpp index cc1a9da286e..b4d3a2857f8 100644 --- a/src/mame/excellent/es9606.cpp +++ b/src/mame/excellent/es9606.cpp @@ -285,7 +285,7 @@ void es9606_state::es9606(machine_config &config) { M68000(config, m_maincpu, 32_MHz_XTAL / 2); // divider not verified, but CPU is rated for 16 MHz m_maincpu->set_addrmap(AS_PROGRAM, &es9606_state::program_map); -// m_maincpu->set_vblank_int("screen", FUNC(es9606_state::irq1_line_hold)); +// m_maincpu->set_vblank_int("screen", FUNC(es9606_state::irq1_line_hold)); EEPROM_93C46_16BIT(config, m_eeprom); // exact model unknown diff --git a/src/mame/gaelco/scalextric.cpp b/src/mame/gaelco/scalextric.cpp index 19c97bcc035..e9f9305427c 100644 --- a/src/mame/gaelco/scalextric.cpp +++ b/src/mame/gaelco/scalextric.cpp @@ -63,7 +63,7 @@ ROM_START(scxsp) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFD. */ + Config Word = 0x0FFD. */ ROM_LOAD("9-3_esp_33646_pic16c57.u1", 0x00000, 0x02000, CRC(520f6e27) SHA1(3c3f148c211ed0a71d9d896e921a158d736c6154)) // 9-mar ROM_REGION(0x40000, "musicrom", 0) @@ -79,7 +79,7 @@ ROM_START(scxspa) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFF. */ + Config Word = 0x0FFF. */ ROM_LOAD("mostra_spain_24-1-04_33924_pic16c57.bin", 0x00000, 0x02000, CRC(e331429c) SHA1(b6e9cd1a4dd92f0b1f04c1e27d5b965949d1e215)) // 24-jan ROM_REGION(0x40000, "musicrom", 0) @@ -95,7 +95,7 @@ ROM_START(scxspb) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FF5. */ + Config Word = 0x0FF5. */ ROM_LOAD("esp_4-12_pic16c57.u1", 0x00000, 0x02000, CRC(2836d5bb) SHA1(07b20515d1fdb19e44be984ba24955f57b563d9a)) // 04-dec ROM_REGION(0x40000, "musicrom", 0) @@ -111,7 +111,7 @@ ROM_START(scxspc) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFD. */ + Config Word = 0x0FFD. */ ROM_LOAD("q_mostra_esca_sp3_334a2_pic16c57.bin", 0x00000, 0x02000, CRC(d6a0d0ec) SHA1(bb64e0e9c432584766014277ecf12752e3c6948f)) ROM_REGION(0x40000, "musicrom", 0) @@ -127,7 +127,7 @@ ROM_START(scxspd) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFD. */ + Config Word = 0x0FFD. */ ROM_LOAD("mostra_pic16c57.bin", 0x00000, 0x02000, CRC(414f08b6) SHA1(fb471db71adde7fcd2d931f16d1d2dd6bb17dfad)) ROM_REGION(0x40000, "musicrom", 0) @@ -143,7 +143,7 @@ ROM_START(scxam) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFD. */ + Config Word = 0x0FFD. */ ROM_LOAD("america_mostra_puc16c57.bin", 0x00000, 0x02000, CRC(fbcf2894) SHA1(d2cd7d601716b97624ba7cf1d8e6e7ab9daa60ca)) ROM_REGION(0x40000, "musicrom", 0) @@ -159,7 +159,7 @@ ROM_START(scxen) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFD. */ + Config Word = 0x0FFD. */ ROM_LOAD("9-3_ing_33749_pic16c57.u1", 0x00000, 0x02000, CRC(9f5e1c52) SHA1(2120f070f95039138e1471060e1cd4653b17101a)) // 09-mar ROM_REGION(0x40000, "musicrom", 0) @@ -176,7 +176,7 @@ ROM_START(scxena) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFD. */ + Config Word = 0x0FFD. */ ROM_LOAD("mostra_esca_ing3_ing_pic16c57.bin", 0x00000, 0x02000, CRC(47f8446f) SHA1(4738073da9d8020e11c972c6657c788b1ddd2f08)) ROM_REGION(0x40000, "musicrom", 0) @@ -192,7 +192,7 @@ ROM_START(scxfr) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFD. */ + Config Word = 0x0FFD. */ ROM_LOAD("fra_33749_10-7_pic16c57.u1", 0x00000, 0x02000, CRC(1c5b2e41) SHA1(9efc95995eca1935bc34f208003ea2ba9c527ba5)) // 10-jul ROM_REGION(0x40000, "musicrom", 0) @@ -209,7 +209,7 @@ ROM_START(scxfra) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFD. */ + Config Word = 0x0FFD. */ ROM_LOAD("mostra_esca_fra3_fra_pic16c57.bin", 0x00000, 0x02000, CRC(c4fd767c) SHA1(fcec74f824d1a63931903783f6b3c4b0e19ab46e)) ROM_REGION(0x40000, "musicrom", 0) @@ -225,7 +225,7 @@ ROM_START(scxgr) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFD. */ + Config Word = 0x0FFD. */ ROM_LOAD("9-3_ale_3373d_pic16c57.u1", 0x00000, 0x02000, CRC(c16249e8) SHA1(b5f5202bb181120c3f45af134c9392ed72963f61)) // 09-mar ROM_REGION(0x40000, "musicrom", 0) @@ -241,7 +241,7 @@ ROM_START(scxit) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFD. */ + Config Word = 0x0FFD. */ ROM_LOAD("ita_14-3_33740_pic16c57.u1", 0x00000, 0x02000, CRC(60da3ba2) SHA1(a8576ebb99899cedf9a6114b6279a67be7f05e24)) // 14-mar ROM_REGION(0x40000, "musicrom", 0) @@ -258,7 +258,7 @@ ROM_START(scxita) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFD. */ + Config Word = 0x0FFD. */ ROM_LOAD("mostra_esca_ita3_ita_pic16c57.bin", 0x00000, 0x02000, CRC(116ce768) SHA1(1dc926c0a0fe7f3bb970305b0dedaa952ec4837c)) ROM_REGION(0x40000, "musicrom", 0) @@ -274,7 +274,7 @@ ROM_START(scxpt) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFD. */ + Config Word = 0x0FFD. */ ROM_LOAD("9-3_por_3373f_pic16c57.u1", 0x00000, 0x02000, CRC(2e21de9a) SHA1(979188bb71d1e241500bd4266222d0d28154fe5a)) // 9-mar ROM_REGION(0x40000, "musicrom", 0) @@ -290,7 +290,7 @@ ROM_START(scxus) ROM_REGION(0x02000, "subcpu", 0) /* User ID0=0x00F, ID1=0x00F, ID2=0x00F, ID3=0x00F. - Config Word = 0x0FFD. */ + Config Word = 0x0FFD. */ ROM_LOAD("otu_913_usa_3373c_pic16c57.u1", 0x00000, 0x02000, CRC(12eacf0f) SHA1(b37cddb8d735707191dce6f6622a8fd80ea2d3e3)) ROM_REGION(0x40000, "musicrom", 0) diff --git a/src/mame/gaelco/sralslot.cpp b/src/mame/gaelco/sralslot.cpp index d000f63e59c..942259d0d25 100644 --- a/src/mame/gaelco/sralslot.cpp +++ b/src/mame/gaelco/sralslot.cpp @@ -50,7 +50,7 @@ void sralslot_state::sralslot(machine_config &config) void sralslot_state::init_sral1990() { - uint16_t *src = &memregion("maincpu")->as_u16(); + uint16_t *src = &memregion("maincpu")->as_u16(); int srcsize = memregion("maincpu")->bytes(); // same basic scramble as pluto5.cpp, astrafr.cpp (also Heber platforms) std::vector<uint16_t> dst(srcsize / 2); @@ -95,7 +95,7 @@ ROM_END Either this is misidentified (another 'Super Rally' game?) or this is a rebuild on different hardware as if we assume this is running on a Heber Pluto platform (Pluto 1?) it can't have been earlier than 94 - + 1345 3AB-1986 SUPER RALLY 01.01.1990 1EC-00000016 COVIELSA, S.A */ diff --git a/src/mame/gridcomp/gridcomp.cpp b/src/mame/gridcomp/gridcomp.cpp index 5f683c61a02..98dfc7a3119 100644 --- a/src/mame/gridcomp/gridcomp.cpp +++ b/src/mame/gridcomp/gridcomp.cpp @@ -46,7 +46,7 @@ - keyboard MCU emulation - proper custom DMA logic timing - loading ROMs for Compass II - - proper 2101 and 2102 emulation + - proper 2101 and 2102 emulation missing dumps: @@ -176,11 +176,11 @@ static void rs232_devices(device_slot_interface &device) device.option_add("microsoft_mouse", MSFT_HLE_SERIAL_MOUSE); device.option_add("logitech_mouse", LOGITECH_HLE_SERIAL_MOUSE); /* - FIXME: - The GRiDPaint documentation states that this mouse should work. - But for some reason, the laptop does not recognize it. + FIXME: + The GRiDPaint documentation states that this mouse should work. + But for some reason, the laptop does not recognize it. - device.option_add("msystems_mouse", MSYSTEMS_HLE_SERIAL_MOUSE); + device.option_add("msystems_mouse", MSYSTEMS_HLE_SERIAL_MOUSE); */ device.option_add("printer", SERIAL_PRINTER); diff --git a/src/mame/gridcomp/gridrom.h b/src/mame/gridcomp/gridrom.h index c1612fd6fa5..a0b5d717226 100644 --- a/src/mame/gridcomp/gridrom.h +++ b/src/mame/gridcomp/gridrom.h @@ -14,7 +14,7 @@ device_slot_interface &gridrom_slot(device_slot_interface &device); class gridrom_socket_device : public generic_slot_device { public: - template <typename T> + template <typename T> gridrom_socket_device(machine_config const &mconfig, char const *tag, device_t *owner, T &&opts, char const *intf, char const *exts = nullptr) : gridrom_socket_device(mconfig, tag, owner, u32(0)) { @@ -29,13 +29,13 @@ public: virtual ~gridrom_socket_device(); std::pair<std::error_condition, std::string> call_load() override; - - uint8_t read(offs_t offset); - void set_image_names(std::string type_name, std::string brief_type_name); + uint8_t read(offs_t offset); + + void set_image_names(std::string type_name, std::string brief_type_name); void set_acceptable_sizes(std::vector<uint32_t> values); - virtual const char *image_type_name() const noexcept override { return m_image_type_name.c_str(); } + virtual const char *image_type_name() const noexcept override { return m_image_type_name.c_str(); } virtual const char *image_brief_type_name() const noexcept override { return m_image_brief_type_name.c_str(); } private: diff --git a/src/mame/handheld/generalplus_gp3x_unknown.cpp b/src/mame/handheld/generalplus_gp3x_unknown.cpp index a6113430d0a..4cf8f24d832 100644 --- a/src/mame/handheld/generalplus_gp3x_unknown.cpp +++ b/src/mame/handheld/generalplus_gp3x_unknown.cpp @@ -4,7 +4,7 @@ // these are similar to the devices in generalplus_gpl162xx_lcdtype.cpp // including the other HD 360 Degrees Rocker Palm Eyecare Console // which has an identical case -// +// // they've been rebuilt for a different (unknown) tech level // (but still unSP2.0 based, even if they have GP3x in the header) // register use (in the tiny bit of code) looks similar to generalplus_gpce4.cpp diff --git a/src/mame/igs/igs023_video.cpp b/src/mame/igs/igs023_video.cpp index 8aa99b3e98a..a88e7d2c5bd 100644 --- a/src/mame/igs/igs023_video.cpp +++ b/src/mame/igs/igs023_video.cpp @@ -181,16 +181,16 @@ u16 igs023_video_device::bg_scale_r() void igs023_video_device::bg_scale_w(offs_t offset, u16 data, u16 mem_mask) { /* - Background scale register format + Background scale register format - Bit Description - fedc ba98 7654 3210 - ---- --xx xxx- ---- Vertical scale - ---- ---- ---x xxxx Horizontal scale + Bit Description + fedc ba98 7654 3210 + ---- --xx xxx- ---- Vertical scale + ---- ---- ---x xxxx Horizontal scale - * Scale range is 50% to 200%, 0b10000 being 100% - * Unmarked bits are can be set but unknown and/or unused - TODO: not implemented, unknown algorithm + * Scale range is 50% to 200%, 0b10000 being 100% + * Unmarked bits are can be set but unknown and/or unused + TODO: not implemented, unknown algorithm */ COMBINE_DATA(&m_bg_scale); if (m_bg_scale != 0x210) @@ -228,18 +228,18 @@ void igs023_video_device::ctrl_w(offs_t offset, u16 data, u16 mem_mask) { const u16 prev = m_ctrl; /* - Control register format - - Bit Description - fedc ba98 7654 3210 - --x- ---- ---- ---- Disable high priority sprites - ---x ---- ---- ---- Disable background layer - ---- x--- ---- ---- Disable text layer - ---- ---- ---- x--- enable interrupt triggered each VBlank - ---- ---- ---- -x-- enable interrupt triggered every 62 scanlines (Not synced with VBlank) - ---- ---- ---- ---x Sprite DMA enable - - * Unmarked bits are can be set but unknown and/or unused + Control register format + + Bit Description + fedc ba98 7654 3210 + --x- ---- ---- ---- Disable high priority sprites + ---x ---- ---- ---- Disable background layer + ---- x--- ---- ---- Disable text layer + ---- ---- ---- x--- enable interrupt triggered each VBlank + ---- ---- ---- -x-- enable interrupt triggered every 62 scanlines (Not synced with VBlank) + ---- ---- ---- ---x Sprite DMA enable + + * Unmarked bits are can be set but unknown and/or unused */ COMBINE_DATA(&m_ctrl); if ((prev ^ m_ctrl) & 0xc7f2) diff --git a/src/mame/irem/m62.cpp b/src/mame/irem/m62.cpp index d789579adc7..59184093f57 100644 --- a/src/mame/irem/m62.cpp +++ b/src/mame/irem/m62.cpp @@ -2097,8 +2097,8 @@ ROM_START( yanjamar ) ROM_LOAD( "dr27.3j", 0x00200, 0x0100, BAD_DUMP CRC(70d668ef) SHA1(2cc647f2708932105bb9a5130aacc5a8a160e418) ) // character palette blue component /* The PCBs have a total of 25 PROMs, all of them were soldered and none of them were dumped. - The previous seven PROMs (sprite height, sprite palette, and character palette) should be some of the following NO_DUMP declaratios, but - is difficult to determine which is which. */ + The previous seven PROMs (sprite height, sprite palette, and character palette) should be some of the following NO_DUMP declaratios, but + is difficult to determine which is which. */ ROM_REGION( 0x200, "other_proms", 0 ) ROM_LOAD( "2_ic25_n82s129n.d7", 0x0000, 0x0100, NO_DUMP ) ROM_LOAD( "2_ic29_n82s129n.d8", 0x0000, 0x0100, NO_DUMP ) diff --git a/src/mame/jaleco/cischeat.cpp b/src/mame/jaleco/cischeat.cpp index a6be27bd611..c1aaa641b3b 100644 --- a/src/mame/jaleco/cischeat.cpp +++ b/src/mame/jaleco/cischeat.cpp @@ -184,7 +184,7 @@ Cisco Heat. #include "logmacro.h" -#define LOGUNKNOWN(...) LOGMASKED(LOG_UNKNOWN, __VA_ARGS__) +#define LOGUNKNOWN(...) LOGMASKED(LOG_UNKNOWN, __VA_ARGS__) namespace { // TODO: better inheritance, eventually split individual driver files diff --git a/src/mame/jaleco/ms1_tmap.cpp b/src/mame/jaleco/ms1_tmap.cpp index e3032d72b33..49ea710e69e 100644 --- a/src/mame/jaleco/ms1_tmap.cpp +++ b/src/mame/jaleco/ms1_tmap.cpp @@ -25,7 +25,7 @@ #include "logmacro.h" -#define LOGVIDEO(...) LOGMASKED(LOG_VIDEO, __VA_ARGS__) +#define LOGVIDEO(...) LOGMASKED(LOG_VIDEO, __VA_ARGS__) static constexpr int TILES_PER_PAGE_X = 0x20; static constexpr int TILES_PER_PAGE_Y = 0x20; diff --git a/src/mame/jaleco/scudhamm.cpp b/src/mame/jaleco/scudhamm.cpp index 5c6792df265..7f830b4b977 100644 --- a/src/mame/jaleco/scudhamm.cpp +++ b/src/mame/jaleco/scudhamm.cpp @@ -90,7 +90,7 @@ TODO: #include "logmacro.h" -#define LOGUNKNOWN(...) LOGMASKED(LOG_UNKNOWN, __VA_ARGS__) +#define LOGUNKNOWN(...) LOGMASKED(LOG_UNKNOWN, __VA_ARGS__) namespace { @@ -110,7 +110,7 @@ public: , m_io_in(*this, "IN%u", 0U) , m_leds(*this, "led%u", 0U) { - + } void scudhamm(machine_config &config) ATTR_COLD; @@ -1741,7 +1741,7 @@ void captflag_state::init_vscaptfl() space.install_write_handler(0x100050, 0x100051, write16s_delegate(*this, FUNC(captflag_state::motor_command_right_w))); } -} // anonymous namespace +} // anonymous namespace /*************************************************************************** diff --git a/src/mame/kaneko/suprnova.cpp b/src/mame/kaneko/suprnova.cpp index 9e17e621bd6..36aabf7609c 100644 --- a/src/mame/kaneko/suprnova.cpp +++ b/src/mame/kaneko/suprnova.cpp @@ -169,7 +169,7 @@ NEP-16 #include "logmacro.h" -#define LOGHIT(...) LOGMASKED(LOG_HIT, __VA_ARGS__) +#define LOGHIT(...) LOGMASKED(LOG_HIT, __VA_ARGS__) static void hit_calc_orig(u16 p, u16 s, u16 org, u16 &l, u16 &r) { @@ -668,10 +668,10 @@ void skns_state::io_w(offs_t offset, u32 data, u32 mem_mask) case 2: if (ACCESSING_BITS_24_31) { /* Coin Lock/Count */ - // machine().bookkeeping().coin_counter_w(0, BIT(data, 24)); - // machine().bookkeeping().coin_counter_w(1, BIT(data, 25)); - // machine().bookkeeping().coin_lockout_w(0, BIT(~data, 26)); - // machine().bookkeeping().coin_lockout_w(1, BIT(~data, 27)); // Works in puzzloop, others behave strange. + //machine().bookkeeping().coin_counter_w(0, BIT(data, 24)); + //machine().bookkeeping().coin_counter_w(1, BIT(data, 25)); + //machine().bookkeeping().coin_lockout_w(0, BIT(~data, 26)); + //machine().bookkeeping().coin_lockout_w(1, BIT(~data, 27)); // Works in puzzloop, others behave strange. } if (ACCESSING_BITS_16_23) { /* Analogue Input Select */ @@ -686,7 +686,8 @@ void skns_state::io_w(offs_t offset, u32 data, u32 mem_mask) case 3: if (ACCESSING_BITS_8_15) { /* Interrupt Clear, do we need these? */ - /* if (BIT(data, 0)) +#if 0 + if (BIT(data, 0)) m_maincpu->set_input_line(1, CLEAR_LINE); if (BIT(data, 1)) m_maincpu->set_input_line(3, CLEAR_LINE); @@ -701,9 +702,10 @@ void skns_state::io_w(offs_t offset, u32 data, u32 mem_mask) if (BIT(data, 6)) m_maincpu->set_input_line(13, CLEAR_LINE); if (BIT(data, 7)) - m_maincpu->set_input_line(15, CLEAR_LINE);*/ + m_maincpu->set_input_line(15, CLEAR_LINE); +#endif - /* idle skip for vblokbrk/sarukani, i can't find a better place to put it :-( but i think it works ok unless its making the game too fast */ + /* idle skip for vblokbrk/sarukani, I can't find a better place to put it :-( but I think it works OK unless it's making the game too fast */ if (m_maincpu->pc() == 0x04013b42) { if (!strcmp(machine().system().name,"vblokbrk") || diff --git a/src/mame/konami/nemesis.cpp b/src/mame/konami/nemesis.cpp index 0e7ba40792b..ef585d0502d 100644 --- a/src/mame/konami/nemesis.cpp +++ b/src/mame/konami/nemesis.cpp @@ -3157,7 +3157,7 @@ ROM_START( gwarriorb ) ROM_REGION( 0x48360, "bubblememory", 0 ) /* The Gradius cartridge contains 0x807 pages of 130 bytes each */ - ROM_LOAD16_WORD_SWAP( "gwarriorb.bin", 0x00000, 0x48360, CRC(a10e1b62) SHA1(a801ad8d318644495fbe2c971395d271d12508f1) ) + ROM_LOAD16_WORD_SWAP( "gwarriorb.bin", 0x00000, 0x48360, CRC(a10e1b62) SHA1(a801ad8d318644495fbe2c971395d271d12508f1) ) ROM_REGION( 0x10000, "audiocpu", 0 ) /* 64k for sound */ ROM_LOAD( "400b03.8g", 0x0000, 0x2000, CRC(85c2afc5) SHA1(387842d02d50d0d78a27270e7267af19555b9e63) ) @@ -3173,7 +3173,7 @@ ROM_START( rf2b ) ROM_REGION( 0x48360, "bubblememory", 0 ) /* The Gradius cartridge contains 0x807 pages of 130 bytes each */ - ROM_LOAD16_WORD_SWAP( "rf2b.bin", 0x00000, 0x48360, CRC(7ee7acc5) SHA1(ab95a75b259327a7f88c7ec56dbca74496c91688) ) + ROM_LOAD16_WORD_SWAP( "rf2b.bin", 0x00000, 0x48360, CRC(7ee7acc5) SHA1(ab95a75b259327a7f88c7ec56dbca74496c91688) ) ROM_REGION( 0x10000, "audiocpu", 0 ) /* 64k for sound */ ROM_LOAD( "400b03.8g", 0x0000, 0x2000, CRC(85c2afc5) SHA1(387842d02d50d0d78a27270e7267af19555b9e63) ) @@ -3271,5 +3271,5 @@ GAME( 1985, gradiusb, bubsys, bubsys, gradiusb, bubsys_state, bubsys_init, GAME( 1985, gwarriorb, bubsys, bubsys, gwarrior, bubsys_state, bubsys_init, ROT0, "Konami", "Galactic Warriors (Bubble System)", MACHINE_UNEMULATED_PROTECTION ) GAME( 1985, rf2b, bubsys, bubsys, rf2, bubsys_state, bubsys_init, ROT0, "Konami", "Konami RF2 - Red Fighter (Bubble System)", MACHINE_UNEMULATED_PROTECTION ) GAME( 1985, twinbeeb, bubsys, bubsys, twinbeeb, bubsys_state, bubsys_twinbeeb_init, ROT90, "Konami", "TwinBee (Bubble System)", MACHINE_UNEMULATED_PROTECTION ) - + // Bubble System Attack Rush was announced, but never released diff --git a/src/mame/luxor/x37.cpp b/src/mame/luxor/x37.cpp index cebb0ad691d..d88062d012b 100644 --- a/src/mame/luxor/x37.cpp +++ b/src/mame/luxor/x37.cpp @@ -11,10 +11,10 @@ /* - TODO + TODO - - tst.w 0xfffffc - - loadsys1 fails with syntax error + - tst.w 0xfffffc + - loadsys1 fails with syntax error */ @@ -292,24 +292,24 @@ uint16_t x37_state::edc_status_r(offs_t offset) { /* - bit description - - 0 MA16 - 1 MA17 - 2 MA18 - 3 MA19 - 4 MA20 - 5 MA21 - 6 0 - 7 0 - 8 ECC C0 - 9 ECC C1 - 10 ECC C2 - 11 ECC C3 - 12 ECC C4 - 13 ECC C5 - 14 ECC SEF - 15 ECC DEF + bit description + + 0 MA16 + 1 MA17 + 2 MA18 + 3 MA19 + 4 MA20 + 5 MA21 + 6 0 + 7 0 + 8 ECC C0 + 9 ECC C1 + 10 ECC C2 + 11 ECC C3 + 12 ECC C4 + 13 ECC C5 + 14 ECC SEF + 15 ECC DEF */ @@ -325,16 +325,16 @@ uint8_t x37_state::cio_pa_r() { /* - bit description + bit description - 0 FDC INTRQ - 1 *XIRQ1 - 2 *XIRQ2 - 3 *XIRQ3 - 4 *XIRQ4 - 5 *XIRQ5 - 6 *XIRQ6 - 7 *SASI INT + 0 FDC INTRQ + 1 *XIRQ1 + 2 *XIRQ2 + 3 *XIRQ3 + 4 *XIRQ4 + 5 *XIRQ5 + 6 *XIRQ6 + 7 *SASI INT */ @@ -350,16 +350,16 @@ void x37_state::cio_pb_w(uint8_t data) { /* - bit description + bit description - 0 TASKNR - 1 TASKNR - 2 TASKNR - 3 TASKNR - 4 MAN INPUT, PERMIT OUTPUT - 5 ENABLE IRQ1, DISABLE MAN INPUT - 6 - 7 BOOT, GREEN LED + 0 TASKNR + 1 TASKNR + 2 TASKNR + 3 TASKNR + 4 MAN INPUT, PERMIT OUTPUT + 5 ENABLE IRQ1, DISABLE MAN INPUT + 6 + 7 BOOT, GREEN LED */ @@ -435,24 +435,24 @@ void x37_state::xdck_w(offs_t offset, uint16_t data, uint16_t mem_mask) { /* - bit description - - 0 FPMR - 1 FPDD - 2 FPHLT - 3 MINI - 4 N/C - 5 N/C - 6 PRE1 - 7 PRE2 - 8 SEL0 - 9 SEL1 - 10 SEL2 - 11 MOTOR - 12 LO1 (anded with FPWG) - 13 LO1 - 14 N/C - 15 N/C + bit description + + 0 FPMR + 1 FPDD + 2 FPHLT + 3 MINI + 4 N/C + 5 N/C + 6 PRE1 + 7 PRE2 + 8 SEL0 + 9 SEL1 + 10 SEL2 + 11 MOTOR + 12 LO1 (anded with FPWG) + 13 LO1 + 14 N/C + 15 N/C */ diff --git a/src/mame/luxor/x37_sasi.cpp b/src/mame/luxor/x37_sasi.cpp index d37262c9271..7c337000710 100644 --- a/src/mame/luxor/x37_sasi.cpp +++ b/src/mame/luxor/x37_sasi.cpp @@ -162,24 +162,24 @@ uint16_t luxor_x37_sasi_device::stat_r(offs_t offset, uint16_t mem_mask) { /* - bit description - - 0 HLC - 1 SCSIA0 - 2 SCSIA1 - 3 SCSIA2 - 4 SCSIA3 - 5 0 - 6 0 - 7 0 - 8 BRQ - 9 SCSIDIR - 10 - 11 - 12 - 13 - 14 BSY - 15 *SASIINT + bit description + + 0 HLC + 1 SCSIA0 + 2 SCSIA1 + 3 SCSIA2 + 4 SCSIA3 + 5 0 + 6 0 + 7 0 + 8 BRQ + 9 SCSIDIR + 10 + 11 + 12 + 13 + 14 BSY + 15 *SASIINT */ @@ -201,24 +201,24 @@ void luxor_x37_sasi_device::ctrl_w(offs_t offset, uint16_t data, uint16_t mem_ma { /* - bit description - - 0 D0 - 1 D1 - 2 D2 - 3 D3 - 4 D4 - 5 D5 - 6 D6 - 7 D7 - 8 DXD8 - 9 RST - 10 - 11 - 12 - 13 REQ - 14 I/O - 15 + bit description + + 0 D0 + 1 D1 + 2 D2 + 3 D3 + 4 D4 + 5 D5 + 6 D6 + 7 D7 + 8 DXD8 + 9 RST + 10 + 11 + 12 + 13 REQ + 14 I/O + 15 */ @@ -265,7 +265,7 @@ void luxor_x37_sasi_device::ctrl_w(offs_t offset, uint16_t data, uint16_t mem_ma uint16_t luxor_x37_sasi_device::tre_r(offs_t offset, uint16_t mem_mask) { u16 data = 0; - if (m_dxd8) { + if (m_dxd8) { data = m_buffer[m_a]; LOG("%s tre_r: dxd8=1 tre=%04x a=%01x\n", machine().describe_context(), data, m_a); count(); diff --git a/src/mame/matsushita/kn5000_cpanel.cpp b/src/mame/matsushita/kn5000_cpanel.cpp index ed7c2279b1b..eb01d99cd57 100644 --- a/src/mame/matsushita/kn5000_cpanel.cpp +++ b/src/mame/matsushita/kn5000_cpanel.cpp @@ -2,23 +2,23 @@ // copyright-holders:Felipe Sanches /*************************************************************************** - KN5000 control panel HLE - - Emulates the two Mitsubishi M37471M2196S MCUs on the control panel. - - Protocol Summary: - ----------------- - - Commands are 2-byte sequences from main CPU - - Command byte encoding: bits 7-5 = panel (001=left, 111=right), - bits 4-0 = command type (0=basic query, 2=analog register query, - 3=extended read, 5=data mode) - - Response packets have type encoded in bits 5-3: - Type 0,1: Button state (bits 7:6 select panel: 00=right, 11=left) - Type 2: Encoder (absolute 8-bit ADC value, NOT delta) - Type 3-5: Sync/ACK - Type 6,7: Multi-byte data - - See: https://felipesanches.github.io/kn5000-docs/control-panel-protocol/ + KN5000 control panel HLE + + Emulates the two Mitsubishi M37471M2196S MCUs on the control panel. + + Protocol Summary: + ----------------- + - Commands are 2-byte sequences from main CPU + - Command byte encoding: bits 7-5 = panel (001=left, 111=right), + bits 4-0 = command type (0=basic query, 2=analog register query, + 3=extended read, 5=data mode) + - Response packets have type encoded in bits 5-3: + Type 0,1: Button state (bits 7:6 select panel: 00=right, 11=left) + Type 2: Encoder (absolute 8-bit ADC value, NOT delta) + Type 3-5: Sync/ACK + Type 6,7: Multi-byte data + + See: https://felipesanches.github.io/kn5000-docs/control-panel-protocol/ ***************************************************************************/ diff --git a/src/mame/matsushita/kn5000_cpanel.h b/src/mame/matsushita/kn5000_cpanel.h index 8d73e571b0e..3a1becb4978 100644 --- a/src/mame/matsushita/kn5000_cpanel.h +++ b/src/mame/matsushita/kn5000_cpanel.h @@ -2,13 +2,13 @@ // copyright-holders:Felipe Sanches /*************************************************************************** - KN5000 control panel HLE + KN5000 control panel HLE - Emulates the two Mitsubishi M37471M2196S MCUs on the control panel. - Since no ROM dumps are available, this uses High Level Emulation based - on reverse engineering of the main CPU firmware protocol. + Emulates the two Mitsubishi M37471M2196S MCUs on the control panel. + Since no ROM dumps are available, this uses High Level Emulation based + on reverse engineering of the main CPU firmware protocol. - Protocol documentation: https://felipesanches.github.io/kn5000-docs/control-panel-protocol/ + Protocol documentation: https://felipesanches.github.io/kn5000-docs/control-panel-protocol/ ***************************************************************************/ diff --git a/src/mame/midway/midqslvr.cpp b/src/mame/midway/midqslvr.cpp index b284cf3fe38..49264328025 100644 --- a/src/mame/midway/midqslvr.cpp +++ b/src/mame/midway/midqslvr.cpp @@ -62,7 +62,7 @@ Graphite hardware: - RAM: 128MB PC100/133 - Sound: Integrated AC'97 Controller on VT82C686A Southbridge + ES1373/CT5880 Audio Chip - or CMI8738/8768 driver with PCIR 13f6:0111, as per XP-2K-ME folder (?) + or CMI8738/8768 driver with PCIR 13f6:0111, as per XP-2K-ME folder (?) - Networking: SMC EZ Card 10 / SMC1208T (probably 10ec:8029 1113:1208) - Video Card: 3DFX Voodoo 3 - Storage: Hard Drive (copy protected) diff --git a/src/mame/misc/matrix.cpp b/src/mame/misc/matrix.cpp index 547c456b7e9..467da039574 100644 --- a/src/mame/misc/matrix.cpp +++ b/src/mame/misc/matrix.cpp @@ -69,7 +69,7 @@ private: void matrix_state::main_map(address_map &map) { // TODO: pulling high fixes Award screen at the expense of keep looping at $c8000 -// map.unmap_value_high(); +// map.unmap_value_high(); } void matrix_state::main_io(address_map &map) diff --git a/src/mame/namco/ds5000.cpp b/src/mame/namco/ds5000.cpp index 2a73dec3f36..d36a196387e 100644 --- a/src/mame/namco/ds5000.cpp +++ b/src/mame/namco/ds5000.cpp @@ -190,8 +190,8 @@ private: uint32_t ds5000_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { -// m_c355spr->build_sprite_list_and_render_sprites(cliprect); -// m_c355spr->draw(screen, bitmap, cliprect); +// m_c355spr->build_sprite_list_and_render_sprites(cliprect); +// m_c355spr->draw(screen, bitmap, cliprect); return 0; } @@ -284,9 +284,9 @@ void ds5000_state::ds5000(machine_config &config) m_c355spr->set_screen("screen"); m_c355spr->set_palette("palette"); m_c355spr->set_scroll_offsets(0, 0x20); -// m_c355spr->set_mix_callback(FUNC(namcos21_c67_state::sprite_mix_callback)); +// m_c355spr->set_mix_callback(FUNC(namcos21_c67_state::sprite_mix_callback)); m_c355spr->set_color_base(0x1000); -// m_c355spr->set_external_prifill(true); +// m_c355spr->set_external_prifill(true); screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER)); screen.set_refresh_hz(60); diff --git a/src/mame/namco/namcos22_v.cpp b/src/mame/namco/namcos22_v.cpp index 23bd8176190..46a84da8854 100644 --- a/src/mame/namco/namcos22_v.cpp +++ b/src/mame/namco/namcos22_v.cpp @@ -1402,12 +1402,12 @@ void namcos22_state::slavesim_handle_233002(const s32 *src) 00000000: common 00800000: alpinr2b cancel fogging on selection screen 00800000: raverace cancel fogging on sky in attract mode - --xx----: pen when textures are disabled with objectflags 003fffff - ----xxxx: pen when textures are disabled with objectflags 005fffff / 009fffff + --xx----: pen when textures are disabled with objectflags 003fffff + ----xxxx: pen when textures are disabled with objectflags 005fffff / 009fffff objectshift: - 00800000: set at same time as objectflags 009fffff - --xxxxxx: low 22 bits: object z bias adjust (see blit_single_quad) + 00800000: set at same time as objectflags 009fffff + --xxxxxx: low 22 bits: object z bias adjust (see blit_single_quad) objectflags: 001fffff: common diff --git a/src/mame/nec/piet1.cpp b/src/mame/nec/piet1.cpp index ecc4076e875..5f4a6644419 100644 --- a/src/mame/nec/piet1.cpp +++ b/src/mame/nec/piet1.cpp @@ -374,7 +374,7 @@ void piet1_state::machine_start() m_banks[0]->configure_entries(0, 32, rom, 0x4000); m_banks[1]->configure_entries(0, 2, ram, 0x4000); -// m_banks[2]->configure_entries(0, 32, rom, 0x4000); +// m_banks[2]->configure_entries(0, 32, rom, 0x4000); m_banks[2]->configure_entries(0, 32, rom, 0x4000); for (size_t i = 0; i < 4; i++) { diff --git a/src/mame/nintendo/gamecube.cpp b/src/mame/nintendo/gamecube.cpp index 7efa2b32cd8..abc4a4bd92b 100644 --- a/src/mame/nintendo/gamecube.cpp +++ b/src/mame/nintendo/gamecube.cpp @@ -66,7 +66,7 @@ void gamecube_state::ppc_mem(address_map &map) map(0x0000'0000, 0x017f'ffff).ram().share("workram"); // 24 MB main memory (physical) map(0x0800'0000, 0x081f'ffff).ram(); // 2 MB embedded framebuffer (EFB) map(0x0c00'6800, 0x0c00'683f).lr8(NAME([] () { return 0; })).nopw(); // EXI External Interface -// map(0xe000'0000, 0xe000'3fff).ram(); // L2 cache +// map(0xe000'0000, 0xe000'3fff).ram(); // L2 cache map(0xfff0'0000, 0xffff'ffff).bankr("boot"); } diff --git a/src/mame/nintendo/nes_vt02_vt03.cpp b/src/mame/nintendo/nes_vt02_vt03.cpp index dc03a4c5261..ba5f721889b 100644 --- a/src/mame/nintendo/nes_vt02_vt03.cpp +++ b/src/mame/nintendo/nes_vt02_vt03.cpp @@ -1610,7 +1610,7 @@ CONS( 2004, polmega, 0, 0, nes_vt_vh2009_4mb, nes_vt, nes_vt_swap_op_ CONS( 200?, dgun851, 0, 0, nes_vt_vh2009_4mb, nes_vt, nes_vt_swap_op_d5_d6_state, empty_init, "dreamGEAR / JungleTac", "Plug 'N' Play 30-in-1 (DGUN-851)", MACHINE_IMPERFECT_GRAPHICS | MACHINE_IMPERFECT_SOUND ) CONS( 200?, dgun853, 0, 0, nes_vt_vh2009_8mb, nes_vt, nes_vt_swap_op_d5_d6_state, empty_init, "dreamGEAR / JungleTac", "Plug 'N' Play 50-in-1 (DGUN-853)", MACHINE_IMPERFECT_GRAPHICS | MACHINE_IMPERFECT_SOUND ) CONS( 200?, silv35, 0, 0, nes_vt_vh2009_4mb, nes_vt, nes_vt_swap_op_d5_d6_state, empty_init, "SilverLit / JungleTac", "35 in 1 Super Twins", MACHINE_IMPERFECT_GRAPHICS | MACHINE_IMPERFECT_SOUND ) -CONS( 200?, silvlt50, 0, 0, nes_vt_vh2009_4mb, nes_vt, nes_vt_swap_op_d5_d6_state, empty_init, "SilverLit / JungleTac", "50 in 1 Arcade Joystick", MACHINE_IMPERFECT_GRAPHICS | MACHINE_IMPERFECT_SOUND ) +CONS( 200?, silvlt50, 0, 0, nes_vt_vh2009_4mb, nes_vt, nes_vt_swap_op_d5_d6_state, empty_init, "SilverLit / JungleTac", "50 in 1 Arcade Joystick", MACHINE_IMPERFECT_GRAPHICS | MACHINE_IMPERFECT_SOUND ) CONS( 2004, vsmaxxvd, 0, 0, nes_vt_vh2009_8mb, nes_vt, nes_vt_swap_op_d5_d6_state, empty_init, "Senario / JungleTac", "Vs Maxx Video Extreme 50-in-1 (with Speed Racer and Snood)", MACHINE_IMPERFECT_GRAPHICS | MACHINE_IMPERFECT_SOUND ) CONS( 200?, vsmaxx77, 0, 0, nes_vt_vh2009_8mb, nes_vt, nes_vt_swap_op_d5_d6_state, empty_init, "Senario / JungleTac", "Vs Maxx Wireless 77-in-1", MACHINE_IMPERFECT_GRAPHICS | MACHINE_IMPERFECT_SOUND ) CONS( 200?, joysti30, 0, 0, nes_vt_vh2009_4mb, nes_vt, nes_vt_swap_op_d5_d6_state, empty_init, "WinFun / JungleTac", "Joystick 30", MACHINE_IMPERFECT_GRAPHICS | MACHINE_IMPERFECT_SOUND ) // doesn't show WinFun onscreen, but packaging does diff --git a/src/mame/nintendo/nes_vt369_vtunknown.cpp b/src/mame/nintendo/nes_vt369_vtunknown.cpp index f50e96a25ee..13e983fc79e 100644 --- a/src/mame/nintendo/nes_vt369_vtunknown.cpp +++ b/src/mame/nintendo/nes_vt369_vtunknown.cpp @@ -619,7 +619,7 @@ void vt36x_otrail_state::otrail_seeprom_w(u8 data) void vt36x_otrail_state::otrail_sound_w(u8 data) { // is this really a DAC? - // + // // it might be an another chip playing samples from an internal ROM // as there are longer sound clips and only short bursts of writes that // look more like commands @@ -1314,7 +1314,7 @@ ROM_START( lxcap ) //ROM_REGION( 0x100, "protection", 0 ) // data from additional 8-pin chip for protection // This table is just (0x100 - offset) & 0xff with a nibble swap applied at the end - // + // // The chip here (which is accessed in a different way to gtct885 etc.) might not // be fetching data from a table, but doing a calculation // @@ -1508,7 +1508,7 @@ ROM_START( goretrop ) ROM_REGION( 0x100, "protection", 0 ) // data from additional 8-pin chip for protection (copied to 0x701 - 0x7ff) // This is a hacked version of the data from gtct885, as the 'jump from ROM' offsets seem to match, but the // code needs to be at a different address, and some of the ports read/written by the code are different too - // + // // This is functional enough to get the menu running, but the real data still needs extracting. ROM_LOAD( "protection.bin", 0x00000, 0x100, BAD_DUMP CRC(3cd42234) SHA1(3a4afc890d894b4256960150b2729fd5f93555a0) ) ROM_END @@ -1828,7 +1828,7 @@ CONS( 201?, red5mam, 0, 0, vt36x_altswap_32mb_4banks_red5mam, vt369, vt36x_st CONS( 2016, dgun2593, 0, 0, vt36x_altswap_32mb_4banks_red5mam, vt369, vt36x_state, empty_init, "dreamGEAR", "My Arcade Retro Arcade Machine - 300 Handheld Video Games (DGUN-2593)", MACHINE_NOT_WORKING ) -CONS( 201?, urban240, 0, 0, vt36x_altswap_32mb_4banks_red5mam, vt369, vt36x_state, empty_init, "Urban Outfitters", "Mini Arcade Machine 240-in-1 (translucent case)", MACHINE_NOT_WORKING ) +CONS( 201?, urban240, 0, 0, vt36x_altswap_32mb_4banks_red5mam, vt369, vt36x_state, empty_init, "Urban Outfitters", "Mini Arcade Machine 240-in-1 (translucent case)", MACHINE_NOT_WORKING ) CONS( 200?, gcs2mgp, 0, 0, vt36x_altswap_16mb, vt369_rot, vt36x_state, empty_init, "Jungle's Soft", "Mini Game Player 48-in-1", MACHINE_NOT_WORKING | ROT270 ) diff --git a/src/mame/nintendo/nes_vt369_vtunknown_soc.cpp b/src/mame/nintendo/nes_vt369_vtunknown_soc.cpp index 77c42c47cd3..b7285bbe2c8 100644 --- a/src/mame/nintendo/nes_vt369_vtunknown_soc.cpp +++ b/src/mame/nintendo/nes_vt369_vtunknown_soc.cpp @@ -425,7 +425,7 @@ void vt3xx_soc_base_device::vt_4153_port_out_w(u8 data) // it then sets vt_414x_port_direction_w to 0x20 (0010 0000) // and reads from 414b masking with 0x10 // pixel246 does similar. (of note, both otrail and pixel246 test more RAM than usual too) -// +// // maybe the port can be configured in different modes? u8 vt3xx_soc_base_device::vt_414x_port_direction_r() diff --git a/src/mame/nintendo/vt_menu_protection.cpp b/src/mame/nintendo/vt_menu_protection.cpp index 53d8e602744..a0760f86a62 100644 --- a/src/mame/nintendo/vt_menu_protection.cpp +++ b/src/mame/nintendo/vt_menu_protection.cpp @@ -55,7 +55,7 @@ void vt_menu_protection_device::write_clock(bool state) { logerror("got command %02x\n", m_command); - // gtct885 uses command 0x30 to read, goretrop uses command 0x20 + // gtct885 uses command 0x30 to read, goretrop uses command 0x20 if ((m_command == 0x30) || (m_command == 0x20)) { logerror("(read bytes)\n"); diff --git a/src/mame/psikyo/psikyosh_v.cpp b/src/mame/psikyo/psikyosh_v.cpp index ec456febb4b..6bc0518e573 100644 --- a/src/mame/psikyo/psikyosh_v.cpp +++ b/src/mame/psikyo/psikyosh_v.cpp @@ -51,31 +51,31 @@ Video Registers: at 0x305ffe0 for ps3 or 0x405ffe0 for ps5/ps5v2: 0x04 -- ffffffff above continued. 0x08 -- ffff0000 priority values for sprites, 4-bits per value 0000ff00 unknown. always 20. number of addressable banks? boards are - populated with 20. + populated with 20. 000000f0 unknown. s1945ii/s1945iii/gunbird2/gnbarich/tgm2/dragnblz/ - sbomber/mjgtaste sets to c. soldivid/daraku is 0. another bank - select? + sbomber/mjgtaste sets to c. soldivid/daraku is 0. another bank + select? 0000000f is priority for per-line post-blending 0x0c -- 3f3f3f3f unknown. A table of 4 6-bit values. usually 0f102038. tgm2 is 0a172838. c0c00000 unknown. unused? 0000c000 is flipscreen (currently ignored). presumably flipy<<1|flipx. 000000c0 is screen size select. 0 is 224 lines, c is 240 (see tgm2, not - confirmed). + confirmed). 0x10 -- ffff0000 is always 00aa 0000f000 number of banks for sprites (not confirmed). mjgtaste/tgm2/ - sbomber/s1945ii/dragnblz/gnbarich is 3, gunbird2/s1945iii is - 2, soldivid/daraku is b. + sbomber/s1945ii/dragnblz/gnbarich is 3, gunbird2/s1945iii is + 2, soldivid/daraku is b. 00000fff Controls gfx data bank available to be read by SH-2 for - verification. + verification. 0x14 -- ffffffff always 83ff000e 0x18 -- ffffffff bank for tilemaps. As follows for the different tilemaps: 11223344. Bit 0x80 indicates use of line effects and the bank - should be used to look up the tile-bank per line. + should be used to look up the tile-bank per line. 0x1c -- ff000000 controls bank for 'pre'/'post' values 00ff0000 unknown, always 0? 0000ffff enable bits for 4 tilemaps. 8 is enable. 4 indicates 8bpp - tiles. 1 is size select for tilemap + tiles. 1 is size select for tilemap */ /* @@ -881,7 +881,7 @@ void psikyosh_state::draw_sprites(bitmap_rgb32 &bitmap, const rectangle &cliprec u32 const zoomx = zoom_table[sprite_ptr->zoomx]; /* Avoid division-by-zero when table contains 0 (Uninitialised/Bug) */ - if (zoomy && zoomx) + if (zoomy && zoomx) { s16 alpha = sprite_ptr->alpha; @@ -921,7 +921,7 @@ void psikyosh_state::prelineblend(bitmap_rgb32 &bitmap, const rectangle &cliprec gnbarich sets the 0x000000ff to 0x7f in test mode whilst the others use 0x80. tgm2 sets it to 0x00 on warning screen. Likely has no effect. */ /* bank is always 8 (0x4000) except for daraku/soldivid */ - u8 const bank = (m_vidregs[7] & 0xff000000) >> 24; + u8 const bank = (m_vidregs[7] & 0xff000000) >> 24; if (bank > 0x1f) // avoid possible oob access { bitmap.fill(m_palette->black_pen(), cliprect); @@ -929,7 +929,7 @@ void psikyosh_state::prelineblend(bitmap_rgb32 &bitmap, const rectangle &cliprec } /* Per row */ - u32 const *linefill = &m_spriteram[(bank * 0x800) / 4]; + u32 const *linefill = &m_spriteram[(bank * 0x800) / 4]; auto profile8 = g_profiler.start(PROFILER_USER8); for (int y = cliprect.top(); y <= cliprect.bottom(); y++) @@ -1006,7 +1006,7 @@ void psikyosh_state::video_start() m_alphatable = std::make_unique<u8[]>(256); /* 256 color sprites with palette selectable on 16 color boundaries */ - m_gfxdecode->gfx(1)->set_granularity(16); + m_gfxdecode->gfx(1)->set_granularity(16); /* Pens 0xc0-0xff have a gradient of alpha values associated with them */ for (int i = 0; i < 0xc0; i++) @@ -1077,7 +1077,7 @@ popmessage ("%08x %08x %08x %08x\n%08x %08x %08x %08x", draw_background(bitmap, cliprect, i); // assume this has highest priority at same priority level - postlineblend(bitmap, cliprect, i); + postlineblend(bitmap, cliprect, i); } } return 0; diff --git a/src/mame/psion/psion5mx.cpp b/src/mame/psion/psion5mx.cpp index 0d6d1171230..db93fa0feb6 100644 --- a/src/mame/psion/psion5mx.cpp +++ b/src/mame/psion/psion5mx.cpp @@ -490,12 +490,12 @@ INPUT_PORTS_START( psion5mx_fr ) INPUT_PORTS_END //INPUT_PORTS_START( psion5mx_us ) -// PORT_INCLUDE(psion5mx) +// PORT_INCLUDE(psion5mx) // -// PORT_MODIFY("COL0") -// PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') PORT_CHAR('/') -// PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') PORT_CHAR('\\') -// PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('@') PORT_CHAR('~') +// PORT_MODIFY("COL0") +// PORT_BIT(0x04, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_4) PORT_CHAR('4') PORT_CHAR('$') PORT_CHAR('/') +// PORT_BIT(0x08, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_3) PORT_CHAR('3') PORT_CHAR('#') PORT_CHAR('\\') +// PORT_BIT(0x10, IP_ACTIVE_HIGH, IPT_KEYBOARD) PORT_CODE(KEYCODE_2) PORT_CHAR('2') PORT_CHAR('@') PORT_CHAR('~') //INPUT_PORTS_END INPUT_PORTS_START( revo ) diff --git a/src/mame/psion/psion7.cpp b/src/mame/psion/psion7.cpp index c0bd01c0762..74a0569e4be 100644 --- a/src/mame/psion/psion7.cpp +++ b/src/mame/psion/psion7.cpp @@ -211,22 +211,24 @@ uint16_t psion7_state::ads7843_r(offs_t offset) } -//void psion7_state::update_amp() -//{ -// // TODO: MSC1192 speaker amplifier, can be put into standby to mute audio. -// static const float codec_volume[4] = { 1.0f, 0.75f, 0.5f, 0.25f }; -// -// if (m_amp_enable) -// { -// m_buzzer->set_output_gain(ALL_OUTPUTS, 1.0); -// m_codec->set_output_gain(ALL_OUTPUTS, codec_volume[m_volume]); // VOL -// } -// else -// { -// m_buzzer->set_output_gain(ALL_OUTPUTS, 0.0); -// m_codec->set_output_gain(ALL_OUTPUTS, 0.0); -// } -//} +#if 0 +void psion7_state::update_amp() +{ + // TODO: MSC1192 speaker amplifier, can be put into standby to mute audio. + constexpr float codec_volume[4] = { 1.0f, 0.75f, 0.5f, 0.25f }; + + if (m_amp_enable) + { + m_buzzer->set_output_gain(ALL_OUTPUTS, 1.0); + m_codec->set_output_gain(ALL_OUTPUTS, codec_volume[m_volume]); // VOL + } + else + { + m_buzzer->set_output_gain(ALL_OUTPUTS, 0.0); + m_codec->set_output_gain(ALL_OUTPUTS, 0.0); + } +} +#endif void psion7_state::s7_map(address_map &map) diff --git a/src/mame/psion/thera.cpp b/src/mame/psion/thera.cpp index 7f763bf1d2c..148fa70cb4e 100644 --- a/src/mame/psion/thera.cpp +++ b/src/mame/psion/thera.cpp @@ -420,12 +420,12 @@ uint16_t thera_device::read(offs_t offset, uint16_t mem_mask) case 0x24: // SPI Data //if (data == 4 || data == 6 || data == 1) - // m_spi_status &= ~2; + // m_spi_status &= ~2; //if (data == 1) //{ - // //m_irq_status |= 1 << 7; // ADC - // m_spi_status &= ~4; + // //m_irq_status |= 1 << 7; // ADC + // m_spi_status &= ~4; //} data = m_prom[m_prom_addr] | m_prom[m_prom_addr + 1] << 8; m_prom_addr += 2; diff --git a/src/mame/psion/windermere.cpp b/src/mame/psion/windermere.cpp index d8692cef732..15e5af2e692 100644 --- a/src/mame/psion/windermere.cpp +++ b/src/mame/psion/windermere.cpp @@ -830,14 +830,16 @@ void windermere_device::periphs_w(offs_t offset, uint32_t data, uint32_t mem_mas m_port_data[PORTB] = data; m_port_w[PORTB](PORTB, data | ~m_port_ddr[PORTB], m_port_ddr[PORTB]); } - //const uint8_t old = m_port_data[PORTB]; - //const uint8_t diff = old ^ data; - //if (diff & 0x3c) - // LOGMASKED(LOG_PIN, "Contrast: %d\n", (data >> 2) & 0x0f); - //if (BIT(diff, 6)) - // LOGMASKED(LOG_PIN, "Case Open: %d\n", BIT(data, 6)); - //if (BIT(diff, 7)) - // LOGMASKED(LOG_PIN, "ETNA CompactFlash Power: %d\n", BIT(data, 7)); +#if 0 + const uint8_t old = m_port_data[PORTB]; + const uint8_t diff = old ^ data; + if (diff & 0x3c) + LOGMASKED(LOG_PIN, "Contrast: %d\n", (data >> 2) & 0x0f); + if (BIT(diff, 6)) + LOGMASKED(LOG_PIN, "Case Open: %d\n", BIT(data, 6)); + if (BIT(diff, 7)) + LOGMASKED(LOG_PIN, "ETNA CompactFlash Power: %d\n", BIT(data, 7)); +#endif break; case REG_PCDR: LOGMASKED(LOG_GPIO, "%s: peripheral write PCDR = %08x & %08x\n", machine().describe_context(), data, mem_mask); @@ -846,22 +848,24 @@ void windermere_device::periphs_w(offs_t offset, uint32_t data, uint32_t mem_mas m_port_data[PORTC] = data; m_port_w[PORTC](PORTC, data | m_port_ddr[PORTC], ~m_port_ddr[PORTC]); } - //const uint8_t old = m_port_data[PORTC]; - //const uint8_t diff = old ^ data; - //if (BIT(diff, 0)) - // LOGMASKED(LOG_PIN, "RS232 RTS: %d\n", BIT(data, 0)); - //if (BIT(diff, 1)) - // LOGMASKED(LOG_PIN, "RS232 DTR Toggle: %d\n", BIT(data, 1)); - //if (BIT(diff, 2)) - // LOGMASKED(LOG_PIN, "Disable Power LED: %d\n", BIT(data, 2)); - //if (BIT(diff, 3)) - // LOGMASKED(LOG_PIN, "Enable UART1: %d\n", BIT(data, 3)); - //if (BIT(diff, 4)) - // LOGMASKED(LOG_PIN, "LCD Backlight: %d\n", BIT(data, 4)); - //if (BIT(diff, 5)) - // LOGMASKED(LOG_PIN, "Enable UART0: %d\n", BIT(data, 5)); - //if (BIT(diff, 6)) - // LOGMASKED(LOG_PIN, "Dictaphone: %d\n", BIT(data, 6)); +#if 0 + const uint8_t old = m_port_data[PORTC]; + const uint8_t diff = old ^ data; + if (BIT(diff, 0)) + LOGMASKED(LOG_PIN, "RS232 RTS: %d\n", BIT(data, 0)); + if (BIT(diff, 1)) + LOGMASKED(LOG_PIN, "RS232 DTR Toggle: %d\n", BIT(data, 1)); + if (BIT(diff, 2)) + LOGMASKED(LOG_PIN, "Disable Power LED: %d\n", BIT(data, 2)); + if (BIT(diff, 3)) + LOGMASKED(LOG_PIN, "Enable UART1: %d\n", BIT(data, 3)); + if (BIT(diff, 4)) + LOGMASKED(LOG_PIN, "LCD Backlight: %d\n", BIT(data, 4)); + if (BIT(diff, 5)) + LOGMASKED(LOG_PIN, "Enable UART0: %d\n", BIT(data, 5)); + if (BIT(diff, 6)) + LOGMASKED(LOG_PIN, "Dictaphone: %d\n", BIT(data, 6)); +#endif break; case REG_PDDR: LOGMASKED(LOG_GPIO, "%s: peripheral write PDDR = %08x & %08x\n", machine().describe_context(), data, mem_mask); @@ -870,24 +874,26 @@ void windermere_device::periphs_w(offs_t offset, uint32_t data, uint32_t mem_mas m_port_data[PORTD] = data; m_port_w[PORTD](PORTD, data | m_port_ddr[PORTD], ~m_port_ddr[PORTD]); } - //const uint8_t old = m_port_data[PORTD]; - //const uint8_t diff = old ^ data; - //if (BIT(diff, 0)) - // LOGMASKED(LOG_PIN, "Codec Enable: %d\n", BIT(data, 0)); - //if (BIT(diff, 1)) - // LOGMASKED(LOG_PIN, "Audio Amp Enable: %d\n", BIT(data, 1)); - //if (BIT(diff, 2)) - // LOGMASKED(LOG_PIN, "LCD Power: %d\n", BIT(data, 2)); - //if (BIT(diff, 3)) - // LOGMASKED(LOG_PIN, "ETNA Door: %d\n", BIT(data, 3)); - //if (BIT(diff, 4)) - // LOGMASKED(LOG_PIN, "Sled: %d\n", BIT(data, 4)); - //if (BIT(diff, 5)) - // LOGMASKED(LOG_PIN, "Pump Power2: %d\n", BIT(data, 5)); - //if (BIT(diff, 6)) - // LOGMASKED(LOG_PIN, "Pump Power1: %d\n", BIT(data, 6)); - //if (BIT(diff, 7)) - // LOGMASKED(LOG_PIN, "ETNA Error: %d\n", BIT(data, 7)); +#if 0 + const uint8_t old = m_port_data[PORTD]; + const uint8_t diff = old ^ data; + if (BIT(diff, 0)) + LOGMASKED(LOG_PIN, "Codec Enable: %d\n", BIT(data, 0)); + if (BIT(diff, 1)) + LOGMASKED(LOG_PIN, "Audio Amp Enable: %d\n", BIT(data, 1)); + if (BIT(diff, 2)) + LOGMASKED(LOG_PIN, "LCD Power: %d\n", BIT(data, 2)); + if (BIT(diff, 3)) + LOGMASKED(LOG_PIN, "ETNA Door: %d\n", BIT(data, 3)); + if (BIT(diff, 4)) + LOGMASKED(LOG_PIN, "Sled: %d\n", BIT(data, 4)); + if (BIT(diff, 5)) + LOGMASKED(LOG_PIN, "Pump Power2: %d\n", BIT(data, 5)); + if (BIT(diff, 6)) + LOGMASKED(LOG_PIN, "Pump Power1: %d\n", BIT(data, 6)); + if (BIT(diff, 7)) + LOGMASKED(LOG_PIN, "ETNA Error: %d\n", BIT(data, 7)); +#endif break; case REG_PADDR: LOGMASKED(LOG_GPIO, "%s: peripheral write PADDR = %08x & %08x\n", machine().describe_context(), data, mem_mask); diff --git a/src/mame/sega/segas32_m.cpp b/src/mame/sega/segas32_m.cpp index 12b35a584a0..4d37d530169 100644 --- a/src/mame/sega/segas32_m.cpp +++ b/src/mame/sega/segas32_m.cpp @@ -404,7 +404,7 @@ uint16_t segas32_state::arescue_dsp_r(offs_t offset) logerror("Unhandled DSP cmd %04x (%04x).\n", m_arescue_dsp_io[0], m_arescue_dsp_io[1]); break; } - } + } } return m_arescue_dsp_io[offset]; diff --git a/src/mame/sega/segasm1.cpp b/src/mame/sega/segasm1.cpp index 0becc9665ea..cfd2069a440 100644 --- a/src/mame/sega/segasm1.cpp +++ b/src/mame/sega/segasm1.cpp @@ -21,7 +21,7 @@ TODO: - Hopper, expects line_r to kick in without a write first (?) - tinkerbl, blicks: throws with "RAM data is BAD" at each soft reset (PC=514 check with $f00438) - ROM skipping it causes infinite RTEs + ROM skipping it causes infinite RTEs - Bingo Party and Bingo Planet put up a message about ROM version mismatch with the RAM and say to press the reset switch. However, when this is done, the code simply locks up (BRA to itself) and doesn't initialize the RAM. - Verify sound latch locations on Tinker Bell vs. the comms games @@ -108,7 +108,7 @@ private: required_device<palette_device> m_palette; required_device<ym3438_device> m_ym; required_device<sega_315_5296_device> m_io1, m_io2; -// required_device<ticket_dispenser_device> m_hopper; +// required_device<ticket_dispenser_device> m_hopper; required_device_array<generic_latch_8_device, 2> m_soundlatch; required_memory_bank m_soundbank; @@ -627,7 +627,7 @@ void systemm1_state::m1base(machine_config &config) m_ym->add_route(0, "speaker", 0.40, 0); m_ym->add_route(1, "speaker", 0.40, 1); -// HOPPER(config, m_hopper, attotime::from_msec(200)); +// HOPPER(config, m_hopper, attotime::from_msec(200)); SEGA_315_5296(config, m_io1, XTAL(16'000'000)); m_io1->in_pa_callback().set_ioport("IN1_PA"); diff --git a/src/mame/skeleton/orina_stylish_plus.cpp b/src/mame/skeleton/orina_stylish_plus.cpp index 1996f2ddab7..0be4da52ebf 100644 --- a/src/mame/skeleton/orina_stylish_plus.cpp +++ b/src/mame/skeleton/orina_stylish_plus.cpp @@ -6,7 +6,7 @@ Software List for the cartridges can exist. There's no external code on either the main board or in the cartridges - meaning everything is driven by an MCU in the glob + meaning everything is driven by an MCU in the glob */ #include "emu.h" diff --git a/src/mame/sord/m5.cpp b/src/mame/sord/m5.cpp index c5fc5ea498c..83104f5145c 100644 --- a/src/mame/sord/m5.cpp +++ b/src/mame/sord/m5.cpp @@ -4,30 +4,30 @@ Sord m.5 - https://web.archive.org/web/20241214083230/http://m5.arigato.cz/en_index.html + https://web.archive.org/web/20241214083230/http://m5.arigato.cz/en_index.html http://www.dlabi.cz/?s=sord https://www.facebook.com/groups/59667560188/ http://www.oldcomp.cz/viewtopic.php?f=103&t=1164 - https://dlabi.cz/data/IMG_8234.jpg //brno_mod ramdisk - http://blog.livedoor.jp/hardyboy/tag/SORDM5 - https://web.archive.org/web/20180817030621/http://www.museo8bits.es/wiki/index.php/Sord_M5 - #fd-5 - https://web.archive.org/web/20250516192317if_/http://m5.arigato.cz/cs_fd5.html - https://dlabi.cz/data/imgs/schemata/PCB-schema-FD-5-A2-Zeravsky.png - https://dlabi.cz/data/imgs/schemata/PCB-schema-FD-5-A4half.png + https://dlabi.cz/data/IMG_8234.jpg //brno_mod ramdisk + http://blog.livedoor.jp/hardyboy/tag/SORDM5 + https://web.archive.org/web/20180817030621/http://www.museo8bits.es/wiki/index.php/Sord_M5 + #fd-5 + https://web.archive.org/web/20250516192317if_/http://m5.arigato.cz/cs_fd5.html + https://dlabi.cz/data/imgs/schemata/PCB-schema-FD-5-A2-Zeravsky.png + https://dlabi.cz/data/imgs/schemata/PCB-schema-FD-5-A4half.png *************************************************************************** TODO: - - replace fd5 rom hack with proper emulation + - replace fd5 rom hack with proper emulation - SI-5 serial interface (8251, ROM) - ramdisk for KRX Memory expansion - rewrite fd5 floppy as unpluggable device - 64krx: get windows ROM version with cpm & ramdisk support (Stuchlik S.E.I. version) - brno mod: add support for lzr floppy disc format - - brno mod: add support of 16kb carts + - brno mod: add support of 16kb carts ****************************************************************************** @@ -363,7 +363,7 @@ private: void fd5_com_w(u8 data); void fd5_ctrl_w(u8 data); void fd5_tc_w(u8 data); - + static void floppy_formats(format_registration &fr); void write_centronics_busy(int state); @@ -691,14 +691,14 @@ void m5_state::mem64KRX_w(offs_t offset, u8 data) //out 0x7f } u8 m5_state::cart_window_r(offs_t offset) -{ +{ return m_ramcart->read_ram(offset); } void m5_state::cart_window_w(offs_t offset, u8 data) { - if (m_ramcart) - m_ramcart->write_ram(offset, data); + if (m_ramcart) + m_ramcart->write_ram(offset, data); } //************************************************************************** @@ -919,13 +919,13 @@ void m5_state::ppi_pb_w(u8 data) bit description - 0 AD0 \ - 1 AD1 > only zeroes will work here, as the FD5 expects - 2 AD2 / - 3 PIO/Peripherial SWITCH 1 = DEFAULT, 0 = INTELIGENT Interface + 0 AD0 \ + 1 AD1 > only zeroes will work here, as the FD5 expects + 2 AD2 / + 3 PIO/Peripherial SWITCH 1 = DEFAULT, 0 = INTELIGENT Interface 4 5 - 6 !NMI + 6 !NMI 7 !RTY */ @@ -936,7 +936,7 @@ void m5_state::ppi_pb_w(u8 data) } m_fd5cpu->set_input_line(INPUT_LINE_NMI, !BIT(data,6)); - + } // 0x72 @@ -949,11 +949,11 @@ u8 m5_state::ppi_pc_r() 0 CMD/STATUS 1 DTO 2 !RFD - 3 ? + 3 ? 4 STB - 5 IBF + 5 IBF 6 !ACK - 7 !OBF + 7 !OBF */ @@ -984,7 +984,7 @@ u8 m5_state::ppi_pc_r() u8 m5_state::fd5_data_r() { m_ppi->pc6_w(0); //ACK - m_ppi->pc6_w(1); + m_ppi->pc6_w(1); return m_fd5_data; } @@ -998,7 +998,7 @@ void m5_state::fd5_data_w(u8 data) m_fd5_data = data; m_ppi->pc4_w(0); //STB m_ppi->pc4_w(1); - + } @@ -1010,16 +1010,16 @@ u8 m5_state::fd5_com_r() { /* - bit description + bit description - 0 DEVICE NUMBER, needs to be 0 and this is only if PB0-PB3=0 - 1 /RTY Sequence reset, needs to be 1 - 2 IBF - 3 !OBF - 4 - 5 - 6 - 7 + 0 DEVICE NUMBER, needs to be 0 and this is only if PB0-PB3=0 + 1 /RTY Sequence reset, needs to be 1 + 2 IBF + 3 !OBF + 4 + 5 + 6 + 7 */ @@ -1044,16 +1044,16 @@ void m5_state::fd5_com_w(u8 data) { /* - bit description + bit description - 0 PPI PC2/RFD - 1 PPI PC0/CMD - 2 PPI PC1/DTO - 3 PPI PC4/STB - 4 PPI PC5/ACK - 5 - 6 - 7 + 0 PPI PC2/RFD + 1 PPI PC0/CMD + 2 PPI PC1/DTO + 3 PPI PC4/STB + 4 PPI PC5/ACK + 5 + 6 + 7 */ //LOG("%04x: Out (20h),%02x\n", m_fd5cpu->pc() - 2, data); @@ -1151,13 +1151,13 @@ void brno_state::m5_mem_brno(address_map &map) { map.unmap_value_high(); map(0x0000, 0xffff).view(m_rom_view); - m_rom_view[0](0x0000, 0xffff).rw(FUNC(brno_state::ramdisk_r), // where isn't ROM map RAMdisk + m_rom_view[0](0x0000, 0xffff).rw(FUNC(brno_state::ramdisk_r), // where isn't ROM map RAMdisk FUNC(brno_state::ramdisk_w)); // boot config - m_rom_view[0](0x0000, 0x1fff).rom().region("maincpu", 0x0000).unmapw(); // monitor ROM - m_rom_view[0](0x2000, 0x3fff).view(m_rom12_view); // ROM1,ROM2 or cart, selected by m_rom12_view - m_rom_view[0](0x7000, 0x7fff).ram().share("internal"); // internal RAM + m_rom_view[0](0x0000, 0x1fff).rom().region("maincpu", 0x0000).unmapw(); // monitor ROM + m_rom_view[0](0x2000, 0x3fff).view(m_rom12_view); // ROM1,ROM2 or cart, selected by m_rom12_view + m_rom_view[0](0x7000, 0x7fff).ram().share("internal"); // internal RAM m_rom12_view[0](0x2000, 0x3fff).rom().region("maincpu", 0x2000).unmapw(); // ROM1 m_rom12_view[1](0x2000, 0x3fff).rom().region("maincpu", 0x4000).unmapw(); // ROM2 - Basic-I m_rom12_view[2](0x2000, 0x3fff).r(FUNC(brno_state::cartrom_r)).unmapw(); // cartridge ROM @@ -1166,7 +1166,7 @@ void brno_state::m5_mem_brno(address_map &map) m_rom_view[1](0x0000, 0xffff).rw(FUNC(brno_state::ramdisk_r), FUNC(brno_state::ramdisk_w)); - + } //------------------------------------------------- @@ -1443,7 +1443,7 @@ void m5_state::machine_reset() m_bankw[2]->configure_entry(1, m_ignore_writes.get()); m_bankr[3]->configure_entry(1, ramcart_rom_base + 0x4000); m_bankw[3]->configure_entry(1, m_ignore_writes.get()); - + m_rom_view.select(0); for (int i = 0; i < 4; i++) @@ -1772,15 +1772,15 @@ ROM_START( m5p ) //ROM_FILL(0x2038, 3, 0) short but not safe fix // RST 18 rutine - ROM_FILL(0x18, 1, 0xf3) //di added this to avoid premature IRQ - ROM_FILL(0x19, 1, 0xed) // ld de,($c3df) + ROM_FILL(0x18, 1, 0xf3) //di added this to avoid premature IRQ + ROM_FILL(0x19, 1, 0xed) // ld de,($c3df) ROM_FILL(0x1a, 1, 0x5b) ROM_FILL(0x1b, 1, 0xdf) ROM_FILL(0x1c, 1, 0xc3) - ROM_FILL(0x1d, 1, 0xc9) //ret + ROM_FILL(0x1d, 1, 0xc9) //ret //patch to jump to rst 18 - ROM_FILL(0x1fef, 1, 0xdf) // replace ld de,($c3df) by rst 18h where above subrutine is located - ROM_FILL(0x1ff0, 3, 0) // replace rest of ld instruction by nops + ROM_FILL(0x1fef, 1, 0xdf) // replace ld de,($c3df) by rst 18h where above subrutine is located + ROM_FILL(0x1ff0, 3, 0) // replace rest of ld instruction by nops ROM_END diff --git a/src/mame/taito/gunbustr_link.cpp b/src/mame/taito/gunbustr_link.cpp index 9053b79014c..f65d93acf26 100644 --- a/src/mame/taito/gunbustr_link.cpp +++ b/src/mame/taito/gunbustr_link.cpp @@ -12,16 +12,16 @@ * Access the game's Tet Mode Menu, and select Configuration. * Set Link Play to On, and set the ID Number to 0 for one instance and 1 for the other instance (it helps to have separate NVRAM - directories for the two instances). + directories for the two instances). * Start one instance in listening mode by setting the comm_localhost to the listening address and comm_remotehost to an empty string. * Start the other instance in connecting mode by setting comm_remotehost to the address to connect to (you should probably - set comm_localhost to an empty string, but if you set it, the - connecting socket will be bound to this address). + set comm_localhost to an empty string, but if you set it, the + connecting socket will be bound to this address). * Reset the two instances at approximately the same time, it may help to reset the instance with ID 0 slightly before resetting the - instance with ID 1. + instance with ID 1. mame gunbustr -comm_localhost 0.0.0.0 -comm_localport 1234 -comm_remotehost "" mame gunbustr -comm_localhost "" -comm_remotehost 127.0.0.1 -comm_remoteport 1234 diff --git a/src/mame/taito/haplucky.cpp b/src/mame/taito/haplucky.cpp index 86a21518008..964b573c2bc 100644 --- a/src/mame/taito/haplucky.cpp +++ b/src/mame/taito/haplucky.cpp @@ -94,8 +94,8 @@ void haplucky_state::main_map(address_map &map) // TODO: verify everything map(0xec00, 0xec00).nopr(); // watchdog map(0xec80, 0xec83).rw("ppi", FUNC(i8255_device::read), FUNC(i8255_device::write)); map(0xee00, 0xee00).lr8(NAME([] () { return 0xff; })); // inputs, avoid reset for now -// map(0xef00, 0xef01) sound commands? -// map(0xef80, 0xef80) sound NMI? +// map(0xef00, 0xef01) sound commands? +// map(0xef80, 0xef80) sound NMI? map(0xf000, 0xf0ff).ram().w(m_palette, FUNC(palette_device::write8)).share("palette"); map(0xf100, 0xf1ff).ram().w(m_palette, FUNC(palette_device::write8_ext)).share("palette_ext"); map(0xf800, 0xffff).ram(); // videoram diff --git a/src/mame/taito/taitopjc.cpp b/src/mame/taito/taitopjc.cpp index 1465fc7ffbd..ee2afab5d66 100644 --- a/src/mame/taito/taitopjc.cpp +++ b/src/mame/taito/taitopjc.cpp @@ -1064,7 +1064,7 @@ void taitopjc_state::taitopjc(machine_config &config) // H 0x294 / 0x3f / 0x221 / 0x24c / 0x294 // TODO: gets a 56.17 Hz with this, may be off by 1 or 2, verify on PCB, fix display ranges screen.set_raw(XTAL(16'537'000), 660, 0, 482, 446, 0, 384); -// screen.set_visarea(0, 479, 0, 383); +// screen.set_visarea(0, 479, 0, 383); screen.set_screen_update(FUNC(taitopjc_state::screen_update)); screen.set_palette(m_palette); diff --git a/src/mame/trs/coco3.h b/src/mame/trs/coco3.h index 18ca5e5f87e..5d9c712bae2 100644 --- a/src/mame/trs/coco3.h +++ b/src/mame/trs/coco3.h @@ -53,7 +53,7 @@ protected: // miscellaneous virtual void cart_w(bool line) override; - bool m_prev_keyboard_pressed = false; + bool m_prev_keyboard_pressed = false; uint8_t m_pia1b_control_register = 0U; private: diff --git a/src/mame/trs/coco3_m.cpp b/src/mame/trs/coco3_m.cpp index 2fdd3dc4fe3..a288794acfc 100644 --- a/src/mame/trs/coco3_m.cpp +++ b/src/mame/trs/coco3_m.cpp @@ -108,23 +108,23 @@ void coco3_state::ff40_write(offs_t offset, uint8_t data) INPUT_CHANGED_MEMBER(coco3_state::keyboard_changed) { - coco_state::keyboard_changed(field, param, oldval, newval); - - /* Support for CoCo 3 keyboard GIME interrupt */ - uint8_t any_pressed = 0; - for (unsigned i = 0; i < m_keyboard.size(); i++) - { - any_pressed |= (~(m_keyboard[i]->read()) | poll_joystick_buttons()) & 0xFF; - } - - bool pressed = any_pressed != 0; - if (pressed != m_prev_keyboard_pressed) - { - m_gime->set_il1(true); - m_gime->set_il1(false); - } - - m_prev_keyboard_pressed = pressed; + coco_state::keyboard_changed(field, param, oldval, newval); + + /* Support for CoCo 3 keyboard GIME interrupt */ + uint8_t any_pressed = 0; + for (unsigned i = 0; i < m_keyboard.size(); i++) + { + any_pressed |= (~(m_keyboard[i]->read()) | poll_joystick_buttons()) & 0xFF; + } + + bool pressed = any_pressed != 0; + if (pressed != m_prev_keyboard_pressed) + { + m_gime->set_il1(true); + m_gime->set_il1(false); + } + + m_prev_keyboard_pressed = pressed; } //------------------------------------------------- diff --git a/src/mame/umc/pc486vl.cpp b/src/mame/umc/pc486vl.cpp index b6c676896ea..1f62f702ccf 100644 --- a/src/mame/umc/pc486vl.cpp +++ b/src/mame/umc/pc486vl.cpp @@ -194,10 +194,10 @@ ROM_START( md4duv ) ROM_SYSTEM_BIOS( 0, "v31n", "V3.1N (11/17/94)") ROMX_LOAD( "i376082.bin", 0x10000, 0x10000, CRC(40b350f2) SHA1(9877f24805964ab8c92bf35bf14ff97e508867c1), ROM_BIOS(0)) // MB labeled NMB-4DDUV, with minor data changes - // i376082.bin [1/4] i199030.bin [1/4] IDENTICAL - // i376082.bin [3/4] i199030.bin [3/4] IDENTICAL - // i376082.bin [4/4] i199030.bin [4/4] 99.993896% (BIOS checksum change at $ffff) - // i376082.bin [2/4] i199030.bin [2/4] 99.975586% ($57a3, $6070, $684d, $684f) + // i376082.bin [1/4] i199030.bin [1/4] IDENTICAL + // i376082.bin [3/4] i199030.bin [3/4] IDENTICAL + // i376082.bin [4/4] i199030.bin [4/4] 99.993896% (BIOS checksum change at $ffff) + // i376082.bin [2/4] i199030.bin [2/4] 99.975586% ($57a3, $6070, $684d, $684f) ROM_SYSTEM_BIOS( 1, "v31na", "V3.1N alt (11/17/94)") ROMX_LOAD( "i199030.bin", 0x10000, 0x10000, CRC(2f437c85) SHA1(841f23ae31e8cf11afa4056f4c7493c890e1be5a), ROM_BIOS(1)) ROM_END diff --git a/src/mame/yachiyo/atamanot.cpp b/src/mame/yachiyo/atamanot.cpp index 95111b6acd5..a95478adffa 100644 --- a/src/mame/yachiyo/atamanot.cpp +++ b/src/mame/yachiyo/atamanot.cpp @@ -183,7 +183,7 @@ private: required_region_ptr<uint8_t> m_kanji_rom; required_device<address_map_bank_device> m_bank; -// required_ioport m_extra; +// required_ioport m_extra; bool m_nmi_enable = false; pen_t m_pens[NUM_PENS]; @@ -309,7 +309,7 @@ void atamanot_state::main_io_map(address_map &map) map(0x06, 0x06).w("ay2", FUNC(ay8910_device::address_w)); map(0x08, 0x08).nopr(); map(0x0a, 0x0a).w("ay2", FUNC(ay8910_device::data_w)); -// map(0x16, 0x16).portr("DSW0"); +// map(0x16, 0x16).portr("DSW0"); map(0x18, 0x18).w(FUNC(atamanot_state::atamanot_prot_w)); map(0x1c, 0x1c).nopw(); // noisy, key matrix select for $1e? map(0x1a, 0x1a).lw8(NAME([this] (offs_t offset, u8 data) { @@ -319,7 +319,7 @@ void atamanot_state::main_io_map(address_map &map) if (data & 0xfc) logerror("I/O $1e: %02x\n", data); })); -// map(0x1e, 0x1e) unknown, read a lot with mask & 7 +// map(0x1e, 0x1e) unknown, read a lot with mask & 7 map(0x1e, 0x1e).portr("INPUTS"); map(0xfe, 0xfe).w("crtc", FUNC(mc6845_device::address_w)); map(0xff, 0xff).w("crtc", FUNC(mc6845_device::register_w)); @@ -327,24 +327,24 @@ void atamanot_state::main_io_map(address_map &map) void atamanot_state::bank_map(address_map &map) { -// map(0x000000, 0x001fff).rom().region("question", 0x0e000); +// map(0x000000, 0x001fff).rom().region("question", 0x0e000); // border in example question map(0x002000, 0x003fff).rom().region("question", 0x14000); // example question map(0x004000, 0x005fff).rom().region("question", 0x0c000); -// map(0x006000, 0x007fff).rom().region("question", 0x0c000); -// map(0x008000, 0x009fff).rom().region("question", 0x06000); -// map(0x00a000, 0x00bfff).rom().region("question", 0x0e000); -// map(0x00c000, 0x00dfff).rom().region("question", 0x02000); -// map(0x00e000, 0x00ffff).rom().region("question", 0x00000); +// map(0x006000, 0x007fff).rom().region("question", 0x0c000); +// map(0x008000, 0x009fff).rom().region("question", 0x06000); +// map(0x00a000, 0x00bfff).rom().region("question", 0x0e000); +// map(0x00c000, 0x00dfff).rom().region("question", 0x02000); +// map(0x00e000, 0x00ffff).rom().region("question", 0x00000); // lower GFXs of example question map(0x016000, 0x017fff).rom().region("question", 0x04000); -// map(0x07e000, 0x07ffff).rom().region("question", 0x0e000); +// map(0x07e000, 0x07ffff).rom().region("question", 0x0e000); // Note counters and RNG answers maps here -// map(0x040000, 0x04ffff).lr8(NAME([this] (offs_t offset) { return machine().rand(); })); +// map(0x040000, 0x04ffff).lr8(NAME([this] (offs_t offset) { return machine().rand(); })); map(0x040000, 0x04000f).r(FUNC(atamanot_state::atamanot_prot_r)); map(0x042110, 0x04211f).r(FUNC(atamanot_state::atamanot_prot_r)); map(0x044220, 0x04422f).r(FUNC(atamanot_state::atamanot_prot_r)); |
