diff options
| author | 2026-05-20 01:12:44 +1000 | |
|---|---|---|
| committer | 2026-05-20 01:12:44 +1000 | |
| commit | cc1e3ee97a63e778947c30db038fafe3efe2f2c2 (patch) | |
| tree | 711509d66f4d26770b8f78fab362c58e725ea4c0 /src/devices | |
| parent | 464f95b511ca680c7dbbdd9fd3dddd8085821f91 (diff) | |
srcclean and manual cleanup
Diffstat (limited to 'src/devices')
21 files changed, 137 insertions, 139 deletions
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)); |
