diff options
Diffstat (limited to 'src/devices')
190 files changed, 642 insertions, 645 deletions
diff --git a/src/devices/bus/a1bus/a1bus.cpp b/src/devices/bus/a1bus/a1bus.cpp index 8f5fa929c2e..ab00e304b22 100644 --- a/src/devices/bus/a1bus/a1bus.cpp +++ b/src/devices/bus/a1bus/a1bus.cpp @@ -26,8 +26,8 @@ const device_type A1BUS_SLOT = &device_creator<a1bus_slot_device>; //------------------------------------------------- a1bus_slot_device::a1bus_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, A1BUS_SLOT, "Apple I Slot", tag, owner, clock, "a1bus_slot", __FILE__), - device_slot_interface(mconfig, *this), - m_a1bus_tag(nullptr), + device_slot_interface(mconfig, *this), + m_a1bus_tag(nullptr), m_a1bus_slottag(nullptr) { } diff --git a/src/devices/bus/a2bus/a2eauxslot.cpp b/src/devices/bus/a2bus/a2eauxslot.cpp index bf96dd7d16b..4d272f02497 100644 --- a/src/devices/bus/a2bus/a2eauxslot.cpp +++ b/src/devices/bus/a2bus/a2eauxslot.cpp @@ -28,8 +28,8 @@ const device_type A2EAUXSLOT_SLOT = &device_creator<a2eauxslot_slot_device>; //------------------------------------------------- a2eauxslot_slot_device::a2eauxslot_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, A2EAUXSLOT_SLOT, "Apple IIe AUX Slot", tag, owner, clock, "a2eauxslot_slot", __FILE__), - device_slot_interface(mconfig, *this), - m_a2eauxslot_tag(nullptr), + device_slot_interface(mconfig, *this), + m_a2eauxslot_tag(nullptr), m_a2eauxslot_slottag(nullptr) { } diff --git a/src/devices/bus/a2bus/mouse.cpp b/src/devices/bus/a2bus/mouse.cpp index b9d2a3e2931..0a2b110c8dc 100644 --- a/src/devices/bus/a2bus/mouse.cpp +++ b/src/devices/bus/a2bus/mouse.cpp @@ -179,7 +179,7 @@ a2bus_mouse_device::a2bus_mouse_device(const machine_config &mconfig, device_typ m_mcu(*this, MOUSE_MCU_TAG), m_mouseb(*this, MOUSE_BUTTON_TAG), m_mousex(*this, MOUSE_XAXIS_TAG), - m_mousey(*this, MOUSE_YAXIS_TAG), m_rom(nullptr), m_ddr_a(0), m_ddr_b(0), m_ddr_c(0), m_port_a_out(0), m_port_b_out(0), m_port_c_out(0), m_port_a_in(0), m_port_b_in(0), + m_mousey(*this, MOUSE_YAXIS_TAG), m_rom(nullptr), m_ddr_a(0), m_ddr_b(0), m_ddr_c(0), m_port_a_out(0), m_port_b_out(0), m_port_c_out(0), m_port_a_in(0), m_port_b_in(0), m_port_c_in(0), m_timer_cnt(0), m_timer_ctl(0), m_mask_option(0), last_mx(0), last_my(0), count_x(0), count_y(0), m_timer(nullptr), m_read_timer(nullptr) { m_started = false; diff --git a/src/devices/bus/a800/cassette.cpp b/src/devices/bus/a800/cassette.cpp index 74c7ddb935e..3a6406d44a1 100644 --- a/src/devices/bus/a800/cassette.cpp +++ b/src/devices/bus/a800/cassette.cpp @@ -48,7 +48,7 @@ a8sio_cassette_device::a8sio_cassette_device(const machine_config &mconfig, cons : device_t(mconfig, A8SIO_CASSETTE, "Atari 8 bit cassette", tag, owner, clock, "a8sio_cass", __FILE__) , device_a8sio_card_interface(mconfig, *this) , m_cassette(*this, "cassette"), m_read_timer(nullptr) - , m_old_cass_signal(0) + , m_old_cass_signal(0) , m_signal_count(0) { } @@ -57,7 +57,7 @@ a8sio_cassette_device::a8sio_cassette_device(const machine_config &mconfig, devi : device_t(mconfig, type, name, tag, owner, clock, shortname, source) , device_a8sio_card_interface(mconfig, *this) , m_cassette(*this, "cassette"), m_read_timer(nullptr) - , m_old_cass_signal(0) + , m_old_cass_signal(0) , m_signal_count(0) { } diff --git a/src/devices/bus/a800/sparta.cpp b/src/devices/bus/a800/sparta.cpp index dd29f3ef595..44204cd7fa7 100644 --- a/src/devices/bus/a800/sparta.cpp +++ b/src/devices/bus/a800/sparta.cpp @@ -19,8 +19,8 @@ const device_type A800_ROM_SPARTADOS = &device_creator<a800_rom_spartados_device a800_rom_spartados_device::a800_rom_spartados_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : a800_rom_device(mconfig, A800_ROM_SPARTADOS, "Atari 800 SpartaDOS ROM Carts", tag, owner, clock, "a800_sparta", __FILE__), - m_bank(0), + : a800_rom_device(mconfig, A800_ROM_SPARTADOS, "Atari 800 SpartaDOS ROM Carts", tag, owner, clock, "a800_sparta", __FILE__), + m_bank(0), m_subslot_enabled(0) { } diff --git a/src/devices/bus/adamnet/adamnet.cpp b/src/devices/bus/adamnet/adamnet.cpp index b7223aeb6a2..0cf9762a913 100644 --- a/src/devices/bus/adamnet/adamnet.cpp +++ b/src/devices/bus/adamnet/adamnet.cpp @@ -28,7 +28,7 @@ const device_type ADAMNET_SLOT = &device_creator<adamnet_slot_device>; //------------------------------------------------- device_adamnet_card_interface::device_adamnet_card_interface(const machine_config &mconfig, device_t &device) - : device_slot_card_interface(mconfig, device), + : device_slot_card_interface(mconfig, device), m_bus(nullptr) { } diff --git a/src/devices/bus/c64/dqbb.cpp b/src/devices/bus/c64/dqbb.cpp index a49f27beac6..6e98707587a 100644 --- a/src/devices/bus/c64/dqbb.cpp +++ b/src/devices/bus/c64/dqbb.cpp @@ -38,8 +38,8 @@ const device_type C64_DQBB = &device_creator<c64_dqbb_cartridge_device>; c64_dqbb_cartridge_device::c64_dqbb_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, C64_DQBB, "C64 Double Quick Brown Box cartridge", tag, owner, clock, "c64_dqbb", __FILE__), device_c64_expansion_card_interface(mconfig, *this), - device_nvram_interface(mconfig, *this), - m_cs(0), + device_nvram_interface(mconfig, *this), + m_cs(0), m_we(0) { } diff --git a/src/devices/bus/c64/fun_play.cpp b/src/devices/bus/c64/fun_play.cpp index a24f4c69156..971521773a7 100644 --- a/src/devices/bus/c64/fun_play.cpp +++ b/src/devices/bus/c64/fun_play.cpp @@ -28,7 +28,7 @@ const device_type C64_FUN_PLAY = &device_creator<c64_fun_play_cartridge_device>; c64_fun_play_cartridge_device::c64_fun_play_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, C64_FUN_PLAY, "C64 Fun Play cartridge", tag, owner, clock, "c64_fun_play", __FILE__), - device_c64_expansion_card_interface(mconfig, *this), + device_c64_expansion_card_interface(mconfig, *this), m_bank(0) { } diff --git a/src/devices/bus/c64/georam.cpp b/src/devices/bus/c64/georam.cpp index 43881540e4a..ccdcebedc40 100644 --- a/src/devices/bus/c64/georam.cpp +++ b/src/devices/bus/c64/georam.cpp @@ -29,7 +29,7 @@ const device_type C64_GEORAM = &device_creator<c64_georam_cartridge_device>; c64_georam_cartridge_device::c64_georam_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, C64_GEORAM, "C64 GeoRAM cartridge", tag, owner, clock, "c64_georam", __FILE__), device_c64_expansion_card_interface(mconfig, *this), - m_ram(*this, "ram"), + m_ram(*this, "ram"), m_bank(0) { } diff --git a/src/devices/bus/c64/neoram.cpp b/src/devices/bus/c64/neoram.cpp index aefdc46ca6e..91019bdb9aa 100644 --- a/src/devices/bus/c64/neoram.cpp +++ b/src/devices/bus/c64/neoram.cpp @@ -29,7 +29,7 @@ const device_type C64_NEORAM = &device_creator<c64_neoram_cartridge_device>; c64_neoram_cartridge_device::c64_neoram_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, C64_NEORAM, "C64 NeoRAM cartridge", tag, owner, clock, "c64_neoram", __FILE__), device_c64_expansion_card_interface(mconfig, *this), - device_nvram_interface(mconfig, *this), + device_nvram_interface(mconfig, *this), m_bank(0) { } diff --git a/src/devices/bus/c64/structured_basic.cpp b/src/devices/bus/c64/structured_basic.cpp index 5b4ec958a94..f299246e118 100644 --- a/src/devices/bus/c64/structured_basic.cpp +++ b/src/devices/bus/c64/structured_basic.cpp @@ -28,7 +28,7 @@ const device_type C64_STRUCTURED_BASIC = &device_creator<c64_structured_basic_ca c64_structured_basic_cartridge_device::c64_structured_basic_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, C64_STRUCTURED_BASIC, "C64 Structured Basic cartridge", tag, owner, clock, "c64_structured_basic", __FILE__), - device_c64_expansion_card_interface(mconfig, *this), + device_c64_expansion_card_interface(mconfig, *this), m_bank(0) { } diff --git a/src/devices/bus/c64/super_games.cpp b/src/devices/bus/c64/super_games.cpp index 2198439b3e2..53d1f932e7a 100644 --- a/src/devices/bus/c64/super_games.cpp +++ b/src/devices/bus/c64/super_games.cpp @@ -28,7 +28,7 @@ const device_type C64_SUPER_GAMES = &device_creator<c64_super_games_cartridge_de c64_super_games_cartridge_device::c64_super_games_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, C64_SUPER_GAMES, "C64 Super Games cartridge", tag, owner, clock, "c64_super_games", __FILE__), - device_c64_expansion_card_interface(mconfig, *this), + device_c64_expansion_card_interface(mconfig, *this), m_bank(0) { } diff --git a/src/devices/bus/centronics/printer.cpp b/src/devices/bus/centronics/printer.cpp index e42d038f24d..50ca485c094 100644 --- a/src/devices/bus/centronics/printer.cpp +++ b/src/devices/bus/centronics/printer.cpp @@ -27,8 +27,8 @@ MACHINE_CONFIG_END centronics_printer_device::centronics_printer_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, CENTRONICS_PRINTER, "Centronics Printer", tag, owner, clock, "centronics_printer", __FILE__), device_centronics_peripheral_interface( mconfig, *this ), - m_strobe(0), - m_data(0), + m_strobe(0), + m_data(0), m_busy(0), m_printer(*this, "printer") { diff --git a/src/devices/bus/comx35/ram.cpp b/src/devices/bus/comx35/ram.cpp index b978e1494ca..0e096c5dc15 100644 --- a/src/devices/bus/comx35/ram.cpp +++ b/src/devices/bus/comx35/ram.cpp @@ -36,7 +36,7 @@ const device_type COMX_RAM = &device_creator<comx_ram_device>; comx_ram_device::comx_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, COMX_RAM, "COMX-35 RAM Card", tag, owner, clock, "comx_ram", __FILE__), device_comx_expansion_card_interface(mconfig, *this), - m_ram(*this, "ram"), + m_ram(*this, "ram"), m_bank(0) { } diff --git a/src/devices/bus/cpc/amdrum.cpp b/src/devices/bus/cpc/amdrum.cpp index bae5812206a..87e5af428ce 100644 --- a/src/devices/bus/cpc/amdrum.cpp +++ b/src/devices/bus/cpc/amdrum.cpp @@ -36,7 +36,7 @@ machine_config_constructor cpc_amdrum_device::device_mconfig_additions() const cpc_amdrum_device::cpc_amdrum_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, CPC_AMDRUM, "Amdrum", tag, owner, clock, "cpc_amdrum", __FILE__), - device_cpc_expansion_card_interface(mconfig, *this), + device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr), m_dac(*this,"dac") { diff --git a/src/devices/bus/cpc/cpcexp.cpp b/src/devices/bus/cpc/cpcexp.cpp index fe142a1cb19..69ad0887282 100644 --- a/src/devices/bus/cpc/cpcexp.cpp +++ b/src/devices/bus/cpc/cpcexp.cpp @@ -26,7 +26,7 @@ const device_type CPC_EXPANSION_SLOT = &device_creator<cpc_expansion_slot_device device_cpc_expansion_card_interface::device_cpc_expansion_card_interface(const machine_config &mconfig, device_t &device) - : device_slot_card_interface(mconfig,device), + : device_slot_card_interface(mconfig,device), m_rom_sel(0) { } diff --git a/src/devices/bus/cpc/transtape.cpp b/src/devices/bus/cpc/transtape.cpp index 7051f67914d..adb3a152557 100644 --- a/src/devices/bus/cpc/transtape.cpp +++ b/src/devices/bus/cpc/transtape.cpp @@ -91,7 +91,7 @@ void cpc_transtape_device::map_enable() membank(":bank7")->set_base(m_ram); membank(":bank15")->set_base(m_ram); membank(":bank8")->set_base(m_ram); // repeats in second 8kB - membank(":bank16")->set_base(m_ram); + membank(":bank16")->set_base(m_ram); } } @@ -136,5 +136,3 @@ void cpc_transtape_device::set_mapping(UINT8 type) return; map_enable(); } - - diff --git a/src/devices/bus/cpc/transtape.h b/src/devices/bus/cpc/transtape.h index 7a260640e9e..a354a1e2037 100644 --- a/src/devices/bus/cpc/transtape.h +++ b/src/devices/bus/cpc/transtape.h @@ -23,10 +23,10 @@ public: // optional information overrides virtual const rom_entry *device_rom_region() const; virtual ioport_constructor device_input_ports() const; - + virtual void set_mapping(UINT8 type); virtual WRITE_LINE_MEMBER( romen_w ) { m_romen = state; } - + DECLARE_READ8_MEMBER(input_r); DECLARE_WRITE8_MEMBER(output_w); DECLARE_INPUT_CHANGED_MEMBER(button_red_w); @@ -45,7 +45,7 @@ private: bool m_rom_active; bool m_romen; UINT8 m_output; - + void map_enable(); }; diff --git a/src/devices/bus/dmv/k233.cpp b/src/devices/bus/dmv/k233.cpp index 4a705279014..8668f7ab81f 100644 --- a/src/devices/bus/dmv/k233.cpp +++ b/src/devices/bus/dmv/k233.cpp @@ -30,8 +30,8 @@ const device_type DMV_K233 = &device_creator<dmv_k233_device>; dmv_k233_device::dmv_k233_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, DMV_K233, "K233 16K Shared RAM", tag, owner, clock, "dmv_k233", __FILE__), - device_dmvslot_interface( mconfig, *this ), - m_enabled(false), + device_dmvslot_interface( mconfig, *this ), + m_enabled(false), m_ram(nullptr) { } diff --git a/src/devices/bus/gameboy/gb_slot.cpp b/src/devices/bus/gameboy/gb_slot.cpp index 202b7baa048..a1f92b31bcd 100644 --- a/src/devices/bus/gameboy/gb_slot.cpp +++ b/src/devices/bus/gameboy/gb_slot.cpp @@ -38,11 +38,11 @@ const device_type MEGADUCK_CART_SLOT = &device_creator<megaduck_cart_slot_device device_gb_cart_interface::device_gb_cart_interface(const machine_config &mconfig, device_t &device) : device_slot_card_interface(mconfig, device), - m_rom(NULL), - m_rom_size(0), m_ram_bank(0), m_latch_bank(0), m_latch_bank2(0), - has_rumble(false), - has_timer(false), - has_battery(false) + m_rom(NULL), + m_rom_size(0), m_ram_bank(0), m_latch_bank(0), m_latch_bank2(0), + has_rumble(false), + has_timer(false), + has_battery(false) { } diff --git a/src/devices/bus/isa/3c503.cpp b/src/devices/bus/isa/3c503.cpp index ba7767018b1..f0522e7fdbd 100644 --- a/src/devices/bus/isa/3c503.cpp +++ b/src/devices/bus/isa/3c503.cpp @@ -20,9 +20,9 @@ machine_config_constructor el2_3c503_device::device_mconfig_additions() const { el2_3c503_device::el2_3c503_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock) : device_t(mconfig, EL2_3C503, "3C503 Network Adapter", tag, owner, clock, "el2_3c503", __FILE__), - device_isa8_card_interface(mconfig, *this), - m_dp8390(*this, "dp8390d"), - m_irq_state(0) + device_isa8_card_interface(mconfig, *this), + m_dp8390(*this, "dp8390d"), + m_irq_state(0) { } diff --git a/src/devices/bus/isa/aga.cpp b/src/devices/bus/isa/aga.cpp index bd8af6b9200..6aa82eda1d4 100644 --- a/src/devices/bus/isa/aga.cpp +++ b/src/devices/bus/isa/aga.cpp @@ -62,18 +62,18 @@ isa8_aga_device::isa8_aga_device(const machine_config &mconfig, const char *tag, m_palette(*this, "palette"), m_mc6845(*this, AGA_MC6845_NAME), m_cga_config(*this, "cga_config"), - m_update_row_type(-1), + m_update_row_type(-1), m_mode(), m_mda_mode_control(0), - m_mda_status(0), + m_mda_status(0), m_mda_chr_gen(nullptr), m_cga_mode_control(0), m_cga_color_select(0), - m_cga_status(0), + m_cga_status(0), m_cga_chr_gen(nullptr), m_framecnt(0), m_vsync(0), - m_hsync(0), + m_hsync(0), m_videoram(nullptr) { } diff --git a/src/devices/bus/isa/dectalk.cpp b/src/devices/bus/isa/dectalk.cpp index 9cf7644c07d..169748eeae6 100644 --- a/src/devices/bus/isa/dectalk.cpp +++ b/src/devices/bus/isa/dectalk.cpp @@ -6,14 +6,14 @@ const device_type ISA8_DECTALK = &device_creator<dectalk_isa_device>; dectalk_isa_device::dectalk_isa_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock) : device_t(mconfig, ISA8_DECTALK, "DECTalk-PC", tag, owner, clock, "dectalk_isa", __FILE__), - device_isa8_card_interface(mconfig, *this), - m_cmd(0), - m_stat(0), - m_data(0), + device_isa8_card_interface(mconfig, *this), + m_cmd(0), + m_stat(0), + m_data(0), m_dsp_dma(0), - m_ctl(0), - m_dma(0), - m_vol(0), + m_ctl(0), + m_dma(0), + m_vol(0), m_bio(0), m_cpu(*this, "dectalk_cpu"), m_dac(*this, "dac"), diff --git a/src/devices/bus/isa/isa.cpp b/src/devices/bus/isa/isa.cpp index a98a0310872..0d8f0c777e1 100644 --- a/src/devices/bus/isa/isa.cpp +++ b/src/devices/bus/isa/isa.cpp @@ -26,8 +26,8 @@ const device_type ISA8_SLOT = &device_creator<isa8_slot_device>; //------------------------------------------------- isa8_slot_device::isa8_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, ISA8_SLOT, "ISA8_SLOT", tag, owner, clock, "isa8_slot", __FILE__), - device_slot_interface(mconfig, *this), - m_owner(nullptr), + device_slot_interface(mconfig, *this), + m_owner(nullptr), m_isa_tag(nullptr) { } diff --git a/src/devices/bus/isa/lpt.cpp b/src/devices/bus/isa/lpt.cpp index 53563689fd7..1baa190b034 100644 --- a/src/devices/bus/isa/lpt.cpp +++ b/src/devices/bus/isa/lpt.cpp @@ -14,7 +14,7 @@ const device_type ISA8_LPT = &device_creator<isa8_lpt_device>; isa8_lpt_device::isa8_lpt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, ISA8_LPT, "Printer Adapter", tag, owner, clock, "isa_lpt", __FILE__), - device_isa8_card_interface(mconfig, *this), + device_isa8_card_interface(mconfig, *this), m_is_primary(false) { } diff --git a/src/devices/bus/isa/mach32.cpp b/src/devices/bus/isa/mach32.cpp index f767d79e602..f041455a9ad 100644 --- a/src/devices/bus/isa/mach32.cpp +++ b/src/devices/bus/isa/mach32.cpp @@ -23,15 +23,15 @@ const device_type ATIMACH64_8514A = &device_creator<mach64_8514a_device>; // 8514/A device mach32_8514a_device::mach32_8514a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : mach8_device(mconfig, ATIMACH32_8514A, "ATi mach32 (2D acceleration module)", tag, owner, clock, "mach32_8514a", __FILE__), - m_chip_ID(0), + : mach8_device(mconfig, ATIMACH32_8514A, "ATi mach32 (2D acceleration module)", tag, owner, clock, "mach32_8514a", __FILE__), + m_chip_ID(0), m_membounds(0) { } mach32_8514a_device::mach32_8514a_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) - : mach8_device(mconfig, type, name, tag, owner, clock, shortname, source), - m_chip_ID(0), + : mach8_device(mconfig, type, name, tag, owner, clock, shortname, source), + m_chip_ID(0), m_membounds(0) { } diff --git a/src/devices/bus/isa/ne1000.cpp b/src/devices/bus/isa/ne1000.cpp index 7fb291f7aed..65ee0019430 100644 --- a/src/devices/bus/isa/ne1000.cpp +++ b/src/devices/bus/isa/ne1000.cpp @@ -19,7 +19,7 @@ machine_config_constructor ne1000_device::device_mconfig_additions() const { ne1000_device::ne1000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, NE1000, "NE1000 Network Adapter", tag, owner, clock, "ne1000", __FILE__), device_isa8_card_interface(mconfig, *this), - m_dp8390(*this, "dp8390d"), + m_dp8390(*this, "dp8390d"), m_irq(0) { } diff --git a/src/devices/bus/isa/ne2000.cpp b/src/devices/bus/isa/ne2000.cpp index 6fe5bf29416..3937e14a920 100644 --- a/src/devices/bus/isa/ne2000.cpp +++ b/src/devices/bus/isa/ne2000.cpp @@ -19,9 +19,9 @@ machine_config_constructor ne2000_device::device_mconfig_additions() const { ne2000_device::ne2000_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock) : device_t(mconfig, NE2000, "NE2000 Network Adapter", tag, owner, clock, "ne2000", __FILE__), - device_isa16_card_interface(mconfig, *this), - m_dp8390(*this, "dp8390d"), - m_irq(0) + device_isa16_card_interface(mconfig, *this), + m_dp8390(*this, "dp8390d"), + m_irq(0) { } diff --git a/src/devices/bus/isa/omti8621.cpp b/src/devices/bus/isa/omti8621.cpp index 25d3076a60a..a28ddca5a7a 100644 --- a/src/devices/bus/isa/omti8621.cpp +++ b/src/devices/bus/isa/omti8621.cpp @@ -376,7 +376,7 @@ omti8621_device::omti8621_device(const machine_config &mconfig, const char *tag, device_isa16_card_interface(mconfig, *this), m_fdc(*this, OMTI_FDC_TAG), m_iobase(*this, "IO_BASE"), - m_biosopts(*this, "BIOS_OPTS"), jumper(0), omti_state(0), status_port(0), config_port(0), mask_port(0), command_length(0), command_index(0), command_status(0), data_buffer(nullptr), + m_biosopts(*this, "BIOS_OPTS"), jumper(0), omti_state(0), status_port(0), config_port(0), mask_port(0), command_length(0), command_index(0), command_status(0), data_buffer(nullptr), data_length(0), data_index(0), diskaddr_ecc_error(0), diskaddr_format_bad_track(0), m_timer(nullptr), m_installed(false) { } diff --git a/src/devices/bus/isa/sb16.cpp b/src/devices/bus/isa/sb16.cpp index 983c305e04e..87c09592b6d 100644 --- a/src/devices/bus/isa/sb16.cpp +++ b/src/devices/bus/isa/sb16.cpp @@ -684,8 +684,8 @@ sb16_lle_device::sb16_lle_device(const machine_config &mconfig, const char *tag, m_dacl(*this, "dacl"), m_dacr(*this, "dacr"), m_joy(*this, "pc_joy"), - m_cpu(*this, "sb16_cpu"), m_data_in(false), m_in_byte(0), m_data_out(false), m_out_byte(0), m_freq(0), m_mode(0), m_dac_fifo_ctrl(0), m_adc_fifo_ctrl(0), m_ctrl8(0), m_ctrl16(0), m_mpu_byte(0), - m_dma8_len(0), m_dma16_len(0), m_dma8_cnt(0), m_dma16_cnt(0), m_adc_fifo_head(0), m_adc_fifo_tail(0), m_dac_fifo_head(0), m_dac_fifo_tail(0), m_adc_r(false), m_dac_r(false), m_adc_h(false), + m_cpu(*this, "sb16_cpu"), m_data_in(false), m_in_byte(0), m_data_out(false), m_out_byte(0), m_freq(0), m_mode(0), m_dac_fifo_ctrl(0), m_adc_fifo_ctrl(0), m_ctrl8(0), m_ctrl16(0), m_mpu_byte(0), + m_dma8_len(0), m_dma16_len(0), m_dma8_cnt(0), m_dma16_cnt(0), m_adc_fifo_head(0), m_adc_fifo_tail(0), m_dac_fifo_head(0), m_dac_fifo_tail(0), m_adc_r(false), m_dac_r(false), m_adc_h(false), m_dac_h(false), m_irq8(false), m_irq16(false), m_irq_midi(false), m_dma8_done(false), m_dma16_done(false), m_timer(nullptr) { } diff --git a/src/devices/bus/isa/sc499.cpp b/src/devices/bus/isa/sc499.cpp index 922c62c2d15..971fc8b275d 100644 --- a/src/devices/bus/isa/sc499.cpp +++ b/src/devices/bus/isa/sc499.cpp @@ -319,7 +319,7 @@ sc499_device::sc499_device(const machine_config &mconfig, const char *tag, devic : device_t(mconfig, SC499, "Archive SC-499", tag, owner, clock, "sc499", __FILE__), device_isa8_card_interface(mconfig, *this), m_iobase(*this, "IO_BASE"), - m_irqdrq(*this, "IRQ_DRQ"), m_data(0), m_command(0), m_status(0), m_control(0), m_has_cartridge(0), m_is_writable(0), m_current_command(0), m_first_block_hack(0), m_nasty_readahead(0), m_read_block_pending(0), + m_irqdrq(*this, "IRQ_DRQ"), m_data(0), m_command(0), m_status(0), m_control(0), m_has_cartridge(0), m_is_writable(0), m_current_command(0), m_first_block_hack(0), m_nasty_readahead(0), m_read_block_pending(0), m_data_index(0), m_tape_status(0), m_data_error_counter(0), m_underrun_counter(0), m_tape_pos(0), m_ctape_block_count(0), m_ctape_block_index(0), m_image_length(0), m_image(*this, SC499_CTAPE_TAG), irq_state(), dma_drq_state(), m_timer(nullptr), m_timer1(nullptr), m_timer_type(0), m_irq(0), m_drq(0), m_installed(false) { diff --git a/src/devices/bus/lpci/i82439tx.cpp b/src/devices/bus/lpci/i82439tx.cpp index 16b4099776e..66483af2289 100644 --- a/src/devices/bus/lpci/i82439tx.cpp +++ b/src/devices/bus/lpci/i82439tx.cpp @@ -20,8 +20,8 @@ i82439tx_device::i82439tx_device(const machine_config &mconfig, const char *tag, : northbridge_device(mconfig, I82439TX, "Intel 82439TX", tag, owner, clock, "i82439tx", __FILE__), pci_device_interface( mconfig, *this ), m_cpu_tag( NULL ), - m_region_tag( NULL ), - m_space(nullptr), + m_region_tag( NULL ), + m_space(nullptr), m_rom(nullptr) { } diff --git a/src/devices/bus/lpci/mpc105.cpp b/src/devices/bus/lpci/mpc105.cpp index e45c1343fbb..74780b7159f 100644 --- a/src/devices/bus/lpci/mpc105.cpp +++ b/src/devices/bus/lpci/mpc105.cpp @@ -33,9 +33,9 @@ mpc105_device::mpc105_device(const machine_config &mconfig, const char *tag, dev : device_t(mconfig, MPC105, "MPC105", tag, owner, clock, "mpc105", __FILE__), pci_device_interface( mconfig, *this ), m_cpu_tag(nullptr), - m_bank_base_default(0), - m_bank_base(0), - m_bank_enable(0), + m_bank_base_default(0), + m_bank_base(0), + m_bank_enable(0), m_maincpu(nullptr) { } diff --git a/src/devices/bus/macpds/macpds.cpp b/src/devices/bus/macpds/macpds.cpp index 4b181ddd43e..61fae5f3a17 100644 --- a/src/devices/bus/macpds/macpds.cpp +++ b/src/devices/bus/macpds/macpds.cpp @@ -28,8 +28,8 @@ const device_type MACPDS_SLOT = &device_creator<macpds_slot_device>; //------------------------------------------------- macpds_slot_device::macpds_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, MACPDS_SLOT, "Mac 68000 Processor-Direct Slot", tag, owner, clock, "macpds_slot", __FILE__), - device_slot_interface(mconfig, *this), - m_macpds_tag(nullptr), + device_slot_interface(mconfig, *this), + m_macpds_tag(nullptr), m_macpds_slottag(nullptr) { } diff --git a/src/devices/bus/midi/midi.cpp b/src/devices/bus/midi/midi.cpp index 7a4a415ee4e..23351d5df9b 100644 --- a/src/devices/bus/midi/midi.cpp +++ b/src/devices/bus/midi/midi.cpp @@ -6,7 +6,7 @@ const device_type MIDI_PORT = &device_creator<midi_port_device>; midi_port_device::midi_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, MIDI_PORT, "Midi Port", tag, owner, clock, "midi_port", __FILE__), - device_slot_interface(mconfig, *this), + device_slot_interface(mconfig, *this), m_rxd(0), m_rxd_handler(*this), m_dev(NULL) diff --git a/src/devices/bus/msx_cart/disk.cpp b/src/devices/bus/msx_cart/disk.cpp index e93e0234297..5a9905c852e 100644 --- a/src/devices/bus/msx_cart/disk.cpp +++ b/src/devices/bus/msx_cart/disk.cpp @@ -141,7 +141,7 @@ msx_cart_disk_wd::msx_cart_disk_wd(const machine_config &mconfig, device_type ty msx_cart_disk_type1::msx_cart_disk_type1(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname) : msx_cart_disk_wd(mconfig, type, name, tag, owner, clock, shortname), m_side_control(0) - , m_control(0) + , m_control(0) { } diff --git a/src/devices/bus/msx_cart/msx_audio_kb.cpp b/src/devices/bus/msx_cart/msx_audio_kb.cpp index 8925e03d2ba..f88f9b94c19 100644 --- a/src/devices/bus/msx_cart/msx_audio_kb.cpp +++ b/src/devices/bus/msx_cart/msx_audio_kb.cpp @@ -9,7 +9,7 @@ const device_type MSX_AUDIO_KBDC_PORT = &device_creator<msx_audio_kbdc_port_devi msx_audio_kbdc_port_device::msx_audio_kbdc_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, MSX_AUDIO_KBDC_PORT, "MSX Audio keyboard connector port", tag, owner, clock, "msx_audio_kbdc_port", __FILE__), - device_slot_interface(mconfig, *this), + device_slot_interface(mconfig, *this), m_keyboard(NULL) { } diff --git a/src/devices/bus/neogeo/banked_cart.cpp b/src/devices/bus/neogeo/banked_cart.cpp index 05f677c5c3c..0378715367a 100644 --- a/src/devices/bus/neogeo/banked_cart.cpp +++ b/src/devices/bus/neogeo/banked_cart.cpp @@ -10,9 +10,9 @@ extern const device_type NEOGEO_BANKED_CART = &device_creator<neogeo_banked_cart neogeo_banked_cart_device::neogeo_banked_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, NEOGEO_BANKED_CART, "NeoGeo Banked Cartridge", tag, owner, clock, "neogeo_banked_cart", __FILE__), - m_bank_cartridge(0), + m_bank_cartridge(0), m_main_cpu_bank_address(0), - m_region(0), + m_region(0), m_region_size(0) { diff --git a/src/devices/bus/neogeo/bootleg_prot.cpp b/src/devices/bus/neogeo/bootleg_prot.cpp index e8767bbd7a5..0bdad238b26 100644 --- a/src/devices/bus/neogeo/bootleg_prot.cpp +++ b/src/devices/bus/neogeo/bootleg_prot.cpp @@ -10,9 +10,9 @@ extern const device_type NGBOOTLEG_PROT = &device_creator<ngbootleg_prot_device> ngbootleg_prot_device::ngbootleg_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, NGBOOTLEG_PROT, "NeoGeo Protection (Bootleg)", tag, owner, clock, "ngbootleg_prot", __FILE__), - kof2k3_overlay(0), - m_mainrom(NULL), + : device_t(mconfig, NGBOOTLEG_PROT, "NeoGeo Protection (Bootleg)", tag, owner, clock, "ngbootleg_prot", __FILE__), + kof2k3_overlay(0), + m_mainrom(NULL), m_fixedrom(NULL), m_bankdev(NULL) { diff --git a/src/devices/bus/neogeo/cmc_prot.cpp b/src/devices/bus/neogeo/cmc_prot.cpp index 7656552337b..f54f09aeeb1 100644 --- a/src/devices/bus/neogeo/cmc_prot.cpp +++ b/src/devices/bus/neogeo/cmc_prot.cpp @@ -10,8 +10,8 @@ extern const device_type CMC_PROT = &device_creator<cmc_prot_device>; cmc_prot_device::cmc_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, CMC_PROT, "NeoGeo Protection (CMC)", tag, owner, clock, "cmc_prot", __FILE__), - type0_t03(NULL), + : device_t(mconfig, CMC_PROT, "NeoGeo Protection (CMC)", tag, owner, clock, "cmc_prot", __FILE__), + type0_t03(NULL), type0_t12(NULL), type1_t03(NULL), type1_t12(NULL), diff --git a/src/devices/bus/neogeo/fatfury2_prot.cpp b/src/devices/bus/neogeo/fatfury2_prot.cpp index a3bb6f30e5d..be66baa3481 100644 --- a/src/devices/bus/neogeo/fatfury2_prot.cpp +++ b/src/devices/bus/neogeo/fatfury2_prot.cpp @@ -10,8 +10,8 @@ extern const device_type FATFURY2_PROT = &device_creator<fatfury2_prot_device>; fatfury2_prot_device::fatfury2_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, FATFURY2_PROT, "NeoGeo Protection (Fatal Fury 2)", tag, owner, clock, "fatfury2_prot", __FILE__), - m_bankdev(NULL), + : device_t(mconfig, FATFURY2_PROT, "NeoGeo Protection (Fatal Fury 2)", tag, owner, clock, "fatfury2_prot", __FILE__), + m_bankdev(NULL), m_fatfury2_prot_data(0) { } diff --git a/src/devices/bus/neogeo/kof98_prot.cpp b/src/devices/bus/neogeo/kof98_prot.cpp index ca6f83a4274..6fdfa5001f3 100644 --- a/src/devices/bus/neogeo/kof98_prot.cpp +++ b/src/devices/bus/neogeo/kof98_prot.cpp @@ -11,7 +11,7 @@ extern const device_type KOF98_PROT = &device_creator<kof98_prot_device>; kof98_prot_device::kof98_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, KOF98_PROT, "NeoGeo Protection (KOF98)", tag, owner, clock, "kof98_prot", __FILE__), + : device_t(mconfig, KOF98_PROT, "NeoGeo Protection (KOF98)", tag, owner, clock, "kof98_prot", __FILE__), kof98_prot_state(0) { } diff --git a/src/devices/bus/neogeo/mslugx_prot.cpp b/src/devices/bus/neogeo/mslugx_prot.cpp index 41adabc3920..783ef2db839 100644 --- a/src/devices/bus/neogeo/mslugx_prot.cpp +++ b/src/devices/bus/neogeo/mslugx_prot.cpp @@ -9,8 +9,8 @@ extern const device_type MSLUGX_PROT = &device_creator<mslugx_prot_device>; mslugx_prot_device::mslugx_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, MSLUGX_PROT, "NeoGeo Protection (Metal Slug X)", tag, owner, clock, "mslugx_prot", __FILE__), - m_mslugx_counter(0), + : device_t(mconfig, MSLUGX_PROT, "NeoGeo Protection (Metal Slug X)", tag, owner, clock, "mslugx_prot", __FILE__), + m_mslugx_counter(0), m_mslugx_command(0) { } diff --git a/src/devices/bus/neogeo/neogeo_intf.cpp b/src/devices/bus/neogeo/neogeo_intf.cpp index 6ad0ae96972..c173b00e8db 100644 --- a/src/devices/bus/neogeo/neogeo_intf.cpp +++ b/src/devices/bus/neogeo/neogeo_intf.cpp @@ -9,7 +9,7 @@ //------------------------------------------------- device_neogeo_cart_interface::device_neogeo_cart_interface(const machine_config &mconfig, device_t &device) - : device_slot_card_interface(mconfig, device), + : device_slot_card_interface(mconfig, device), m_sprite_gfx_address_mask(0) /* m_rom(NULL), diff --git a/src/devices/bus/neogeo/pvc_prot.cpp b/src/devices/bus/neogeo/pvc_prot.cpp index 5b8de8b91e5..bd428c5a99d 100644 --- a/src/devices/bus/neogeo/pvc_prot.cpp +++ b/src/devices/bus/neogeo/pvc_prot.cpp @@ -11,7 +11,7 @@ extern const device_type PVC_PROT = &device_creator<pvc_prot_device>; pvc_prot_device::pvc_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, PVC_PROT, "NeoGeo Protection (PVC)", tag, owner, clock, "pvc_prot", __FILE__), + : device_t(mconfig, PVC_PROT, "NeoGeo Protection (PVC)", tag, owner, clock, "pvc_prot", __FILE__), m_bankdev(NULL) { } diff --git a/src/devices/bus/neogeo/sbp_prot.cpp b/src/devices/bus/neogeo/sbp_prot.cpp index 3575ab050ce..944ff13180e 100644 --- a/src/devices/bus/neogeo/sbp_prot.cpp +++ b/src/devices/bus/neogeo/sbp_prot.cpp @@ -11,7 +11,7 @@ extern const device_type SBP_PROT = &device_creator<sbp_prot_device>; sbp_prot_device::sbp_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SBP_PROT, "NeoGeo Protection (Super Bubble Pop)", tag, owner, clock, "sbp_prot", __FILE__), + : device_t(mconfig, SBP_PROT, "NeoGeo Protection (Super Bubble Pop)", tag, owner, clock, "sbp_prot", __FILE__), m_mainrom(NULL) { } diff --git a/src/devices/bus/neogeo/sma_prot.cpp b/src/devices/bus/neogeo/sma_prot.cpp index ed29df2a1c8..2da33721d67 100644 --- a/src/devices/bus/neogeo/sma_prot.cpp +++ b/src/devices/bus/neogeo/sma_prot.cpp @@ -9,8 +9,8 @@ extern const device_type SMA_PROT = &device_creator<sma_prot_device>; sma_prot_device::sma_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, SMA_PROT, "NeoGeo SMA Cartridge", tag, owner, clock, "sma_prot", __FILE__), - m_bankdev(NULL), + : device_t(mconfig, SMA_PROT, "NeoGeo SMA Cartridge", tag, owner, clock, "sma_prot", __FILE__), + m_bankdev(NULL), m_sma_rng(0) { } diff --git a/src/devices/bus/nes/act53.cpp b/src/devices/bus/nes/act53.cpp index 2e8f09d2d05..b0f7a8dae23 100644 --- a/src/devices/bus/nes/act53.cpp +++ b/src/devices/bus/nes/act53.cpp @@ -33,7 +33,7 @@ const device_type NES_ACTION53 = &device_creator<nes_action53_device>; nes_action53_device::nes_action53_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : nes_nrom_device(mconfig, NES_ACTION53, "NES Cart Action 53 PCB", tag, owner, clock, "nes_action53", __FILE__), + : nes_nrom_device(mconfig, NES_ACTION53, "NES Cart Action 53 PCB", tag, owner, clock, "nes_action53", __FILE__), m_sel(0) { } diff --git a/src/devices/bus/nes/aladdin.cpp b/src/devices/bus/nes/aladdin.cpp index 3d12678aea2..2b2621a2aa6 100644 --- a/src/devices/bus/nes/aladdin.cpp +++ b/src/devices/bus/nes/aladdin.cpp @@ -41,8 +41,8 @@ aladdin_cart_interface::aladdin_cart_interface(const machine_config &mconfig, device_t &device) : device_slot_card_interface(mconfig, device), m_rom(NULL), - m_rom_size(0), - m_lobank(0), + m_rom_size(0), + m_lobank(0), m_hibank(0), m_rom_mask(0xff) { diff --git a/src/devices/bus/nes/benshieng.cpp b/src/devices/bus/nes/benshieng.cpp index 9e562afdcf2..cda8d66d94d 100644 --- a/src/devices/bus/nes/benshieng.cpp +++ b/src/devices/bus/nes/benshieng.cpp @@ -32,7 +32,7 @@ const device_type NES_BENSHIENG = &device_creator<nes_benshieng_device>; nes_benshieng_device::nes_benshieng_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : nes_nrom_device(mconfig, NES_BENSHIENG, "NES Cart Benshieng PCB", tag, owner, clock, "nes_benshieng", __FILE__), + : nes_nrom_device(mconfig, NES_BENSHIENG, "NES Cart Benshieng PCB", tag, owner, clock, "nes_benshieng", __FILE__), m_dipsetting(0) { } diff --git a/src/devices/bus/nes/cony.cpp b/src/devices/bus/nes/cony.cpp index 0de53a8fe85..2f4b29bfab3 100644 --- a/src/devices/bus/nes/cony.cpp +++ b/src/devices/bus/nes/cony.cpp @@ -40,12 +40,12 @@ const device_type NES_YOKO = &device_creator<nes_yoko_device>; nes_cony_device::nes_cony_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) - : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), - m_irq_count(0), - m_irq_enable(0), - irq_timer(nullptr), - m_latch1(0), - m_latch2(0), + : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), + m_irq_count(0), + m_irq_enable(0), + irq_timer(nullptr), + m_latch1(0), + m_latch2(0), m_extra1(0) { } diff --git a/src/devices/bus/nes/event.cpp b/src/devices/bus/nes/event.cpp index d32bc631f9b..e8cc13e44bc 100644 --- a/src/devices/bus/nes/event.cpp +++ b/src/devices/bus/nes/event.cpp @@ -37,11 +37,11 @@ const device_type NES_EVENT = &device_creator<nes_event_device>; nes_event_device::nes_event_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : nes_sxrom_device(mconfig, NES_EVENT, "NES Cart Event PCB", tag, owner, clock, "nes_event", __FILE__), - m_dsw(*this, "DIPSW"), - m_nwc_init(0), - event_timer(nullptr), - m_timer_count(0), - m_timer_on(0), + m_dsw(*this, "DIPSW"), + m_nwc_init(0), + event_timer(nullptr), + m_timer_count(0), + m_timer_on(0), m_timer_enabled(0) { } diff --git a/src/devices/bus/nes/ggenie.cpp b/src/devices/bus/nes/ggenie.cpp index 69d4a103313..7c26eadf700 100644 --- a/src/devices/bus/nes/ggenie.cpp +++ b/src/devices/bus/nes/ggenie.cpp @@ -36,7 +36,7 @@ const device_type NES_GGENIE = &device_creator<nes_ggenie_device>; nes_ggenie_device::nes_ggenie_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : nes_nrom_device(mconfig, NES_GGENIE, "NES Cart Game Genie PCB", tag, owner, clock, "nes_ggenie", __FILE__), - m_ggslot(*this, "gg_slot"), + m_ggslot(*this, "gg_slot"), m_gg_bypass(0) { } diff --git a/src/devices/bus/nes/hosenkan.cpp b/src/devices/bus/nes/hosenkan.cpp index c0fafcb3f4b..0525534cbb9 100644 --- a/src/devices/bus/nes/hosenkan.cpp +++ b/src/devices/bus/nes/hosenkan.cpp @@ -33,11 +33,11 @@ const device_type NES_HOSENKAN = &device_creator<nes_hosenkan_device>; nes_hosenkan_device::nes_hosenkan_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : nes_nrom_device(mconfig, NES_HOSENKAN, "NES Cart HOSENKAN PCB", tag, owner, clock, "nes_hosenkan", __FILE__), - m_irq_count(0), - m_irq_count_latch(0), - m_irq_clear(0), - m_irq_enable(0), + : nes_nrom_device(mconfig, NES_HOSENKAN, "NES Cart HOSENKAN PCB", tag, owner, clock, "nes_hosenkan", __FILE__), + m_irq_count(0), + m_irq_count_latch(0), + m_irq_clear(0), + m_irq_enable(0), m_latch(0) { } diff --git a/src/devices/bus/nes/jy.cpp b/src/devices/bus/nes/jy.cpp index b6b38343dc7..08763d250e9 100644 --- a/src/devices/bus/nes/jy.cpp +++ b/src/devices/bus/nes/jy.cpp @@ -50,7 +50,7 @@ nes_jy_typea_device::nes_jy_typea_device(const machine_config &mconfig, device_t nes_jy_typea_device::nes_jy_typea_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : nes_nrom_device(mconfig, NES_JY_TYPEA, "NES Cart JY Company Type A PCB", tag, owner, clock, "nes_jya", __FILE__), m_latch(0), m_extra_chr_bank(0), - m_extra_chr_mask(0), m_bank_6000(0), m_irq_mode(0), m_irq_count(0), m_irq_prescale(0), m_irq_prescale_mask(0), m_irq_flip(0), m_irq_enable(0), m_irq_up(0), + m_extra_chr_mask(0), m_bank_6000(0), m_irq_mode(0), m_irq_count(0), m_irq_prescale(0), m_irq_prescale_mask(0), m_irq_flip(0), m_irq_enable(0), m_irq_up(0), m_irq_down(0), irq_timer(nullptr) { } diff --git a/src/devices/bus/nes/mmc2.cpp b/src/devices/bus/nes/mmc2.cpp index 29cef8fe0e6..9351761f31c 100644 --- a/src/devices/bus/nes/mmc2.cpp +++ b/src/devices/bus/nes/mmc2.cpp @@ -33,8 +33,8 @@ const device_type NES_FXROM = &device_creator<nes_fxrom_device>; nes_pxrom_device::nes_pxrom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) - : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), - m_latch1(0), + : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), + m_latch1(0), m_latch2(0) { } diff --git a/src/devices/bus/nes/mmc5.cpp b/src/devices/bus/nes/mmc5.cpp index 996c0dedcf8..c3a82e02c8e 100644 --- a/src/devices/bus/nes/mmc5.cpp +++ b/src/devices/bus/nes/mmc5.cpp @@ -45,9 +45,9 @@ const device_type NES_EXROM = &device_creator<nes_exrom_device>; nes_exrom_device::nes_exrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : nes_nrom_device(mconfig, NES_EXROM, "NES Cart ExROM (MMC-5) PCB", tag, owner, clock, "nes_exrom", __FILE__), m_irq_count(0), + : nes_nrom_device(mconfig, NES_EXROM, "NES Cart ExROM (MMC-5) PCB", tag, owner, clock, "nes_exrom", __FILE__), m_irq_count(0), m_irq_status(0), m_irq_enable(0), m_mult1(0), m_mult2(0), m_mmc5_scanline(0), m_vrom_page_a(0), m_vrom_page_b(0), m_floodtile(0), m_floodattr(0), - m_prg_mode(0), m_chr_mode(0), m_wram_protect_1(0), m_wram_protect_2(0), m_exram_control(0), m_wram_base(0), m_last_chr(0), m_ex1_chr(0), + m_prg_mode(0), m_chr_mode(0), m_wram_protect_1(0), m_wram_protect_2(0), m_exram_control(0), m_wram_base(0), m_last_chr(0), m_ex1_chr(0), m_split_chr(0), m_ex1_bank(0), m_high_chr(0), m_split_scr(0), m_split_rev(0), m_split_ctrl(0), m_split_yst(0), m_split_bank(0), m_vcount(0) { } diff --git a/src/devices/bus/nes/nanjing.cpp b/src/devices/bus/nes/nanjing.cpp index e107c5098f1..9c4ea8bf3b1 100644 --- a/src/devices/bus/nes/nanjing.cpp +++ b/src/devices/bus/nes/nanjing.cpp @@ -34,9 +34,9 @@ const device_type NES_NANJING = &device_creator<nes_nanjing_device>; nes_nanjing_device::nes_nanjing_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : nes_nrom_device(mconfig, NES_NANJING, "NES Cart Nanjing PCB", tag, owner, clock, "nes_nanjing", __FILE__), - m_count(0), - m_latch1(0), + : nes_nrom_device(mconfig, NES_NANJING, "NES Cart Nanjing PCB", tag, owner, clock, "nes_nanjing", __FILE__), + m_count(0), + m_latch1(0), m_latch2(0) { } @@ -128,9 +128,9 @@ WRITE8_MEMBER(nes_nanjing_device::write_l) m_count = data; if ((temp & ~data) & 1) - { - m_latch2 ^= 0xff; - } + { + m_latch2 ^= 0xff; + } } switch (offset & 0x300) diff --git a/src/devices/bus/nes/ntdec.cpp b/src/devices/bus/nes/ntdec.cpp index 8cba184432c..77b983137a3 100644 --- a/src/devices/bus/nes/ntdec.cpp +++ b/src/devices/bus/nes/ntdec.cpp @@ -39,7 +39,7 @@ const device_type NES_NTDEC_FH = &device_creator<nes_ntdec_fh_device>; nes_ntdec_asder_device::nes_ntdec_asder_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : nes_nrom_device(mconfig, NES_NTDEC_ASDER, "NES Cart NTDEC Asder PCB", tag, owner, clock, "nes_ntdec_asder", __FILE__), + : nes_nrom_device(mconfig, NES_NTDEC_ASDER, "NES Cart NTDEC Asder PCB", tag, owner, clock, "nes_ntdec_asder", __FILE__), m_latch(0) { } diff --git a/src/devices/bus/nes/racermate.cpp b/src/devices/bus/nes/racermate.cpp index 42940c365a4..9f549dc1f2d 100644 --- a/src/devices/bus/nes/racermate.cpp +++ b/src/devices/bus/nes/racermate.cpp @@ -36,7 +36,7 @@ const device_type NES_RACERMATE = &device_creator<nes_racermate_device>; nes_racermate_device::nes_racermate_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : nes_nrom_device(mconfig, NES_RACERMATE, "NES Cart Racermate PCB", tag, owner, clock, "nes_racermate", __FILE__), + : nes_nrom_device(mconfig, NES_RACERMATE, "NES Cart Racermate PCB", tag, owner, clock, "nes_racermate", __FILE__), m_latch(0) { } diff --git a/src/devices/bus/nes/rexsoft.cpp b/src/devices/bus/nes/rexsoft.cpp index 022527d2382..ed2b7246726 100644 --- a/src/devices/bus/nes/rexsoft.cpp +++ b/src/devices/bus/nes/rexsoft.cpp @@ -40,7 +40,7 @@ const device_type NES_REX_SL1632 = &device_creator<nes_rex_sl1632_device>; nes_rex_dbz5_device::nes_rex_dbz5_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : nes_txrom_device(mconfig, NES_REX_DBZ5, "NES Cart Rex Soft DragonBall Z V PCB", tag, owner, clock, "nes_rex_dbz5", __FILE__), + : nes_txrom_device(mconfig, NES_REX_DBZ5, "NES Cart Rex Soft DragonBall Z V PCB", tag, owner, clock, "nes_rex_dbz5", __FILE__), m_extra(0) { } diff --git a/src/devices/bus/nes/somari.cpp b/src/devices/bus/nes/somari.cpp index a2313b9e644..39af6273eee 100644 --- a/src/devices/bus/nes/somari.cpp +++ b/src/devices/bus/nes/somari.cpp @@ -40,11 +40,11 @@ const device_type NES_SOMARI = &device_creator<nes_somari_device>; nes_somari_device::nes_somari_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : nes_txrom_device(mconfig, NES_SOMARI, "NES Cart Team Somari PCB", tag, owner, clock, "nes_somari", __FILE__), - m_board_mode(0), - m_mmc3_mirror_reg(0), - m_count(0), - m_mmc1_latch(0), + : nes_txrom_device(mconfig, NES_SOMARI, "NES Cart Team Somari PCB", tag, owner, clock, "nes_somari", __FILE__), + m_board_mode(0), + m_mmc3_mirror_reg(0), + m_count(0), + m_mmc1_latch(0), m_vrc_mirror_reg(0) { } diff --git a/src/devices/bus/nubus/nubus.cpp b/src/devices/bus/nubus/nubus.cpp index b6529484c84..175139f19c2 100644 --- a/src/devices/bus/nubus/nubus.cpp +++ b/src/devices/bus/nubus/nubus.cpp @@ -28,8 +28,8 @@ const device_type NUBUS_SLOT = &device_creator<nubus_slot_device>; //------------------------------------------------- nubus_slot_device::nubus_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, NUBUS_SLOT, "NUBUS_SLOT", tag, owner, clock, "nubus_slot", __FILE__), - device_slot_interface(mconfig, *this), - m_nubus_tag(nullptr), + device_slot_interface(mconfig, *this), + m_nubus_tag(nullptr), m_nubus_slottag(nullptr) { } diff --git a/src/devices/bus/odyssey2/rom.cpp b/src/devices/bus/odyssey2/rom.cpp index 649e5992f65..dd2a3739bea 100644 --- a/src/devices/bus/odyssey2/rom.cpp +++ b/src/devices/bus/odyssey2/rom.cpp @@ -24,14 +24,14 @@ const device_type O2_ROM_16K = &device_creator<o2_rom16_device>; o2_rom_device::o2_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : device_t(mconfig, type, name, tag, owner, clock, shortname, source), - device_o2_cart_interface(mconfig, *this), - m_bank_base(0) + device_o2_cart_interface(mconfig, *this), + m_bank_base(0) { } o2_rom_device::o2_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, O2_ROM_STD, "Odyssey 2 Standard Carts", tag, owner, clock, "o2_rom", __FILE__), - device_o2_cart_interface( mconfig, *this ), + device_o2_cart_interface( mconfig, *this ), m_bank_base(0) { } diff --git a/src/devices/bus/oricext/oricext.cpp b/src/devices/bus/oricext/oricext.cpp index 0482da61b7f..3034f0f6c6f 100644 --- a/src/devices/bus/oricext/oricext.cpp +++ b/src/devices/bus/oricext/oricext.cpp @@ -9,7 +9,7 @@ const device_type ORICEXT_CONNECTOR = &device_creator<oricext_connector>; oricext_connector::oricext_connector(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, ORICEXT_CONNECTOR, "ORIC extension connector", tag, owner, clock, "oricext_connector", __FILE__), device_slot_interface(mconfig, *this), - irq_handler(*this), + irq_handler(*this), cputag(NULL) { } @@ -43,16 +43,16 @@ void oricext_connector::device_config_complete() oricext_device::oricext_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_slot_card_interface(mconfig, *this), - cputag(nullptr), - cpu(nullptr), - connector(nullptr), - bank_c000_r(nullptr), - bank_e000_r(nullptr), - bank_f800_r(nullptr), - bank_c000_w(nullptr), - bank_e000_w(nullptr), - bank_f800_w(nullptr), - rom(nullptr), + cputag(nullptr), + cpu(nullptr), + connector(nullptr), + bank_c000_r(nullptr), + bank_e000_r(nullptr), + bank_f800_r(nullptr), + bank_c000_w(nullptr), + bank_e000_w(nullptr), + bank_f800_w(nullptr), + rom(nullptr), ram(nullptr) { } diff --git a/src/devices/bus/pc_joy/pc_joy.cpp b/src/devices/bus/pc_joy/pc_joy.cpp index a0fa667e5ec..14c2b99e8a1 100644 --- a/src/devices/bus/pc_joy/pc_joy.cpp +++ b/src/devices/bus/pc_joy/pc_joy.cpp @@ -15,7 +15,7 @@ const device_type PC_JOY = &device_creator<pc_joy_device>; pc_joy_device::pc_joy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, PC_JOY, "PC joystick port", tag, owner, clock, "pc_joy", __FILE__), - device_slot_interface(mconfig, *this), + device_slot_interface(mconfig, *this), m_dev(nullptr) { } diff --git a/src/devices/bus/pc_joy/pc_joy_sw.cpp b/src/devices/bus/pc_joy/pc_joy_sw.cpp index 85111b746b7..69a3d5cd75e 100644 --- a/src/devices/bus/pc_joy/pc_joy_sw.cpp +++ b/src/devices/bus/pc_joy/pc_joy_sw.cpp @@ -13,10 +13,10 @@ pc_mssw_pad_device::pc_mssw_pad_device(const machine_config& mconfig, const char m_btn2(*this, "btn2"), m_btn3(*this, "btn3"), m_btn4(*this, "btn4"), - m_conf(*this, "CONFIG"), - m_timer(NULL), - m_count(0), - m_state(0), + m_conf(*this, "CONFIG"), + m_timer(NULL), + m_count(0), + m_state(0), m_active(false) { } diff --git a/src/devices/bus/pc_kbd/pc_kbdc.cpp b/src/devices/bus/pc_kbd/pc_kbdc.cpp index daadac95a7b..c579b05e6a0 100644 --- a/src/devices/bus/pc_kbd/pc_kbdc.cpp +++ b/src/devices/bus/pc_kbd/pc_kbdc.cpp @@ -33,7 +33,7 @@ const device_type PC_KBDC_SLOT = &device_creator<pc_kbdc_slot_device>; //------------------------------------------------- pc_kbdc_slot_device::pc_kbdc_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, PC_KBDC_SLOT, "PC_KBDC_SLOT", tag, owner, clock, "pc_kbdc_slot", __FILE__), - device_slot_interface(mconfig, *this), + device_slot_interface(mconfig, *this), m_kbdc_device(nullptr) { } diff --git a/src/devices/bus/pet/c2n.cpp b/src/devices/bus/pet/c2n.cpp index 0e32410dec6..585e651f3d7 100644 --- a/src/devices/bus/pet/c2n.cpp +++ b/src/devices/bus/pet/c2n.cpp @@ -55,7 +55,7 @@ c2n_device::c2n_device(const machine_config &mconfig, device_type type, const ch : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_pet_datassette_port_interface(mconfig, *this), m_cassette(*this, "cassette"), - m_motor(false), + m_motor(false), m_read_timer(nullptr) { } diff --git a/src/devices/bus/psx/analogue.cpp b/src/devices/bus/psx/analogue.cpp index a85bd9b2fc9..a4d82de288f 100644 --- a/src/devices/bus/psx/analogue.cpp +++ b/src/devices/bus/psx/analogue.cpp @@ -7,12 +7,12 @@ const device_type PSX_DUALSHOCK = &device_creator<psx_dualshock_device>; psx_analog_controller_device::psx_analog_controller_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : device_t(mconfig, type, name, tag, owner, clock, shortname, source), - device_psx_controller_interface(mconfig, *this), - m_type(), - m_confmode(false), - m_analogmode(false), - m_analoglock(false), - m_temp(0), + device_psx_controller_interface(mconfig, *this), + m_type(), + m_confmode(false), + m_analogmode(false), + m_analoglock(false), + m_temp(0), m_cmd(0), m_pad0(*this, "PSXPAD0"), m_pad1(*this, "PSXPAD1"), diff --git a/src/devices/bus/psx/ctlrport.cpp b/src/devices/bus/psx/ctlrport.cpp index 43203718ecd..5f84e482b4d 100644 --- a/src/devices/bus/psx/ctlrport.cpp +++ b/src/devices/bus/psx/ctlrport.cpp @@ -10,8 +10,8 @@ const device_type PSX_CONTROLLER_PORT = &device_creator<psx_controller_port_devi psx_controller_port_device::psx_controller_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, PSX_CONTROLLER_PORT, "Playstation Controller Port", tag, owner, clock, "psx_controller_port", __FILE__), - device_slot_interface(mconfig, *this), - m_tx(false), + device_slot_interface(mconfig, *this), + m_tx(false), m_dev(nullptr), m_card(*this, "card") { diff --git a/src/devices/bus/psx/memcard.cpp b/src/devices/bus/psx/memcard.cpp index c478b54b664..5b8ff16933b 100644 --- a/src/devices/bus/psx/memcard.cpp +++ b/src/devices/bus/psx/memcard.cpp @@ -43,22 +43,22 @@ enum transfer_states psxcard_device::psxcard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, PSXCARD, "Sony PSX Memory Card", tag, owner, clock, "psxcard", __FILE__), - device_image_interface(mconfig, *this), - pkt_ptr(0), - pkt_sz(0), - cmd(0), - addr(0), + device_image_interface(mconfig, *this), + pkt_ptr(0), + pkt_sz(0), + cmd(0), + addr(0), state(0), - m_disabled(false), - m_odata(0), - m_idata(0), - m_bit(0), - m_count(0), - m_pad(false), - m_clock(false), - m_sel(false), - m_ack(false), - m_rx(false), + m_disabled(false), + m_odata(0), + m_idata(0), + m_bit(0), + m_count(0), + m_pad(false), + m_clock(false), + m_sel(false), + m_ack(false), + m_rx(false), m_ack_timer(nullptr), m_owner(nullptr) { diff --git a/src/devices/bus/psx/multitap.cpp b/src/devices/bus/psx/multitap.cpp index 74c944b6b0a..8444e02c2fe 100644 --- a/src/devices/bus/psx/multitap.cpp +++ b/src/devices/bus/psx/multitap.cpp @@ -8,10 +8,10 @@ const device_type PSX_MULTITAP = &device_creator<psx_multitap_device>; psx_multitap_device::psx_multitap_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock) : device_t(mconfig, PSX_MULTITAP, "Playstation Multitap", tag, owner, clock, "psx_multitap", __FILE__), - device_psx_controller_interface(mconfig, *this), - m_activeport(0), + device_psx_controller_interface(mconfig, *this), + m_activeport(0), m_singlemode(false), - m_nextmode(false), + m_nextmode(false), m_tapmc(false), m_porta(*this, "a"), m_portb(*this, "b"), diff --git a/src/devices/bus/rs232/keyboard.cpp b/src/devices/bus/rs232/keyboard.cpp index 47b82c5d71e..af8cb01420b 100644 --- a/src/devices/bus/rs232/keyboard.cpp +++ b/src/devices/bus/rs232/keyboard.cpp @@ -5,7 +5,7 @@ serial_keyboard_device::serial_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : generic_keyboard_device(mconfig, SERIAL_KEYBOARD, "Serial Keyboard", tag, owner, clock, "serial_keyboard", __FILE__), device_serial_interface(mconfig, *this), - device_rs232_port_interface(mconfig, *this), + device_rs232_port_interface(mconfig, *this), m_curr_key(0), m_key_valid(false), m_rs232_txbaud(*this, "RS232_TXBAUD"), @@ -19,7 +19,7 @@ serial_keyboard_device::serial_keyboard_device(const machine_config &mconfig, co serial_keyboard_device::serial_keyboard_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : generic_keyboard_device(mconfig, type, name, tag, owner, clock, shortname, source), device_serial_interface(mconfig, *this), - device_rs232_port_interface(mconfig, *this), + device_rs232_port_interface(mconfig, *this), m_curr_key(0), m_key_valid(false), m_rs232_txbaud(*this, "RS232_TXBAUD"), diff --git a/src/devices/bus/rs232/null_modem.cpp b/src/devices/bus/rs232/null_modem.cpp index a5140ef5d1e..e34cc1e7597 100644 --- a/src/devices/bus/rs232/null_modem.cpp +++ b/src/devices/bus/rs232/null_modem.cpp @@ -14,7 +14,7 @@ null_modem_device::null_modem_device(const machine_config &mconfig, const char * m_rs232_parity(*this, "RS232_PARITY"), m_rs232_stopbits(*this, "RS232_STOPBITS"), m_input_count(0), - m_input_index(0), + m_input_index(0), m_timer_poll(NULL) { } diff --git a/src/devices/bus/rs232/pty.cpp b/src/devices/bus/rs232/pty.cpp index 72e8f22dd57..c239a7dced8 100644 --- a/src/devices/bus/rs232/pty.cpp +++ b/src/devices/bus/rs232/pty.cpp @@ -18,7 +18,7 @@ pseudo_terminal_device::pseudo_terminal_device(const machine_config &mconfig, co m_rs232_parity(*this, "RS232_PARITY"), m_rs232_stopbits(*this, "RS232_STOPBITS"), m_input_count(0), - m_input_index(0), + m_input_index(0), m_timer_poll(NULL) { } diff --git a/src/devices/bus/rs232/rs232.cpp b/src/devices/bus/rs232/rs232.cpp index 06462491db7..4abceaff098 100644 --- a/src/devices/bus/rs232/rs232.cpp +++ b/src/devices/bus/rs232/rs232.cpp @@ -6,11 +6,11 @@ const device_type RS232_PORT = &device_creator<rs232_port_device>; rs232_port_device::rs232_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, RS232_PORT, "RS232 Port", tag, owner, clock, "rs232", __FILE__), - device_slot_interface(mconfig, *this), - m_rxd(0), - m_dcd(0), - m_dsr(0), - m_ri(0), + device_slot_interface(mconfig, *this), + m_rxd(0), + m_dcd(0), + m_dsr(0), + m_ri(0), m_cts(0), m_rxd_handler(*this), m_dcd_handler(*this), @@ -23,11 +23,11 @@ rs232_port_device::rs232_port_device(const machine_config &mconfig, const char * rs232_port_device::rs232_port_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : device_t(mconfig, type, name, tag, owner, clock, shortname, source), - device_slot_interface(mconfig, *this), + device_slot_interface(mconfig, *this), m_rxd(0), - m_dcd(0), - m_dsr(0), - m_ri(0), + m_dcd(0), + m_dsr(0), + m_ri(0), m_cts(0), m_rxd_handler(*this), m_dcd_handler(*this), diff --git a/src/devices/bus/rs232/ser_mouse.cpp b/src/devices/bus/rs232/ser_mouse.cpp index 53d035fee7e..ecf9414f1c9 100644 --- a/src/devices/bus/rs232/ser_mouse.cpp +++ b/src/devices/bus/rs232/ser_mouse.cpp @@ -16,11 +16,11 @@ serial_mouse_device::serial_mouse_device(const machine_config &mconfig, device_t device_rs232_port_interface(mconfig, *this), device_serial_interface(mconfig, *this), m_dtr(1), - m_rts(1), - m_head(0), - m_tail(0), - m_mb(0), - m_timer(nullptr), + m_rts(1), + m_head(0), + m_tail(0), + m_mb(0), + m_timer(nullptr), m_enabled(false), m_x(*this, "ser_mouse_x"), m_y(*this, "ser_mouse_y"), diff --git a/src/devices/bus/rs232/terminal.cpp b/src/devices/bus/rs232/terminal.cpp index fcfd9074c67..c242184b387 100644 --- a/src/devices/bus/rs232/terminal.cpp +++ b/src/devices/bus/rs232/terminal.cpp @@ -11,8 +11,8 @@ serial_terminal_device::serial_terminal_device(const machine_config &mconfig, co m_rs232_startbits(*this, "RS232_STARTBITS"), m_rs232_databits(*this, "RS232_DATABITS"), m_rs232_parity(*this, "RS232_PARITY"), - m_rs232_stopbits(*this, "RS232_STOPBITS"), - m_curr_key(0), + m_rs232_stopbits(*this, "RS232_STOPBITS"), + m_curr_key(0), m_key_valid(false) { } diff --git a/src/devices/bus/rs232/xvd701.cpp b/src/devices/bus/rs232/xvd701.cpp index dd443d24ef1..9b032606ea8 100644 --- a/src/devices/bus/rs232/xvd701.cpp +++ b/src/devices/bus/rs232/xvd701.cpp @@ -5,8 +5,8 @@ jvc_xvd701_device::jvc_xvd701_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, JVC_XVD701, "JVC XV-D701", tag, owner, clock, "xvd701", __FILE__), device_serial_interface(mconfig, *this), - device_rs232_port_interface(mconfig, *this), - m_response_index(0), + device_rs232_port_interface(mconfig, *this), + m_response_index(0), m_timer_response(nullptr) { } diff --git a/src/devices/bus/s100/s100.cpp b/src/devices/bus/s100/s100.cpp index 915c2c3c68a..da63653b737 100644 --- a/src/devices/bus/s100/s100.cpp +++ b/src/devices/bus/s100/s100.cpp @@ -27,8 +27,8 @@ const device_type S100_SLOT = &device_creator<s100_slot_t>; //------------------------------------------------- device_s100_card_interface::device_s100_card_interface(const machine_config &mconfig, device_t &device) - : device_slot_card_interface(mconfig, device), - m_bus(nullptr), + : device_slot_card_interface(mconfig, device), + m_bus(nullptr), m_next(nullptr) { } diff --git a/src/devices/bus/scsi/scsi.cpp b/src/devices/bus/scsi/scsi.cpp index 66c0894dff2..ad94fd380fa 100644 --- a/src/devices/bus/scsi/scsi.cpp +++ b/src/devices/bus/scsi/scsi.cpp @@ -21,7 +21,7 @@ SCSI_PORT_DEVICE::SCSI_PORT_DEVICE(const machine_config &mconfig, const char *ta m_data4_handler(*this), m_data5_handler(*this), m_data6_handler(*this), - m_data7_handler(*this), + m_data7_handler(*this), m_device_count(0), m_bsy_in(0), m_sel_in(0), @@ -29,7 +29,7 @@ SCSI_PORT_DEVICE::SCSI_PORT_DEVICE(const machine_config &mconfig, const char *ta m_io_in(0), m_msg_in(0), m_req_in(0), - m_ack_in(0), + m_ack_in(0), m_atn_in(0), m_rst_in(0), m_data0_in(0), @@ -46,7 +46,7 @@ SCSI_PORT_DEVICE::SCSI_PORT_DEVICE(const machine_config &mconfig, const char *ta m_io_out(0), m_msg_out(0), m_req_out(0), - m_ack_out(0), + m_ack_out(0), m_atn_out(0), m_rst_out(0), m_data0_out(0), diff --git a/src/devices/bus/scsi/scsihle.cpp b/src/devices/bus/scsi/scsihle.cpp index 274b3cdeacb..43b8fb04100 100644 --- a/src/devices/bus/scsi/scsihle.cpp +++ b/src/devices/bus/scsi/scsihle.cpp @@ -13,15 +13,15 @@ Base class for HLE'd SCSI devices. scsihle_device::scsihle_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : device_t(mconfig, type, name, tag, owner, clock, shortname, source), scsi_port_interface(mconfig, *this), - m_scsi_id(*this, "SCSI_ID"), - req_timer(NULL), - sel_timer(NULL), + m_scsi_id(*this, "SCSI_ID"), + req_timer(NULL), + sel_timer(NULL), dataout_timer(NULL), - cmd_idx(0), - is_linked(0), - data_idx(0), - bytes_left(0), - data_last(0), + cmd_idx(0), + is_linked(0), + data_idx(0), + bytes_left(0), + data_last(0), scsiID(0), m_input_data(0) { diff --git a/src/devices/bus/snes/bsx.cpp b/src/devices/bus/snes/bsx.cpp index 004ce9d3dab..2ab77830b41 100644 --- a/src/devices/bus/snes/bsx.cpp +++ b/src/devices/bus/snes/bsx.cpp @@ -25,13 +25,13 @@ const device_type SNS_BSMEMPAK = &device_creator<sns_rom_bsmempak_device>; sns_rom_bsx_device::sns_rom_bsx_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) - : sns_rom_device(mconfig, type, name, tag, owner, clock, shortname, source), - m_base_unit(nullptr), + : sns_rom_device(mconfig, type, name, tag, owner, clock, shortname, source), + m_base_unit(nullptr), access_00_1f(0), - access_80_9f(0), - access_40_4f(0), - access_50_5f(0), - access_60_6f(0), + access_80_9f(0), + access_40_4f(0), + access_50_5f(0), + access_60_6f(0), rom_access(0), m_slot(*this, "bs_slot") { diff --git a/src/devices/bus/snes/event.cpp b/src/devices/bus/snes/event.cpp index ea1308e6a32..ef39d9fbce6 100644 --- a/src/devices/bus/snes/event.cpp +++ b/src/devices/bus/snes/event.cpp @@ -22,14 +22,14 @@ const device_type SNS_PFEST94 = &device_creator<sns_pfest94_device>; sns_pfest94_device::sns_pfest94_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, SNS_PFEST94, "SNES Powerfest '94", tag, owner, clock, "sns_pfest94", __FILE__), - device_sns_cart_interface(mconfig, *this), - m_upd7725(*this, "dsp"), - m_dsw(*this, "DIPSW"), - m_base_bank(0), - m_mask(0), - m_status(0), - m_count(0), - pfest94_timer(nullptr) + device_sns_cart_interface(mconfig, *this), + m_upd7725(*this, "dsp"), + m_dsw(*this, "DIPSW"), + m_base_bank(0), + m_mask(0), + m_status(0), + m_count(0), + pfest94_timer(nullptr) { } diff --git a/src/devices/bus/snes/sdd1.h b/src/devices/bus/snes/sdd1.h index 6448e994ee1..be7604cff92 100644 --- a/src/devices/bus/snes/sdd1.h +++ b/src/devices/bus/snes/sdd1.h @@ -10,8 +10,8 @@ class SDD1_IM //Input Manager { public: - SDD1_IM(): - m_byte_ptr(0), + SDD1_IM(): + m_byte_ptr(0), m_bit_count(0) { } @@ -38,9 +38,9 @@ class SDD1_BG // Bits Generator public: SDD1_BG(SDD1_GCD* associatedGCD, UINT8 code) : m_code_num(code), - m_MPScount(0), - m_LPSind(0), - m_GCD(associatedGCD) + m_MPScount(0), + m_LPSind(0), + m_GCD(associatedGCD) { } diff --git a/src/devices/bus/snes/spc7110.cpp b/src/devices/bus/snes/spc7110.cpp index 6face9f6b26..156b26c0df4 100644 --- a/src/devices/bus/snes/spc7110.cpp +++ b/src/devices/bus/snes/spc7110.cpp @@ -25,10 +25,10 @@ const device_type SNS_HIROM_SPC7110_RTC = &device_creator<sns_rom_spc7110rtc_dev sns_rom_spc7110_device::sns_rom_spc7110_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) - : sns_rom21_device(mconfig, type, name, tag, owner, clock, shortname, source), m_r4801(0), m_r4802(0), m_r4803(0), m_r4804(0), m_r4805(0), m_r4806(0), m_r4807(0), - m_r4808(0), m_r4809(0), m_r480a(0), m_r480b(0), m_r480c(0), m_decomp(nullptr), m_r4811(0), m_r4812(0), m_r4813(0), m_r4814(0), m_r4815(0), m_r4816(0), m_r4817(0), m_r4818(0), - m_r481x(0), m_r4814_latch(0), m_r4815_latch(0), m_r4820(0), m_r4821(0), m_r4822(0), m_r4823(0), m_r4824(0), m_r4825(0), m_r4826(0), m_r4827(0), m_r4828(0), m_r4829(0), m_r482a(0), - m_r482b(0), m_r482c(0), m_r482d(0), m_r482e(0), m_r482f(0), m_r4830(0), m_r4831(0), m_r4832(0), m_r4833(0), m_r4834(0), m_dx_offset(0), m_ex_offset(0), m_fx_offset(0), m_r4840(0), + : sns_rom21_device(mconfig, type, name, tag, owner, clock, shortname, source), m_r4801(0), m_r4802(0), m_r4803(0), m_r4804(0), m_r4805(0), m_r4806(0), m_r4807(0), + m_r4808(0), m_r4809(0), m_r480a(0), m_r480b(0), m_r480c(0), m_decomp(nullptr), m_r4811(0), m_r4812(0), m_r4813(0), m_r4814(0), m_r4815(0), m_r4816(0), m_r4817(0), m_r4818(0), + m_r481x(0), m_r4814_latch(0), m_r4815_latch(0), m_r4820(0), m_r4821(0), m_r4822(0), m_r4823(0), m_r4824(0), m_r4825(0), m_r4826(0), m_r4827(0), m_r4828(0), m_r4829(0), m_r482a(0), + m_r482b(0), m_r482c(0), m_r482d(0), m_r482e(0), m_r482f(0), m_r4830(0), m_r4831(0), m_r4832(0), m_r4833(0), m_r4834(0), m_dx_offset(0), m_ex_offset(0), m_fx_offset(0), m_r4840(0), m_r4841(0), m_r4842(0), m_rtc_state(0), m_rtc_mode(0), m_rtc_index(0), m_rtc_offset(0) { } diff --git a/src/devices/bus/ti99_peb/evpc.cpp b/src/devices/bus/ti99_peb/evpc.cpp index 351efe7d70b..ee7b4cd77a2 100644 --- a/src/devices/bus/ti99_peb/evpc.cpp +++ b/src/devices/bus/ti99_peb/evpc.cpp @@ -26,10 +26,10 @@ snug_enhanced_video_device::snug_enhanced_video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ti_expansion_card_device(mconfig, TI99_EVPC, "SNUG Enhanced Video Processor Card", tag, owner, clock, "ti99_evpc", __FILE__), - device_nvram_interface(mconfig, *this), - m_dsrrom(nullptr), - m_RAMEN(false), - m_dsr_page(0), + device_nvram_interface(mconfig, *this), + m_dsrrom(nullptr), + m_RAMEN(false), + m_dsr_page(0), m_novram(nullptr) { } diff --git a/src/devices/bus/ti99_peb/hfdc.cpp b/src/devices/bus/ti99_peb/hfdc.cpp index 8982e7acb2d..4d14da46fc2 100644 --- a/src/devices/bus/ti99_peb/hfdc.cpp +++ b/src/devices/bus/ti99_peb/hfdc.cpp @@ -90,8 +90,8 @@ myarc_hfdc_device::myarc_hfdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : ti_expansion_card_device(mconfig, TI99_HFDC, "Myarc Hard and Floppy Disk Controller", tag, owner, clock, "ti99_hfdc", __FILE__), m_motor_on_timer(nullptr), m_hdc9234(*this, FDC_TAG), - m_clock(*this, CLOCK_TAG), m_current_floppy(nullptr), m_current_harddisk(nullptr), m_see_switches(false), m_irq(), m_dip(), m_motor_running(false), - m_inDsrArea(false), m_HDCsel(false), m_RTCsel(false), m_tapesel(false), m_RAMsel(false), m_ROMsel(false), m_address(0), m_dma_in_progress(false), + m_clock(*this, CLOCK_TAG), m_current_floppy(nullptr), m_current_harddisk(nullptr), m_see_switches(false), m_irq(), m_dip(), m_motor_running(false), + m_inDsrArea(false), m_HDCsel(false), m_RTCsel(false), m_tapesel(false), m_RAMsel(false), m_ROMsel(false), m_address(0), m_dma_in_progress(false), m_wait_for_hd1(false), m_dsrrom(nullptr), m_rom_page(0), m_buffer_ram(nullptr), m_status_latch(0), m_dma_address(0), m_output1_latch(0), m_output2_latch(0), m_lastval(0), m_MOTOR_ON(), m_readyflags(0) { } diff --git a/src/devices/bus/ti99_peb/hsgpl.cpp b/src/devices/bus/ti99_peb/hsgpl.cpp index 14dc8bac20a..7f75f23ca25 100644 --- a/src/devices/bus/ti99_peb/hsgpl.cpp +++ b/src/devices/bus/ti99_peb/hsgpl.cpp @@ -140,8 +140,8 @@ #define ROM6_EEPROM "u6_rom6" snug_high_speed_gpl_device::snug_high_speed_gpl_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) -: ti_expansion_card_device(mconfig, TI99_HSGPL, "SNUG High-speed GPL card", tag, owner, clock, "ti99_hsgpl", __FILE__), m_dsr_eeprom(nullptr), -m_rom6_eeprom(nullptr), m_grom_a_eeprom(nullptr), m_grom_b_eeprom(nullptr), m_ram6_memory(nullptr), m_gram_memory(nullptr), m_dsr_enabled(false), +: ti_expansion_card_device(mconfig, TI99_HSGPL, "SNUG High-speed GPL card", tag, owner, clock, "ti99_hsgpl", __FILE__), m_dsr_eeprom(nullptr), +m_rom6_eeprom(nullptr), m_grom_a_eeprom(nullptr), m_grom_b_eeprom(nullptr), m_ram6_memory(nullptr), m_gram_memory(nullptr), m_dsr_enabled(false), m_gram_enabled(false), m_bank_inhibit(false), m_dsr_page(0), m_card_enabled(false), m_write_enabled(false), m_supercart_enabled(false), m_led_on(false), m_mbx_enabled(false), m_ram_enabled(false), m_flash_mode(false), m_current_grom_port(0), m_current_bank(0), m_module_bank(0), m_waddr_LSB(false), m_raddr_LSB(false), m_grom_address(0) { diff --git a/src/devices/bus/ti99_peb/memex.cpp b/src/devices/bus/ti99_peb/memex.cpp index 1a56fe6a492..7fdf4dba607 100644 --- a/src/devices/bus/ti99_peb/memex.cpp +++ b/src/devices/bus/ti99_peb/memex.cpp @@ -33,9 +33,9 @@ enum }; geneve_memex_device::geneve_memex_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) -: ti_expansion_card_device(mconfig, TI99_MEMEX, "Geneve memory expansion card", tag, owner, clock, "ti99_memex", __FILE__), - m_ram(nullptr), - m_genmod(0) +: ti_expansion_card_device(mconfig, TI99_MEMEX, "Geneve memory expansion card", tag, owner, clock, "ti99_memex", __FILE__), + m_ram(nullptr), + m_genmod(0) { } diff --git a/src/devices/bus/ti99_peb/myarcmem.cpp b/src/devices/bus/ti99_peb/myarcmem.cpp index 0ccd0f4178a..159152ddef5 100644 --- a/src/devices/bus/ti99_peb/myarcmem.cpp +++ b/src/devices/bus/ti99_peb/myarcmem.cpp @@ -45,7 +45,7 @@ enum }; myarc_memory_expansion_device::myarc_memory_expansion_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) -: ti_expansion_card_device(mconfig, TI99_MYARCMEM, "Myarc Memory expansion card MEXP-1", tag, owner, clock, "ti99_myarcmem", __FILE__), +: ti_expansion_card_device(mconfig, TI99_MYARCMEM, "Myarc Memory expansion card MEXP-1", tag, owner, clock, "ti99_myarcmem", __FILE__), m_ram(nullptr), m_dsrrom(nullptr), m_bank(0), m_size(0) { } diff --git a/src/devices/bus/ti99_peb/ti_fdc.cpp b/src/devices/bus/ti99_peb/ti_fdc.cpp index a7cb3a8bb45..de7dab8148b 100644 --- a/src/devices/bus/ti99_peb/ti_fdc.cpp +++ b/src/devices/bus/ti99_peb/ti_fdc.cpp @@ -48,7 +48,7 @@ #define TI_FDC_TAG "ti_dssd_controller" ti_fdc_device::ti_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : ti_expansion_card_device(mconfig, TI99_FDC, "TI-99 Standard DSSD Floppy Controller", tag, owner, clock, "ti99_fdc", __FILE__), m_address(0), m_DRQ(), m_IRQ(), + : ti_expansion_card_device(mconfig, TI99_FDC, "TI-99 Standard DSSD Floppy Controller", tag, owner, clock, "ti99_fdc", __FILE__), m_address(0), m_DRQ(), m_IRQ(), m_lastval(0), m_DVENA(), m_inDsrArea(false), m_WAITena(false), m_WDsel(false), m_DSEL(0), m_SIDSEL(), m_motor_on_timer(nullptr), m_fd1771(*this, FDC_TAG), m_dsrrom(nullptr), m_current_floppy(nullptr), m_debug_dataout(false) { } diff --git a/src/devices/bus/ti99_peb/tn_ide.cpp b/src/devices/bus/ti99_peb/tn_ide.cpp index b371a1937d4..f9e16d8eef7 100644 --- a/src/devices/bus/ti99_peb/tn_ide.cpp +++ b/src/devices/bus/ti99_peb/tn_ide.cpp @@ -50,9 +50,9 @@ enum }; nouspikel_ide_interface_device::nouspikel_ide_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : ti_expansion_card_device(mconfig, TI99_IDE, "Nouspikel IDE interface card", tag, owner, clock, "ti99_ide", __FILE__), m_ata_irq(false), + : ti_expansion_card_device(mconfig, TI99_IDE, "Nouspikel IDE interface card", tag, owner, clock, "ti99_ide", __FILE__), m_ata_irq(false), m_cru_register(0), m_rtc(nullptr), - m_ata(*this, "ata"), m_clk_irq(false), m_sram_enable(false), m_sram_enable_dip(false), m_cur_page(0), m_tms9995_mode(false), + m_ata(*this, "ata"), m_clk_irq(false), m_sram_enable(false), m_sram_enable_dip(false), m_cur_page(0), m_tms9995_mode(false), m_input_latch(0), m_output_latch(0), m_ram(nullptr) { } diff --git a/src/devices/bus/ti99_peb/tn_usbsm.cpp b/src/devices/bus/ti99_peb/tn_usbsm.cpp index 7f5f79e0e4f..63662ce692a 100644 --- a/src/devices/bus/ti99_peb/tn_usbsm.cpp +++ b/src/devices/bus/ti99_peb/tn_usbsm.cpp @@ -52,7 +52,7 @@ enum }; nouspikel_usb_smartmedia_device::nouspikel_usb_smartmedia_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) -: ti_expansion_card_device(mconfig, TI99_USBSM, "Nouspikel USB/Smartmedia card", tag, owner, clock, "ti99_usbsm", __FILE__), +: ti_expansion_card_device(mconfig, TI99_USBSM, "Nouspikel USB/Smartmedia card", tag, owner, clock, "ti99_usbsm", __FILE__), m_feeprom_page(0), m_sram_page(0), m_cru_register(0), m_tms9995_mode(false), m_enable_io(false), m_enable_int(false), m_enable_sm(false), m_write_flash(false), m_input_latch(0), m_output_latch(0), m_smartmedia(*this, "smartmedia"), diff --git a/src/devices/bus/ti99x/990_dk.cpp b/src/devices/bus/ti99x/990_dk.cpp index b9e13091837..058d3f7665f 100644 --- a/src/devices/bus/ti99x/990_dk.cpp +++ b/src/devices/bus/ti99x/990_dk.cpp @@ -43,7 +43,7 @@ enum const device_type FD800 = &device_creator<fd800_legacy_device>; fd800_legacy_device::fd800_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, FD800, "TI FD800 Diablo floppy disk controller", tag, owner, clock, "fd800", __FILE__), + : device_t(mconfig, FD800, "TI FD800 Diablo floppy disk controller", tag, owner, clock, "fd800", __FILE__), m_recv_buf(0), m_stat_reg(0), m_xmit_buf(0), m_cmd_reg(0), m_interrupt_f_f(0), m_int_line(*this), m_buf_pos(0), m_buf_mode(), m_unit(0), m_sector(0) { diff --git a/src/devices/bus/ti99x/genboard.cpp b/src/devices/bus/ti99x/genboard.cpp index e82d5fc1a8b..62832d809a4 100644 --- a/src/devices/bus/ti99x/genboard.cpp +++ b/src/devices/bus/ti99x/genboard.cpp @@ -1468,8 +1468,8 @@ static const UINT8 MF1_CODE[0xe] = geneve_keyboard_device::geneve_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, GENEVE_KEYBOARD, "Geneve XT-style keyboard", tag, owner, clock, "geneve_keyboard", __FILE__), - m_interrupt(*this), m_key_reset(false), m_key_queue_length(0), m_key_queue_head(0), m_key_in_buffer(false), m_key_numlock_state(false), m_key_ctrl_state(0), m_key_alt_state(0), - m_key_real_shift_state(0), m_key_fake_shift_state(false), m_key_fake_unshift_state(false), m_key_autorepeat_key(0), m_key_autorepeat_timer(0), m_keep_keybuf(false), + m_interrupt(*this), m_key_reset(false), m_key_queue_length(0), m_key_queue_head(0), m_key_in_buffer(false), m_key_numlock_state(false), m_key_ctrl_state(0), m_key_alt_state(0), + m_key_real_shift_state(0), m_key_fake_shift_state(false), m_key_fake_unshift_state(false), m_key_autorepeat_key(0), m_key_autorepeat_timer(0), m_keep_keybuf(false), m_keyboard_clock(false), m_timer(nullptr) { } diff --git a/src/devices/bus/ti99x/videowrp.cpp b/src/devices/bus/ti99x/videowrp.cpp index bb6f01f6a89..6f09da722e7 100644 --- a/src/devices/bus/ti99x/videowrp.cpp +++ b/src/devices/bus/ti99x/videowrp.cpp @@ -28,7 +28,7 @@ Constructors */ ti_video_device::ti_video_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) -: bus8z_device(mconfig, type, name, tag, owner, clock, shortname, source), +: bus8z_device(mconfig, type, name, tag, owner, clock, shortname, source), m_tms9928a(nullptr) { } diff --git a/src/devices/bus/tiki100/exp.cpp b/src/devices/bus/tiki100/exp.cpp index 36b2b78811c..9ec594375b2 100644 --- a/src/devices/bus/tiki100/exp.cpp +++ b/src/devices/bus/tiki100/exp.cpp @@ -29,8 +29,8 @@ const device_type TIKI100_BUS_SLOT = &device_creator<tiki100_bus_slot_t>; tiki100_bus_slot_t::tiki100_bus_slot_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, TIKI100_BUS_SLOT, "TIKI-100 expansion bus slot", tag, owner, clock, "tiki100bus_slot", __FILE__), device_slot_interface(mconfig, *this), - device_z80daisy_interface(mconfig, *this), - m_bus(nullptr), + device_z80daisy_interface(mconfig, *this), + m_bus(nullptr), m_card(nullptr) { } diff --git a/src/devices/bus/vcs/harmony_melody.cpp b/src/devices/bus/vcs/harmony_melody.cpp index d6bf0291fdc..af5b09e0d8a 100644 --- a/src/devices/bus/vcs/harmony_melody.cpp +++ b/src/devices/bus/vcs/harmony_melody.cpp @@ -38,18 +38,18 @@ http://atariage.com/forums/blog/148/entry-11964-dpcarm-part-10-score-timer-displ http://atariage.com/forums/blog/148/entry-11988-dpcarm-part-12-gamepad-support/ map: - Bankswitching uses addresses $FFF6-$FFFB - - * ARM RAM mapped at $40000000 in this area - $0000-$0BFF: HARMONY/MELODY driver (not accessible by 2600 itself) (copied to $40000000 - $40000bff on startup by ARM) - $0C00-$1BFF: Bank 0 (each bank can map to 0x1000 - 0x1fff in 6507 space, like other carts) - $1C00-$2BFF: Bank 1 - $2C00-$3BFF: Bank 2 - $3C00-$4BFF: Bank 3 - $4C00-$5BFF: Bank 4 - $5C00-$6BFF: Bank 5 (default bank is bank 5) - $6C00-$7BFF: Display Data (indirect access) (copied to $40000C00 - $40001bff on startup by ARM) - $7C00-$7FFF: Synth Frequency Data (not accessible by 2600 itself) (copied to $40001C00 - $40001fff on startup by ARM) + Bankswitching uses addresses $FFF6-$FFFB + + * ARM RAM mapped at $40000000 in this area + $0000-$0BFF: HARMONY/MELODY driver (not accessible by 2600 itself) (copied to $40000000 - $40000bff on startup by ARM) + $0C00-$1BFF: Bank 0 (each bank can map to 0x1000 - 0x1fff in 6507 space, like other carts) + $1C00-$2BFF: Bank 1 + $2C00-$3BFF: Bank 2 + $3C00-$4BFF: Bank 3 + $4C00-$5BFF: Bank 4 + $5C00-$6BFF: Bank 5 (default bank is bank 5) + $6C00-$7BFF: Display Data (indirect access) (copied to $40000C00 - $40001bff on startup by ARM) + $7C00-$7FFF: Synth Frequency Data (not accessible by 2600 itself) (copied to $40001C00 - $40001fff on startup by ARM) ***************************************************************************/ @@ -142,5 +142,5 @@ READ8_MEMBER(a26_rom_harmony_device::read_rom) WRITE8_MEMBER(a26_rom_harmony_device::write_bank) { check_bankswitch(offset); -// a26_rom_f8_device::write_bank(space, offset, data); +// a26_rom_f8_device::write_bank(space, offset, data); } diff --git a/src/devices/bus/vcs/harmony_melody.h b/src/devices/bus/vcs/harmony_melody.h index 004a2ea61f7..4d704b39c75 100644 --- a/src/devices/bus/vcs/harmony_melody.h +++ b/src/devices/bus/vcs/harmony_melody.h @@ -24,7 +24,7 @@ public: virtual DECLARE_READ8_MEMBER(read_rom); virtual DECLARE_WRITE8_MEMBER(write_bank); - + DECLARE_READ8_MEMBER(read8_r); void check_bankswitch(offs_t offset); diff --git a/src/devices/bus/vcs/scharger.cpp b/src/devices/bus/vcs/scharger.cpp index 57366f05186..aeebde0f4c6 100644 --- a/src/devices/bus/vcs/scharger.cpp +++ b/src/devices/bus/vcs/scharger.cpp @@ -42,14 +42,14 @@ const device_type A26_ROM_SUPERCHARGER = &device_creator<a26_rom_ss_device>; a26_rom_ss_device::a26_rom_ss_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : a26_rom_f6_device(mconfig, A26_ROM_SUPERCHARGER, "Atari 2600 ROM Cart Supercharger", tag, owner, clock, "a2600_ss", __FILE__), - m_cassette(*this, "cassette"), - m_maincpu(nullptr), - m_reg(0), - m_write_delay(0), - m_ram_write_enabled(0), - m_rom_enabled(0), - m_byte_started(0), - m_last_address(0), + m_cassette(*this, "cassette"), + m_maincpu(nullptr), + m_reg(0), + m_write_delay(0), + m_ram_write_enabled(0), + m_rom_enabled(0), + m_byte_started(0), + m_last_address(0), m_diff_adjust(0) { } diff --git a/src/devices/bus/wangpc/wangpc.cpp b/src/devices/bus/wangpc/wangpc.cpp index 487db67e80e..d3aebaf1fac 100644 --- a/src/devices/bus/wangpc/wangpc.cpp +++ b/src/devices/bus/wangpc/wangpc.cpp @@ -28,8 +28,8 @@ const device_type WANGPC_BUS_SLOT = &device_creator<wangpcbus_slot_device>; wangpcbus_slot_device::wangpcbus_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, WANGPC_BUS_SLOT, "Wang PC bus slot", tag, owner, clock, "wangpcbus_slot", __FILE__), - device_slot_interface(mconfig, *this), - m_bus(nullptr), + device_slot_interface(mconfig, *this), + m_bus(nullptr), m_sid(0) { } diff --git a/src/devices/bus/x68k/x68k_neptunex.cpp b/src/devices/bus/x68k/x68k_neptunex.cpp index c1b47f944af..1b97427be3e 100644 --- a/src/devices/bus/x68k/x68k_neptunex.cpp +++ b/src/devices/bus/x68k/x68k_neptunex.cpp @@ -30,7 +30,7 @@ machine_config_constructor x68k_neptune_device::device_mconfig_additions() const x68k_neptune_device::x68k_neptune_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, X68K_NEPTUNEX, "Neptune-X", tag, owner, clock, "x68k_neptunex", __FILE__), - device_x68k_expansion_card_interface(mconfig, *this), + device_x68k_expansion_card_interface(mconfig, *this), m_slot(nullptr), m_dp8390(*this, "dp8390d") { diff --git a/src/devices/cpu/alto2/a2emu.cpp b/src/devices/cpu/alto2/a2emu.cpp index 9152f936002..57f6e4ece76 100644 --- a/src/devices/cpu/alto2/a2emu.cpp +++ b/src/devices/cpu/alto2/a2emu.cpp @@ -607,11 +607,11 @@ void alto2_cpu_device::f2_late_idisp() LOG((this,LOG_EMU,2," IDISP<-; branch on SH^3 (%#o|%#o)\n", m_next2, r)); } else { //int addr = CTL2K_U3(f2_emu_idisp) + X_RDBITS(m_emu.ir,16,1,7); - // The above line triggers the following warning in PVS-Studio: - // V501: There are identical sub-expressions to the left and to the right of the '==' operator: f2_emu_idisp == f2_emu_idisp - // This is because CTL2K_U3(f2) checks f2 == f2_emu_idisp, and so will always evaluate to true in this case. - // Consider checking if this is a typo or if it is correct. - int addr = 0x80 + X_RDBITS(m_emu.ir,16,1,7); + // The above line triggers the following warning in PVS-Studio: + // V501: There are identical sub-expressions to the left and to the right of the '==' operator: f2_emu_idisp == f2_emu_idisp + // This is because CTL2K_U3(f2) checks f2 == f2_emu_idisp, and so will always evaluate to true in this case. + // Consider checking if this is a typo or if it is correct. + int addr = 0x80 + X_RDBITS(m_emu.ir,16,1,7); /* 0???????xxxxxxxx */ r = m_ctl2k_u3[addr]; LOG((this,LOG_EMU,2," IDISP<-; IR (%#o) branch on PROM ctl2k_u3[%03o] (%#o|%#o)\n", m_emu.ir, addr, m_next2, r)); diff --git a/src/devices/cpu/arm7/lpc210x.cpp b/src/devices/cpu/arm7/lpc210x.cpp index 72388cf18f6..61b7a50f592 100644 --- a/src/devices/cpu/arm7/lpc210x.cpp +++ b/src/devices/cpu/arm7/lpc210x.cpp @@ -18,12 +18,12 @@ const device_type LPC2103 = &device_creator<lpc210x_device>; static ADDRESS_MAP_START( lpc2103_map, AS_PROGRAM, 32, lpc210x_device ) AM_RANGE(0x00000000, 0x00007fff) AM_READWRITE(flash_r, flash_w) // 32kb internal FLASH rom - + AM_RANGE(0x3FFFC000, 0x3FFFC01f) AM_READWRITE( fio_r, fio_w ) // GPIO - + AM_RANGE(0x40000000, 0x40001fff) AM_RAM // 8kb internal SROM (writes should actually latch - see docs) - + AM_RANGE(0xE0004000, 0xE000407f) AM_READWRITE( timer0_r, timer0_w) AM_RANGE(0xE0008000, 0xE000807f) AM_READWRITE( timer1_r, timer1_w) @@ -41,7 +41,7 @@ ADDRESS_MAP_END lpc210x_device::lpc210x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : arm7_cpu_device(mconfig, LPC2103, "LPC2103", tag, owner, clock, "lpc2103", __FILE__, 4, eARM_ARCHFLAGS_T, ENDIANNESS_LITTLE), - m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0, ADDRESS_MAP_NAME(lpc2103_map)) + m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0, ADDRESS_MAP_NAME(lpc2103_map)) { } @@ -53,15 +53,15 @@ READ32_MEMBER(lpc210x_device::arm_E01FC088_r) READ32_MEMBER(lpc210x_device::flash_r) { UINT32 ret = (m_flash[offset * 4 + 3] << 24) | - (m_flash[offset * 4 + 2] << 16) | - (m_flash[offset * 4 + 1] << 8) | - (m_flash[offset * 4 + 0] << 0); + (m_flash[offset * 4 + 2] << 16) | + (m_flash[offset * 4 + 1] << 8) | + (m_flash[offset * 4 + 0] << 0); return ret; } WRITE32_MEMBER(lpc210x_device::flash_w) { - // + // } diff --git a/src/devices/cpu/e0c6200/e0c6200.h b/src/devices/cpu/e0c6200/e0c6200.h index b4769cf19e3..d32fc6c7b6c 100644 --- a/src/devices/cpu/e0c6200/e0c6200.h +++ b/src/devices/cpu/e0c6200/e0c6200.h @@ -19,7 +19,7 @@ public: e0c6200_cpu_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor program, address_map_constructor data, const char *shortname, const char *source) : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source) , m_program_config("program", ENDIANNESS_BIG, 16, 13, -1, program) - , m_data_config("data", ENDIANNESS_BIG, 8, 12, 0, data), m_program(nullptr), m_data(nullptr), m_op(0), m_prev_op(0), m_irq_vector(0), m_irq_id(0), m_possible_irq(false), m_halt(false), + , m_data_config("data", ENDIANNESS_BIG, 8, 12, 0, data), m_program(nullptr), m_data(nullptr), m_op(0), m_prev_op(0), m_irq_vector(0), m_irq_id(0), m_possible_irq(false), m_halt(false), m_sleep(false), m_icount(0), m_pc(0), m_prev_pc(0), m_npc(0), m_jpc(0), m_a(0), m_b(0), m_xp(0), m_xh(0), m_xl(0), m_yp(0), m_yh(0), m_yl(0), m_sp(0), m_f(0) { } diff --git a/src/devices/cpu/e0c6200/e0c6s46.cpp b/src/devices/cpu/e0c6200/e0c6s46.cpp index 21d7813eb25..66f4cb9855a 100644 --- a/src/devices/cpu/e0c6200/e0c6s46.cpp +++ b/src/devices/cpu/e0c6200/e0c6s46.cpp @@ -49,11 +49,11 @@ e0c6s46_device::e0c6s46_device(const machine_config &mconfig, const char *tag, d : e0c6200_cpu_device(mconfig, E0C6S46, "E0C6S46", tag, owner, clock, ADDRESS_MAP_NAME(e0c6s46_program), ADDRESS_MAP_NAME(e0c6s46_data), "e0c6s46", __FILE__) , m_vram1(*this, "vram1") , m_vram2(*this, "vram2"), m_osc(0), m_svd(0), m_lcd_control(0), m_lcd_contrast(0) - , m_pixel_update_handler(nullptr) + , m_pixel_update_handler(nullptr) , m_write_r0(*this), m_write_r1(*this), m_write_r2(*this), m_write_r3(*this), m_write_r4(*this) , m_read_p0(*this), m_read_p1(*this), m_read_p2(*this), m_read_p3(*this) - , m_write_p0(*this), m_write_p1(*this), m_write_p2(*this), m_write_p3(*this), m_r_dir(0), m_p_dir(0), m_p_pullup(0), m_dfk0(0), m_256_src_pulse(0), m_core_256_handle(nullptr), - m_watchdog_count(0), m_clktimer_count(0), m_stopwatch_on(0), m_swl_cur_pulse(0), m_swl_slice(0), m_swl_count(0), m_swh_count(0), m_prgtimer_select(0), m_prgtimer_on(0), m_prgtimer_src_pulse(0), + , m_write_p0(*this), m_write_p1(*this), m_write_p2(*this), m_write_p3(*this), m_r_dir(0), m_p_dir(0), m_p_pullup(0), m_dfk0(0), m_256_src_pulse(0), m_core_256_handle(nullptr), + m_watchdog_count(0), m_clktimer_count(0), m_stopwatch_on(0), m_swl_cur_pulse(0), m_swl_slice(0), m_swl_count(0), m_swh_count(0), m_prgtimer_select(0), m_prgtimer_on(0), m_prgtimer_src_pulse(0), m_prgtimer_cur_pulse(0), m_prgtimer_count(0), m_prgtimer_reload(0), m_prgtimer_handle(nullptr), m_bz_43_on(0), m_bz_freq(0), m_bz_envelope(0), m_bz_duty_ratio(0), m_bz_1shot_on(0), m_bz_1shot_running(false), m_bz_1shot_count(0), m_bz_pulse(0), m_buzzer_handle(nullptr) { } diff --git a/src/devices/cpu/h8/h8.cpp b/src/devices/cpu/h8/h8.cpp index fee0c40a639..79a803c1a5c 100644 --- a/src/devices/cpu/h8/h8.cpp +++ b/src/devices/cpu/h8/h8.cpp @@ -16,7 +16,7 @@ h8_device::h8_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, bool mode_a16, address_map_delegate map_delegate) : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source), program_config("program", ENDIANNESS_BIG, 16, mode_a16 ? 16 : 24, 0, map_delegate), - io_config("io", ENDIANNESS_BIG, 16, 16, -1), program(nullptr), io(nullptr), direct(nullptr), PPC(0), NPC(0), PC(0), PIR(0), EXR(0), CCR(0), MAC(0), MACF(0), + io_config("io", ENDIANNESS_BIG, 16, 16, -1), program(nullptr), io(nullptr), direct(nullptr), PPC(0), NPC(0), PC(0), PIR(0), EXR(0), CCR(0), MAC(0), MACF(0), TMP1(0), TMP2(0), TMPR(0), inst_state(0), inst_substate(0), icount(0), bcount(0), irq_vector(0), taken_irq_vector(0), irq_level(0), taken_irq_level(0), irq_required(false), irq_nmi(false) { supports_advanced = false; diff --git a/src/devices/cpu/h8/h8_adc.cpp b/src/devices/cpu/h8/h8_adc.cpp index a105a1c926e..7e76bf28114 100644 --- a/src/devices/cpu/h8/h8_adc.cpp +++ b/src/devices/cpu/h8/h8_adc.cpp @@ -12,7 +12,7 @@ const device_type H8_ADC_2655 = &device_creator<h8_adc_2655_device>; h8_adc_device::h8_adc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : device_t(mconfig, type, name, tag, owner, clock, shortname, source), - cpu(*this, DEVICE_SELF_OWNER), intc(nullptr), io(nullptr), intc_tag(nullptr), intc_vector(0), adcsr(0), adcr(0), register_mask(0), trigger(0), start_mode(0), start_channel(0), + cpu(*this, DEVICE_SELF_OWNER), intc(nullptr), io(nullptr), intc_tag(nullptr), intc_vector(0), adcsr(0), adcr(0), register_mask(0), trigger(0), start_mode(0), start_channel(0), end_channel(0), start_count(0), mode(0), channel(0), count(0), analog_powered(false), adtrg(false), next_event(0) { suspend_on_interrupt = false; diff --git a/src/devices/cpu/h8/h8_sci.cpp b/src/devices/cpu/h8/h8_sci.cpp index b0b00a91f3b..f3b26bd8198 100644 --- a/src/devices/cpu/h8/h8_sci.cpp +++ b/src/devices/cpu/h8/h8_sci.cpp @@ -11,8 +11,8 @@ h8_sci_device::h8_sci_device(const machine_config &mconfig, const char *tag, dev device_t(mconfig, H8_SCI, "H8 Serial Communications Interface", tag, owner, clock, "h8_sci", __FILE__), cpu(*this, DEVICE_SELF_OWNER), tx_cb(*this), - clk_cb(*this), intc(nullptr), intc_tag(nullptr), external_to_internal_ratio(0), internal_to_external_ratio(0), sync_timer(nullptr), eri_int(0), rxi_int(0), txi_int(0), tei_int(0), - tx_state(0), rx_state(0), tx_bit(0), rx_bit(0), clock_state(0), clock_mode(0), tx_parity(0), rx_parity(0), ext_clock_counter(0), clock_value(false), ext_clock_value(false), rx_value(false), + clk_cb(*this), intc(nullptr), intc_tag(nullptr), external_to_internal_ratio(0), internal_to_external_ratio(0), sync_timer(nullptr), eri_int(0), rxi_int(0), txi_int(0), tei_int(0), + tx_state(0), rx_state(0), tx_bit(0), rx_bit(0), clock_state(0), clock_mode(0), tx_parity(0), rx_parity(0), ext_clock_counter(0), clock_value(false), ext_clock_value(false), rx_value(false), rdr(0), tdr(0), smr(0), scr(0), ssr(0), brr(0), rsr(0), tsr(0), clock_base(0), divider(0) { external_clock_period = attotime::never; diff --git a/src/devices/cpu/h8/h8_timer16.cpp b/src/devices/cpu/h8/h8_timer16.cpp index a796e7fcf82..2785e9b3ab8 100644 --- a/src/devices/cpu/h8/h8_timer16.cpp +++ b/src/devices/cpu/h8/h8_timer16.cpp @@ -12,7 +12,7 @@ const device_type H8S_TIMER16_CHANNEL = &device_creator<h8s_timer16_channel_devi h8_timer16_channel_device::h8_timer16_channel_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, H8_TIMER16_CHANNEL, "H8 16-bits timer channel", tag, owner, clock, "h8_16bits_timer_channel", __FILE__), - cpu(*this, "^^"), chained_timer(nullptr), intc(nullptr), intc_tag(nullptr), tier_mask(0), tgr_count(0), tbr_count(0), tgr_clearing(0), tcr(0), tier(0), ier(0), isr(0), clock_type(0), + cpu(*this, "^^"), chained_timer(nullptr), intc(nullptr), intc_tag(nullptr), tier_mask(0), tgr_count(0), tbr_count(0), tgr_clearing(0), tcr(0), tier(0), ier(0), isr(0), clock_type(0), clock_divider(0), tcnt(0), last_clock_update(0), event_time(0), phase(0), counter_cycle(0), counter_incrementing(false), channel_active(false) { chain_tag = NULL; diff --git a/src/devices/cpu/h8/h8_timer8.cpp b/src/devices/cpu/h8/h8_timer8.cpp index a7f4a5ba4ba..1359885d34f 100644 --- a/src/devices/cpu/h8/h8_timer8.cpp +++ b/src/devices/cpu/h8/h8_timer8.cpp @@ -8,7 +8,7 @@ const device_type H8H_TIMER8_CHANNEL = &device_creator<h8h_timer8_channel_device h8_timer8_channel_device::h8_timer8_channel_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, H8_TIMER8_CHANNEL, "H8 8-bits timer channel", tag, owner, clock, "h8_8bits_timer_channel", __FILE__), - cpu(*this, "^"), chained_timer(nullptr), intc(nullptr), chain_tag(nullptr), intc_tag(nullptr), irq_ca(0), irq_cb(0), irq_v(0), chain_type(0), tcr(0), tcsr(0), tcnt(0), extra_clock_bit(false), + cpu(*this, "^"), chained_timer(nullptr), intc(nullptr), chain_tag(nullptr), intc_tag(nullptr), irq_ca(0), irq_cb(0), irq_v(0), chain_type(0), tcr(0), tcsr(0), tcnt(0), extra_clock_bit(false), has_adte(false), has_ice(false), clock_type(0), clock_divider(0), clear_type(0), counter_cycle(0), last_clock_update(0), event_time(0) { } diff --git a/src/devices/cpu/hcd62121/hcd62121.cpp b/src/devices/cpu/hcd62121/hcd62121.cpp index 2fe0a889a9d..4371edc8407 100644 --- a/src/devices/cpu/hcd62121/hcd62121.cpp +++ b/src/devices/cpu/hcd62121/hcd62121.cpp @@ -33,7 +33,7 @@ hcd62121_cpu_device::hcd62121_cpu_device(const machine_config &mconfig, const ch : cpu_device(mconfig, HCD62121, "Hitachi HCD62121", tag, owner, clock, "hcd62121", __FILE__) , m_program_config("program", ENDIANNESS_BIG, 8, 24, 0) , m_io_config("io", ENDIANNESS_BIG, 8, 8, 0), m_prev_pc(0) - , m_sp(0) + , m_sp(0) , m_ip(0) , m_dsize(0) , m_cseg(0) diff --git a/src/devices/cpu/i4004/i4004.cpp b/src/devices/cpu/i4004/i4004.cpp index abd60548612..51258268e8a 100644 --- a/src/devices/cpu/i4004/i4004.cpp +++ b/src/devices/cpu/i4004/i4004.cpp @@ -525,4 +525,3 @@ offs_t i4004_cpu_device::disasm_disassemble(char *buffer, offs_t pc, const UINT8 extern CPU_DISASSEMBLE( i4004 ); return CPU_DISASSEMBLE_NAME(i4004)(this, buffer, pc, oprom, opram, options); } - diff --git a/src/devices/cpu/i8085/i8085.cpp b/src/devices/cpu/i8085/i8085.cpp index 94fb85be5df..53c2ca603c2 100644 --- a/src/devices/cpu/i8085/i8085.cpp +++ b/src/devices/cpu/i8085/i8085.cpp @@ -1005,24 +1005,24 @@ void i8085a_cpu_device::state_import(const device_state_entry &entry) { case I8085_SID: if (m_ietemp) - { - m_IM |= IM_SID; - } + { + m_IM |= IM_SID; + } else - { + { m_IM &= ~IM_SID; - } + } break; case I8085_INTE: if (m_ietemp) - { + { m_IM |= IM_IE; - } + } else - { + { m_IM &= ~IM_IE; - } + } break; default: diff --git a/src/devices/cpu/i960/i960.cpp b/src/devices/cpu/i960/i960.cpp index 0043e02254a..031ab5e1833 100644 --- a/src/devices/cpu/i960/i960.cpp +++ b/src/devices/cpu/i960/i960.cpp @@ -18,7 +18,7 @@ const device_type I960 = &device_creator<i960_cpu_device>; i960_cpu_device::i960_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : cpu_device(mconfig, I960, "i960kb", tag, owner, clock, "i960kb", __FILE__) - , m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0), m_rcache_pos(0), m_SAT(0), m_PRCB(0), m_PC(0), m_AC(0), m_IP(0), m_PIP(0), m_ICR(0), m_bursting(0), m_immediate_irq(0), + , m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0), m_rcache_pos(0), m_SAT(0), m_PRCB(0), m_PC(0), m_AC(0), m_IP(0), m_PIP(0), m_ICR(0), m_bursting(0), m_immediate_irq(0), m_immediate_vector(0), m_immediate_pri(0), m_program(nullptr), m_direct(nullptr), m_icount(0) { } diff --git a/src/devices/cpu/m6502/deco16.cpp b/src/devices/cpu/m6502/deco16.cpp index a85804dc124..b354176969d 100644 --- a/src/devices/cpu/m6502/deco16.cpp +++ b/src/devices/cpu/m6502/deco16.cpp @@ -16,7 +16,7 @@ const device_type DECO16 = &device_creator<deco16_device>; deco16_device::deco16_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m6502_device(mconfig, DECO16, "DECO16", tag, owner, clock, "deco16", __FILE__), + m6502_device(mconfig, DECO16, "DECO16", tag, owner, clock, "deco16", __FILE__), io(NULL), io_config("io", ENDIANNESS_LITTLE, 8, 16) { diff --git a/src/devices/cpu/m6502/m3745x.cpp b/src/devices/cpu/m6502/m3745x.cpp index ef9c3876d9b..9a2a4872646 100644 --- a/src/devices/cpu/m6502/m3745x.cpp +++ b/src/devices/cpu/m6502/m3745x.cpp @@ -55,12 +55,12 @@ m3745x_device::m3745x_device(const machine_config &mconfig, device_type type, co read_ad_4(*this), read_ad_5(*this), read_ad_6(*this), - read_ad_7(*this), - m_intreq1(0), - m_intreq2(0), - m_intctrl1(0), - m_intctrl2(0), - m_adctrl(0), + read_ad_7(*this), + m_intreq1(0), + m_intreq2(0), + m_intctrl1(0), + m_intctrl2(0), + m_adctrl(0), m_last_all_ints(0) { } diff --git a/src/devices/cpu/m6502/m4510.cpp b/src/devices/cpu/m6502/m4510.cpp index 7d8c366a6db..b741b7dbeca 100644 --- a/src/devices/cpu/m6502/m4510.cpp +++ b/src/devices/cpu/m6502/m4510.cpp @@ -14,8 +14,8 @@ const device_type M4510 = &device_creator<m4510_device>; m4510_device::m4510_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m65ce02_device(mconfig, M4510, "M4510", tag, owner, clock, "m4510", __FILE__), - map_enable(0), + m65ce02_device(mconfig, M4510, "M4510", tag, owner, clock, "m4510", __FILE__), + map_enable(0), nomap(false) { program_config.m_addrbus_width = 20; diff --git a/src/devices/cpu/m6502/m5074x.cpp b/src/devices/cpu/m6502/m5074x.cpp index b427ec51488..07a5f3b510d 100644 --- a/src/devices/cpu/m6502/m5074x.cpp +++ b/src/devices/cpu/m6502/m5074x.cpp @@ -49,17 +49,17 @@ m5074x_device::m5074x_device(const machine_config &mconfig, device_type type, co write_p0(*this), write_p1(*this), write_p2(*this), - write_p3(*this), - m_intctrl(0), - m_tmrctrl(0), - m_tmr12pre(0), - m_tmr1(0), - m_tmr2(0), - m_tmrxpre(0), - m_tmrx(0), - m_tmr1latch(0), - m_tmr2latch(0), - m_tmrxlatch(0), + write_p3(*this), + m_intctrl(0), + m_tmrctrl(0), + m_tmr12pre(0), + m_tmr1(0), + m_tmr2(0), + m_tmrxpre(0), + m_tmrx(0), + m_tmr1latch(0), + m_tmr2latch(0), + m_tmrxlatch(0), m_last_all_ints(0) { } diff --git a/src/devices/cpu/m6502/m6502.cpp b/src/devices/cpu/m6502/m6502.cpp index fa22a54acd1..4fdc480a18c 100644 --- a/src/devices/cpu/m6502/m6502.cpp +++ b/src/devices/cpu/m6502/m6502.cpp @@ -18,14 +18,14 @@ m6502_device::m6502_device(const machine_config &mconfig, const char *tag, devic cpu_device(mconfig, M6502, "M6502", tag, owner, clock, "m6502", __FILE__), sync_w(*this), program_config("program", ENDIANNESS_LITTLE, 8, 16), - sprogram_config("decrypted_opcodes", ENDIANNESS_LITTLE, 8, 16), PPC(0), NPC(0), PC(0), SP(0), TMP(0), TMP2(0), A(0), X(0), Y(0), P(0), IR(0), inst_state_base(0), mintf(nullptr), + sprogram_config("decrypted_opcodes", ENDIANNESS_LITTLE, 8, 16), PPC(0), NPC(0), PC(0), SP(0), TMP(0), TMP2(0), A(0), X(0), Y(0), P(0), IR(0), inst_state_base(0), mintf(nullptr), inst_state(0), inst_substate(0), icount(0), nmi_state(false), irq_state(false), apu_irq_state(false), v_state(false), irq_taken(false), sync(false), inhibit_interrupts(false) { direct_disabled = false; } m6502_device::m6502_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : - cpu_device(mconfig, type, name, tag, owner, clock, shortname, source), + cpu_device(mconfig, type, name, tag, owner, clock, shortname, source), sync_w(*this), program_config("program", ENDIANNESS_LITTLE, 8, 16), sprogram_config("decrypted_opcodes", ENDIANNESS_LITTLE, 8, 16), PPC(0), NPC(0), PC(0), SP(0), TMP(0), TMP2(0), A(0), X(0), Y(0), P(0), IR(0), inst_state_base(0), mintf(nullptr), diff --git a/src/devices/cpu/m6809/hd6309.cpp b/src/devices/cpu/m6809/hd6309.cpp index 37cc995736e..f0d504e5b83 100644 --- a/src/devices/cpu/m6809/hd6309.cpp +++ b/src/devices/cpu/m6809/hd6309.cpp @@ -128,8 +128,8 @@ const device_type HD6309 = &device_creator<hd6309_device>; //------------------------------------------------- hd6309_device::hd6309_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - m6809_base_device(mconfig, "HD6309", tag, owner, clock, HD6309, 4, "hd6309", __FILE__), - m_md(0), + m6809_base_device(mconfig, "HD6309", tag, owner, clock, HD6309, 4, "hd6309", __FILE__), + m_md(0), m_temp_im(0) { } diff --git a/src/devices/cpu/mb86233/mb86233.cpp b/src/devices/cpu/mb86233/mb86233.cpp index 2bd8a7f7c02..7d760567872 100644 --- a/src/devices/cpu/mb86233/mb86233.cpp +++ b/src/devices/cpu/mb86233/mb86233.cpp @@ -26,13 +26,13 @@ const device_type MB86233 = &device_creator<mb86233_cpu_device>; mb86233_cpu_device::mb86233_cpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : cpu_device(mconfig, MB86233, "MB86233", tag, owner, clock, "mb86233", __FILE__) , m_program_config("program", ENDIANNESS_LITTLE, 32, 32, -2) - , m_data_config("data", ENDIANNESS_LITTLE, 32, 32, 0), m_pc(0), m_reps(0), m_pcsp(0), m_eb(0), m_shift(0), m_repcnt(0), m_sr(0), + , m_data_config("data", ENDIANNESS_LITTLE, 32, 32, 0), m_pc(0), m_reps(0), m_pcsp(0), m_eb(0), m_shift(0), m_repcnt(0), m_sr(0), m_fpucontrol(0), m_program(nullptr), m_direct(nullptr), m_icount(0), m_fifo_wait(0) - , m_fifo_read_cb(*this) + , m_fifo_read_cb(*this) , m_fifo_read_ok_cb(*this) , m_fifo_write_cb(*this) , m_tablergn(nullptr), m_ARAM(nullptr), m_BRAM(nullptr) - , m_Tables(nullptr) + , m_Tables(nullptr) { } diff --git a/src/devices/cpu/mcs96/i8x9x.cpp b/src/devices/cpu/mcs96/i8x9x.cpp index 99f4c0005b9..90f2ff8c84b 100644 --- a/src/devices/cpu/mcs96/i8x9x.cpp +++ b/src/devices/cpu/mcs96/i8x9x.cpp @@ -13,7 +13,7 @@ i8x9x_device::i8x9x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : mcs96_device(mconfig, type, name, tag, owner, clock, 8, "i8x9x", __FILE__), - io_config("io", ENDIANNESS_LITTLE, 16, 16, -1), io(nullptr), base_timer2(0), ad_done(0), hso_command(0), ad_command(0), hso_time(0), ad_result(0), + io_config("io", ENDIANNESS_LITTLE, 16, 16, -1), io(nullptr), base_timer2(0), ad_done(0), hso_command(0), ad_command(0), hso_time(0), ad_result(0), ios0(0), ios1(0), ioc0(0), ioc1(0), sbuf(0), sp_stat(0), serial_send_buf(0), serial_send_timer(0) { } diff --git a/src/devices/cpu/mcs96/mcs96.cpp b/src/devices/cpu/mcs96/mcs96.cpp index cbf1b180d20..dd60db99aa8 100644 --- a/src/devices/cpu/mcs96/mcs96.cpp +++ b/src/devices/cpu/mcs96/mcs96.cpp @@ -14,7 +14,7 @@ mcs96_device::mcs96_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, int data_width, const char *shortname, const char *source) : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source), - program_config("program", ENDIANNESS_LITTLE, data_width, 16), program(nullptr), direct(nullptr), icount(0), bcount(0), inst_state(0), cycles_scaling(0), pending_irq(0), + program_config("program", ENDIANNESS_LITTLE, data_width, 16), program(nullptr), direct(nullptr), icount(0), bcount(0), inst_state(0), cycles_scaling(0), pending_irq(0), PC(0), PPC(0), PSW(0), OP1(0), OP2(0), OP3(0), OPI(0), TMP(0), irq_requested(false) { } diff --git a/src/devices/cpu/mips/mips3.h b/src/devices/cpu/mips/mips3.h index c9beba853c7..64675741a41 100644 --- a/src/devices/cpu/mips/mips3.h +++ b/src/devices/cpu/mips/mips3.h @@ -282,7 +282,7 @@ public: void mips3drc_set_options(UINT32 options); void mips3drc_add_hotspot(offs_t pc, UINT32 opcode, UINT32 cycles); void burn_cycles(INT32 cycles); - + protected: // device-level overrides virtual void device_start(); diff --git a/src/devices/cpu/mn10200/mn10200.h b/src/devices/cpu/mn10200/mn10200.h index dca5230e043..a36b841221f 100644 --- a/src/devices/cpu/mn10200/mn10200.h +++ b/src/devices/cpu/mn10200/mn10200.h @@ -49,8 +49,8 @@ public: mn10200_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor program, const char *shortname, const char *source) : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source) , m_program_config("program", ENDIANNESS_LITTLE, 16, 24, 0, program), m_program(nullptr) - , m_read_port0(*this), m_read_port1(*this), m_read_port2(*this), m_read_port3(*this), m_read_port4(*this) - , m_write_port0(*this), m_write_port1(*this), m_write_port2(*this), m_write_port3(*this), m_write_port4(*this), m_cycles(0), m_pc(0), m_psw(0), m_mdr(0), m_nmicr(0), m_iagr(0), + , m_read_port0(*this), m_read_port1(*this), m_read_port2(*this), m_read_port3(*this), m_read_port4(*this) + , m_write_port0(*this), m_write_port1(*this), m_write_port2(*this), m_write_port3(*this), m_write_port4(*this), m_cycles(0), m_pc(0), m_psw(0), m_mdr(0), m_nmicr(0), m_iagr(0), m_extmdl(0), m_extmdh(0), m_possible_irq(false), m_pplul(0), m_ppluh(0), m_p3md(0), m_p4(0) { } diff --git a/src/devices/cpu/pdp1/tx0.cpp b/src/devices/cpu/pdp1/tx0.cpp index 1e1eda4d761..c0ad2e9de3c 100644 --- a/src/devices/cpu/pdp1/tx0.cpp +++ b/src/devices/cpu/pdp1/tx0.cpp @@ -46,11 +46,11 @@ const device_type TX0_64KW = &device_creator<tx0_64kw_device>; tx0_device::tx0_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source, int addr_bits, int address_mask, int ir_mask) : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source) - , m_program_config("program", ENDIANNESS_BIG, 32, addr_bits , -2), m_mbr(0), m_ac(0), m_mar(0), m_pc(0), m_ir(0), m_lr(0), m_xr(0), m_pf(0), m_tbr(0), m_tac(0), m_cm_sel(0), + , m_program_config("program", ENDIANNESS_BIG, 32, addr_bits , -2), m_mbr(0), m_ac(0), m_mar(0), m_pc(0), m_ir(0), m_lr(0), m_xr(0), m_pf(0), m_tbr(0), m_tac(0), m_cm_sel(0), m_lr_sel(0), m_gbl_cm_sel(0), m_stop_cyc0(0), m_stop_cyc1(0), m_run(0), m_rim(0), m_cycle(0), m_ioh(0), m_ios(0), m_rim_step(0) - , m_address_mask(address_mask) + , m_address_mask(address_mask) , m_ir_mask(ir_mask), m_icount(0), m_program(nullptr) - , m_cpy_handler(*this) + , m_cpy_handler(*this) , m_r1l_handler(*this) , m_dis_handler(*this) , m_r3l_handler(*this) diff --git a/src/devices/cpu/s2650/s2650.cpp b/src/devices/cpu/s2650/s2650.cpp index 7eb8c0e7ffd..1bb0fe01e77 100644 --- a/src/devices/cpu/s2650/s2650.cpp +++ b/src/devices/cpu/s2650/s2650.cpp @@ -36,8 +36,8 @@ s2650_device::s2650_device(const machine_config &mconfig, const char *tag, devic , m_program_config("program", ENDIANNESS_LITTLE, 8, 15) , m_io_config("io", ENDIANNESS_LITTLE, 8, 9) , m_flag_handler(*this), m_ppc(0), m_page(0), m_iar(0), m_ea(0), m_psl(0), m_psu(0), m_r(0) - , m_halt(0), m_ir(0), m_irq_state(0), m_icount(0), m_program(nullptr), m_direct(nullptr), m_io(nullptr) - , m_debugger_temp(0) + , m_halt(0), m_ir(0), m_irq_state(0), m_icount(0), m_program(nullptr), m_direct(nullptr), m_io(nullptr) + , m_debugger_temp(0) { memset(m_reg, 0x00, sizeof(m_reg)); } diff --git a/src/devices/cpu/saturn/saturn.cpp b/src/devices/cpu/saturn/saturn.cpp index bfbff66eee0..a8c86f934c0 100644 --- a/src/devices/cpu/saturn/saturn.cpp +++ b/src/devices/cpu/saturn/saturn.cpp @@ -52,7 +52,7 @@ saturn_device::saturn_device(const machine_config &mconfig, const char *tag, dev , m_unconfig_func(*this) , m_id_func(*this) , m_crc_func(*this) - , m_rsi_func(*this), m_pc(0), m_oldpc(0), m_p(0), m_out(0), m_carry(0), m_decimal(0), m_st(0), m_hst(0), m_nmi_state(0), m_irq_state(0), m_irq_enable(0), m_in_irq(0), + , m_rsi_func(*this), m_pc(0), m_oldpc(0), m_p(0), m_out(0), m_carry(0), m_decimal(0), m_st(0), m_hst(0), m_nmi_state(0), m_irq_state(0), m_irq_enable(0), m_in_irq(0), m_pending_irq(0), m_sleeping(0), m_monitor_id(0), m_monitor_in(0), m_program(nullptr), m_direct(nullptr), m_icount(0), m_debugger_temp(0) { } diff --git a/src/devices/cpu/scmp/scmp.cpp b/src/devices/cpu/scmp/scmp.cpp index 9a14507b97c..ed05dafa962 100644 --- a/src/devices/cpu/scmp/scmp.cpp +++ b/src/devices/cpu/scmp/scmp.cpp @@ -24,7 +24,7 @@ const device_type INS8060 = &device_creator<ins8060_device>; scmp_device::scmp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : cpu_device(mconfig, SCMP, "INS 8050 SC/MP", tag, owner, clock, "ins8050", __FILE__) , m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0), m_AC(0), m_ER(0), m_SR(0), m_program(nullptr), m_direct(nullptr), m_icount(0) - , m_flag_out_func(*this) + , m_flag_out_func(*this) , m_sout_func(*this) , m_sin_func(*this) , m_sensea_func(*this) @@ -37,7 +37,7 @@ scmp_device::scmp_device(const machine_config &mconfig, const char *tag, device_ scmp_device::scmp_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source) , m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0), m_AC(0), m_ER(0), m_SR(0), m_program(nullptr), m_direct(nullptr), m_icount(0) - , m_flag_out_func(*this) + , m_flag_out_func(*this) , m_sout_func(*this) , m_sin_func(*this) , m_sensea_func(*this) diff --git a/src/devices/cpu/sm8500/sm8500.cpp b/src/devices/cpu/sm8500/sm8500.cpp index fa7f3b01b35..13b32447714 100644 --- a/src/devices/cpu/sm8500/sm8500.cpp +++ b/src/devices/cpu/sm8500/sm8500.cpp @@ -38,8 +38,8 @@ sm8500_cpu_device::sm8500_cpu_device(const machine_config &mconfig, const char * , m_dma_func(*this) , m_timer_func(*this) , m_PC(0), m_IE0(0), m_IE1(0), m_IR0(0), m_IR1(0) - , m_SYS(0), m_CKC(0), m_clock_changed(0) - , m_SP(0) + , m_SYS(0), m_CKC(0), m_clock_changed(0) + , m_SP(0) , m_PS0(0) , m_PS1(0), m_IFLAGS(0), m_CheckInterrupts(0), m_halted(0), m_icount(0), m_program(nullptr), m_oldpc(0) { diff --git a/src/devices/cpu/superfx/superfx.cpp b/src/devices/cpu/superfx/superfx.cpp index 37877167ed5..ecdae33a1b0 100644 --- a/src/devices/cpu/superfx/superfx.cpp +++ b/src/devices/cpu/superfx/superfx.cpp @@ -10,8 +10,8 @@ const device_type SUPERFX = &device_creator<superfx_device>; superfx_device::superfx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : cpu_device(mconfig, SUPERFX, "SuperFX", tag, owner, clock, "superfx", __FILE__) , m_program_config("program", ENDIANNESS_LITTLE, 8, 32, 0) - , m_out_irq_func(*this), m_pipeline(0), m_ramaddr(0), m_sfr(0), m_pbr(0), m_rombr(0), m_rambr(0), m_cbr(0), m_scbr(0), m_scmr(0), m_colr(0), m_por(0), - m_bramr(0), m_vcr(0), m_cfgr(0), m_clsr(0), m_romcl(0), m_romdr(0), m_ramcl(0), m_ramar(0), m_ramdr(0), m_sreg(nullptr), m_sreg_idx(0), m_dreg(nullptr), + , m_out_irq_func(*this), m_pipeline(0), m_ramaddr(0), m_sfr(0), m_pbr(0), m_rombr(0), m_rambr(0), m_cbr(0), m_scbr(0), m_scmr(0), m_colr(0), m_por(0), + m_bramr(0), m_vcr(0), m_cfgr(0), m_clsr(0), m_romcl(0), m_romdr(0), m_ramcl(0), m_ramar(0), m_ramdr(0), m_sreg(nullptr), m_sreg_idx(0), m_dreg(nullptr), m_dreg_idx(0), m_r15_modified(0), m_irq(0), m_cache_access_speed(0), m_memory_access_speed(0), m_program(nullptr), m_icount(0), m_debugger_temp(0) { } diff --git a/src/devices/cpu/tms34010/tms34010.cpp b/src/devices/cpu/tms34010/tms34010.cpp index 70f2169728f..32b15b13cd7 100644 --- a/src/devices/cpu/tms34010/tms34010.cpp +++ b/src/devices/cpu/tms34010/tms34010.cpp @@ -37,10 +37,10 @@ tms340x0_device::tms340x0_device(const machine_config &mconfig, device_type type : cpu_device(mconfig, type, name, tag, owner, clock, shortname, __FILE__) , device_video_interface(mconfig, *this) , m_program_config("program", ENDIANNESS_LITTLE, 16, 32, 3), m_pc(0), m_ppc(0), m_st(0), m_pixel_write(nullptr), m_pixel_read(nullptr), m_raster_op(nullptr), m_pixel_op(nullptr), m_pixel_op_timing(0), m_convsp(0), m_convdp(0), m_convmp(0), m_gfxcycles(0), m_pixelshift(0), m_is_34020(0), m_reset_deferred(false) - , m_halt_on_reset(FALSE), m_hblank_stable(0), m_external_host_access(0), m_executing(0), m_program(nullptr), m_direct(nullptr) - , m_pixclock(0) + , m_halt_on_reset(FALSE), m_hblank_stable(0), m_external_host_access(0), m_executing(0), m_program(nullptr), m_direct(nullptr) + , m_pixclock(0) , m_pixperclock(0), m_scantimer(nullptr), m_icount(0) - , m_output_int_cb(*this) + , m_output_int_cb(*this) { } diff --git a/src/devices/cpu/tms9900/tms9995.h b/src/devices/cpu/tms9900/tms9995.h index 7d88bd2fc3c..c0e6d9d0fba 100644 --- a/src/devices/cpu/tms9900/tms9995.h +++ b/src/devices/cpu/tms9900/tms9995.h @@ -131,7 +131,7 @@ private: // Processor states bool m_idle_state; bool m_nmi_state; -// bool m_irq_state; +// bool m_irq_state; bool m_hold_state; // READY handling. The READY line is operated before the clock @@ -382,7 +382,7 @@ private: void alu_lst_lwp(); void alu_mov(); void alu_multiply(); -// void alu_multiply_signed(); +// void alu_multiply_signed(); void alu_rtwp(); void alu_sbo_sbz(); void alu_shift(); diff --git a/src/devices/cpu/z8000/z8000.cpp b/src/devices/cpu/z8000/z8000.cpp index 3b1b20f883c..ad9d5b7beb6 100644 --- a/src/devices/cpu/z8000/z8000.cpp +++ b/src/devices/cpu/z8000/z8000.cpp @@ -38,7 +38,7 @@ z8002_device::z8002_device(const machine_config &mconfig, const char *tag, devic , m_program_config("program", ENDIANNESS_BIG, 16, 16, 0) , m_io_config("io", ENDIANNESS_BIG, 8, 16, 0) , m_mo_out(*this), m_ppc(0), m_pc(0), m_psapseg(0), m_psapoff(0), m_fcw(0), m_refresh(0), m_nspseg(0), m_nspoff(0), m_irq_req(0), m_irq_vec(0), m_op_valid(0), m_nmi_state(0), m_mi(0), m_program(nullptr), m_data(nullptr), m_direct(nullptr), m_io(nullptr), m_icount(0) - , m_vector_mult(1) + , m_vector_mult(1) { } diff --git a/src/devices/imagedev/cassette.cpp b/src/devices/imagedev/cassette.cpp index 7b58d3e01cb..0df32b0ef9d 100644 --- a/src/devices/imagedev/cassette.cpp +++ b/src/devices/imagedev/cassette.cpp @@ -30,14 +30,14 @@ const device_type CASSETTE = &device_creator<cassette_image_device>; cassette_image_device::cassette_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, CASSETTE, "Cassette", tag, owner, clock, "cassette_image", __FILE__), - device_image_interface(mconfig, *this), + device_image_interface(mconfig, *this), m_cassette(NULL), - m_state(CASSETTE_STOPPED), - m_position(0), - m_position_time(0), - m_value(0), - m_channel(0), - m_speed(0), + m_state(CASSETTE_STOPPED), + m_position(0), + m_position_time(0), + m_value(0), + m_channel(0), + m_speed(0), m_direction(0), m_formats(cassette_default_formats), m_create_opts(NULL), diff --git a/src/devices/imagedev/chd_cd.cpp b/src/devices/imagedev/chd_cd.cpp index 429eafe4b4d..ca7898d14cd 100644 --- a/src/devices/imagedev/chd_cd.cpp +++ b/src/devices/imagedev/chd_cd.cpp @@ -28,16 +28,16 @@ const device_type CDROM = &device_creator<cdrom_image_device>; cdrom_image_device::cdrom_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, CDROM, "CD-ROM Image", tag, owner, clock, "cdrom_image", __FILE__), - device_image_interface(mconfig, *this), - m_cdrom_handle(NULL), - m_extension_list(NULL), + device_image_interface(mconfig, *this), + m_cdrom_handle(NULL), + m_extension_list(NULL), m_interface(NULL) { } cdrom_image_device::cdrom_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : device_t(mconfig, type, name, tag, owner, clock, shortname, source), - device_image_interface(mconfig, *this), + device_image_interface(mconfig, *this), m_cdrom_handle(NULL), m_extension_list(NULL), m_interface(NULL) diff --git a/src/devices/imagedev/flopdrv.cpp b/src/devices/imagedev/flopdrv.cpp index a9639b3ce9a..ed4063ecc00 100644 --- a/src/devices/imagedev/flopdrv.cpp +++ b/src/devices/imagedev/flopdrv.cpp @@ -709,12 +709,12 @@ legacy_floppy_image_device::legacy_floppy_image_device(const machine_config &mco m_rdy(0), m_dskchg(0), m_drive_id(0), - m_active(0), + m_active(0), m_config(NULL), m_flags(0), m_max_track(0), m_num_sides(0), - m_current_track(0), + m_current_track(0), m_index_timer(NULL), m_index_pulse_callback(NULL), m_rpm(0.0f), @@ -743,12 +743,12 @@ legacy_floppy_image_device::legacy_floppy_image_device(const machine_config &mco m_rdy(0), m_dskchg(0), m_drive_id(0), - m_active(0), - m_config(NULL), + m_active(0), + m_config(NULL), m_flags(0), m_max_track(0), m_num_sides(0), - m_current_track(0), + m_current_track(0), m_index_timer(NULL), m_index_pulse_callback(NULL), m_rpm(0.0f), diff --git a/src/devices/imagedev/floppy.cpp b/src/devices/imagedev/floppy.cpp index 9847cb81662..22a0b03ceec 100644 --- a/src/devices/imagedev/floppy.cpp +++ b/src/devices/imagedev/floppy.cpp @@ -126,7 +126,7 @@ const floppy_format_type floppy_image_device::default_floppy_formats[] = { floppy_connector::floppy_connector(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, FLOPPY_CONNECTOR, "Floppy drive connector abstraction", tag, owner, clock, "floppy_connector", __FILE__), - device_slot_interface(mconfig, *this), + device_slot_interface(mconfig, *this), formats(NULL), m_enable_sound(false) { @@ -167,26 +167,26 @@ floppy_image_device *floppy_connector::get_device() floppy_image_device::floppy_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : device_t(mconfig, type, name, tag, owner, clock, shortname, source), device_image_interface(mconfig, *this), - device_slot_card_interface(mconfig, *this), - input_format(NULL), + device_slot_card_interface(mconfig, *this), + input_format(NULL), output_format(NULL), image(NULL), - fif_list(NULL), - index_timer(NULL), - tracks(0), - sides(0), - form_factor(0), - motor_always_on(false), - dir(0), stp(0), wtg(0), mon(0), ss(0), idx(0), wpt(0), rdy(0), dskchg(0), - ready(false), - rpm(0), - floppy_ratio_1(0), - revolution_count(0), - cyl(0), - subcyl(0), - image_dirty(false), + fif_list(NULL), + index_timer(NULL), + tracks(0), + sides(0), + form_factor(0), + motor_always_on(false), + dir(0), stp(0), wtg(0), mon(0), ss(0), idx(0), wpt(0), rdy(0), dskchg(0), + ready(false), + rpm(0), + floppy_ratio_1(0), + revolution_count(0), + cyl(0), + subcyl(0), + image_dirty(false), ready_counter(0), - m_make_sound(false), + m_make_sound(false), m_sound_out(NULL) { extension_list[0] = '\0'; @@ -1103,22 +1103,22 @@ void ui_menu_control_floppy_image::handle() //=================================================================== floppy_sound_device::floppy_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : samples_device(mconfig, FLOPPYSOUND, "Floppy sound", tag, owner, clock, "flopsnd", __FILE__), - m_sound(NULL), - m_is525(false), - m_sampleindex_motor_start(0), - m_sampleindex_motor_loop(0), - m_sampleindex_motor_end(0), - m_samplesize_motor_start(0), - m_samplesize_motor_loop(0), - m_samplesize_motor_end(0), - m_samplepos_motor(0), - m_motor_playback_state(0), - m_motor_on(false), - m_step_samples(0), - m_sampleindex_step1(0), - m_samplepos_step(0), - m_step_playback_state(0) + : samples_device(mconfig, FLOPPYSOUND, "Floppy sound", tag, owner, clock, "flopsnd", __FILE__), + m_sound(NULL), + m_is525(false), + m_sampleindex_motor_start(0), + m_sampleindex_motor_loop(0), + m_sampleindex_motor_end(0), + m_samplesize_motor_start(0), + m_samplesize_motor_loop(0), + m_samplesize_motor_end(0), + m_samplepos_motor(0), + m_motor_playback_state(0), + m_motor_on(false), + m_step_samples(0), + m_sampleindex_step1(0), + m_samplepos_step(0), + m_step_playback_state(0) { m_loaded = false; } diff --git a/src/devices/imagedev/mfmhd.cpp b/src/devices/imagedev/mfmhd.cpp index a0dff4f2c83..e1cccc6f660 100644 --- a/src/devices/imagedev/mfmhd.cpp +++ b/src/devices/imagedev/mfmhd.cpp @@ -309,24 +309,24 @@ std::string mfm_harddisk_device::tts(const attotime &t) mfm_harddisk_device::mfm_harddisk_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : harddisk_image_device(mconfig, type, name, tag, owner, clock, shortname, source), - device_slot_card_interface(mconfig, *this), + device_slot_card_interface(mconfig, *this), m_index_timer(NULL), m_spinup_timer(NULL), m_seek_timer(NULL), m_cache_timer(NULL), - m_precomp_cyl(0), - m_redwc_cyl(0), - m_encoding(), - m_ready(false), - m_current_cylinder(0), - m_current_head(0), - m_track_delta(0), - m_step_phase(0), - m_seek_complete(false), - m_seek_inward(false), - m_autotruncation(false), - m_recalibrated(false), - m_step_line(), + m_precomp_cyl(0), + m_redwc_cyl(0), + m_encoding(), + m_ready(false), + m_current_cylinder(0), + m_current_head(0), + m_track_delta(0), + m_step_phase(0), + m_seek_complete(false), + m_seek_inward(false), + m_autotruncation(false), + m_recalibrated(false), + m_step_line(), m_format(NULL) { m_spinupms = 10000; @@ -969,7 +969,7 @@ const device_type MFMHD_ST251 = &device_creator<mfm_hd_st251_device>; // This is a write-back LRU cache. // =========================================================== -mfmhd_trackimage_cache::mfmhd_trackimage_cache(running_machine &machine): +mfmhd_trackimage_cache::mfmhd_trackimage_cache(running_machine &machine): m_mfmhd(NULL), m_tracks(NULL), m_machine(machine) @@ -1159,9 +1159,9 @@ UINT16* mfmhd_trackimage_cache::get_trackimage(int cylinder, int head) mfm_harddisk_connector::mfm_harddisk_connector(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock): device_t(mconfig, MFM_HD_CONNECTOR, "MFM hard disk connector", tag, owner, clock, "mfm_hd_connector", __FILE__), - device_slot_interface(mconfig, *this), - m_encoding(), - m_spinupms(0), + device_slot_interface(mconfig, *this), + m_encoding(), + m_spinupms(0), m_cachesize(0), m_format(NULL) { diff --git a/src/devices/imagedev/mfmhd.h b/src/devices/imagedev/mfmhd.h index 7be3dc8c1cb..b42a212c2a5 100644 --- a/src/devices/imagedev/mfmhd.h +++ b/src/devices/imagedev/mfmhd.h @@ -44,7 +44,7 @@ public: private: mfm_harddisk_device* m_mfmhd; mfmhd_trackimage* m_tracks; - running_machine & m_machine; + running_machine & m_machine; }; class mfm_harddisk_device : public harddisk_image_device, diff --git a/src/devices/imagedev/midiin.cpp b/src/devices/imagedev/midiin.cpp index 3f2c22d7c99..8d32dbcba27 100644 --- a/src/devices/imagedev/midiin.cpp +++ b/src/devices/imagedev/midiin.cpp @@ -24,14 +24,14 @@ const device_type MIDIIN = &device_creator<midiin_device>; midiin_device::midiin_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, MIDIIN, "MIDI In image device", tag, owner, clock, "midiin", __FILE__), - device_image_interface(mconfig, *this), - device_serial_interface(mconfig, *this), - m_midi(NULL), - m_timer(NULL), - m_input_cb(*this), - m_xmit_read(0), - m_xmit_write(0), - m_tx_busy(false) + device_image_interface(mconfig, *this), + device_serial_interface(mconfig, *this), + m_midi(NULL), + m_timer(NULL), + m_input_cb(*this), + m_xmit_read(0), + m_xmit_write(0), + m_tx_busy(false) { } diff --git a/src/devices/imagedev/midiout.cpp b/src/devices/imagedev/midiout.cpp index 86c446fa6b4..33e6d911294 100644 --- a/src/devices/imagedev/midiout.cpp +++ b/src/devices/imagedev/midiout.cpp @@ -24,9 +24,9 @@ const device_type MIDIOUT = &device_creator<midiout_device>; midiout_device::midiout_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, MIDIOUT, "MIDI Out image device", tag, owner, clock, "midiout", __FILE__), - device_image_interface(mconfig, *this), - device_serial_interface(mconfig, *this), - m_midi(NULL) + device_image_interface(mconfig, *this), + device_serial_interface(mconfig, *this), + m_midi(NULL) { } diff --git a/src/devices/imagedev/snapquik.cpp b/src/devices/imagedev/snapquik.cpp index 78d55333f16..81d4049edbb 100644 --- a/src/devices/imagedev/snapquik.cpp +++ b/src/devices/imagedev/snapquik.cpp @@ -20,12 +20,12 @@ const device_type SNAPSHOT = &device_creator<snapshot_image_device>; snapshot_image_device::snapshot_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, SNAPSHOT, "Snapshot", tag, owner, clock, "snapshot_image", __FILE__), - device_image_interface(mconfig, *this), - m_file_extensions(NULL), - m_interface(NULL), - m_delay_seconds(0), - m_delay_attoseconds(0), - m_timer(NULL) + device_image_interface(mconfig, *this), + m_file_extensions(NULL), + m_interface(NULL), + m_delay_seconds(0), + m_delay_attoseconds(0), + m_timer(NULL) { } diff --git a/src/devices/machine/6532riot.cpp b/src/devices/machine/6532riot.cpp index 00102adf6f7..a8d952d07ba 100644 --- a/src/devices/machine/6532riot.cpp +++ b/src/devices/machine/6532riot.cpp @@ -392,14 +392,14 @@ riot6532_device::riot6532_device(const machine_config &mconfig, const char *tag, m_out_pa_cb(*this), m_in_pb_cb(*this), m_out_pb_cb(*this), - m_irq_cb(*this), - m_irqstate(0), + m_irq_cb(*this), + m_irqstate(0), m_irqenable(0), m_irq(CLEAR_LINE), m_pa7dir(0), - m_pa7prev(0), - m_timershift(0), - m_timerstate(0), + m_pa7prev(0), + m_timershift(0), + m_timerstate(0), m_timer(NULL) { memset(m_port, 0x00, sizeof(m_port)); diff --git a/src/devices/machine/6821pia.cpp b/src/devices/machine/6821pia.cpp index f775cff74b1..971d07eee01 100644 --- a/src/devices/machine/6821pia.cpp +++ b/src/devices/machine/6821pia.cpp @@ -51,27 +51,27 @@ const device_type PIA6821 = &device_creator<pia6821_device>; pia6821_device::pia6821_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, PIA6821, "6821 PIA", tag, owner, clock, "pia6821", __FILE__), - m_in_a_handler(*this), - m_in_b_handler(*this), - m_in_ca1_handler(*this), - m_in_cb1_handler(*this), - m_in_ca2_handler(*this), - m_out_a_handler(*this), - m_out_b_handler(*this), - m_ca2_handler(*this), - m_cb2_handler(*this), - m_irqa_handler(*this), - m_irqb_handler(*this), m_in_a(0), - m_in_ca1(0), m_in_ca2(0), m_out_a(0), m_out_ca2(0), m_port_a_z_mask(0), m_ddr_a(0), - m_ctl_a(0), m_irq_a1(0), m_irq_a2(0), - m_irq_a_state(0), m_in_b(0), - m_in_cb1(0), m_in_cb2(0), m_out_b(0), m_out_cb2(0), m_last_out_cb2_z(0), m_ddr_b(0), - m_ctl_b(0), m_irq_b1(0), m_irq_b2(0), - m_irq_b_state(0), m_in_a_pushed(false), m_out_a_needs_pulled(false), m_in_ca1_pushed(false), - m_in_ca2_pushed(false), m_out_ca2_needs_pulled(false), m_in_b_pushed(false), m_out_b_needs_pulled(false), - m_in_cb1_pushed(false), m_in_cb2_pushed(false), m_out_cb2_needs_pulled(false), m_logged_port_a_not_connected(false), - m_logged_port_b_not_connected(false), m_logged_ca1_not_connected(false), m_logged_ca2_not_connected(false), - m_logged_cb1_not_connected(false), m_logged_cb2_not_connected(false) + m_in_a_handler(*this), + m_in_b_handler(*this), + m_in_ca1_handler(*this), + m_in_cb1_handler(*this), + m_in_ca2_handler(*this), + m_out_a_handler(*this), + m_out_b_handler(*this), + m_ca2_handler(*this), + m_cb2_handler(*this), + m_irqa_handler(*this), + m_irqb_handler(*this), m_in_a(0), + m_in_ca1(0), m_in_ca2(0), m_out_a(0), m_out_ca2(0), m_port_a_z_mask(0), m_ddr_a(0), + m_ctl_a(0), m_irq_a1(0), m_irq_a2(0), + m_irq_a_state(0), m_in_b(0), + m_in_cb1(0), m_in_cb2(0), m_out_b(0), m_out_cb2(0), m_last_out_cb2_z(0), m_ddr_b(0), + m_ctl_b(0), m_irq_b1(0), m_irq_b2(0), + m_irq_b_state(0), m_in_a_pushed(false), m_out_a_needs_pulled(false), m_in_ca1_pushed(false), + m_in_ca2_pushed(false), m_out_ca2_needs_pulled(false), m_in_b_pushed(false), m_out_b_needs_pulled(false), + m_in_cb1_pushed(false), m_in_cb2_pushed(false), m_out_cb2_needs_pulled(false), m_logged_port_a_not_connected(false), + m_logged_port_b_not_connected(false), m_logged_ca1_not_connected(false), m_logged_ca2_not_connected(false), + m_logged_cb1_not_connected(false), m_logged_cb2_not_connected(false) { } diff --git a/src/devices/machine/bankdev.cpp b/src/devices/machine/bankdev.cpp index 75e6de89b6a..644e92f05f9 100644 --- a/src/devices/machine/bankdev.cpp +++ b/src/devices/machine/bankdev.cpp @@ -11,7 +11,7 @@ address_map_bank_device::address_map_bank_device( const machine_config &mconfig, m_endianness(ENDIANNESS_NATIVE), m_databus_width(0), m_addrbus_width(32), - m_stride(1), + m_stride(1), m_program(NULL), m_offset(0) { diff --git a/src/devices/machine/e05a03.cpp b/src/devices/machine/e05a03.cpp index 7e887714884..b0389abb6df 100644 --- a/src/devices/machine/e05a03.cpp +++ b/src/devices/machine/e05a03.cpp @@ -118,8 +118,8 @@ WRITE8_MEMBER( e05a03_device::write ) break; /* printhead */ - case 0x04: m_printhead = (m_printhead & 0x100) | (data == 0 ? 0xff : 0); break; - case 0x05: m_printhead = (m_printhead & 0x0ff) | (BIT(data, 7) ? (1 << 8) : 0); break; + case 0x04: m_printhead = (m_printhead & 0x100) | (data == 0 ? 0xff : 0); break; + case 0x05: m_printhead = (m_printhead & 0x0ff) | (BIT(data, 7) ? (1 << 8) : 0); break; /* paper feed and carriage motor phase data*/ case 0x06: m_pf_motor = (data & 0xf0) >> 4; break; diff --git a/src/devices/machine/hdc92x4.cpp b/src/devices/machine/hdc92x4.cpp index dc2e2a0070c..d9cdf3a48b8 100644 --- a/src/devices/machine/hdc92x4.cpp +++ b/src/devices/machine/hdc92x4.cpp @@ -1912,9 +1912,9 @@ bool hdc92x4_device::found_mark(int state) if (using_floppy()) { if (state == SEARCH_IDAM) - { - ismark = (m_live_state.shift_reg == (fm_mode() ? 0xf57e : 0x4489)); - } + { + ismark = (m_live_state.shift_reg == (fm_mode() ? 0xf57e : 0x4489)); + } else { // f56a 1x1x diff --git a/src/devices/machine/i8251.cpp b/src/devices/machine/i8251.cpp index 6e45d13a1ea..8baf4bc57ec 100644 --- a/src/devices/machine/i8251.cpp +++ b/src/devices/machine/i8251.cpp @@ -169,7 +169,7 @@ void i8251_device::receive_clock() -------------------------------------------------*/ bool i8251_device::is_tx_enabled(void) const { - return BIT(m_command , 0) != 0 && m_cts == 0; + return BIT(m_command , 0) != 0 && m_cts == 0; } /*------------------------------------------------- @@ -177,9 +177,9 @@ bool i8251_device::is_tx_enabled(void) const -------------------------------------------------*/ void i8251_device::check_for_tx_start(void) { - if (is_tx_enabled() && (m_status & (I8251_STATUS_TX_EMPTY | I8251_STATUS_TX_READY)) == I8251_STATUS_TX_EMPTY) { - start_tx(); - } + if (is_tx_enabled() && (m_status & (I8251_STATUS_TX_EMPTY | I8251_STATUS_TX_READY)) == I8251_STATUS_TX_EMPTY) { + start_tx(); + } } /*------------------------------------------------- @@ -187,9 +187,9 @@ void i8251_device::check_for_tx_start(void) -------------------------------------------------*/ void i8251_device::start_tx(void) { - transmit_register_setup(m_tx_data); - m_status &= ~I8251_STATUS_TX_EMPTY; - m_status |= I8251_STATUS_TX_READY; + transmit_register_setup(m_tx_data); + m_status &= ~I8251_STATUS_TX_EMPTY; + m_status |= I8251_STATUS_TX_READY; } /*------------------------------------------------- @@ -205,21 +205,21 @@ void i8251_device::transmit_clock() else return; - if (is_transmit_register_empty()) { - if ((m_status & I8251_STATUS_TX_READY) == 0 && (is_tx_enabled() || (m_flags & I8251_DELAYED_TX_EN) != 0)) { - start_tx(); - } else { - m_status |= I8251_STATUS_TX_EMPTY; - } - update_tx_ready(); - update_tx_empty(); - } - /* if diserial has bits to send, make them so */ - if (!is_transmit_register_empty()) - { - UINT8 data = transmit_register_get_data_bit(); - m_txd_handler(data); - } + if (is_transmit_register_empty()) { + if ((m_status & I8251_STATUS_TX_READY) == 0 && (is_tx_enabled() || (m_flags & I8251_DELAYED_TX_EN) != 0)) { + start_tx(); + } else { + m_status |= I8251_STATUS_TX_EMPTY; + } + update_tx_ready(); + update_tx_empty(); + } + /* if diserial has bits to send, make them so */ + if (!is_transmit_register_empty()) + { + UINT8 data = transmit_register_get_data_bit(); + m_txd_handler(data); + } #if 0 /* hunt mode? */ @@ -387,7 +387,7 @@ WRITE8_MEMBER(i8251_device::command_w) } else { - LOG(("transmit disable\n")); + LOG(("transmit disable\n")); } @@ -433,10 +433,10 @@ WRITE8_MEMBER(i8251_device::command_w) m_flags |= I8251_EXPECTING_MODE; } - check_for_tx_start(); + check_for_tx_start(); update_rx_ready(); update_tx_ready(); - update_tx_empty(); + update_tx_empty(); } WRITE8_MEMBER(i8251_device::mode_w) @@ -654,20 +654,20 @@ WRITE8_MEMBER(i8251_device::data_w) { m_tx_data = data; - LOG(("data_w %02x\n" , data)); + LOG(("data_w %02x\n" , data)); /* writing clears */ m_status &=~I8251_STATUS_TX_READY; update_tx_ready(); - // Store state of tx enable when writing to DB buffer - if (is_tx_enabled()) { - m_flags |= I8251_DELAYED_TX_EN; - } else { - m_flags &= ~I8251_DELAYED_TX_EN; - } + // Store state of tx enable when writing to DB buffer + if (is_tx_enabled()) { + m_flags |= I8251_DELAYED_TX_EN; + } else { + m_flags &= ~I8251_DELAYED_TX_EN; + } - check_for_tx_start(); + check_for_tx_start(); /* if transmitter is active, then tx empty will be signalled */ @@ -729,9 +729,9 @@ WRITE_LINE_MEMBER(i8251_device::write_cts) { m_cts = state; - check_for_tx_start(); - update_tx_ready(); - update_tx_empty(); + check_for_tx_start(); + update_tx_ready(); + update_tx_empty(); } WRITE_LINE_MEMBER(i8251_device::write_dsr) diff --git a/src/devices/machine/i8251.h b/src/devices/machine/i8251.h index 46103368676..eb5fdd612e4 100644 --- a/src/devices/machine/i8251.h +++ b/src/devices/machine/i8251.h @@ -92,16 +92,16 @@ protected: void update_tx_empty(); void transmit_clock(); void receive_clock(); - bool is_tx_enabled(void) const; - void check_for_tx_start(void); - void start_tx(void); + bool is_tx_enabled(void) const; + void check_for_tx_start(void); + void start_tx(void); enum { I8251_EXPECTING_MODE = 0x01, I8251_EXPECTING_SYNC_BYTE = 0x02, - I8251_DELAYED_TX_EN = 0x04 + I8251_DELAYED_TX_EN = 0x04 }; private: @@ -138,7 +138,7 @@ private: /* data being received */ UINT8 m_rx_data; - /* tx buffer */ + /* tx buffer */ UINT8 m_tx_data; }; diff --git a/src/devices/machine/i8271.cpp b/src/devices/machine/i8271.cpp index c7b2c7cf175..75086e941d4 100644 --- a/src/devices/machine/i8271.cpp +++ b/src/devices/machine/i8271.cpp @@ -10,7 +10,7 @@ i8271_device::i8271_device(const machine_config &mconfig, const char *tag, devic intrq_cb(*this), drq_cb(*this), hdl_cb(*this), - opt_cb(*this), irq(false), drq(false), scan_done(false), scan_match(false), command_pos(0), sectors_read(0), scan_len(0), dma_data(0), oport(0), rr(0), scan_sec(0), moder(0), + opt_cb(*this), irq(false), drq(false), scan_done(false), scan_match(false), command_pos(0), sectors_read(0), scan_len(0), dma_data(0), oport(0), rr(0), scan_sec(0), moder(0), precomp(0), perpmode(0), srate(0), hset(0), icnt(0), hload(0), sector_size(0), cur_rate(0) { select_connected = true; diff --git a/src/devices/machine/i8279.cpp b/src/devices/machine/i8279.cpp index 442f943d2b2..d336dd80858 100644 --- a/src/devices/machine/i8279.cpp +++ b/src/devices/machine/i8279.cpp @@ -374,9 +374,9 @@ READ8_MEMBER( i8279_device::data_r ) // read the display ram data = m_d_ram[m_d_ram_ptr]; if (m_autoinc) - { + { m_d_ram_ptr++; - } + } } else if (sensor_mode) @@ -385,13 +385,13 @@ READ8_MEMBER( i8279_device::data_r ) assert(m_s_ram_ptr < ARRAY_LENGTH(m_s_ram)); data = m_s_ram[m_s_ram_ptr]; if (m_autoinc) - { + { m_s_ram_ptr++; - } + } else - { + { set_irq(0); - } + } } else { diff --git a/src/devices/machine/keyboard.cpp b/src/devices/machine/keyboard.cpp index 30d3d528e93..e586aaaa8a6 100644 --- a/src/devices/machine/keyboard.cpp +++ b/src/devices/machine/keyboard.cpp @@ -43,9 +43,9 @@ generic_keyboard_device::generic_keyboard_device(const machine_config &mconfig, m_io_kbd7(*this, "TERM_LINE7"), m_io_kbd8(*this, "TERM_LINE8"), m_io_kbd9(*this, "TERM_LINE9"), - m_io_kbdc(*this, "TERM_LINEC"), - m_timer(NULL), - m_last_code(0), + m_io_kbdc(*this, "TERM_LINEC"), + m_timer(NULL), + m_last_code(0), m_scan_line(0), m_keyboard_cb(*this) { diff --git a/src/devices/machine/legscsi.cpp b/src/devices/machine/legscsi.cpp index 21e635bd1d8..4ef3318d1ce 100644 --- a/src/devices/machine/legscsi.cpp +++ b/src/devices/machine/legscsi.cpp @@ -3,7 +3,7 @@ #include "legscsi.h" legacy_scsi_host_adapter::legacy_scsi_host_adapter(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : - device_t(mconfig, type, name, tag, owner, clock, shortname, source), + device_t(mconfig, type, name, tag, owner, clock, shortname, source), m_selected(0), m_scsi_port(*this) { diff --git a/src/devices/machine/mb8795.cpp b/src/devices/machine/mb8795.cpp index 18d19c7060c..7f2c096023c 100644 --- a/src/devices/machine/mb8795.cpp +++ b/src/devices/machine/mb8795.cpp @@ -20,7 +20,7 @@ ADDRESS_MAP_END mb8795_device::mb8795_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, MB8795, "Fujitsu MB8795", tag, owner, clock, "mb8795", __FILE__), - device_network_interface(mconfig, *this, 10), txstat(0), txmask(0), rxstat(0), rxmask(0), txmode(0), rxmode(0), txlen(0), rxlen(0), txcount(0), drq_tx(false), + device_network_interface(mconfig, *this, 10), txstat(0), txmask(0), rxstat(0), rxmask(0), txmode(0), rxmode(0), txlen(0), rxlen(0), txcount(0), drq_tx(false), drq_rx(false), irq_tx(false), irq_rx(false), timer_tx(nullptr), timer_rx(nullptr), irq_tx_cb(*this), irq_rx_cb(*this), diff --git a/src/devices/machine/microtch.cpp b/src/devices/machine/microtch.cpp index 7e13d3c62f0..8cb8abce1ac 100644 --- a/src/devices/machine/microtch.cpp +++ b/src/devices/machine/microtch.cpp @@ -19,7 +19,7 @@ const device_type MICROTOUCH = &device_creator<microtouch_device>; microtouch_device::microtouch_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, MICROTOUCH, "Microtouch Touchscreen", tag, owner, clock, "microtouch", __FILE__), - device_serial_interface(mconfig, *this), m_rx_buffer_ptr(0), m_tx_buffer_num(0), m_tx_buffer_ptr(0), m_reset_done(0), m_format(0), m_mode(0), m_last_touch_state(0), + device_serial_interface(mconfig, *this), m_rx_buffer_ptr(0), m_tx_buffer_num(0), m_tx_buffer_ptr(0), m_reset_done(0), m_format(0), m_mode(0), m_last_touch_state(0), m_last_x(0), m_last_y(0), m_out_stx_func(*this), m_touch(*this, "TOUCH"), diff --git a/src/devices/machine/mos6530n.cpp b/src/devices/machine/mos6530n.cpp index 2f1b2258555..3affa2d7b7f 100644 --- a/src/devices/machine/mos6530n.cpp +++ b/src/devices/machine/mos6530n.cpp @@ -61,7 +61,7 @@ DEVICE_ADDRESS_MAP_START( io_map, 8, mos6532_t ) AM_RANGE(0x00, 0x00) AM_MIRROR(0x18) AM_READWRITE(pa_data_r, pa_data_w) // SWCHA AM_RANGE(0x01, 0x01) AM_MIRROR(0x18) AM_READWRITE(pa_ddr_r, pa_ddr_w) // SWACNT AM_RANGE(0x02, 0x02) AM_MIRROR(0x18) AM_READWRITE(pb_data_r, pb_data_w) // SWCHB - AM_RANGE(0x03, 0x03) AM_MIRROR(0x18) AM_READWRITE(pb_ddr_r, pb_ddr_w) // SWBCNT + AM_RANGE(0x03, 0x03) AM_MIRROR(0x18) AM_READWRITE(pb_ddr_r, pb_ddr_w) // SWBCNT AM_RANGE(0x14, 0x17) AM_WRITE(timer_off_w) AM_RANGE(0x1c, 0x1f) AM_WRITE(timer_on_w) AM_RANGE(0x04, 0x04) AM_MIRROR(0x12) AM_READ(timer_off_r) diff --git a/src/devices/machine/ncr5380n.cpp b/src/devices/machine/ncr5380n.cpp index 33e681b555a..6534730ca00 100644 --- a/src/devices/machine/ncr5380n.cpp +++ b/src/devices/machine/ncr5380n.cpp @@ -31,8 +31,8 @@ DEVICE_ADDRESS_MAP_START(map, 8, ncr5380n_device) ADDRESS_MAP_END ncr5380n_device::ncr5380n_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : nscsi_device(mconfig, NCR5380N, "5380 SCSI (new)", tag, owner, clock, "ncr5380", __FILE__), tm(nullptr), status(0), istatus(0), m_mode(0), - m_outdata(0), m_busstatus(0), m_dmalatch(0), m_icommand(0), m_tcommand(0), clock_conv(0), sync_offset(0), sync_period(0), bus_id(0), select_timeout(0), + : nscsi_device(mconfig, NCR5380N, "5380 SCSI (new)", tag, owner, clock, "ncr5380", __FILE__), tm(nullptr), status(0), istatus(0), m_mode(0), + m_outdata(0), m_busstatus(0), m_dmalatch(0), m_icommand(0), m_tcommand(0), clock_conv(0), sync_offset(0), sync_period(0), bus_id(0), select_timeout(0), seq(0), tcount(0), mode(0), state(0), irq(false), drq(false), m_irq_handler(*this), m_drq_handler(*this) diff --git a/src/devices/machine/ncr5390.cpp b/src/devices/machine/ncr5390.cpp index 6ccbdcdbbc3..fa29299ff45 100644 --- a/src/devices/machine/ncr5390.cpp +++ b/src/devices/machine/ncr5390.cpp @@ -22,7 +22,7 @@ DEVICE_ADDRESS_MAP_START(map, 8, ncr5390_device) ADDRESS_MAP_END ncr5390_device::ncr5390_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : nscsi_device(mconfig, NCR5390, "5390 SCSI", tag, owner, clock, "ncr5390", __FILE__), tm(nullptr), config(0), status(0), istatus(0), clock_conv(0), sync_offset(0), sync_period(0), bus_id(0), + : nscsi_device(mconfig, NCR5390, "5390 SCSI", tag, owner, clock, "ncr5390", __FILE__), tm(nullptr), config(0), status(0), istatus(0), clock_conv(0), sync_offset(0), sync_period(0), bus_id(0), select_timeout(0), seq(0), tcount(0), mode(0), fifo_pos(0), command_pos(0), state(0), xfr_phase(0), command_length(0), dma_dir(0), irq(false), drq(false), m_irq_handler(*this), m_drq_handler(*this) diff --git a/src/devices/machine/nsc810.cpp b/src/devices/machine/nsc810.cpp index 85fd2f93f48..fb2f3466508 100644 --- a/src/devices/machine/nsc810.cpp +++ b/src/devices/machine/nsc810.cpp @@ -23,8 +23,8 @@ const device_type NSC810 = &device_creator<nsc810_device>; nsc810_device::nsc810_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, NSC810, "National Semiconductor NSC810", tag, owner, clock, "nsc810", __FILE__), m_portA_latch(0), m_portB_latch(0), m_portC_latch(0), - m_ddrA(0), m_ddrB(0), m_ddrC(0), m_mode(0), m_timer0(nullptr), m_timer1(nullptr), m_timer0_mode(0), m_timer1_mode(0), m_timer0_counter(0), m_timer1_counter(0), + device_t(mconfig, NSC810, "National Semiconductor NSC810", tag, owner, clock, "nsc810", __FILE__), m_portA_latch(0), m_portB_latch(0), m_portC_latch(0), + m_ddrA(0), m_ddrB(0), m_ddrC(0), m_mode(0), m_timer0(nullptr), m_timer1(nullptr), m_timer0_mode(0), m_timer1_mode(0), m_timer0_counter(0), m_timer1_counter(0), m_timer0_base(0), m_timer1_base(0), m_timer0_running(false), m_timer1_running(false), m_timer0_clock(0), m_timer1_clock(0), m_ramselect(false), m_portA_r(*this), m_portB_r(*this), diff --git a/src/devices/machine/serflash.cpp b/src/devices/machine/serflash.cpp index 6660fd16aaa..ebdd1dd53a9 100644 --- a/src/devices/machine/serflash.cpp +++ b/src/devices/machine/serflash.cpp @@ -24,7 +24,7 @@ const device_type SERFLASH = &device_creator<serflash_device>; serflash_device::serflash_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, SERFLASH, "Serial Flash", tag, owner, clock, "serflash", __FILE__), device_nvram_interface(mconfig, *this), - m_length(0), m_region(nullptr), m_flash_state(), m_flash_enab(0), m_flash_cmd_seq(0), m_flash_cmd_prev(0), m_flash_addr_seq(0), m_flash_read_seq(0), m_flash_row(0), + m_length(0), m_region(nullptr), m_flash_state(), m_flash_enab(0), m_flash_cmd_seq(0), m_flash_cmd_prev(0), m_flash_addr_seq(0), m_flash_read_seq(0), m_flash_row(0), m_flash_col(0), m_flash_page_addr(0), m_flash_page_index(0), m_last_flash_cmd(0), m_flash_addr(0) { } diff --git a/src/devices/machine/t10mmc.h b/src/devices/machine/t10mmc.h index c8e0bff16de..47706a098f7 100644 --- a/src/devices/machine/t10mmc.h +++ b/src/devices/machine/t10mmc.h @@ -58,7 +58,7 @@ protected: UINT32 m_num_subblocks; UINT32 m_cur_subblock; int m_audio_sense; - + device_t *m_device; }; diff --git a/src/devices/machine/terminal.cpp b/src/devices/machine/terminal.cpp index 081266f801d..6b1b26b8c85 100644 --- a/src/devices/machine/terminal.cpp +++ b/src/devices/machine/terminal.cpp @@ -143,9 +143,9 @@ static const UINT8 terminal_font[256*16] = generic_terminal_device::generic_terminal_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : device_t(mconfig, type, name, tag, owner, clock, shortname, source), m_palette(*this, "palette"), - m_io_term_conf(*this, "TERM_CONF"), - m_x_pos(0), - m_framecnt(0), + m_io_term_conf(*this, "TERM_CONF"), + m_x_pos(0), + m_framecnt(0), m_y_pos(0), m_keyboard_cb(*this) { @@ -153,12 +153,12 @@ generic_terminal_device::generic_terminal_device(const machine_config &mconfig, generic_terminal_device::generic_terminal_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, GENERIC_TERMINAL, "Generic Terminal", tag, owner, clock, "generic_terminal", __FILE__), - m_palette(*this, "palette"), - m_io_term_conf(*this, "TERM_CONF"), - m_x_pos(0), - m_framecnt(0), - m_y_pos(0), - m_keyboard_cb(*this) + m_palette(*this, "palette"), + m_io_term_conf(*this, "TERM_CONF"), + m_x_pos(0), + m_framecnt(0), + m_y_pos(0), + m_keyboard_cb(*this) { } diff --git a/src/devices/machine/upd4701.cpp b/src/devices/machine/upd4701.cpp index d2b103f1f5b..37e5d5dadd9 100644 --- a/src/devices/machine/upd4701.cpp +++ b/src/devices/machine/upd4701.cpp @@ -19,7 +19,7 @@ const device_type UPD4701 = &device_creator<upd4701_device>; upd4701_device::upd4701_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : device_t(mconfig, UPD4701, "uPD4701 Encoder", tag, owner, clock, "upd4701", __FILE__), m_cs(0), m_xy(0), m_ul(0), m_resetx(0), m_resety(0), m_latchx(0), m_latchy(0), + : device_t(mconfig, UPD4701, "uPD4701 Encoder", tag, owner, clock, "upd4701", __FILE__), m_cs(0), m_xy(0), m_ul(0), m_resetx(0), m_resety(0), m_latchx(0), m_latchy(0), m_startx(0), m_starty(0), m_x(0), m_y(0), m_switches(0), m_latchswitches(0), m_cf(0) { } diff --git a/src/devices/machine/ym2148.cpp b/src/devices/machine/ym2148.cpp index 8f4df5af907..bdaef303d77 100644 --- a/src/devices/machine/ym2148.cpp +++ b/src/devices/machine/ym2148.cpp @@ -30,7 +30,7 @@ ym2148_device::ym2148_device(const machine_config &mconfig, const char *tag, dev , m_data_in(0) , m_control(0) , m_status(0), m_timer(nullptr) - , m_rxd(1) + , m_rxd(1) , m_tx_busy(false) { } diff --git a/src/devices/machine/z80ctc.cpp b/src/devices/machine/z80ctc.cpp index 4f7a2c32e7c..7ea90146ca3 100644 --- a/src/devices/machine/z80ctc.cpp +++ b/src/devices/machine/z80ctc.cpp @@ -85,7 +85,7 @@ z80ctc_device::z80ctc_device(const machine_config &mconfig, const char *tag, dev m_zc0_cb(*this), m_zc1_cb(*this), m_zc2_cb(*this), - m_zc3_cb(*this), + m_zc3_cb(*this), m_vector(0) { } @@ -284,8 +284,8 @@ void z80ctc_device::interrupt_check() //------------------------------------------------- z80ctc_device::ctc_channel::ctc_channel() - : m_device(NULL), - m_index(0), + : m_device(NULL), + m_index(0), m_mode(0), m_tconst(0), m_down(0), diff --git a/src/devices/sound/2151intf.cpp b/src/devices/sound/2151intf.cpp index 567b8cfe16d..cd87829c803 100644 --- a/src/devices/sound/2151intf.cpp +++ b/src/devices/sound/2151intf.cpp @@ -23,9 +23,9 @@ const device_type YM2151 = &device_creator<ym2151_device>; ym2151_device::ym2151_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, YM2151, "YM2151", tag, owner, clock, "ym2151", __FILE__), - device_sound_interface(mconfig, *this), - m_stream(NULL), - m_chip(NULL), + device_sound_interface(mconfig, *this), + m_stream(NULL), + m_chip(NULL), m_lastreg(0), m_irqhandler(*this), m_portwritehandler(*this) diff --git a/src/devices/sound/3526intf.cpp b/src/devices/sound/3526intf.cpp index 6639aa83e5e..e66d745e31e 100644 --- a/src/devices/sound/3526intf.cpp +++ b/src/devices/sound/3526intf.cpp @@ -156,8 +156,8 @@ const device_type YM3526 = &device_creator<ym3526_device>; ym3526_device::ym3526_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, YM3526, "YM3526", tag, owner, clock, "ym3526", __FILE__), - device_sound_interface(mconfig, *this), - m_stream(NULL), + device_sound_interface(mconfig, *this), + m_stream(NULL), m_chip(NULL), m_irq_handler(*this) { diff --git a/src/devices/sound/3812intf.cpp b/src/devices/sound/3812intf.cpp index 73d0307d20a..edd752fa47d 100644 --- a/src/devices/sound/3812intf.cpp +++ b/src/devices/sound/3812intf.cpp @@ -154,8 +154,8 @@ const device_type YM3812 = &device_creator<ym3812_device>; ym3812_device::ym3812_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, YM3812, "YM3812", tag, owner, clock, "ym3812", __FILE__), - device_sound_interface(mconfig, *this), - m_stream(NULL), + device_sound_interface(mconfig, *this), + m_stream(NULL), m_chip(NULL), m_irq_handler(*this) { diff --git a/src/devices/sound/8950intf.cpp b/src/devices/sound/8950intf.cpp index 4ca01ed31a7..6c6a7931142 100644 --- a/src/devices/sound/8950intf.cpp +++ b/src/devices/sound/8950intf.cpp @@ -205,8 +205,8 @@ const device_type Y8950 = &device_creator<y8950_device>; y8950_device::y8950_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, Y8950, "Y8950", tag, owner, clock, "y8950", __FILE__), - device_sound_interface(mconfig, *this), - m_stream(NULL), + device_sound_interface(mconfig, *this), + m_stream(NULL), m_chip(NULL), m_irq_handler(*this), m_keyboard_read_handler(*this), diff --git a/src/devices/sound/discrete.cpp b/src/devices/sound/discrete.cpp index 6d72e6b1e95..3e8eaed0632 100644 --- a/src/devices/sound/discrete.cpp +++ b/src/devices/sound/discrete.cpp @@ -354,14 +354,14 @@ void discrete_task::check(discrete_task *dest_task) * *************************************/ -discrete_base_node::discrete_base_node() : +discrete_base_node::discrete_base_node() : m_device(NULL), m_block(NULL), - m_active_inputs(0), + m_active_inputs(0), m_custom(NULL), m_input_is_node(0), m_step_intf(NULL), - m_input_intf(NULL), + m_input_intf(NULL), m_output_intf(NULL) { m_output[0] = 0.0; @@ -851,7 +851,7 @@ discrete_device::discrete_device(const machine_config &mconfig, device_type type discrete_sound_device::discrete_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : discrete_device(mconfig, DISCRETE, "DISCRETE", tag, owner, clock), - device_sound_interface(mconfig, *this), + device_sound_interface(mconfig, *this), m_stream(NULL) { } diff --git a/src/devices/sound/fm.cpp b/src/devices/sound/fm.cpp index cb30e55656a..2e3e0f5d92b 100644 --- a/src/devices/sound/fm.cpp +++ b/src/devices/sound/fm.cpp @@ -2422,8 +2422,8 @@ struct YM2610 UINT8 flagmask; /* YM2608 only */ UINT8 irqmask; /* YM2608 only */ - - device_t *device; + + device_t *device; }; /* here is the virtual YM2608 */ diff --git a/src/devices/sound/fm2612.cpp b/src/devices/sound/fm2612.cpp index 22e7e8b7749..fc74fa6e6ea 100644 --- a/src/devices/sound/fm2612.cpp +++ b/src/devices/sound/fm2612.cpp @@ -693,7 +693,7 @@ struct YM2612 /* dac output (YM2612) */ int dacen; INT32 dacout; - device_t *device; + device_t *device; }; /* log output level */ diff --git a/src/devices/sound/k054539.cpp b/src/devices/sound/k054539.cpp index 350077fb96e..90e7efbff1d 100644 --- a/src/devices/sound/k054539.cpp +++ b/src/devices/sound/k054539.cpp @@ -19,7 +19,7 @@ const device_type K054539 = &device_creator<k054539_device>; k054539_device::k054539_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, K054539, "K054539 ADPCM", tag, owner, clock, "k054539", __FILE__), - device_sound_interface(mconfig, *this), flags(0), ram(nullptr), reverb_pos(0), cur_ptr(0), cur_limit(0), + device_sound_interface(mconfig, *this), flags(0), ram(nullptr), reverb_pos(0), cur_ptr(0), cur_limit(0), cur_zone(nullptr), rom(nullptr), rom_size(0), rom_mask(0), stream(nullptr), m_timer(nullptr), m_timer_state(0), m_timer_handler(*this), m_rgnoverride(NULL) diff --git a/src/devices/sound/l7a1045_l6028_dsp_a.h b/src/devices/sound/l7a1045_l6028_dsp_a.h index 836c35b20d0..b095a79568d 100644 --- a/src/devices/sound/l7a1045_l6028_dsp_a.h +++ b/src/devices/sound/l7a1045_l6028_dsp_a.h @@ -7,7 +7,7 @@ struct l7a1045_voice { l7a1045_voice() : end(0), mode(false), - pos(0), + pos(0), frac(0), l_volume(0), r_volume(0) { //memset(regs, 0, sizeof(UINT32)*8); diff --git a/src/devices/sound/mas3507d.cpp b/src/devices/sound/mas3507d.cpp index d61b932a1bf..7b081d0a4bf 100644 --- a/src/devices/sound/mas3507d.cpp +++ b/src/devices/sound/mas3507d.cpp @@ -12,7 +12,7 @@ const device_type MAS3507D = &device_creator<mas3507d_device>; mas3507d_device::mas3507d_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, MAS3507D, "MAS3507D", tag, owner, clock, "mas3507d", __FILE__), - device_sound_interface(mconfig, *this), i2c_bus_state(), i2c_bus_address(), i2c_scli(false), i2c_sclo(false), i2c_sdai(false), i2c_sdao(false), + device_sound_interface(mconfig, *this), i2c_bus_state(), i2c_bus_address(), i2c_scli(false), i2c_sclo(false), i2c_sdai(false), i2c_sdao(false), i2c_bus_curbit(0), i2c_bus_curval(0), i2c_subdest(), i2c_command(), i2c_bytecount(0), i2c_io_bank(0), i2c_io_adr(0), i2c_io_count(0), i2c_io_val(0) { } diff --git a/src/devices/sound/multipcm.cpp b/src/devices/sound/multipcm.cpp index ef6613d8546..3d89611cfe5 100644 --- a/src/devices/sound/multipcm.cpp +++ b/src/devices/sound/multipcm.cpp @@ -45,22 +45,22 @@ ALLOW_SAVE_TYPE(multipcm_device::state_t); // allow save_item on a non-fundament //Times are based on a 44100Hz timebase. It's adjusted to the actual sampling rate on startup const double multipcm_device::BASE_TIMES[64] = { - 0, 0, 0, 0, - 6222.95, 4978.37, 4148.66, 3556.01, - 3111.47, 2489.21, 2074.33, 1778.00, - 1555.74, 1244.63, 1037.19, 889.02, - 777.87, 622.31, 518.59, 444.54, - 388.93, 311.16, 259.32, 222.27, - 194.47, 155.60, 129.66, 111.16, - 97.23, 77.82, 64.85, 55.60, - 48.62, 38.91, 32.43, 27.80, - 24.31, 19.46, 16.24, 13.92, - 12.15, 9.75, 8.12, 6.98, - 6.08, 4.90, 4.08, 3.49, - 3.04, 2.49, 2.13, 1.90, - 1.72, 1.41, 1.18, 1.04, - 0.91, 0.73, 0.59, 0.50, - 0.45, 0.45, 0.45, 0.45 + 0, 0, 0, 0, + 6222.95, 4978.37, 4148.66, 3556.01, + 3111.47, 2489.21, 2074.33, 1778.00, + 1555.74, 1244.63, 1037.19, 889.02, + 777.87, 622.31, 518.59, 444.54, + 388.93, 311.16, 259.32, 222.27, + 194.47, 155.60, 129.66, 111.16, + 97.23, 77.82, 64.85, 55.60, + 48.62, 38.91, 32.43, 27.80, + 24.31, 19.46, 16.24, 13.92, + 12.15, 9.75, 8.12, 6.98, + 6.08, 4.90, 4.08, 3.49, + 3.04, 2.49, 2.13, 1.90, + 1.72, 1.41, 1.18, 1.04, + 0.91, 0.73, 0.59, 0.50, + 0.45, 0.45, 0.45, 0.45 }; const INT32 multipcm_device::VALUE_TO_CHANNEL[32] = diff --git a/src/devices/sound/multipcm.h b/src/devices/sound/multipcm.h index 950905e47b8..6ea22c5e3e8 100644 --- a/src/devices/sound/multipcm.h +++ b/src/devices/sound/multipcm.h @@ -98,7 +98,7 @@ private: // internal state sound_stream *m_stream; - sample_t *m_samples; // Max 512 samples + sample_t *m_samples; // Max 512 samples slot_t *m_slots; UINT32 m_cur_slot; UINT32 m_address; @@ -107,8 +107,8 @@ private: float m_rate; UINT32 *m_attack_step; - UINT32 *m_decay_release_step; // Envelope step tables - UINT32 *m_freq_step_table; // Frequency step table + UINT32 *m_decay_release_step; // Envelope step tables + UINT32 *m_freq_step_table; // Frequency step table direct_read_data *m_direct; diff --git a/src/devices/sound/samples.cpp b/src/devices/sound/samples.cpp index 279eada7a1f..6da7dd48f16 100644 --- a/src/devices/sound/samples.cpp +++ b/src/devices/sound/samples.cpp @@ -84,7 +84,7 @@ void samples_device::start(UINT8 channel, UINT32 samplenum, bool loop) chan.stream->update(); // update the parameters - sample_t &sample = m_sample[samplenum]; + sample_t &sample = m_sample[samplenum]; chan.source = (sample.data.size() > 0) ? &sample.data[0] : NULL; chan.source_length = sample.data.size(); chan.source_num = (chan.source_length > 0) ? samplenum : -1; diff --git a/src/devices/sound/votrax.cpp b/src/devices/sound/votrax.cpp index ff91eb33f44..c4538f14270 100644 --- a/src/devices/sound/votrax.cpp +++ b/src/devices/sound/votrax.cpp @@ -96,15 +96,15 @@ const double votrax_sc01_device::s_glottal_wave[16] = votrax_sc01_device::votrax_sc01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, VOTRAX_SC01, "Votrax SC-01", tag, owner, clock, "votrax", __FILE__), - device_sound_interface(mconfig, *this), - m_stream(NULL), - m_phoneme_timer(NULL), m_rom(NULL), m_inflection(0), m_phoneme(0), - m_request_cb(*this), m_request_state(0), m_internal_request(0), m_master_clock_freq(0), m_master_clock(0), m_counter_34(0), - m_latch_70(0), m_latch_72(0), m_beta1(0), m_p2(0), m_p1(0), m_phi2(0), m_phi1(0), m_phi2_20(0), m_phi1_20(0), m_subphoneme_period(0), - m_subphoneme_count(0), m_clock_88(0), m_latch_42(0), m_counter_84(0), m_latch_92(0), m_srff_132(false), m_srff_114(false), m_srff_112(false), - m_srff_142(false), m_latch_80(0), m_counter_220(0), m_counter_222(0), m_counter_224(0), m_counter_234(0), m_counter_236(0), m_fgate(0), - m_glottal_sync(0), m_0625_clock(0), m_counter_46(0), m_latch_46(0), m_latch_168(0), m_latch_170(0), m_f1(0), m_f2(0), m_fc(0), m_f3(0), - m_f2q(0), m_va(0), m_fa(0), m_noise_clock(0), m_shift_252(0), m_counter_250(0) + device_sound_interface(mconfig, *this), + m_stream(NULL), + m_phoneme_timer(NULL), m_rom(NULL), m_inflection(0), m_phoneme(0), + m_request_cb(*this), m_request_state(0), m_internal_request(0), m_master_clock_freq(0), m_master_clock(0), m_counter_34(0), + m_latch_70(0), m_latch_72(0), m_beta1(0), m_p2(0), m_p1(0), m_phi2(0), m_phi1(0), m_phi2_20(0), m_phi1_20(0), m_subphoneme_period(0), + m_subphoneme_count(0), m_clock_88(0), m_latch_42(0), m_counter_84(0), m_latch_92(0), m_srff_132(false), m_srff_114(false), m_srff_112(false), + m_srff_142(false), m_latch_80(0), m_counter_220(0), m_counter_222(0), m_counter_224(0), m_counter_234(0), m_counter_236(0), m_fgate(0), + m_glottal_sync(0), m_0625_clock(0), m_counter_46(0), m_latch_46(0), m_latch_168(0), m_latch_170(0), m_f1(0), m_f2(0), m_fc(0), m_f3(0), + m_f2q(0), m_va(0), m_fa(0), m_noise_clock(0), m_shift_252(0), m_counter_250(0) { } @@ -656,9 +656,9 @@ osd_printf_debug("counter=%d\n", m_counter_84); { // if the request line was previously low, reset the VD/CLD flip-flops if (m_internal_request == CLEAR_LINE) - { + { m_srff_112 = m_srff_114 = false; - } + } m_internal_request = ASSERT_LINE; } @@ -698,18 +698,18 @@ osd_printf_debug("counter=%d\n", m_counter_84); case 4: romdata_swapped = (BIT(romdata, 0) << 3) | (BIT(romdata, 1) << 2) | (BIT(romdata, 2) << 1) | (BIT(romdata, 3) << 0); if (m_counter_84 != 0 && romdata_swapped == (m_counter_84 ^ 0xf)) - { + { m_srff_114 = true; - } + } break; // update VD case 5: romdata_swapped = (BIT(romdata, 0) << 3) | (BIT(romdata, 1) << 2) | (BIT(romdata, 2) << 1) | (BIT(romdata, 3) << 0); if (m_counter_84 != 0 && romdata_swapped == (m_counter_84 ^ 0xf)) - { + { m_srff_112 = true; - } + } break; // update FF == PAC & (VA | FA) @@ -857,16 +857,16 @@ osd_printf_debug("[PH=%02X]\n", m_latch_80); case 5: if ((m_latch_46 & 0xc) == 0xc && m_srff_112) - { + { ram_write = 1; - } + } break; case 6: if ((m_latch_46 & 0xc) == 0xc && m_srff_114) - { + { ram_write = 1; - } + } break; } diff --git a/src/devices/sound/ymdeltat.cpp b/src/devices/sound/ymdeltat.cpp index 7d67bcf357b..af9b4ac6a51 100644 --- a/src/devices/sound/ymdeltat.cpp +++ b/src/devices/sound/ymdeltat.cpp @@ -413,7 +413,7 @@ value: START, REC, MEMDAT, REPEAT, SPOFF, x,x,RESET meaning: void YM_DELTAT_ADPCM_Reset(YM_DELTAT *DELTAT,int pan,int emulation_mode,device_t *device) { - DELTAT->device = device; + DELTAT->device = device; DELTAT->now_addr = 0; DELTAT->now_step = 0; DELTAT->step = 0; diff --git a/src/devices/video/315_5313.cpp b/src/devices/video/315_5313.cpp index 0ed77263bd3..6a655874da4 100644 --- a/src/devices/video/315_5313.cpp +++ b/src/devices/video/315_5313.cpp @@ -15,15 +15,15 @@ const device_type SEGA315_5313 = &device_creator<sega315_5313_device>; sega315_5313_device::sega315_5313_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) - : sega315_5124_device(mconfig, SEGA315_5313, "Sega 315-5313 Megadrive VDP", tag, owner, clock, SEGA315_5124_CRAM_SIZE, 0, true, "sega315_5313", __FILE__), m_render_bitmap(nullptr), + : sega315_5124_device(mconfig, SEGA315_5313, "Sega 315-5313 Megadrive VDP", tag, owner, clock, SEGA315_5124_CRAM_SIZE, 0, true, "sega315_5313", __FILE__), m_render_bitmap(nullptr), m_render_line(nullptr), m_render_line_raw(nullptr), m_megadriv_scanline_timer(nullptr), m_sndirqline_callback(*this), m_lv6irqline_callback(*this), - m_lv4irqline_callback(*this), m_command_pending(0), m_command_part1(0), m_command_part2(0), m_vdp_code(0), m_vdp_address(0), m_vram_fill_pending(0), m_vram_fill_length(0), m_irq4counter(0), - m_imode_odd_frame(0), m_sprite_collision(0), m_irq6_pending(0), m_irq4_pending(0), m_scanline_counter(0), m_vblank_flag(0), m_imode(0), m_visible_scanlines(0), m_irq6_scanline(0), + m_lv4irqline_callback(*this), m_command_pending(0), m_command_part1(0), m_command_part2(0), m_vdp_code(0), m_vdp_address(0), m_vram_fill_pending(0), m_vram_fill_length(0), m_irq4counter(0), + m_imode_odd_frame(0), m_sprite_collision(0), m_irq6_pending(0), m_irq4_pending(0), m_scanline_counter(0), m_vblank_flag(0), m_imode(0), m_visible_scanlines(0), m_irq6_scanline(0), m_z80irq_scanline(0), m_total_scanlines(0), m_base_total_scanlines(0), m_framerate(0), m_vdp_pal(0), m_use_cram(0), - m_dma_delay(0), m_regs(nullptr), m_vram(nullptr), m_cram(nullptr), m_vsram(nullptr), m_internal_sprite_attribute_table(nullptr), m_irq6_on_timer(nullptr), m_irq4_on_timer(nullptr), - m_render_timer(nullptr), m_sprite_renderline(nullptr), m_highpri_renderline(nullptr), m_video_renderline(nullptr), m_palette_lookup(nullptr), m_palette_lookup_sprite(nullptr), + m_dma_delay(0), m_regs(nullptr), m_vram(nullptr), m_cram(nullptr), m_vsram(nullptr), m_internal_sprite_attribute_table(nullptr), m_irq6_on_timer(nullptr), m_irq4_on_timer(nullptr), + m_render_timer(nullptr), m_sprite_renderline(nullptr), m_highpri_renderline(nullptr), m_video_renderline(nullptr), m_palette_lookup(nullptr), m_palette_lookup_sprite(nullptr), m_palette_lookup_shadow(nullptr), m_palette_lookup_highlight(nullptr), m_space68k(nullptr), m_cpu68k(nullptr) { m_use_alt_timing = 0; diff --git a/src/devices/video/crtc_ega.cpp b/src/devices/video/crtc_ega.cpp index b1e5a5facda..c8c4c212f72 100644 --- a/src/devices/video/crtc_ega.cpp +++ b/src/devices/video/crtc_ega.cpp @@ -24,13 +24,13 @@ crtc_ega_device::crtc_ega_device(const machine_config &mconfig, const char *tag, m_res_out_de_cb(*this), m_res_out_hsync_cb(*this), m_res_out_vsync_cb(*this), - m_res_out_vblank_cb(*this), m_horiz_char_total(0), m_horiz_disp(0), m_horiz_blank_start(0), m_horiz_blank_end(0), m_ena_vert_access(0), m_de_skew(0), m_horiz_retr_start(0), m_horiz_retr_end(0), - m_horiz_retr_skew(0), m_vert_total(0), m_preset_row_scan(0), m_byte_panning(0), m_max_ras_addr(0), m_scan_doubling(0), m_cursor_start_ras(0), m_cursor_disable(0), m_cursor_end_ras(0), m_cursor_skew(0), - m_disp_start_addr(0), m_cursor_addr(0), m_light_pen_addr(0), m_vert_retr_start(0), m_vert_retr_end(0), m_protect(0), m_bandwidth(0), m_vert_disp_end(0), m_offset(0), m_underline_loc(0), m_vert_blank_start(0), + m_res_out_vblank_cb(*this), m_horiz_char_total(0), m_horiz_disp(0), m_horiz_blank_start(0), m_horiz_blank_end(0), m_ena_vert_access(0), m_de_skew(0), m_horiz_retr_start(0), m_horiz_retr_end(0), + m_horiz_retr_skew(0), m_vert_total(0), m_preset_row_scan(0), m_byte_panning(0), m_max_ras_addr(0), m_scan_doubling(0), m_cursor_start_ras(0), m_cursor_disable(0), m_cursor_end_ras(0), m_cursor_skew(0), + m_disp_start_addr(0), m_cursor_addr(0), m_light_pen_addr(0), m_vert_retr_start(0), m_vert_retr_end(0), m_protect(0), m_bandwidth(0), m_vert_disp_end(0), m_offset(0), m_underline_loc(0), m_vert_blank_start(0), m_vert_blank_end(0), m_mode_control(0), m_line_compare(0), m_register_address_latch(0), m_cursor_state(false), m_cursor_blink_count(0), - m_hpixels_per_column(0), m_cur(0), m_hsync(0), m_vsync(0), m_vblank(0), m_de(0), m_character_counter(0), m_hsync_width_counter(0), m_line_counter(0), m_raster_counter(0), m_vsync_width_counter(0), - m_line_enable_ff(false), m_vsync_ff(0), m_adjust_active(0), m_line_address(0), m_cursor_x(0), m_line_timer(nullptr), m_de_off_timer(nullptr), m_cur_on_timer(nullptr), m_cur_off_timer(nullptr), - m_hsync_on_timer(nullptr), m_hsync_off_timer(nullptr), m_light_pen_latch_timer(nullptr), m_horiz_pix_total(0), m_vert_pix_total(0), m_max_visible_x(0), m_max_visible_y(0), m_hsync_on_pos(0), + m_hpixels_per_column(0), m_cur(0), m_hsync(0), m_vsync(0), m_vblank(0), m_de(0), m_character_counter(0), m_hsync_width_counter(0), m_line_counter(0), m_raster_counter(0), m_vsync_width_counter(0), + m_line_enable_ff(false), m_vsync_ff(0), m_adjust_active(0), m_line_address(0), m_cursor_x(0), m_line_timer(nullptr), m_de_off_timer(nullptr), m_cur_on_timer(nullptr), m_cur_off_timer(nullptr), + m_hsync_on_timer(nullptr), m_hsync_off_timer(nullptr), m_light_pen_latch_timer(nullptr), m_horiz_pix_total(0), m_vert_pix_total(0), m_max_visible_x(0), m_max_visible_y(0), m_hsync_on_pos(0), m_hsync_off_pos(0), m_vsync_on_pos(0), m_vsync_off_pos(0), m_current_disp_addr(0), m_light_pen_latched(0), m_has_valid_parameters(false) { } diff --git a/src/devices/video/epic12.cpp b/src/devices/video/epic12.cpp index 15b5bdedfd5..3fe0be1e0f7 100644 --- a/src/devices/video/epic12.cpp +++ b/src/devices/video/epic12.cpp @@ -11,7 +11,7 @@ const device_type EPIC12 = &device_creator<epic12_device>; epic12_device::epic12_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, EPIC12, "EP1C12 Blitter", tag, owner, clock, "epic12", __FILE__), - device_video_interface(mconfig, *this), m_ram16(nullptr), m_gfx_size(0), m_bitmaps(nullptr), m_use_ram(nullptr), + device_video_interface(mconfig, *this), m_ram16(nullptr), m_gfx_size(0), m_bitmaps(nullptr), m_use_ram(nullptr), m_main_ramsize(0), m_main_rammask(0), m_maincpu(nullptr), m_ram16_copy(nullptr), m_work_queue(nullptr) { m_is_unsafe = 0; diff --git a/src/devices/video/scn2674.cpp b/src/devices/video/scn2674.cpp index bedf15dceca..9198fb28984 100644 --- a/src/devices/video/scn2674.cpp +++ b/src/devices/video/scn2674.cpp @@ -21,14 +21,14 @@ scn2674_device::scn2674_device(const machine_config &mconfig, const char *tag, d : device_t(mconfig, SCN2674_VIDEO, "Signetics SCN2674 AVDC", tag, owner, clock, "scn2674_device", __FILE__), device_video_interface(mconfig, *this), device_memory_interface(mconfig, *this), - m_irq_cb(*this), m_IR_pointer(0), m_screen1_l(0), m_screen1_h(0), m_cursor_l(0), m_cursor_h(0), m_screen2_l(0), m_screen2_h(0), m_irq_register(0), m_status_register(0), m_irq_mask(0), - m_gfx_enabled(0), m_display_enabled(0), m_display_enabled_field(0), m_display_enabled_scanline(0), m_cursor_enabled(0), m_hpixels_per_column(0), m_text_hpixels_per_column(0), - m_gfx_hpixels_per_column(0), m_IR0_double_ht_wd(0), m_IR0_scanline_per_char_row(0), m_IR0_sync_select(0), m_IR0_buffer_mode_select(0), m_IR1_interlace_enable(0), m_IR1_equalizing_constant(0), - m_IR2_row_table(0), m_IR2_horz_sync_width(0), m_IR2_horz_back_porch(0), m_IR3_vert_front_porch(0), m_IR3_vert_back_porch(0), m_IR4_rows_per_screen(0), m_IR4_character_blink_rate_divisor(0), - m_IR5_character_per_row(0), m_IR6_cursor_first_scanline(0), m_IR6_cursor_last_scanline(0), m_IR7_cursor_underline_position(0), m_IR7_cursor_rate_divisor(0), m_IR7_cursor_blink(0), - m_IR7_vsync_width(0), m_IR8_display_buffer_first_address_LSB(0), m_IR9_display_buffer_first_address_MSB(0), m_IR9_display_buffer_last_address(0), m_IR10_display_pointer_address_lower(0), - m_IR11_display_pointer_address_upper(0), m_IR11_reset_scanline_counter_on_scrollup(0), m_IR11_reset_scanline_counter_on_scrolldown(0), m_IR12_scroll_start(0), m_IR12_split_register_1(0), - m_IR13_scroll_end(0), m_IR13_split_register_2(0), m_IR14_scroll_lines(0), m_IR14_double_1(0), m_IR14_double_2(0), m_spl1(0), m_spl2(0), m_dbl1(0), m_buffer(0), m_linecounter(0), m_address(0), + m_irq_cb(*this), m_IR_pointer(0), m_screen1_l(0), m_screen1_h(0), m_cursor_l(0), m_cursor_h(0), m_screen2_l(0), m_screen2_h(0), m_irq_register(0), m_status_register(0), m_irq_mask(0), + m_gfx_enabled(0), m_display_enabled(0), m_display_enabled_field(0), m_display_enabled_scanline(0), m_cursor_enabled(0), m_hpixels_per_column(0), m_text_hpixels_per_column(0), + m_gfx_hpixels_per_column(0), m_IR0_double_ht_wd(0), m_IR0_scanline_per_char_row(0), m_IR0_sync_select(0), m_IR0_buffer_mode_select(0), m_IR1_interlace_enable(0), m_IR1_equalizing_constant(0), + m_IR2_row_table(0), m_IR2_horz_sync_width(0), m_IR2_horz_back_porch(0), m_IR3_vert_front_porch(0), m_IR3_vert_back_porch(0), m_IR4_rows_per_screen(0), m_IR4_character_blink_rate_divisor(0), + m_IR5_character_per_row(0), m_IR6_cursor_first_scanline(0), m_IR6_cursor_last_scanline(0), m_IR7_cursor_underline_position(0), m_IR7_cursor_rate_divisor(0), m_IR7_cursor_blink(0), + m_IR7_vsync_width(0), m_IR8_display_buffer_first_address_LSB(0), m_IR9_display_buffer_first_address_MSB(0), m_IR9_display_buffer_last_address(0), m_IR10_display_pointer_address_lower(0), + m_IR11_display_pointer_address_upper(0), m_IR11_reset_scanline_counter_on_scrollup(0), m_IR11_reset_scanline_counter_on_scrolldown(0), m_IR12_scroll_start(0), m_IR12_split_register_1(0), + m_IR13_scroll_end(0), m_IR13_split_register_2(0), m_IR14_scroll_lines(0), m_IR14_double_1(0), m_IR14_double_2(0), m_spl1(0), m_spl2(0), m_dbl1(0), m_buffer(0), m_linecounter(0), m_address(0), m_start1change(0), m_irq_state(0), m_scanline_timer(nullptr), m_space_config("videoram", ENDIANNESS_LITTLE, 8, 16, 0, NULL, *ADDRESS_MAP_NAME(scn2674_vram)) { diff --git a/src/devices/video/sed1520.cpp b/src/devices/video/sed1520.cpp index 98815057e65..d868600595c 100644 --- a/src/devices/video/sed1520.cpp +++ b/src/devices/video/sed1520.cpp @@ -29,7 +29,7 @@ const device_type SED1520 = &device_creator<sed1520_device>; //------------------------------------------------- sed1520_device::sed1520_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, SED1520, "SED1520", tag, owner, clock, "sed1520", __FILE__), m_lcd_on(0), m_busy(0), m_page(0), m_column(0), m_old_column(0), m_start_line(0), + device_t(mconfig, SED1520, "SED1520", tag, owner, clock, "sed1520", __FILE__), m_lcd_on(0), m_busy(0), m_page(0), m_column(0), m_old_column(0), m_start_line(0), m_adc(0), m_static_drive(0), m_modify_write(false), m_screen_update_func(nullptr) { diff --git a/src/devices/video/t6a04.cpp b/src/devices/video/t6a04.cpp index 771963d016f..71b8e89d3bb 100644 --- a/src/devices/video/t6a04.cpp +++ b/src/devices/video/t6a04.cpp @@ -37,7 +37,7 @@ void t6a04_device::device_validity_check(validity_checker &valid) const //------------------------------------------------- t6a04_device::t6a04_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, T6A04, "T6A04", tag, owner, clock, "t6a04", __FILE__), m_busy_flag(0), m_display_on(0), m_contrast(0), m_xpos(0), m_ypos(0), m_zpos(0), m_direction(0), + device_t(mconfig, T6A04, "T6A04", tag, owner, clock, "t6a04", __FILE__), m_busy_flag(0), m_display_on(0), m_contrast(0), m_xpos(0), m_ypos(0), m_zpos(0), m_direction(0), m_active_counter(0), m_word_len(0), m_opa1(0), m_opa2(0), m_output_reg(0), m_height(0), m_width(0) |
