Previous 199869 Revisions Next

r41728 Saturday 14th November, 2015 at 18:43:55 UTC by Scott Stone
Merge branch 'master' of https://github.com/mamedev/mame
[scripts]genie.lua
[src/devices/bus/a1bus]a1bus.cpp a1cassette.cpp a1cffa.cpp
[src/devices/bus/a2bus]a2alfam2.cpp a2applicard.cpp a2bus.cpp a2cffa.cpp a2corvus.cpp a2diskii.cpp a2diskiing.cpp a2dx1.cpp a2eauxslot.cpp a2eramworks3.cpp a2hsscsi.cpp a2mcms.cpp a2memexp.cpp a2midi.cpp a2mockingboard.cpp a2pic.cpp a2scsi.cpp a2softcard.cpp a2ssc.cpp a2swyft.cpp a2themill.cpp a2thunderclock.cpp a2ultraterm.cpp a2videoterm.cpp a2vulcan.cpp a2zipdrive.cpp corvfdc01.cpp corvfdc02.cpp laser128.cpp mouse.cpp ramcard128k.cpp ramcard16k.cpp timemasterho.cpp
[src/devices/bus/a7800]a78_slot.cpp cpuwiz.cpp rom.cpp xboard.cpp
[src/devices/bus/a800]a800_slot.cpp a8sio.cpp cassette.cpp oss.cpp rom.cpp sparta.cpp
[src/devices/bus/abcbus]abcbus.cpp fd2.cpp lux10828.cpp lux21046.cpp lux21056.cpp
[src/devices/bus/abckb]abc77.cpp abc800kb.cpp abc99.cpp abckb.cpp
[src/devices/bus/adam]exp.cpp ide.cpp
[src/devices/bus/adamnet]adamnet.cpp ddp.cpp
[src/devices/bus/apf]slot.cpp
[src/devices/bus/apricot]expansion.cpp
[src/devices/bus/arcadia]slot.cpp
[src/devices/bus/astrocde]exp.cpp rom.cpp slot.cpp
[src/devices/bus/bml3]bml3bus.cpp bml3kanji.cpp bml3mp1802.cpp bml3mp1805.cpp
[src/devices/bus/bw2]exp.cpp
[src/devices/bus/c64]bn1541.cpp c128_partner.cpp comal80.cpp cpm.cpp dela_ep64.cpp dela_ep7x8.cpp dinamic.cpp dqbb.cpp easy_calc_result.cpp epyx_fast_load.cpp exp.cpp final3.cpp fun_play.cpp georam.cpp ide64.cpp mach5.cpp magic_desk.cpp magic_voice.cpp multiscreen.cpp neoram.cpp pagefox.cpp ross.cpp silverrock.cpp structured_basic.cpp super_explode.cpp super_games.cpp sw8k.cpp swiftlink.cpp system3.cpp tdos.cpp turbo232.cpp vw64.cpp zaxxon.cpp
[src/devices/bus/cbm2]exp.cpp user.cpp
[src/devices/bus/cbmiec]cbmiec.cpp
[src/devices/bus/centronics]comxpl80.cpp covox.cpp epson_ex800.cpp epson_lx810l.cpp printer.cpp
[src/devices/bus/chanf]rom.cpp slot.cpp
[src/devices/bus/coco]coco_dwsock.cpp coco_fdc.cpp coco_multi.cpp coco_orch90.cpp coco_pak.cpp cococart.cpp
[src/devices/bus/coleco]ctrl.cpp exp.cpp
[src/devices/bus/compucolor]floppy.cpp
[src/devices/bus/comx35]exp.cpp ram.cpp
[src/devices/bus/cpc]amdrum.cpp brunword4.cpp cpc_pds.cpp cpc_rom.cpp cpc_rs232.cpp cpc_ssa1.cpp cpcexp.cpp ddi1.cpp doubler.cpp hd20.cpp magicsound.cpp mface2.cpp playcity.cpp smartwatch.cpp symbfac2.cpp transtape.cpp
[src/devices/bus/crvision]slot.cpp
[src/devices/bus/dmv]dmvbus.cpp k210.cpp k220.cpp k230.cpp k233.cpp k801.cpp k803.cpp k806.cpp ram.cpp
[src/devices/bus/ecbbus]ecbbus.cpp grip.cpp
[src/devices/bus/econet]e01.cpp econet.cpp
[src/devices/bus/ep64]exp.cpp
[src/devices/bus/epson_sio]epson_sio.cpp pf10.cpp tf20.cpp
[src/devices/bus/gameboy]gb_slot.cpp mbc.cpp rom.cpp
[src/devices/bus/gamegear]ggext.cpp
[src/devices/bus/gba]gba_slot.cpp rom.cpp
[src/devices/bus/generic]slot.cpp
[src/devices/bus/ieee488]c2031.cpp c2040.cpp c2040fdc.cpp c8050.cpp c8050fdc.cpp c8280.cpp d9060.cpp hardbox.cpp ieee488.cpp softbox.cpp
[src/devices/bus/imi7000]imi7000.cpp
[src/devices/bus/intv]slot.cpp
[src/devices/bus/iq151]disc2.cpp grafik.cpp iq151.cpp minigraf.cpp ms151a.cpp rom.cpp staper.cpp video32.cpp video64.cpp
[src/devices/bus/isa]3c503.cpp 3c505.cpp aga.cpp cga.cpp dectalk.cpp ega.cpp finalchs.cpp gus.cpp hdc.cpp ibm_mfc.cpp isa.cpp lpt.cpp mach32.cpp mc1502_fdc.cpp mda.cpp ne1000.cpp ne2000.cpp num9rev.cpp omti8621.cpp pgc.cpp sb16.cpp sblaster.cpp sc499.cpp stereo_fx.cpp svga_cirrus.cpp svga_s3.cpp svga_trident.cpp svga_tseng.cpp vga.cpp vga_ati.cpp xtide.cpp
[src/devices/bus/isbx]isbc_218a.cpp isbx.cpp
[src/devices/bus/kc]d002.cpp d004.cpp kc.cpp ram.cpp rom.cpp
[src/devices/bus/lpci]i82439tx.cpp mpc105.cpp pci.cpp southbridge.cpp
[src/devices/bus/macpds]macpds.cpp pds_tpdfpd.cpp
[src/devices/bus/megadrive]eeprom.cpp ggenie.cpp jcart.cpp md_slot.cpp rom.cpp stm95.cpp svp.cpp
[src/devices/bus/midi]midi.cpp
[src/devices/bus/msx_cart]disk.cpp msx_audio_kb.cpp
[src/devices/bus/neogeo]banked_cart.cpp bootleg_prot.cpp cmc_prot.cpp fatfury2_prot.cpp kof98_prot.cpp mslugx_prot.cpp neogeo_intf.cpp pvc_prot.cpp sbp_prot.cpp sma_prot.cpp
[src/devices/bus/nes]act53.cpp aladdin.cpp ave.cpp bandai.cpp benshieng.cpp bootleg.cpp camerica.cpp cony.cpp datach.cpp disksys.cpp event.cpp ggenie.cpp henggedianzi.cpp hosenkan.cpp irem.cpp jaleco.cpp jy.cpp kaiser.cpp karastudio.cpp konami.cpp legacy.cpp mmc1.cpp mmc2.cpp mmc3.cpp mmc3_clones.cpp mmc5.cpp multigame.cpp namcot.cpp nanjing.cpp nes_slot.cpp ntdec.cpp nxrom.cpp pirate.cpp racermate.cpp rcm.cpp rexsoft.cpp sachen.cpp somari.cpp sunsoft.cpp sunsoft_dcs.cpp taito.cpp tengen.cpp waixing.cpp
[src/devices/bus/nes_ctrl]4score.cpp arkpaddle.cpp bcbattle.cpp ctrl.cpp fckeybrd.cpp ftrainer.cpp joypad.cpp konamihs.cpp miracle.cpp mjpanel.cpp pachinko.cpp partytap.cpp suborkey.cpp
[src/devices/bus/nubus]nubus.cpp nubus_48gc.cpp nubus_cb264.cpp nubus_image.cpp nubus_m2hires.cpp nubus_m2video.cpp nubus_radiustpd.cpp nubus_spec8.cpp nubus_specpdq.cpp nubus_vikbw.cpp nubus_wsportrait.cpp pds30_30hr.cpp pds30_cb264.cpp pds30_mc30.cpp pds30_procolor816.cpp pds30_sigmalview.cpp
[src/devices/bus/odyssey2]rom.cpp slot.cpp
[src/devices/bus/oricext]jasmin.cpp microdisc.cpp oricext.cpp
[src/devices/bus/pc_joy]pc_joy.cpp pc_joy_sw.cpp
[src/devices/bus/pc_kbd]iskr1030.cpp keytro.cpp msnat.cpp pc83.cpp pc_kbdc.cpp
[src/devices/bus/pce]pce_rom.cpp pce_slot.cpp
[src/devices/bus/pet]c2n.cpp cass.cpp exp.cpp superpet.cpp
[src/devices/bus/plus4]c1551.cpp exp.cpp
[src/devices/bus/psx]analogue.cpp ctlrport.cpp memcard.cpp multitap.cpp
[src/devices/bus/ql]exp.cpp rom.cpp sandy_superdisk.cpp trumpcard.cpp
[src/devices/bus/rs232]keyboard.cpp null_modem.cpp pty.cpp rs232.cpp ser_mouse.cpp terminal.cpp xvd701.cpp
[src/devices/bus/s100]s100.cpp wunderbus.cpp
[src/devices/bus/saturn]sat_slot.cpp
[src/devices/bus/scsi]scsi.cpp scsihle.cpp
[src/devices/bus/scv]rom.cpp slot.cpp
[src/devices/bus/sega8]rom.cpp sega8_slot.cpp
[src/devices/bus/sms_ctrl]lphaser.cpp smsctrl.cpp sports.cpp
[src/devices/bus/sms_exp]smsexp.cpp
[src/devices/bus/snes]bsx.cpp event.cpp rom.cpp rom21.cpp sa1.cpp sdd1.cpp sdd1.h sgb.cpp snes_slot.cpp spc7110.cpp
[src/devices/bus/snes_ctrl]bcbattle.cpp ctrl.cpp joypad.cpp miracle.cpp mouse.cpp multitap.cpp pachinko.cpp sscope.cpp twintap.cpp
[src/devices/bus/spc1000]exp.cpp fdd.cpp
[src/devices/bus/ti99_peb]bwg.cpp evpc.cpp hfdc.cpp horizon.cpp hsgpl.cpp memex.cpp myarcmem.cpp pcode.cpp peribox.cpp peribox.h samsmem.cpp spchsyn.cpp ti_32kmem.cpp ti_fdc.cpp ti_rs232.cpp tn_ide.cpp tn_usbsm.cpp
[src/devices/bus/ti99x]990_dk.cpp 998board.cpp 998board.h datamux.cpp datamux.h genboard.cpp grom.cpp gromport.cpp gromport.h handset.cpp joyport.cpp joyport.h mecmouse.cpp videowrp.cpp videowrp.h
[src/devices/bus/tiki100]exp.cpp
[src/devices/bus/tvc]hbf.cpp tvc.cpp
[src/devices/bus/vboy]slot.cpp
[src/devices/bus/vc4000]slot.cpp
[src/devices/bus/vcs]dpc.cpp rom.cpp scharger.cpp vcs_slot.cpp
[src/devices/bus/vcs_ctrl]ctrl.cpp keypad.cpp
[src/devices/bus/vectrex]rom.cpp slot.cpp
[src/devices/bus/vic10]exp.cpp
[src/devices/bus/vic20]exp.cpp fe3.cpp vic1112.cpp
[src/devices/bus/vidbrain]exp.cpp
[src/devices/bus/vip]byteio.cpp exp.cpp vp550.cpp vp585.cpp vp590.cpp
[src/devices/bus/vtech/memexp]floppy.cpp
[src/devices/bus/wangpc]emb.cpp lvc.cpp mcc.cpp tig.cpp wangpc.cpp wdc.cpp
[src/devices/bus/wswan]rom.cpp slot.cpp
[src/devices/bus/x68k]x68k_neptunex.cpp x68k_scsiext.cpp x68kexp.cpp
[src/devices/bus/z88]ram.cpp rom.cpp z88.cpp
[src/devices/video]poly.h
[src/emu]dimemory.cpp input.cpp ioport.cpp luaengine.cpp memory.cpp profiler.cpp render.cpp rendlay.cpp tilemap.cpp uiinput.cpp
[src/emu/debug]debugcmd.cpp debugcpu.cpp dvmemory.cpp dvwpoints.cpp
[src/emu/ui]inputmap.cpp ui.cpp

trunk/scripts/genie.lua
r250239r250240
532532   os.outputof( PYTHON .. " " .. MAME_DIR .. "scripts/build/makedep.py " .. MAME_DIR .. " " .. _OPTIONS["SOURCES"] .. " drivers " .. _OPTIONS["subtarget"] .. " > ".. GEN_DIR  .. _OPTIONS["target"] .. "/" .. _OPTIONS["subtarget"].."/drivlist.cpp")
533533end
534534configuration { "gmake" }
535   defines {
536      "nullptr=NULL" -- getting ready for C++11
537   }
535538   flags {
536539      "SingleOutputDir",
537540   }
trunk/src/devices/bus/a1bus/a1bus.cpp
r250239r250240
2626//-------------------------------------------------
2727a1bus_slot_device::a1bus_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
2828      device_t(mconfig, A1BUS_SLOT, "Apple I Slot", tag, owner, clock, "a1bus_slot", __FILE__),
29      device_slot_interface(mconfig, *this)
29      device_slot_interface(mconfig, *this),
30   m_a1bus_tag(nullptr),
31   m_a1bus_slottag(nullptr)
3032{
3133}
3234
3335a1bus_slot_device::a1bus_slot_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) :
3436      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
35      device_slot_interface(mconfig, *this)
37      device_slot_interface(mconfig, *this), m_a1bus_tag(nullptr), m_a1bus_slottag(nullptr)
3638{
3739}
3840
r250239r250240
7577//-------------------------------------------------
7678
7779a1bus_device::a1bus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
78      device_t(mconfig, A1BUS, "Apple I Bus", tag, owner, clock, "a1bus", __FILE__),
80      device_t(mconfig, A1BUS, "Apple I Bus", tag, owner, clock, "a1bus", __FILE__), m_maincpu(nullptr),
7981      m_out_irq_cb(*this),
80      m_out_nmi_cb(*this)
82      m_out_nmi_cb(*this), m_device(nullptr), m_cputag(nullptr)
8183{
8284}
8385
8486a1bus_device::a1bus_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) :
85      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
87      device_t(mconfig, type, name, tag, owner, clock, shortname, source), m_maincpu(nullptr),
8688      m_out_irq_cb(*this),
87      m_out_nmi_cb(*this)
89      m_out_nmi_cb(*this), m_device(nullptr), m_cputag(nullptr)
8890{
8991}
9092//-------------------------------------------------
r250239r250240
166168
167169device_a1bus_card_interface::device_a1bus_card_interface(const machine_config &mconfig, device_t &device)
168170   : device_slot_card_interface(mconfig, device),
169      m_a1bus(NULL),
170      m_a1bus_tag(NULL)
171      m_a1bus(nullptr),
172      m_a1bus_tag(nullptr), m_a1bus_slottag(nullptr), m_next(nullptr)
171173{
172174}
173175
trunk/src/devices/bus/a1bus/a1cassette.cpp
r250239r250240
5959a1bus_cassette_device::a1bus_cassette_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6060      device_t(mconfig, A1BUS_CASSETTE, "Apple I cassette board", tag, owner, clock, "a1cass", __FILE__),
6161      device_a1bus_card_interface(mconfig, *this),
62      m_cassette(*this, "cassette")
62      m_cassette(*this, "cassette"), m_rom(nullptr), m_cassette_output_flipflop(0)
6363{
6464}
6565
6666a1bus_cassette_device::a1bus_cassette_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) :
6767      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
6868      device_a1bus_card_interface(mconfig, *this),
69      m_cassette(*this, "cassette")
69      m_cassette(*this, "cassette"), m_rom(nullptr), m_cassette_output_flipflop(0)
7070{
7171}
7272
trunk/src/devices/bus/a1bus/a1cffa.cpp
r250239r250240
5454a1bus_cffa_device::a1bus_cffa_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5555      device_t(mconfig, A1BUS_CFFA, "CFFA Compact Flash for Apple I", tag, owner, clock, "cffa1", __FILE__),
5656      device_a1bus_card_interface(mconfig, *this),
57      m_ata(*this, CFFA_ATA_TAG)
57      m_ata(*this, CFFA_ATA_TAG), m_rom(nullptr), m_lastdata(0), m_writeprotect(false)
5858{
5959}
6060
6161a1bus_cffa_device::a1bus_cffa_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) :
6262      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
6363      device_a1bus_card_interface(mconfig, *this),
64      m_ata(*this, CFFA_ATA_TAG)
64      m_ata(*this, CFFA_ATA_TAG), m_rom(nullptr), m_lastdata(0), m_writeprotect(false)
6565{
6666}
6767
trunk/src/devices/bus/a2bus/a2alfam2.cpp
r250239r250240
8888   m_sn1(*this, SN1_TAG),
8989   m_sn2(*this, SN2_TAG),
9090   m_sn3(*this, SN3_TAG),
91   m_sn4(*this, SN4_TAG)
91   m_sn4(*this, SN4_TAG), m_latch0(0), m_latch1(0), m_latch2(0), m_latch3(0), m_has4thsn(false)
9292{
9393}
9494
trunk/src/devices/bus/a2bus/a2applicard.cpp
r250239r250240
7878a2bus_applicard_device::a2bus_applicard_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) :
7979   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
8080   device_a2bus_card_interface(mconfig, *this),
81   m_z80(*this, Z80_TAG)
81   m_z80(*this, Z80_TAG), m_bROMAtZ80Zero(false), m_z80stat(false), m_6502stat(false), m_toz80(0), m_to6502(0), m_z80rom(nullptr)
8282{
8383}
8484
8585a2bus_applicard_device::a2bus_applicard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
8686   device_t(mconfig, A2BUS_APPLICARD, "PCPI Applicard", tag, owner, clock, "a2aplcrd", __FILE__),
8787   device_a2bus_card_interface(mconfig, *this),
88   m_z80(*this, Z80_TAG)
88   m_z80(*this, Z80_TAG), m_bROMAtZ80Zero(false), m_z80stat(false), m_6502stat(false), m_toz80(0), m_to6502(0), m_z80rom(nullptr)
8989{
9090}
9191
trunk/src/devices/bus/a2bus/a2bus.cpp
r250239r250240
9090//-------------------------------------------------
9191a2bus_slot_device::a2bus_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
9292      device_t(mconfig, A2BUS_SLOT, "Apple II Slot", tag, owner, clock, "a2bus_slot", __FILE__),
93      device_slot_interface(mconfig, *this)
93      device_slot_interface(mconfig, *this), m_a2bus_tag(nullptr), m_a2bus_slottag(nullptr)
9494{
9595}
9696
9797a2bus_slot_device::a2bus_slot_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) :
9898      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
99      device_slot_interface(mconfig, *this)
99      device_slot_interface(mconfig, *this), m_a2bus_tag(nullptr), m_a2bus_slottag(nullptr)
100100{
101101}
102102
r250239r250240
139139//-------------------------------------------------
140140
141141a2bus_device::a2bus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
142      device_t(mconfig, A2BUS, "Apple II Bus", tag, owner, clock, "a2bus", __FILE__),
142      device_t(mconfig, A2BUS, "Apple II Bus", tag, owner, clock, "a2bus", __FILE__), m_maincpu(nullptr), m_maincpu_space(nullptr),
143143      m_out_irq_cb(*this),
144144      m_out_nmi_cb(*this),
145      m_out_inh_cb(*this)
145      m_out_inh_cb(*this), m_cputag(nullptr), m_slot_irq_mask(0), m_slot_nmi_mask(0)
146146{
147147}
148148
149149a2bus_device::a2bus_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) :
150      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
150      device_t(mconfig, type, name, tag, owner, clock, shortname, source), m_maincpu(nullptr), m_maincpu_space(nullptr),
151151      m_out_irq_cb(*this),
152152      m_out_nmi_cb(*this),
153      m_out_inh_cb(*this)
153      m_out_inh_cb(*this), m_cputag(nullptr), m_slot_irq_mask(0), m_slot_nmi_mask(0)
154154{
155155}
156156//-------------------------------------------------
r250239r250240
296296
297297device_a2bus_card_interface::device_a2bus_card_interface(const machine_config &mconfig, device_t &device)
298298   : device_slot_card_interface(mconfig, device),
299      m_a2bus(NULL),
300      m_a2bus_tag(NULL)
299      m_a2bus(nullptr),
300      m_a2bus_tag(nullptr), m_a2bus_slottag(nullptr), m_slot(0), m_next(nullptr)
301301{
302302}
303303
trunk/src/devices/bus/a2bus/a2cffa.cpp
r250239r250240
8686a2bus_cffa2000_device::a2bus_cffa2000_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) :
8787   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
8888   device_a2bus_card_interface(mconfig, *this),
89   m_ata(*this, CFFA2_ATA_TAG)
89   m_ata(*this, CFFA2_ATA_TAG), m_rom(nullptr), m_lastdata(0), m_lastreaddata(0), m_writeprotect(false), m_inwritecycle(false)
9090{
9191}
9292
trunk/src/devices/bus/a2bus/a2corvus.cpp
r250239r250240
104104a2bus_corvus_device::a2bus_corvus_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) :
105105   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
106106   device_a2bus_card_interface(mconfig, *this),
107   m_corvushd(*this, CORVUS_HD_TAG)
107   m_corvushd(*this, CORVUS_HD_TAG), m_rom(nullptr)
108108{
109109}
110110
111111a2bus_corvus_device::a2bus_corvus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
112112   device_t(mconfig, A2BUS_CORVUS, "Corvus Flat Cable interface", tag, owner, clock, "a2corvus", __FILE__),
113113   device_a2bus_card_interface(mconfig, *this),
114   m_corvushd(*this, CORVUS_HD_TAG)
114   m_corvushd(*this, CORVUS_HD_TAG), m_rom(nullptr)
115115{
116116}
117117
trunk/src/devices/bus/a2bus/a2diskii.cpp
r250239r250240
9393a2bus_floppy_device::a2bus_floppy_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) :
9494      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
9595      device_a2bus_card_interface(mconfig, *this),
96      m_fdc(*this, FDC_TAG)
96      m_fdc(*this, FDC_TAG), m_rom(nullptr)
9797{
9898}
9999
trunk/src/devices/bus/a2bus/a2diskiing.cpp
r250239r250240
7373   device_a2bus_card_interface(mconfig, *this),
7474   m_wozfdc(*this, WOZFDC_TAG),
7575   floppy0(*this, "0"),
76   floppy1(*this, "1")
76   floppy1(*this, "1"), m_rom(nullptr)
7777{
7878}
7979
trunk/src/devices/bus/a2bus/a2dx1.cpp
r250239r250240
5151a2bus_dx1_device::a2bus_dx1_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) :
5252   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
5353   device_a2bus_card_interface(mconfig, *this),
54   m_dac(*this, DAC_TAG)
54   m_dac(*this, DAC_TAG), m_volume(0), m_lastdac(0)
5555{
5656}
5757
5858a2bus_dx1_device::a2bus_dx1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5959   device_t(mconfig, A2BUS_DX1, "Decillonix DX-1", tag, owner, clock, "a2dx1", __FILE__),
6060   device_a2bus_card_interface(mconfig, *this),
61   m_dac(*this, DAC_TAG)
61   m_dac(*this, DAC_TAG), m_volume(0), m_lastdac(0)
6262{
6363}
6464
trunk/src/devices/bus/a2bus/a2eauxslot.cpp
r250239r250240
2828//-------------------------------------------------
2929a2eauxslot_slot_device::a2eauxslot_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030      device_t(mconfig, A2EAUXSLOT_SLOT, "Apple IIe AUX Slot", tag, owner, clock, "a2eauxslot_slot", __FILE__),
31      device_slot_interface(mconfig, *this)
31      device_slot_interface(mconfig, *this),
32   m_a2eauxslot_tag(nullptr),
33   m_a2eauxslot_slottag(nullptr)
3234{
3335}
3436
3537a2eauxslot_slot_device::a2eauxslot_slot_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) :
3638      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
37      device_slot_interface(mconfig, *this)
39      device_slot_interface(mconfig, *this), m_a2eauxslot_tag(nullptr), m_a2eauxslot_slottag(nullptr)
3840{
3941}
4042
r250239r250240
7779//-------------------------------------------------
7880
7981a2eauxslot_device::a2eauxslot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
80      device_t(mconfig, A2EAUXSLOT, "Apple IIe AUX Bus", tag, owner, clock, "a2eauxslot", __FILE__),
82      device_t(mconfig, A2EAUXSLOT, "Apple IIe AUX Bus", tag, owner, clock, "a2eauxslot", __FILE__), m_maincpu(nullptr),
8183      m_out_irq_cb(*this),
82      m_out_nmi_cb(*this)
84      m_out_nmi_cb(*this), m_device(nullptr), m_cputag(nullptr)
8385{
8486}
8587
8688a2eauxslot_device::a2eauxslot_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) :
87      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
89      device_t(mconfig, type, name, tag, owner, clock, shortname, source), m_maincpu(nullptr),
8890      m_out_irq_cb(*this),
89      m_out_nmi_cb(*this)
91      m_out_nmi_cb(*this), m_device(nullptr), m_cputag(nullptr)
9092{
9193}
9294//-------------------------------------------------
r250239r250240
152154
153155device_a2eauxslot_card_interface::device_a2eauxslot_card_interface(const machine_config &mconfig, device_t &device)
154156   : device_slot_card_interface(mconfig, device),
155      m_a2eauxslot(NULL),
156      m_a2eauxslot_tag(NULL)
157      m_a2eauxslot(nullptr),
158      m_a2eauxslot_tag(nullptr), m_a2eauxslot_slottag(nullptr), m_slot(0), m_next(nullptr)
157159{
158160}
159161
trunk/src/devices/bus/a2bus/a2eramworks3.cpp
r250239r250240
3030
3131a2eaux_ramworks3_device::a2eaux_ramworks3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3232      device_t(mconfig, A2EAUX_RAMWORKS3, "Applied Engineering RamWorks III", tag, owner, clock, "a2erwks3", __FILE__),
33      device_a2eauxslot_card_interface(mconfig, *this)
33      device_a2eauxslot_card_interface(mconfig, *this),
34   m_bank(0)
3435{
3536}
3637
3738a2eaux_ramworks3_device::a2eaux_ramworks3_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) :
3839      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
39      device_a2eauxslot_card_interface(mconfig, *this)
40      device_a2eauxslot_card_interface(mconfig, *this), m_bank(0)
4041{
4142}
4243
trunk/src/devices/bus/a2bus/a2hsscsi.cpp
r250239r250240
117117   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
118118   device_a2bus_card_interface(mconfig, *this),
119119   m_ncr5380(*this, SCSI_5380_TAG),
120   m_scsibus(*this, SCSI_BUS_TAG)
120   m_scsibus(*this, SCSI_BUS_TAG), m_rom(nullptr), m_rambank(0), m_rombank(0), m_drq(0), m_bank(0), m_816block(false), m_c0ne(0), m_c0nf(0)
121121{
122122}
123123
r250239r250240
125125   device_t(mconfig, A2BUS_HSSCSI, "Apple II High-Speed SCSI Card", tag, owner, clock, "a2hsscsi", __FILE__),
126126   device_a2bus_card_interface(mconfig, *this),
127127   m_ncr5380(*this, SCSI_5380_TAG),
128   m_scsibus(*this, SCSI_BUS_TAG)
128   m_scsibus(*this, SCSI_BUS_TAG), m_rom(nullptr), m_rambank(0), m_rombank(0), m_drq(0), m_bank(0), m_816block(false), m_c0ne(0), m_c0nf(0)
129129{
130130}
131131
trunk/src/devices/bus/a2bus/a2mcms.cpp
r250239r250240
151151
152152a2bus_mcms2_device::a2bus_mcms2_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) :
153153   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
154   device_a2bus_card_interface(mconfig, *this)
154   device_a2bus_card_interface(mconfig, *this), m_card1(nullptr), m_engine(nullptr)
155155{
156156}
157157
158158a2bus_mcms2_device::a2bus_mcms2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
159159   device_t(mconfig, A2BUS_MCMS2, "Mountain Computer Music System (card 2)", tag, owner, clock, "a2mcms2", __FILE__),
160   device_a2bus_card_interface(mconfig, *this)
160   device_a2bus_card_interface(mconfig, *this), m_card1(nullptr), m_engine(nullptr)
161161{
162162}
163163
r250239r250240
215215mcms_device::mcms_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
216216   : device_t(mconfig, MCMS, "Mountain Computer Music System engine", tag, owner, clock, "msmseng", __FILE__),
217217   device_sound_interface(mconfig, *this),
218   m_write_irq(*this)
218   m_write_irq(*this), m_stream(nullptr), m_timer(nullptr), m_clrtimer(nullptr), m_pBusDevice(nullptr), m_enabled(false), m_mastervol(0), m_rand(0)
219219{
220220}
221221
trunk/src/devices/bus/a2bus/a2memexp.cpp
r250239r250240
7575
7676a2bus_memexp_device::a2bus_memexp_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) :
7777   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
78   device_a2bus_card_interface(mconfig, *this)
78   device_a2bus_card_interface(mconfig, *this), m_isramfactor(false), m_bankhior(0), m_addrmask(0), m_rom(nullptr), m_wptr(0), m_liveptr(0)
7979{
8080}
8181
trunk/src/devices/bus/a2bus/a2midi.cpp
r250239r250240
6363      device_t(mconfig, A2BUS_MIDI, "6850 MIDI card", tag, owner, clock, "a2midi", __FILE__),
6464      device_a2bus_card_interface(mconfig, *this),
6565      m_ptm(*this, MIDI_PTM_TAG),
66      m_acia(*this, MIDI_ACIA_TAG),
66      m_acia(*this, MIDI_ACIA_TAG), m_acia_irq(false),
6767      m_ptm_irq(false)
6868{
6969}
r250239r250240
7272      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
7373      device_a2bus_card_interface(mconfig, *this),
7474      m_ptm(*this, MIDI_PTM_TAG),
75      m_acia(*this, MIDI_ACIA_TAG),
75      m_acia(*this, MIDI_ACIA_TAG), m_acia_irq(false),
7676      m_ptm_irq(false)
7777{
7878}
trunk/src/devices/bus/a2bus/a2mockingboard.cpp
r250239r250240
128128   m_ay1(*this, AY1_TAG),
129129   m_ay2(*this, AY2_TAG),
130130   m_ay3(*this, AY3_TAG),
131   m_ay4(*this, AY4_TAG)
131   m_ay4(*this, AY4_TAG), m_isPhasor(false), m_PhasorNative(false), m_porta1(0), m_porta2(0)
132132{
133133}
134134
trunk/src/devices/bus/a2bus/a2pic.cpp
r250239r250240
104104      m_dsw1(*this, "DSW1"),
105105      m_ctx(*this, PIC_CENTRONICS_TAG),
106106      m_ctx_data_in(*this, "ctx_data_in"),
107      m_ctx_data_out(*this, "ctx_data_out"),
108      m_started(false)
107      m_ctx_data_out(*this, "ctx_data_out"), m_rom(nullptr),
108      m_started(false), m_ack(0), m_irqenable(false), m_autostrobe(false), m_timer(nullptr)
109109{
110110}
111111
r250239r250240
115115      m_dsw1(*this, "DSW1"),
116116      m_ctx(*this, PIC_CENTRONICS_TAG),
117117      m_ctx_data_in(*this, "ctx_data_in"),
118      m_ctx_data_out(*this, "ctx_data_out"),
119      m_started(false)
118      m_ctx_data_out(*this, "ctx_data_out"), m_rom(nullptr),
119      m_started(false), m_ack(0), m_irqenable(false), m_autostrobe(false), m_timer(nullptr)
120120{
121121}
122122
trunk/src/devices/bus/a2bus/a2scsi.cpp
r250239r250240
110110   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
111111   device_a2bus_card_interface(mconfig, *this),
112112   m_ncr5380(*this, SCSI_5380_TAG),
113   m_scsibus(*this, SCSI_BUS_TAG)
113   m_scsibus(*this, SCSI_BUS_TAG), m_rom(nullptr), m_rambank(0), m_rombank(0), m_drq(0), m_bank(0), m_816block(false)
114114{
115115}
116116
r250239r250240
118118   device_t(mconfig, A2BUS_SCSI, "Apple II SCSI Card", tag, owner, clock, "a2scsi", __FILE__),
119119   device_a2bus_card_interface(mconfig, *this),
120120   m_ncr5380(*this, SCSI_5380_TAG),
121   m_scsibus(*this, SCSI_BUS_TAG)
121   m_scsibus(*this, SCSI_BUS_TAG), m_rom(nullptr), m_rambank(0), m_rombank(0), m_drq(0), m_bank(0), m_816block(false)
122122{
123123}
124124
trunk/src/devices/bus/a2bus/a2softcard.cpp
r250239r250240
5454a2bus_softcard_device::a2bus_softcard_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) :
5555   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
5656   device_a2bus_card_interface(mconfig, *this),
57   m_z80(*this, Z80_TAG)
57   m_z80(*this, Z80_TAG), m_bEnabled(false), m_FirstZ80Boot(false)
5858{
5959}
6060
6161a2bus_softcard_device::a2bus_softcard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6262   device_t(mconfig, A2BUS_SOFTCARD, "Microsoft SoftCard", tag, owner, clock, "a2softcard", __FILE__),
6363   device_a2bus_card_interface(mconfig, *this),
64   m_z80(*this, Z80_TAG)
64   m_z80(*this, Z80_TAG), m_bEnabled(false), m_FirstZ80Boot(false)
6565{
6666}
6767
trunk/src/devices/bus/a2bus/a2ssc.cpp
r250239r250240
132132      device_a2bus_card_interface(mconfig, *this),
133133      m_dsw1(*this, "DSW1"),
134134      m_dsw2(*this, "DSW2"),
135      m_acia(*this, SSC_ACIA_TAG),
135      m_acia(*this, SSC_ACIA_TAG), m_rom(nullptr),
136136      m_started(false)
137137{
138138}
r250239r250240
142142      device_a2bus_card_interface(mconfig, *this),
143143      m_dsw1(*this, "DSW1"),
144144      m_dsw2(*this, "DSW2"),
145      m_acia(*this, SSC_ACIA_TAG),
145      m_acia(*this, SSC_ACIA_TAG), m_rom(nullptr),
146146      m_started(false)
147147{
148148}
trunk/src/devices/bus/a2bus/a2swyft.cpp
r250239r250240
4747
4848a2bus_swyft_device::a2bus_swyft_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4949      device_t(mconfig, A2BUS_SWYFT, "IAI SwyftCard", tag, owner, clock, "a2swyft", __FILE__),
50      device_a2bus_card_interface(mconfig, *this)
50      device_a2bus_card_interface(mconfig, *this), m_rom(nullptr), m_rombank(0), m_inh_state(0)
5151{
5252}
5353
5454a2bus_swyft_device::a2bus_swyft_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) :
5555      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
56      device_a2bus_card_interface(mconfig, *this)
56      device_a2bus_card_interface(mconfig, *this), m_rom(nullptr), m_rombank(0), m_inh_state(0)
5757{
5858}
5959
trunk/src/devices/bus/a2bus/a2themill.cpp
r250239r250240
7070a2bus_themill_device::a2bus_themill_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) :
7171   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
7272   device_a2bus_card_interface(mconfig, *this),
73   m_6809(*this, M6809_TAG)
73   m_6809(*this, M6809_TAG), m_bEnabled(false), m_flipAddrSpace(false), m_6809Mode(false), m_status(0)
7474{
7575}
7676
7777a2bus_themill_device::a2bus_themill_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7878   device_t(mconfig, A2BUS_THEMILL, "Stellation Two The Mill", tag, owner, clock, "a2themill", __FILE__),
7979   device_a2bus_card_interface(mconfig, *this),
80   m_6809(*this, M6809_TAG)
80   m_6809(*this, M6809_TAG), m_bEnabled(false), m_flipAddrSpace(false), m_6809Mode(false), m_status(0)
8181{
8282}
8383
trunk/src/devices/bus/a2bus/a2thunderclock.cpp
r250239r250240
7979a2bus_thunderclock_device::a2bus_thunderclock_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) :
8080   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
8181   device_a2bus_card_interface(mconfig, *this),
82   m_upd1990ac(*this, THUNDERCLOCK_UPD1990_TAG)
82   m_upd1990ac(*this, THUNDERCLOCK_UPD1990_TAG), m_rom(nullptr), m_dataout(0)
8383{
8484}
8585
8686a2bus_thunderclock_device::a2bus_thunderclock_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
8787   device_t(mconfig, A2BUS_THUNDERCLOCK, "ThunderWare ThunderClock Plus", tag, owner, clock, "a2thunpl", __FILE__),
8888   device_a2bus_card_interface(mconfig, *this),
89   m_upd1990ac(*this, THUNDERCLOCK_UPD1990_TAG)
89   m_upd1990ac(*this, THUNDERCLOCK_UPD1990_TAG), m_rom(nullptr), m_dataout(0)
9090{
9191}
9292
trunk/src/devices/bus/a2bus/a2ultraterm.cpp
r250239r250240
140140
141141a2bus_videx160_device::a2bus_videx160_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) :
142142   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
143   device_a2bus_card_interface(mconfig, *this),
144   m_crtc(*this, ULTRATERM_MC6845_NAME)
143   device_a2bus_card_interface(mconfig, *this), m_rom(nullptr), m_chrrom(nullptr), m_framecnt(0), m_ctrl1(0), m_ctrl2(0),
144   m_crtc(*this, ULTRATERM_MC6845_NAME), m_rambank(0)
145145{
146146}
147147
trunk/src/devices/bus/a2bus/a2videoterm.cpp
r250239r250240
174174
175175a2bus_videx80_device::a2bus_videx80_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) :
176176   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
177   device_a2bus_card_interface(mconfig, *this),
178   m_crtc(*this, VIDEOTERM_MC6845_NAME),
177   device_a2bus_card_interface(mconfig, *this), m_rom(nullptr), m_chrrom(nullptr), m_framecnt(0),
178   m_crtc(*this, VIDEOTERM_MC6845_NAME), m_rambank(0),
179179   m_palette(*this, ":palette")
180180{
181181}
trunk/src/devices/bus/a2bus/a2vulcan.cpp
r250239r250240
117117a2bus_vulcanbase_device::a2bus_vulcanbase_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) :
118118   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
119119   device_a2bus_card_interface(mconfig, *this),
120   m_ata(*this, VULCAN_ATA_TAG)
120   m_ata(*this, VULCAN_ATA_TAG), m_rom(nullptr), m_lastdata(0), m_rombank(0), m_rambank(0), m_last_read_was_0(false)
121121{
122122}
123123
trunk/src/devices/bus/a2bus/a2zipdrive.cpp
r250239r250240
7272a2bus_zipdrivebase_device::a2bus_zipdrivebase_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) :
7373   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
7474   device_a2bus_card_interface(mconfig, *this),
75   m_ata(*this, ZIPDRIVE_ATA_TAG)
75   m_ata(*this, ZIPDRIVE_ATA_TAG), m_rom(nullptr), m_lastdata(0)
7676{
7777}
7878
trunk/src/devices/bus/a2bus/corvfdc01.cpp
r250239r250240
117117   m_con1(*this, FDC01_FDC_TAG":0"),
118118   m_con2(*this, FDC01_FDC_TAG":1"),
119119   m_con3(*this, FDC01_FDC_TAG":2"),
120   m_con4(*this, FDC01_FDC_TAG":3")
120   m_con4(*this, FDC01_FDC_TAG":3"), m_rom(nullptr), m_fdc_local_status(0), m_fdc_local_command(0), m_curfloppy(nullptr)
121121{
122122}
123123
r250239r250240
128128   m_con1(*this, FDC01_FDC_TAG":0"),
129129   m_con2(*this, FDC01_FDC_TAG":1"),
130130   m_con3(*this, FDC01_FDC_TAG":2"),
131   m_con4(*this, FDC01_FDC_TAG":3")
131   m_con4(*this, FDC01_FDC_TAG":3"), m_rom(nullptr), m_fdc_local_status(0), m_fdc_local_command(0), m_curfloppy(nullptr)
132132{
133133}
134134
trunk/src/devices/bus/a2bus/corvfdc02.cpp
r250239r250240
8787   m_con1(*this, FDC02_FDC_TAG":0"),
8888   m_con2(*this, FDC02_FDC_TAG":1"),
8989   m_con3(*this, FDC02_FDC_TAG":2"),
90   m_con4(*this, FDC02_FDC_TAG":3")
90   m_con4(*this, FDC02_FDC_TAG":3"), m_rom(nullptr), m_fdc_local_status(0), m_fdc_local_command(0), m_bufptr(0), m_curfloppy(nullptr), m_in_drq(false), m_timer(nullptr)
9191{
9292}
9393
r250239r250240
9898   m_con1(*this, FDC02_FDC_TAG":0"),
9999   m_con2(*this, FDC02_FDC_TAG":1"),
100100   m_con3(*this, FDC02_FDC_TAG":2"),
101   m_con4(*this, FDC02_FDC_TAG":3")
101   m_con4(*this, FDC02_FDC_TAG":3"), m_rom(nullptr), m_fdc_local_status(0), m_fdc_local_command(0), m_bufptr(0), m_curfloppy(nullptr), m_in_drq(false), m_timer(nullptr)
102102{
103103}
104104
r250239r250240
125125{
126126   m_fdc_local_status = 2;
127127   m_fdc_local_command = 0;
128   m_curfloppy = NULL;
128   m_curfloppy = nullptr;
129129   m_in_drq = false;
130130   m_timer->adjust(attotime::never);
131131}
trunk/src/devices/bus/a2bus/laser128.cpp
r250239r250240
4444
4545a2bus_laser128_device::a2bus_laser128_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) :
4646   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
47   device_a2bus_card_interface(mconfig, *this)
47   device_a2bus_card_interface(mconfig, *this), m_rom(nullptr), m_slot7_bank(0), m_slot7_ram_bank(0)
4848
4949{
5050}
5151
5252a2bus_laser128_device::a2bus_laser128_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5353   device_t(mconfig, A2BUS_LASER128, "VTech Laser 128 Internal Device", tag, owner, clock, "a2laser128", __FILE__),
54   device_a2bus_card_interface(mconfig, *this)
54   device_a2bus_card_interface(mconfig, *this), m_rom(nullptr), m_slot7_bank(0), m_slot7_ram_bank(0)
5555{
5656}
5757
trunk/src/devices/bus/a2bus/mouse.cpp
r250239r250240
179179   m_mcu(*this, MOUSE_MCU_TAG),
180180   m_mouseb(*this, MOUSE_BUTTON_TAG),
181181   m_mousex(*this, MOUSE_XAXIS_TAG),
182   m_mousey(*this, MOUSE_YAXIS_TAG)
182   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),
183   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)
183184{
184185   m_started = false;
185186   m_rom_bank = 0;
r250239r250240
192193   m_mcu(*this, MOUSE_MCU_TAG),
193194   m_mouseb(*this, MOUSE_BUTTON_TAG),
194195   m_mousex(*this, MOUSE_XAXIS_TAG),
195   m_mousey(*this, MOUSE_YAXIS_TAG)
196   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)
196197{
197198   m_started = false;
198199   m_rom_bank = 0;
trunk/src/devices/bus/a2bus/ramcard128k.cpp
r250239r250240
3030
3131a2bus_ssramcard_device::a2bus_ssramcard_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) :
3232   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
33   device_a2bus_card_interface(mconfig, *this)
33   device_a2bus_card_interface(mconfig, *this), m_inh_state(0), m_last_offset(0), m_dxxx_bank(0), m_main_bank(0)
3434{
3535}
3636
3737a2bus_ssramcard_device::a2bus_ssramcard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3838   device_t(mconfig, A2BUS_RAMCARD128K, "Saturn Systems 128K Extended Language Card", tag, owner, clock, "ssram128", __FILE__),
39   device_a2bus_card_interface(mconfig, *this)
39   device_a2bus_card_interface(mconfig, *this), m_inh_state(0), m_last_offset(0), m_dxxx_bank(0), m_main_bank(0)
4040{
4141}
4242
trunk/src/devices/bus/a2bus/ramcard16k.cpp
r250239r250240
3030
3131a2bus_ramcard_device::a2bus_ramcard_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) :
3232   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
33   device_a2bus_card_interface(mconfig, *this)
33   device_a2bus_card_interface(mconfig, *this), m_inh_state(0), m_last_offset(0), m_dxxx_bank(0)
3434{
3535}
3636
3737a2bus_ramcard_device::a2bus_ramcard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3838   device_t(mconfig, A2BUS_RAMCARD16K, "Apple II 16K Language Card", tag, owner, clock, "a2ram16k", __FILE__),
39   device_a2bus_card_interface(mconfig, *this)
39   device_a2bus_card_interface(mconfig, *this), m_inh_state(0), m_last_offset(0), m_dxxx_bank(0)
4040{
4141}
4242
trunk/src/devices/bus/a2bus/timemasterho.cpp
r250239r250240
126126   device_a2bus_card_interface(mconfig, *this),
127127   m_pia(*this, TIMEMASTER_PIA_TAG),
128128   m_msm5832(*this, TIMEMASTER_M5832_TAG),
129   m_dsw1(*this, "DSW1")
129   m_dsw1(*this, "DSW1"), m_rom(nullptr), m_irqa(false), m_irqb(false)
130130{
131131   m_started = false;
132132}
r250239r250240
136136   device_a2bus_card_interface(mconfig, *this),
137137   m_pia(*this, TIMEMASTER_PIA_TAG),
138138   m_msm5832(*this, TIMEMASTER_M5832_TAG),
139   m_dsw1(*this, "DSW1")
139   m_dsw1(*this, "DSW1"), m_rom(nullptr), m_irqa(false), m_irqb(false)
140140{
141141   m_started = false;
142142}
trunk/src/devices/bus/a7800/a78_slot.cpp
r250239r250240
115115a78_cart_slot_device::a78_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
116116                  device_t(mconfig, A78_CART_SLOT, "Atari 7800 Cartridge Slot", tag, owner, clock, "a78_cart_slot", __FILE__),
117117                  device_image_interface(mconfig, *this),
118                  device_slot_interface(mconfig, *this)
118                  device_slot_interface(mconfig, *this), m_cart(nullptr), m_type(0), m_stick_type(0)
119119{
120120}
121121
trunk/src/devices/bus/a7800/cpuwiz.cpp
r250239r250240
4141
4242
4343a78_versaboard_device::a78_versaboard_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)
44               : a78_rom_sg_device(mconfig, type, name, tag, owner, clock, shortname, source)
45{
44               : a78_rom_sg_device(mconfig, type, name, tag, owner, clock, shortname, source), m_ram_bank(0)
45            {
4646}
4747
4848a78_versaboard_device::a78_versaboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
49               : a78_rom_sg_device(mconfig, A78_ROM_VERSABOARD, "Atari 7800 VersaBoard Cart", tag, owner, clock, "a78_versaboard", __FILE__)
50{
49               : a78_rom_sg_device(mconfig, A78_ROM_VERSABOARD, "Atari 7800 VersaBoard Cart", tag, owner, clock, "a78_versaboard", __FILE__), m_ram_bank(0)
50            {
5151}
5252
5353
trunk/src/devices/bus/a7800/rom.cpp
r250239r250240
6868
6969
7070a78_rom_sg_device::a78_rom_sg_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)
71               : a78_rom_device(mconfig, type, name, tag, owner, clock, shortname, source)
72{
71               : a78_rom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_bank(0)
72            {
7373}
7474
7575a78_rom_sg_device::a78_rom_sg_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
76               : a78_rom_device(mconfig, A78_ROM_SG, "Atari 7800 ROM Carts w/SuperGame Bankswitch", tag, owner, clock, "a78_rom_sg", __FILE__)
77{
76               : a78_rom_device(mconfig, A78_ROM_SG, "Atari 7800 ROM Carts w/SuperGame Bankswitch", tag, owner, clock, "a78_rom_sg", __FILE__), m_bank(0)
77            {
7878}
7979
8080a78_rom_sg_pokey_device::a78_rom_sg_pokey_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
107107
108108
109109a78_rom_abs_device::a78_rom_abs_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
110               : a78_rom_device(mconfig, A78_ROM_ABSOLUTE, "Atari 7800 ROM Carts w/Absolute Bankswitch", tag, owner, clock, "a78_rom_abs", __FILE__)
111{
110               : a78_rom_device(mconfig, A78_ROM_ABSOLUTE, "Atari 7800 ROM Carts w/Absolute Bankswitch", tag, owner, clock, "a78_rom_abs", __FILE__), m_bank(0)
111            {
112112}
113113
114114
115115a78_rom_act_device::a78_rom_act_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
116               : a78_rom_device(mconfig, A78_ROM_ACTIVISION, "Atari 7800 ROM Carts w/Activision Bankswitch", tag, owner, clock, "a78_rom_act", __FILE__)
117{
116               : a78_rom_device(mconfig, A78_ROM_ACTIVISION, "Atari 7800 ROM Carts w/Activision Bankswitch", tag, owner, clock, "a78_rom_act", __FILE__), m_bank(0)
117            {
118118}
119119
120120
trunk/src/devices/bus/a7800/xboard.cpp
r250239r250240
5959a78_xboard_device::a78_xboard_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)
6060               : a78_rom_device(mconfig, type, name, tag, owner, clock, shortname, source),
6161                  m_xbslot(*this, "xb_slot"),
62                  m_pokey(*this, "xb_pokey")
63{
62                  m_pokey(*this, "xb_pokey"), m_reg(0), m_ram_bank(0)
63            {
6464}
6565
6666
6767a78_xboard_device::a78_xboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
6868               : a78_rom_device(mconfig, A78_XBOARD, "Atari 7800 XBoarD expansion", tag, owner, clock, "a78_xboard", __FILE__),
6969                  m_xbslot(*this, "xb_slot"),
70                  m_pokey(*this, "xb_pokey")
71{
70                  m_pokey(*this, "xb_pokey"), m_reg(0), m_ram_bank(0)
71            {
7272}
7373
7474
7575a78_xm_device::a78_xm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
7676               : a78_xboard_device(mconfig, A78_XM, "Atari 7800 XM expansion module", tag, owner, clock, "a78_xm", __FILE__),
77                  m_ym(*this, "xm_ym2151")
78{
77                  m_ym(*this, "xm_ym2151"), m_ym_enabled(0)
78            {
7979}
8080
8181
trunk/src/devices/bus/a800/a800_slot.cpp
r250239r250240
104104a800_cart_slot_device::a800_cart_slot_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) :
105105                  device_t(mconfig, type, name, tag, owner, clock, shortname, __FILE__),
106106                  device_image_interface(mconfig, *this),
107                  device_slot_interface(mconfig, *this)
107                  device_slot_interface(mconfig, *this), m_cart(nullptr), m_type(0)
108108{
109109}
110110
111111a800_cart_slot_device::a800_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
112112                  device_t(mconfig, A800_CART_SLOT, "Atari 8bit Cartridge Slot", tag, owner, clock, "a800_cart_slot", __FILE__),
113113                  device_image_interface(mconfig, *this),
114                  device_slot_interface(mconfig, *this)
114                  device_slot_interface(mconfig, *this), m_cart(nullptr), m_type(0)
115115{
116116}
117117
trunk/src/devices/bus/a800/a8sio.cpp
r250239r250240
5050//-------------------------------------------------
5151a8sio_slot_device::a8sio_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
5252   : device_t(mconfig, A8SIO_SLOT, "Atari 8 bit SIO Slot", tag, owner, clock, "a8sio_slot", __FILE__)
53   , device_slot_interface(mconfig, *this)
53   , device_slot_interface(mconfig, *this), m_a8sio_tag(nullptr), m_a8sio_slottag(nullptr)
5454{
5555}
5656
5757a8sio_slot_device::a8sio_slot_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) :
5858      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
59      device_slot_interface(mconfig, *this)
59      device_slot_interface(mconfig, *this), m_a8sio_tag(nullptr), m_a8sio_slottag(nullptr)
6060{
6161}
6262
r250239r250240
102102   : device_t(mconfig, A8SIO, "Atari 8 biot SIO", tag, owner, clock, "a8sio", __FILE__)
103103   , m_out_clock_in_cb(*this)
104104   , m_out_data_in_cb(*this)
105   , m_out_audio_in_cb(*this)
105   , m_out_audio_in_cb(*this), m_device(nullptr)
106106{
107107}
108108
r250239r250240
110110   : device_t(mconfig, type, name, tag, owner, clock, shortname, source)
111111   , m_out_clock_in_cb(*this)
112112   , m_out_data_in_cb(*this)
113   , m_out_audio_in_cb(*this)
113   , m_out_audio_in_cb(*this), m_device(nullptr)
114114{
115115}
116116
r250239r250240
182182device_a8sio_card_interface::device_a8sio_card_interface(const machine_config &mconfig, device_t &device)
183183   : device_slot_card_interface(mconfig, device)
184184   , m_a8sio(NULL)
185   , m_a8sio_tag(NULL)
185   , m_a8sio_tag(NULL), m_a8sio_slottag(nullptr)
186186{
187187}
188188
trunk/src/devices/bus/a800/cassette.cpp
r250239r250240
4747a8sio_cassette_device::a8sio_cassette_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4848   : device_t(mconfig, A8SIO_CASSETTE, "Atari 8 bit cassette", tag, owner, clock, "a8sio_cass", __FILE__)
4949   , device_a8sio_card_interface(mconfig, *this)
50   , m_cassette(*this, "cassette")
51   , m_old_cass_signal(0)
50   , m_cassette(*this, "cassette"), m_read_timer(nullptr)
51     , m_old_cass_signal(0)
5252   , m_signal_count(0)
5353{
5454}
r250239r250240
5656a8sio_cassette_device::a8sio_cassette_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)
5757   : device_t(mconfig, type, name, tag, owner, clock, shortname, source)
5858   , device_a8sio_card_interface(mconfig, *this)
59   , m_cassette(*this, "cassette")
60   , m_old_cass_signal(0)
59   , m_cassette(*this, "cassette"), m_read_timer(nullptr)
60     , m_old_cass_signal(0)
6161   , m_signal_count(0)
6262{
6363}
trunk/src/devices/bus/a800/oss.cpp
r250239r250240
2222
2323
2424a800_rom_oss8k_device::a800_rom_oss8k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
25               : a800_rom_device(mconfig, A800_ROM_OSS8K, "Atari 800 ROM Carts OSS 8K", tag, owner, clock, "a800_oss8k", __FILE__)
26{
25               : a800_rom_device(mconfig, A800_ROM_OSS8K, "Atari 800 ROM Carts OSS 8K", tag, owner, clock, "a800_oss8k", __FILE__),
26   m_bank(0)
27            {
2728}
2829
2930
3031a800_rom_oss34_device::a800_rom_oss34_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
31               : a800_rom_device(mconfig, A800_ROM_OSS34, "Atari 800 ROM Carts OSS-034M", tag, owner, clock, "a800_034m", __FILE__)
32{
32               : a800_rom_device(mconfig, A800_ROM_OSS34, "Atari 800 ROM Carts OSS-034M", tag, owner, clock, "a800_034m", __FILE__), m_bank(0)
33            {
3334}
3435
3536
3637a800_rom_oss43_device::a800_rom_oss43_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
37               : a800_rom_device(mconfig, A800_ROM_OSS43, "Atari 800 ROM Carts OSS-043M", tag, owner, clock, "a800_043m", __FILE__)
38{
38               : a800_rom_device(mconfig, A800_ROM_OSS43, "Atari 800 ROM Carts OSS-043M", tag, owner, clock, "a800_043m", __FILE__), m_bank(0)
39            {
3940}
4041
4142
4243a800_rom_oss91_device::a800_rom_oss91_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
43               : a800_rom_device(mconfig, A800_ROM_OSS91, "Atari 800 ROM Carts OSS-M091", tag, owner, clock, "a800_m091", __FILE__)
44{
44               : a800_rom_device(mconfig, A800_ROM_OSS91, "Atari 800 ROM Carts OSS-M091", tag, owner, clock, "a800_m091", __FILE__), m_bank(0)
45            {
4546}
4647
4748
trunk/src/devices/bus/a800/rom.cpp
r250239r250240
5151
5252
5353xegs_rom_device::xegs_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
54               : a800_rom_device(mconfig, XEGS_ROM, "Atari XEGS 64K ROM Carts", tag, owner, clock, "a800_xegs", __FILE__)
55{
54               : a800_rom_device(mconfig, XEGS_ROM, "Atari XEGS 64K ROM Carts", tag, owner, clock, "a800_xegs", __FILE__), m_bank(0)
55            {
5656}
5757
5858
5959a800_rom_williams_device::a800_rom_williams_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
60               : a800_rom_device(mconfig, A800_ROM_WILLIAMS, "Atari 800 64K ROM Carts Williams", tag, owner, clock, "a800_williams", __FILE__)
61{
60               : a800_rom_device(mconfig, A800_ROM_WILLIAMS, "Atari 800 64K ROM Carts Williams", tag, owner, clock, "a800_williams", __FILE__), m_bank(0)
61            {
6262}
6363
6464
6565a800_rom_express_device::a800_rom_express_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
66               : a800_rom_device(mconfig, A800_ROM_EXPRESS, "Atari 800 64K ROM Carts Express/Diamond", tag, owner, clock, "a800_express", __FILE__)
67{
66               : a800_rom_device(mconfig, A800_ROM_EXPRESS, "Atari 800 64K ROM Carts Express/Diamond", tag, owner, clock, "a800_express", __FILE__), m_bank(0)
67            {
6868}
6969
7070
7171a800_rom_turbo_device::a800_rom_turbo_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
72               : a800_rom_device(mconfig, A800_ROM_TURBO, "Atari 800 64K ROM Carts Turbosoft", tag, owner, clock, "a800_turbo", __FILE__)
73{
72               : a800_rom_device(mconfig, A800_ROM_TURBO, "Atari 800 64K ROM Carts Turbosoft", tag, owner, clock, "a800_turbo", __FILE__), m_bank(0)
73            {
7474}
7575
7676
r250239r250240
8181
8282
8383a800_rom_microcalc_device::a800_rom_microcalc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
84               : a800_rom_device(mconfig, A800_ROM_MICROCALC, "Atari 800 64K ROM Cart SITSA MicroCalc", tag, owner, clock, "a800_sitsa", __FILE__)
85{
84               : a800_rom_device(mconfig, A800_ROM_MICROCALC, "Atari 800 64K ROM Cart SITSA MicroCalc", tag, owner, clock, "a800_sitsa", __FILE__), m_bank(0)
85            {
8686}
8787
8888
trunk/src/devices/bus/a800/sparta.cpp
r250239r250240
1919
2020
2121a800_rom_spartados_device::a800_rom_spartados_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
22               : a800_rom_device(mconfig, A800_ROM_SPARTADOS, "Atari 800 SpartaDOS ROM Carts", tag, owner, clock, "a800_sparta", __FILE__)
23{
22               : a800_rom_device(mconfig, A800_ROM_SPARTADOS, "Atari 800 SpartaDOS ROM Carts", tag, owner, clock, "a800_sparta", __FILE__),
23   m_bank(0),
24   m_subslot_enabled(0)
25            {
2426}
2527
2628
trunk/src/devices/bus/abcbus/abcbus.cpp
r250239r250240
4949   m_write_xint2(*this),
5050   m_write_xint3(*this),
5151   m_write_xint4(*this),
52   m_write_xint5(*this),
53   m_trrq(0)
52   m_write_xint5(*this), m_card(nullptr), m_irq(0), m_nmi(0), m_pren(0),
53   m_trrq(0), m_xint2(0), m_xint3(0), m_xint4(0), m_xint5(0)
5454{
5555}
5656
trunk/src/devices/bus/abcbus/fd2.cpp
r250239r250240
285285   m_floppy0(*this, FD1771_TAG ":0"),
286286   m_floppy1(*this, FD1771_TAG ":1"),
287287   m_dos_rom(*this, "dos"),
288   m_cs(false)
288   m_cs(false), m_status(0), m_data(0)
289289{
290290}
291291
trunk/src/devices/bus/abcbus/lux10828.cpp
r250239r250240
413413      m_floppy1(*this, MB8876_TAG":1"),
414414      m_sw1(*this, "SW1"),
415415      m_s1(*this, "S1"),
416      m_cs(false),
416      m_cs(false), m_status(0), m_data(0),
417417      m_fdc_irq(0),
418418      m_fdc_drq(0),
419419      m_wait_enable(0),
trunk/src/devices/bus/abcbus/lux21046.cpp
r250239r250240
748748      m_fdc(*this, SAB1793_TAG),
749749      m_floppy0(*this, SAB1793_TAG":0"),
750750      m_floppy1(*this, SAB1793_TAG":1"),
751      m_floppy(NULL),
751      m_floppy(nullptr),
752752      m_sw1(*this, "SW1"),
753753      m_sw2(*this, "SW2"),
754754      m_sw3(*this, "SW3"),
755      m_cs(false),
755      m_cs(false), m_status(0), m_out(0), m_inp(0),
756756      m_fdc_irq(0),
757757      m_dma_irq(0),
758758      m_busy(0),
r250239r250240
768768      m_fdc(*this, SAB1793_TAG),
769769      m_floppy0(*this, SAB1793_TAG":0"),
770770      m_floppy1(*this, SAB1793_TAG":1"),
771      m_floppy(NULL),
771      m_floppy(nullptr),
772772      m_sw1(*this, "SW1"),
773773      m_sw2(*this, "SW2"),
774774      m_sw3(*this, "SW3"),
775      m_cs(false),
775      m_cs(false), m_status(0), m_out(0), m_inp(0),
776776      m_fdc_irq(0),
777777      m_dma_irq(0),
778778      m_busy(0),
trunk/src/devices/bus/abcbus/lux21056.cpp
r250239r250240
352352      m_sasi_io(0),
353353      m_sasi_cd(0),
354354      m_sasi_msg(0),
355      m_sasi_bsy(0),
355      m_sasi_bsy(0), m_inp(0), m_out(0),
356356      m_stat(0),
357357      m_sasi_data(0)
358358{
trunk/src/devices/bus/abckb/abc77.cpp
r250239r250240
439439   m_x10(*this, "X10"),
440440   m_x11(*this, "X11"),
441441   m_dsw(*this, "DSW"),
442   m_txd(1),
442   m_txd(1), m_keylatch(0),
443443   m_keydown(1),
444   m_clock(0),
445   m_stb(1)
444   m_clock(0), m_hys(0), m_reset(0),
445   m_stb(1), m_j3(0), m_serial_timer(nullptr), m_reset_timer(nullptr)
446446{
447447}
448448
r250239r250240
464464   m_x10(*this, "X10"),
465465   m_x11(*this, "X11"),
466466   m_dsw(*this, "DSW"),
467   m_txd(1),
467   m_txd(1), m_keylatch(0),
468468   m_keydown(1),
469   m_clock(0),
470   m_stb(1)
469   m_clock(0), m_hys(0), m_reset(0),
470   m_stb(1), m_j3(0), m_serial_timer(nullptr), m_reset_timer(nullptr)
471471{
472472}
473473
trunk/src/devices/bus/abckb/abc800kb.cpp
r250239r250240
352352      m_txd(1),
353353      m_clk(0),
354354      m_stb(1),
355      m_keydown(1)
355      m_keydown(1), m_serial_timer(nullptr)
356356{
357357}
358358
trunk/src/devices/bus/abckb/abc99.cpp
r250239r250240
487487
488488abc99_device::abc99_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
489489   device_t(mconfig, ABC99, "Luxor ABC 99", tag, owner, clock, "abc99", __FILE__),
490   abc_keyboard_interface(mconfig, *this),
490   abc_keyboard_interface(mconfig, *this), m_serial_timer(nullptr), m_mouse_timer(nullptr),
491491   m_maincpu(*this, I8035_Z2_TAG),
492492   m_mousecpu(*this, I8035_Z5_TAG),
493493   m_speaker(*this, "speaker"),
trunk/src/devices/bus/abckb/abckb.cpp
r250239r250240
4747   device_slot_interface(mconfig, *this),
4848   m_out_rx_handler(*this),
4949   m_out_trxc_handler(*this),
50   m_out_keydown_handler(*this)
50   m_out_keydown_handler(*this), m_card(nullptr)
5151{
5252}
5353
trunk/src/devices/bus/adam/exp.cpp
r250239r250240
5555   device_t(mconfig, ADAM_EXPANSION_SLOT, "ADAM expansion slot", tag, owner, clock, "adam_expansion_slot", __FILE__),
5656   device_slot_interface(mconfig, *this),
5757   device_image_interface(mconfig, *this),
58   m_write_irq(*this)
58   m_write_irq(*this), m_card(nullptr)
5959{
6060}
6161
trunk/src/devices/bus/adam/ide.cpp
r250239r250240
9292   : device_t(mconfig, ADAM_IDE, "Powermate HP IDE", tag, owner, clock, "adam_ide", __FILE__),
9393      device_adam_expansion_slot_card_interface(mconfig, *this),
9494      m_ata(*this, ATA_TAG),
95      m_cent_data_out(*this, "cent_data_out")
95      m_cent_data_out(*this, "cent_data_out"), m_ata_data(0)
9696{
9797}
9898
trunk/src/devices/bus/adamnet/adamnet.cpp
r250239r250240
2828//-------------------------------------------------
2929
3030device_adamnet_card_interface::device_adamnet_card_interface(const machine_config &mconfig, device_t &device)
31   : device_slot_card_interface(mconfig, device)
31   : device_slot_card_interface(mconfig, device),
32   m_bus(nullptr)
3233{
3334}
3435
r250239r250240
5253//-------------------------------------------------
5354adamnet_slot_device::adamnet_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5455   device_t(mconfig, ADAMNET_SLOT, "ADAMnet slot", tag, owner, clock, "adamnet_slot", __FILE__),
55   device_slot_interface(mconfig, *this)
56   device_slot_interface(mconfig, *this), m_bus(nullptr)
5657{
5758}
5859
trunk/src/devices/bus/adamnet/ddp.cpp
r250239r250240
123123      device_adamnet_card_interface(mconfig, *this),
124124      m_maincpu(*this, M6801_TAG),
125125      m_ddp0(*this, "cassette"),
126      m_ddp1(*this, "cassette2")
126      m_ddp1(*this, "cassette2"), m_wr0(0), m_wr1(0), m_track(0)
127127{
128128}
129129
trunk/src/devices/bus/apf/slot.cpp
r250239r250240
7676                  device_t(mconfig, APF_CART_SLOT, "APF Cartridge Slot", tag, owner, clock, "apf_cart_slot", __FILE__),
7777                  device_image_interface(mconfig, *this),
7878                  device_slot_interface(mconfig, *this),
79                  m_type(APF_STD)
79                  m_type(APF_STD), m_cart(nullptr)
8080{
8181}
8282
trunk/src/devices/bus/apricot/expansion.cpp
r250239r250240
6969   m_ext1_handler(*this),
7070   m_ext2_handler(*this),
7171   m_int2_handler(*this),
72   m_int3_handler(*this)
72   m_int3_handler(*this), m_cpu_tag(nullptr), m_iop_tag(nullptr)
7373{
7474}
7575
trunk/src/devices/bus/arcadia/slot.cpp
r250239r250240
6666                  device_t(mconfig, EA2001_CART_SLOT, "Emerson Arcadia Cartridge Slot", tag, owner, clock, "arcadia_cart_slot", __FILE__),
6767                  device_image_interface(mconfig, *this),
6868                  device_slot_interface(mconfig, *this),
69                  m_type(ARCADIA_STD)
69                  m_type(ARCADIA_STD), m_cart(nullptr)
7070{
7171}
7272
trunk/src/devices/bus/astrocde/exp.cpp
r250239r250240
3838astrocade_exp_device::astrocade_exp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3939                  device_t(mconfig, ASTROCADE_EXP_SLOT, "Bally Astrocade expansion", tag, owner, clock, "astrocde_exp", __FILE__),
4040                  device_slot_interface(mconfig, *this),
41                  m_card_mounted(false)
41                  m_card_mounted(false), m_card(nullptr)
4242{
4343}
4444
trunk/src/devices/bus/astrocde/rom.cpp
r250239r250240
3535}
3636
3737astrocade_rom_256k_device::astrocade_rom_256k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
38               : astrocade_rom_device(mconfig, ASTROCADE_ROM_256K, "Bally Astrocade 256K Carts", tag, owner, clock, "astrocade_256k", __FILE__)
39{
38               : astrocade_rom_device(mconfig, ASTROCADE_ROM_256K, "Bally Astrocade 256K Carts", tag, owner, clock, "astrocade_256k", __FILE__), m_base_bank(0)
39            {
4040}
4141
4242astrocade_rom_512k_device::astrocade_rom_512k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
43               : astrocade_rom_device(mconfig, ASTROCADE_ROM_512K, "Bally Astrocade 512K Carts", tag, owner, clock, "astrocade_512k", __FILE__)
44{
43               : astrocade_rom_device(mconfig, ASTROCADE_ROM_512K, "Bally Astrocade 512K Carts", tag, owner, clock, "astrocade_512k", __FILE__), m_base_bank(0)
44            {
4545}
4646
4747
trunk/src/devices/bus/astrocde/slot.cpp
r250239r250240
6666                  device_t(mconfig, ASTROCADE_CART_SLOT, "Bally Astrocade Cartridge Slot", tag, owner, clock, "astrocade_cart_slot", __FILE__),
6767                  device_image_interface(mconfig, *this),
6868                  device_slot_interface(mconfig, *this),
69                  m_type(ASTROCADE_STD)
69                  m_type(ASTROCADE_STD), m_cart(nullptr)
7070{
7171}
7272
trunk/src/devices/bus/bml3/bml3bus.cpp
r250239r250240
6262//-------------------------------------------------
6363bml3bus_slot_device::bml3bus_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6464      device_t(mconfig, BML3BUS_SLOT, "Hitachi MB-6890 Slot", tag, owner, clock, "bml3bus_slot", __FILE__),
65      device_slot_interface(mconfig, *this)
65      device_slot_interface(mconfig, *this), m_bml3bus_tag(nullptr), m_bml3bus_slottag(nullptr)
6666{
6767}
6868
6969bml3bus_slot_device::bml3bus_slot_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) :
7070      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
71      device_slot_interface(mconfig, *this)
71      device_slot_interface(mconfig, *this), m_bml3bus_tag(nullptr), m_bml3bus_slottag(nullptr)
7272{
7373}
7474
r250239r250240
111111//-------------------------------------------------
112112
113113bml3bus_device::bml3bus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
114      device_t(mconfig, BML3BUS, "Hitachi MB-6890 Bus", tag, owner, clock, "bml3bus", __FILE__),
114      device_t(mconfig, BML3BUS, "Hitachi MB-6890 Bus", tag, owner, clock, "bml3bus", __FILE__), m_maincpu(nullptr),
115115      m_out_nmi_cb(*this),
116116      m_out_irq_cb(*this),
117      m_out_firq_cb(*this)
117      m_out_firq_cb(*this), m_cputag(nullptr)
118118{
119119}
120120
121121bml3bus_device::bml3bus_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) :
122      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
122      device_t(mconfig, type, name, tag, owner, clock, shortname, source), m_maincpu(nullptr),
123123      m_out_nmi_cb(*this),
124124      m_out_irq_cb(*this),
125      m_out_firq_cb(*this)
125      m_out_firq_cb(*this), m_cputag(nullptr)
126126{
127127}
128128//-------------------------------------------------
r250239r250240
203203
204204device_bml3bus_card_interface::device_bml3bus_card_interface(const machine_config &mconfig, device_t &device)
205205   : device_slot_card_interface(mconfig, device),
206      m_bml3bus(NULL),
207      m_bml3bus_tag(NULL)
206      m_bml3bus(nullptr),
207      m_bml3bus_tag(nullptr), m_bml3bus_slottag(nullptr), m_slot(0), m_next(nullptr)
208208{
209209}
210210
trunk/src/devices/bus/bml3/bml3kanji.cpp
r250239r250240
7474
7575bml3bus_kanji_device::bml3bus_kanji_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7676   device_t(mconfig, BML3BUS_KANJI, "Hitachi MP-9740 Kanji Character ROM Card", tag, owner, clock, "bml3kanji", __FILE__),
77   device_bml3bus_card_interface(mconfig, *this)
77   device_bml3bus_card_interface(mconfig, *this), m_kanji_addr(0), m_rom(nullptr)
7878{
7979}
8080
trunk/src/devices/bus/bml3/bml3mp1802.cpp
r250239r250240
113113   m_floppy0(*this, "fdc:0"),
114114   m_floppy1(*this, "fdc:1"),
115115   m_floppy2(*this, "fdc:2"),
116   m_floppy3(*this, "fdc:3")
116   m_floppy3(*this, "fdc:3"), m_rom(nullptr)
117117{
118118}
119119
trunk/src/devices/bus/bml3/bml3mp1805.cpp
r250239r250240
140140bml3bus_mp1805_device::bml3bus_mp1805_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
141141   device_t(mconfig, BML3BUS_MP1805, "Hitachi MP-1805 Floppy Controller Card", tag, owner, clock, "bml3mp1805", __FILE__),
142142   device_bml3bus_card_interface(mconfig, *this),
143   m_mc6843(*this, "mc6843")
143   m_mc6843(*this, "mc6843"), m_rom(nullptr)
144144{
145145}
146146
trunk/src/devices/bus/bw2/exp.cpp
r250239r250240
5353
5454bw2_expansion_slot_device::bw2_expansion_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5555   device_t(mconfig, BW2_EXPANSION_SLOT, "Bondwell 2 expansion port", tag, owner, clock, "bw2_expansion_slot", __FILE__),
56   device_slot_interface(mconfig, *this)
56   device_slot_interface(mconfig, *this), m_cart(nullptr)
5757{
5858}
5959
trunk/src/devices/bus/c64/bn1541.cpp
r250239r250240
3737//-------------------------------------------------
3838
3939device_c64_floppy_parallel_interface::device_c64_floppy_parallel_interface(const machine_config &mconfig, device_t &device) :
40   m_other(NULL)
40   m_other(nullptr), m_parallel_data(0)
4141{
4242}
4343
r250239r250240
6363c64_bn1541_device::c64_bn1541_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6464   device_t(mconfig, C64_BN1541, "C64 Burst Nibbler 1541/1571 Parallel Cable", tag, owner, clock, "c64_bn1541", __FILE__),
6565   device_pet_user_port_interface(mconfig, *this),
66   device_c64_floppy_parallel_interface(mconfig, *this)
66   device_c64_floppy_parallel_interface(mconfig, *this), m_parallel_output(0)
6767{
6868}
6969
trunk/src/devices/bus/c64/c128_partner.cpp
r250239r250240
8080   device_t(mconfig, C128_PARTNER, "PARTNER 128", tag, owner, clock, "c128_partner", __FILE__),
8181   device_c64_expansion_card_interface(mconfig, *this),
8282   //device_vcs_control_port_interface(mconfig, *this),
83   m_ram(*this, "ram"),
83   m_ram(*this, "ram"), t_joyb2(nullptr),
8484   m_ram_a12_a7(0),
8585   m_ls74_cd(0),
8686   m_ls74_q1(0),
trunk/src/devices/bus/c64/comal80.cpp
r250239r250240
2828
2929c64_comal80_cartridge_device::c64_comal80_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030   device_t(mconfig, C64_COMAL80, "C64 COMAL 80 cartridge", tag, owner, clock, "c64_comal80", __FILE__),
31   device_c64_expansion_card_interface(mconfig, *this)
31   device_c64_expansion_card_interface(mconfig, *this),
32   m_bank(0)
3233{
3334}
3435
trunk/src/devices/bus/c64/cpm.cpp
r250239r250240
134134   device_c64_expansion_card_interface(mconfig, *this),
135135   m_maincpu(*this, Z80_TAG),
136136   m_enabled(0),
137   m_ba(1)
137   m_ba(1), m_reset(0)
138138{
139139}
140140
trunk/src/devices/bus/c64/dela_ep64.cpp
r250239r250240
5252   device_t(mconfig, C64_DELA_EP64, "C64 Rex 64KB EPROM cartridge", tag, owner, clock, "c64_dela_ep64", __FILE__),
5353   device_c64_expansion_card_interface(mconfig, *this),
5454   m_eprom1(*this, "eprom1"),
55   m_eprom2(*this, "eprom2")
55   m_eprom2(*this, "eprom2"), m_bank(0), m_reset(0), m_rom0_ce(0), m_rom1_ce(0), m_rom2_ce(0)
5656{
5757}
5858
trunk/src/devices/bus/c64/dela_ep7x8.cpp
r250239r250240
6767   m_eprom4(*this, "rom4"),
6868   m_eprom5(*this, "rom5"),
6969   m_eprom6(*this, "rom6"),
70   m_eprom7(*this, "rom7")
70   m_eprom7(*this, "rom7"), m_bank(0)
7171{
7272}
7373
trunk/src/devices/bus/c64/dinamic.cpp
r250239r250240
2828
2929c64_dinamic_cartridge_device::c64_dinamic_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030   device_t(mconfig, C64_DINAMIC, "C64 Dinamic cartridge", tag, owner, clock, "c64_dinamic", __FILE__),
31   device_c64_expansion_card_interface(mconfig, *this)
31   device_c64_expansion_card_interface(mconfig, *this),
32   m_bank(0)
3233{
3334}
3435
trunk/src/devices/bus/c64/dqbb.cpp
r250239r250240
3838c64_dqbb_cartridge_device::c64_dqbb_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3939   device_t(mconfig, C64_DQBB, "C64 Double Quick Brown Box cartridge", tag, owner, clock, "c64_dqbb", __FILE__),
4040   device_c64_expansion_card_interface(mconfig, *this),
41   device_nvram_interface(mconfig, *this)
41   device_nvram_interface(mconfig, *this),
42   m_cs(0),
43   m_we(0)
4244{
4345}
4446
trunk/src/devices/bus/c64/easy_calc_result.cpp
r250239r250240
4949
5050c64_easy_calc_result_cartridge_device::c64_easy_calc_result_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5151   device_t(mconfig, C64_EASY_CALC_RESULT, "C64 Easy Calc Result cartridge", tag, owner, clock, "c64_easy_calc_result", __FILE__),
52   device_c64_expansion_card_interface(mconfig, *this)
52   device_c64_expansion_card_interface(mconfig, *this), m_bank(0)
5353{
5454}
5555
trunk/src/devices/bus/c64/epyx_fast_load.cpp
r250239r250240
3838
3939c64_epyx_fast_load_cartridge_device::c64_epyx_fast_load_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4040   device_t(mconfig, C64_EPYX_FAST_LOAD, "C64 Epyx Fast Load cartridge", tag, owner, clock, "c64_epyx_fast_load", __FILE__),
41   device_c64_expansion_card_interface(mconfig, *this)
41   device_c64_expansion_card_interface(mconfig, *this), m_exrom_timer(nullptr)
4242{
4343}
4444
trunk/src/devices/bus/c64/exp.cpp
r250239r250240
6565      m_write_irq(*this),
6666      m_write_nmi(*this),
6767      m_write_dma(*this),
68      m_write_reset(*this)
68      m_write_reset(*this), m_card(nullptr), m_hiram(0)
6969{
7070}
7171
trunk/src/devices/bus/c64/final3.cpp
r250239r250240
6565
6666c64_final3_cartridge_device::c64_final3_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6767   device_t(mconfig, C64_FINAL3, "C64 Final Cartridge III", tag, owner, clock, "c64_final3", __FILE__),
68   device_c64_expansion_card_interface(mconfig, *this)
68   device_c64_expansion_card_interface(mconfig, *this), m_bank(0), m_hidden(0)
6969{
7070}
7171
trunk/src/devices/bus/c64/fun_play.cpp
r250239r250240
2828
2929c64_fun_play_cartridge_device::c64_fun_play_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030   device_t(mconfig, C64_FUN_PLAY, "C64 Fun Play cartridge", tag, owner, clock, "c64_fun_play", __FILE__),
31   device_c64_expansion_card_interface(mconfig, *this)
31   device_c64_expansion_card_interface(mconfig, *this),
32   m_bank(0)
3233{
3334}
3435
trunk/src/devices/bus/c64/georam.cpp
r250239r250240
2929c64_georam_cartridge_device::c64_georam_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030   device_t(mconfig, C64_GEORAM, "C64 GeoRAM cartridge", tag, owner, clock, "c64_georam", __FILE__),
3131   device_c64_expansion_card_interface(mconfig, *this),
32   m_ram(*this, "ram")
32   m_ram(*this, "ram"),
33   m_bank(0)
3334{
3435}
3536
trunk/src/devices/bus/c64/ide64.cpp
r250239r250240
101101   m_rtc(*this, DS1302_TAG),
102102   m_ata(*this, ATA_TAG),
103103   m_jp1(*this, "JP1"),
104   m_ram(*this, "ram")
104   m_ram(*this, "ram"), m_bank(0), m_ata_data(0), m_wp(0), m_enable(0)
105105{
106106}
107107
trunk/src/devices/bus/c64/mach5.cpp
r250239r250240
5454c64_mach5_cartridge_device::c64_mach5_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5555   device_t(mconfig, C64_MACH5, "C64 MACH5 cartridge", tag, owner, clock, "c64_mach5", __FILE__),
5656   device_c64_expansion_card_interface(mconfig, *this),
57   m_s1(*this, "S1")
57   m_s1(*this, "S1"), m_c128(false)
5858{
5959}
6060
trunk/src/devices/bus/c64/magic_desk.cpp
r250239r250240
2828
2929c64_magic_desk_cartridge_device::c64_magic_desk_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030   device_t(mconfig, C64_MAGIC_DESK, "C64 Magic Desk cartridge", tag, owner, clock, "c64_magic_desk", __FILE__),
31   device_c64_expansion_card_interface(mconfig, *this)
31   device_c64_expansion_card_interface(mconfig, *this),
32   m_bank(0)
3233{
3334}
3435
trunk/src/devices/bus/c64/magic_voice.cpp
r250239r250240
266266   m_vslsi(*this, T6721A_TAG),
267267   m_tpi(*this, MOS6525_TAG),
268268   m_fifo(*this, CMOS40105_TAG),
269   m_exp(*this, C64_EXPANSION_SLOT_TAG),
269   m_exp(*this, C64_EXPANSION_SLOT_TAG), m_ca(0),
270270   m_tpi_pb(0x60),
271271   m_tpi_pc6(1),
272272   m_pd(0)
trunk/src/devices/bus/c64/multiscreen.cpp
r250239r250240
141141
142142c64_multiscreen_cartridge_device::c64_multiscreen_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
143143   device_t(mconfig, C64_MULTISCREEN, "C64 Multiscreen cartridge", tag, owner, clock, "c64_mscr", __FILE__),
144   device_c64_expansion_card_interface(mconfig, *this)
144   device_c64_expansion_card_interface(mconfig, *this), m_bank(0)
145145{
146146}
147147
trunk/src/devices/bus/c64/neoram.cpp
r250239r250240
2929c64_neoram_cartridge_device::c64_neoram_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030   device_t(mconfig, C64_NEORAM, "C64 NeoRAM cartridge", tag, owner, clock, "c64_neoram", __FILE__),
3131   device_c64_expansion_card_interface(mconfig, *this),
32   device_nvram_interface(mconfig, *this)
32   device_nvram_interface(mconfig, *this),
33   m_bank(0)
3334{
3435}
3536
trunk/src/devices/bus/c64/pagefox.cpp
r250239r250240
5151c64_pagefox_cartridge_device::c64_pagefox_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5252   device_t(mconfig, C64_PAGEFOX, "C64 Pagefox cartridge", tag, owner, clock, "c64_pagefox", __FILE__),
5353   device_c64_expansion_card_interface(mconfig, *this),
54   m_ram(*this, "ram")
54   m_ram(*this, "ram"), m_bank(0)
5555{
5656}
5757
trunk/src/devices/bus/c64/ross.cpp
r250239r250240
2828
2929c64_ross_cartridge_device::c64_ross_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030   device_t(mconfig, C64_ROSS, "C64 Ross cartridge", tag, owner, clock, "c64_ross", __FILE__),
31   device_c64_expansion_card_interface(mconfig, *this)
31   device_c64_expansion_card_interface(mconfig, *this), m_bank(0)
3232{
3333}
3434
trunk/src/devices/bus/c64/silverrock.cpp
r250239r250240
6161
6262c64_silverrock_cartridge_device::c64_silverrock_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6363   device_t(mconfig, C64_SILVERROCK, "C64 SilverRock cartridge", tag, owner, clock, "c64_silverrock", __FILE__),
64   device_c64_expansion_card_interface(mconfig, *this)
64   device_c64_expansion_card_interface(mconfig, *this), m_bank(0)
6565{
6666}
6767
trunk/src/devices/bus/c64/structured_basic.cpp
r250239r250240
2828
2929c64_structured_basic_cartridge_device::c64_structured_basic_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030   device_t(mconfig, C64_STRUCTURED_BASIC, "C64 Structured Basic cartridge", tag, owner, clock, "c64_structured_basic", __FILE__),
31   device_c64_expansion_card_interface(mconfig, *this)
31   device_c64_expansion_card_interface(mconfig, *this),
32   m_bank(0)
3233{
3334}
3435
trunk/src/devices/bus/c64/super_explode.cpp
r250239r250240
3838
3939c64_super_explode_cartridge_device::c64_super_explode_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4040   device_t(mconfig, C64_SUPER_EXPLODE, "C64 Super Explode! cartridge", tag, owner, clock, "c64_super_explode", __FILE__),
41   device_c64_expansion_card_interface(mconfig, *this)
41   device_c64_expansion_card_interface(mconfig, *this), m_bank(0), m_exrom_timer(nullptr)
4242{
4343}
4444
trunk/src/devices/bus/c64/super_games.cpp
r250239r250240
2828
2929c64_super_games_cartridge_device::c64_super_games_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030   device_t(mconfig, C64_SUPER_GAMES, "C64 Super Games cartridge", tag, owner, clock, "c64_super_games", __FILE__),
31   device_c64_expansion_card_interface(mconfig, *this)
31   device_c64_expansion_card_interface(mconfig, *this),
32   m_bank(0)
3233{
3334}
3435
trunk/src/devices/bus/c64/sw8k.cpp
r250239r250240
7474c64_switchable_8k_cartridge_device::c64_switchable_8k_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7575   device_t(mconfig, C64_SW8K, "C64 Switchable 8K cartridge", tag, owner, clock, "c64_sw8k", __FILE__),
7676   device_c64_expansion_card_interface(mconfig, *this),
77   m_sw(*this, "SW")
77   m_sw(*this, "SW"), m_bank(0)
7878{
7979}
8080
trunk/src/devices/bus/c64/swiftlink.cpp
r250239r250240
104104   device_c64_expansion_card_interface(mconfig, *this),
105105   m_acia(*this, MOS6551_TAG),
106106   m_io_cs(*this, "CS"),
107   m_io_irq(*this, "IRQ")
107   m_io_irq(*this, "IRQ"), m_cs(0), m_irq(0)
108108{
109109}
110110
trunk/src/devices/bus/c64/system3.cpp
r250239r250240
2828
2929c64_system3_cartridge_device::c64_system3_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030   device_t(mconfig, C64_SYSTEM3, "C64 System 3 cartridge", tag, owner, clock, "c64_system3", __FILE__),
31   device_c64_expansion_card_interface(mconfig, *this)
31   device_c64_expansion_card_interface(mconfig, *this),
32   m_bank(0)
3233{
3334}
3435
trunk/src/devices/bus/c64/tdos.cpp
r250239r250240
206206   device_c64_expansion_card_interface(mconfig, *this),
207207   m_ssda(*this, MC68A52P_TAG),
208208   m_exp(*this, C64_EXPANSION_SLOT_TAG),
209   m_sw1(*this, "SW1")
209   m_sw1(*this, "SW1"), m_enabled(false)
210210{
211211}
212212
trunk/src/devices/bus/c64/turbo232.cpp
r250239r250240
104104   m_acia(*this, MOS6551_TAG),
105105   m_rs232(*this, RS232_TAG),
106106   m_io_cs(*this, "CS"),
107   m_io_irq(*this, "IRQ")
107   m_io_irq(*this, "IRQ"), m_cs(0), m_irq(0), m_es(0)
108108{
109109}
110110
trunk/src/devices/bus/c64/vw64.cpp
r250239r250240
6868
6969c64_vizawrite_cartridge_device::c64_vizawrite_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7070   device_t(mconfig, C64_VW64, "VizaWrite 64", tag, owner, clock, "c64_vizawrite", __FILE__),
71   device_c64_expansion_card_interface(mconfig, *this)
71   device_c64_expansion_card_interface(mconfig, *this), m_game_timer(nullptr)
7272{
7373}
7474
trunk/src/devices/bus/c64/zaxxon.cpp
r250239r250240
2828
2929c64_zaxxon_cartridge_device::c64_zaxxon_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030   device_t(mconfig, C64_ZAXXON, "C64 Zaxxon cartridge", tag, owner, clock, "c64_zaxxon", __FILE__),
31   device_c64_expansion_card_interface(mconfig, *this)
31   device_c64_expansion_card_interface(mconfig, *this),
32   m_bank(0)
3233{
3334}
3435
trunk/src/devices/bus/cbm2/exp.cpp
r250239r250240
6565cbm2_expansion_slot_device::cbm2_expansion_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6666      device_t(mconfig, CBM2_EXPANSION_SLOT, "CBM-II expansion port", tag, owner, clock, "cbm2_expansion_slot", __FILE__),
6767      device_slot_interface(mconfig, *this),
68      device_image_interface(mconfig, *this)
68      device_image_interface(mconfig, *this), m_card(nullptr)
6969{
7070}
7171
trunk/src/devices/bus/cbm2/user.cpp
r250239r250240
4848   m_write_irq(*this),
4949   m_write_sp(*this),
5050   m_write_cnt(*this),
51   m_write_flag(*this)
51   m_write_flag(*this), m_card(nullptr)
5252{
5353}
5454
trunk/src/devices/bus/cbmiec/cbmiec.cpp
r250239r250240
222222//-------------------------------------------------
223223
224224device_cbm_iec_interface::device_cbm_iec_interface(const machine_config &mconfig, device_t &device)
225   : device_slot_card_interface(mconfig, device)
225   : device_slot_card_interface(mconfig, device), m_next(nullptr), m_bus(nullptr), m_slot(nullptr)
226226{
227227}
228228
r250239r250240
247247
248248cbm_iec_slot_device::cbm_iec_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
249249      device_t(mconfig, CBM_IEC_SLOT, "CBM IEC slot", tag, owner, clock, "cbm_iec_slot", __FILE__),
250      device_slot_interface(mconfig, *this)
250      device_slot_interface(mconfig, *this), m_address(0)
251251{
252252}
253253
trunk/src/devices/bus/centronics/comxpl80.cpp
r250239r250240
163163      device_centronics_peripheral_interface(mconfig, *this),
164164      m_plotter(*this, "PLOTTER"),
165165      m_font(*this, "FONT"),
166      m_sw(*this, "SW")
166      m_sw(*this, "SW"), m_font_addr(0), m_x_motor_phase(0), m_y_motor_phase(0), m_z_motor_phase(0), m_plotter_data(0), m_plotter_ack(0), m_plotter_online(0), m_data(0)
167167{
168168}
169169
trunk/src/devices/bus/centronics/covox.cpp
r250239r250240
9292   : device_t(mconfig, CENTRONICS_COVOX_STEREO, "Covox (Stereo-in-1)", tag, owner, clock, "covox_stereo", __FILE__),
9393   device_centronics_peripheral_interface( mconfig, *this ),
9494   m_dac_left(*this, "dac_left"),
95   m_dac_right(*this, "dac_right"),
96   m_data(0)
95   m_dac_right(*this, "dac_right"), m_strobe(0),
96   m_data(0), m_autofd(0)
9797{
9898}
9999
trunk/src/devices/bus/centronics/epson_ex800.cpp
r250239r250240
361361   device_t(mconfig, EPSON_EX800, "Epson EX-800", tag, owner, clock, "ex800", __FILE__),
362362   device_centronics_peripheral_interface(mconfig, *this),
363363   m_maincpu(*this, "maincpu"),
364   m_beeper(*this, "beeper")
364   m_beeper(*this, "beeper"), m_irq_state(0)
365365{
366366}
367367
trunk/src/devices/bus/centronics/epson_lx810l.cpp
r250239r250240
302302   m_cr_pos_abs(1),
303303   m_real_cr_pos(1),
304304   m_real_cr_steps(0),
305   m_real_cr_dir(0)
305   m_real_cr_dir(0), m_fakemem(0)
306306{
307307}
308308
r250239r250240
323323   m_cr_pos_abs(1),
324324   m_real_cr_pos(1),
325325   m_real_cr_steps(0),
326   m_real_cr_dir(0)
326   m_real_cr_dir(0), m_fakemem(0)
327327{
328328}
329329
trunk/src/devices/bus/centronics/printer.cpp
r250239r250240
2727centronics_printer_device::centronics_printer_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
2828   device_t(mconfig, CENTRONICS_PRINTER, "Centronics Printer", tag, owner, clock, "centronics_printer", __FILE__),
2929   device_centronics_peripheral_interface( mconfig, *this ),
30   m_strobe(0),
30   m_strobe(0),
31   m_data(0),
32   m_busy(0),
3133   m_printer(*this, "printer")
3234{
3335}
trunk/src/devices/bus/chanf/rom.cpp
r250239r250240
3333
3434chanf_rom_device::chanf_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)
3535               : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
36                  device_channelf_cart_interface( mconfig, *this )
37{
36                  device_channelf_cart_interface( mconfig, *this ), m_addr_latch(0), m_addr(0), m_read_write(0), m_data0(0)
37            {
3838}
3939
4040chanf_rom_device::chanf_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4141               : device_t(mconfig, CHANF_ROM_STD, "Channel F Standard Carts", tag, owner, clock, "chanf_rom", __FILE__),
42                  device_channelf_cart_interface( mconfig, *this )
43{
42                  device_channelf_cart_interface( mconfig, *this ), m_addr_latch(0), m_addr(0), m_read_write(0), m_data0(0)
43            {
4444}
4545
4646chanf_maze_device::chanf_maze_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
5959}
6060
6161chanf_multi_old_device::chanf_multi_old_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
62               : chanf_rom_device(mconfig, CHANF_ROM_MULTI_OLD, "Channel F Multigame (Earlier Version) Cart", tag, owner, clock, "chanf_multi_old", __FILE__)
63{
62               : chanf_rom_device(mconfig, CHANF_ROM_MULTI_OLD, "Channel F Multigame (Earlier Version) Cart", tag, owner, clock, "chanf_multi_old", __FILE__), m_base_bank(0)
63            {
6464}
6565
6666chanf_multi_final_device::chanf_multi_final_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
67               : chanf_rom_device(mconfig, CHANF_ROM_MULTI_FINAL, "Channel F Multigame (Final Version) Cart", tag, owner, clock, "chanf_multi_fin", __FILE__)
68{
67               : chanf_rom_device(mconfig, CHANF_ROM_MULTI_FINAL, "Channel F Multigame (Final Version) Cart", tag, owner, clock, "chanf_multi_fin", __FILE__), m_base_bank(0), m_half_bank(0)
68            {
6969}
7070
7171
trunk/src/devices/bus/chanf/slot.cpp
r250239r250240
7676                  device_t(mconfig, CHANF_CART_SLOT, "Fairchild Channel F Cartridge Slot", tag, owner, clock, "cf_cart_slot", __FILE__),
7777                  device_image_interface(mconfig, *this),
7878                  device_slot_interface(mconfig, *this),
79                  m_type(CF_CHESS)
79                  m_type(CF_CHESS), m_cart(nullptr)
8080{
8181}
8282
trunk/src/devices/bus/coco/coco_dwsock.cpp
r250239r250240
6666//-------------------------------------------------
6767
6868beckerport_device::beckerport_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
69   : device_t(mconfig, COCO_DWSOCK, "Virtual Becker Port", tag, owner, clock, "coco_dwsock", __FILE__),
70   m_dwconfigport(*this, DRIVEWIRE_PORT_TAG)
69   : device_t(mconfig, COCO_DWSOCK, "Virtual Becker Port", tag, owner, clock, "coco_dwsock", __FILE__), m_hostname(nullptr),
70   m_dwconfigport(*this, DRIVEWIRE_PORT_TAG), m_dwtcpport(0)
7171{
7272   m_pSocket = NULL;
7373   m_head = 0;
trunk/src/devices/bus/coco/coco_fdc.cpp
r250239r250240
179179//-------------------------------------------------
180180coco_fdc_device::coco_fdc_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)
181181   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
182      device_cococart_interface( mconfig, *this ),
182      device_cococart_interface( mconfig, *this ), m_owner(nullptr), m_dskreg(0), m_drq(0), m_intrq(0),
183183      m_wd17xx(*this, WD_TAG),
184184      m_wd2797(*this, WD2797_TAG),
185185      m_ds1315(*this, CLOUD9_TAG),
186      m_disto_msm6242(*this, DISTO_TAG)
186      m_disto_msm6242(*this, DISTO_TAG), m_msm6242_rtc_address(0)
187187{
188188}
189189
190190coco_fdc_device::coco_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
191191      : device_t(mconfig, COCO_FDC, "CoCo FDC", tag, owner, clock, "coco_fdc", __FILE__),
192      device_cococart_interface( mconfig, *this ),
192      device_cococart_interface( mconfig, *this ), m_owner(nullptr), m_dskreg(0), m_drq(0), m_intrq(0),
193193      m_wd17xx(*this, WD_TAG),
194194      m_wd2797(*this, WD2797_TAG),
195195      m_ds1315(*this, CLOUD9_TAG),
196      m_disto_msm6242(*this, DISTO_TAG)
197{
196      m_disto_msm6242(*this, DISTO_TAG), m_msm6242_rtc_address(0)
197   {
198198}
199199
200200//-------------------------------------------------
trunk/src/devices/bus/coco/coco_multi.cpp
r250239r250240
140140
141141coco_multipak_device::coco_multipak_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
142142      : device_t(mconfig, COCO_MULTIPAK, "CoCo Multi-Pak Interface", tag, owner, clock, "coco_multipak", __FILE__),
143      device_cococart_interface( mconfig, *this )
144{
143      device_cococart_interface( mconfig, *this ), m_owner(nullptr), m_select(0)
144   {
145145}
146146
147147
trunk/src/devices/bus/coco/coco_orch90.cpp
r250239r250240
4040
4141coco_orch90_device::coco_orch90_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4242      : device_t(mconfig, COCO_ORCH90, "CoCo Orch-90 PAK", tag, owner, clock, "coco_orch90", __FILE__),
43      device_cococart_interface( mconfig, *this )
44{
43      device_cococart_interface( mconfig, *this ), m_left_dac(nullptr), m_right_dac(nullptr)
44   {
4545}
4646
4747//-------------------------------------------------
trunk/src/devices/bus/coco/coco_pak.cpp
r250239r250240
4141//-------------------------------------------------
4242coco_pak_device::coco_pak_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)
4343   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
44      device_cococart_interface( mconfig, *this )
44      device_cococart_interface( mconfig, *this ), m_cart(nullptr), m_owner(nullptr)
4545{
4646}
4747
4848coco_pak_device::coco_pak_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4949      : device_t(mconfig, COCO_PAK, "CoCo Program PAK", tag, owner, clock, "cocopak", __FILE__),
50      device_cococart_interface( mconfig, *this )
51{
50      device_cococart_interface( mconfig, *this ), m_cart(nullptr), m_owner(nullptr)
51   {
5252}
5353
5454//-------------------------------------------------
trunk/src/devices/bus/coco/cococart.cpp
r250239r250240
4141      device_image_interface(mconfig, *this),
4242      m_cart_callback(*this),
4343      m_nmi_callback(*this),
44      m_halt_callback(*this)
44      m_halt_callback(*this), m_cart(nullptr)
4545{
4646}
4747
trunk/src/devices/bus/coleco/ctrl.cpp
r250239r250240
4646
4747colecovision_control_port_device::colecovision_control_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4848   device_t(mconfig, COLECOVISION_CONTROL_PORT, "ColecoVision control port", tag, owner, clock, "colecovision_control_port", __FILE__),
49   device_slot_interface(mconfig, *this),
49   device_slot_interface(mconfig, *this), m_device(nullptr),
5050   m_write_irq(*this)
5151{
5252}
trunk/src/devices/bus/coleco/exp.cpp
r250239r250240
5555colecovision_cartridge_slot_device::colecovision_cartridge_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5656   device_t(mconfig, COLECOVISION_CARTRIDGE_SLOT, "ColecoVision cartridge port", tag, owner, clock, "coleco_cartridge_port", __FILE__),
5757   device_slot_interface(mconfig, *this),
58   device_image_interface(mconfig, *this)
58   device_image_interface(mconfig, *this), m_card(nullptr)
5959{
6060}
6161
trunk/src/devices/bus/compucolor/floppy.cpp
r250239r250240
8585//-------------------------------------------------
8686
8787compucolor_floppy_port_device::compucolor_floppy_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
88   : rs232_port_device(mconfig, COMPUCOLOR_FLOPPY_PORT, "Compucolor Floppy Port", tag, owner, clock, "compclr_flp_port", __FILE__)
88   : rs232_port_device(mconfig, COMPUCOLOR_FLOPPY_PORT, "Compucolor Floppy Port", tag, owner, clock, "compclr_flp_port", __FILE__), m_dev(nullptr)
8989{
9090}
9191
trunk/src/devices/bus/comx35/exp.cpp
r250239r250240
4545comx_expansion_slot_device::comx_expansion_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4646   device_t(mconfig, COMX_EXPANSION_SLOT, "COMX-35 expansion slot", tag, owner, clock, "comx_expansion_slot", __FILE__),
4747   device_slot_interface(mconfig, *this),
48   m_write_irq(*this)
48   m_write_irq(*this), m_card(nullptr)
4949{
5050}
5151
trunk/src/devices/bus/comx35/ram.cpp
r250239r250240
3636comx_ram_device::comx_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3737   device_t(mconfig, COMX_RAM, "COMX-35 RAM Card", tag, owner, clock, "comx_ram", __FILE__),
3838   device_comx_expansion_card_interface(mconfig, *this),
39   m_ram(*this, "ram")
39   m_ram(*this, "ram"),
40   m_bank(0)
4041{
4142}
4243
trunk/src/devices/bus/cpc/amdrum.cpp
r250239r250240
3636
3737cpc_amdrum_device::cpc_amdrum_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3838   device_t(mconfig, CPC_AMDRUM, "Amdrum", tag, owner, clock, "cpc_amdrum", __FILE__),
39   device_cpc_expansion_card_interface(mconfig, *this),
39   device_cpc_expansion_card_interface(mconfig, *this),
40   m_slot(nullptr),
4041   m_dac(*this,"dac")
4142{
4243}
trunk/src/devices/bus/cpc/brunword4.cpp
r250239r250240
6464
6565cpc_brunword4_device::cpc_brunword4_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6666   device_t(mconfig, CPC_BRUNWORD_MK4, "Brunword Elite MK4", tag, owner, clock, "cpc_brunword4", __FILE__),
67   device_cpc_expansion_card_interface(mconfig, *this)
67   device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr), m_rombank_active(false), m_bank_sel(0)
6868{
6969}
7070
trunk/src/devices/bus/cpc/cpc_pds.cpp
r250239r250240
3737
3838cpc_pds_device::cpc_pds_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3939   device_t(mconfig, CPC_PDS, "Programmers Development System (CPC Target)", tag, owner, clock, "cpc_pds", __FILE__),
40   device_cpc_expansion_card_interface(mconfig, *this),
40   device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr),
4141   m_pio(*this,"pio")
4242{
4343}
trunk/src/devices/bus/cpc/cpc_rom.cpp
r250239r250240
8181
8282rom_image_device::rom_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
8383   : device_t(mconfig, ROMSLOT, "ROM image", tag, owner, clock, "rom_image", __FILE__),
84      device_image_interface(mconfig, *this)
84      device_image_interface(mconfig, *this), m_base(nullptr)
8585{
8686}
8787
trunk/src/devices/bus/cpc/cpc_rs232.cpp
r250239r250240
8585   device_cpc_expansion_card_interface(mconfig, *this),
8686   m_pit(*this,"pit"),
8787   m_dart(*this,"dart"),
88   m_rs232(*this,"rs232")
88   m_rs232(*this,"rs232"), m_slot(nullptr)
8989{
9090}
9191
r250239r250240
9494   device_cpc_expansion_card_interface(mconfig, *this),
9595   m_pit(*this,"pit"),
9696   m_dart(*this,"dart"),
97   m_rs232(*this,"rs232")
97   m_rs232(*this,"rs232"), m_slot(nullptr)
9898{
9999}
100100
trunk/src/devices/bus/cpc/cpc_ssa1.cpp
r250239r250240
160160
161161cpc_ssa1_device::cpc_ssa1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
162162   device_t(mconfig, CPC_SSA1, "SSA-1", tag, owner, clock, "cpc_ssa1", __FILE__),
163   device_cpc_expansion_card_interface(mconfig, *this),
164   m_lrq(1),
163   device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr), m_rom(nullptr),
164   m_lrq(1), m_sby(0),
165165   m_sp0256_device(*this,"sp0256")
166166{
167167}
168168
169169cpc_dkspeech_device::cpc_dkspeech_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
170170   device_t(mconfig, CPC_DKSPEECH, "DK'Tronics Speech Synthesiser", tag, owner, clock, "cpc_dkspeech", __FILE__),
171   device_cpc_expansion_card_interface(mconfig, *this),
172   m_lrq(1),
171   device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr), m_rom(nullptr),
172   m_lrq(1), m_sby(0),
173173   m_sp0256_device(*this,"sp0256")
174174{
175175}
trunk/src/devices/bus/cpc/cpcexp.cpp
r250239r250240
2626
2727
2828device_cpc_expansion_card_interface::device_cpc_expansion_card_interface(const machine_config &mconfig, device_t &device)
29   : device_slot_card_interface(mconfig,device)
29   : device_slot_card_interface(mconfig,device),
30   m_rom_sel(0)
3031{
3132}
3233
r250239r250240
4849      m_out_nmi_cb(*this),
4950      m_out_reset_cb(*this),
5051      m_out_romdis_cb(*this),
51      m_out_rom_select(*this)
52      m_out_rom_select(*this), m_card(nullptr)
5253{
5354}
5455
trunk/src/devices/bus/cpc/ddi1.cpp
r250239r250240
6363
6464cpc_ddi1_device::cpc_ddi1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6565   device_t(mconfig, CPC_DDI1, "DDI-1", tag, owner, clock, "cpc_ddi1", __FILE__),
66   device_cpc_expansion_card_interface(mconfig, *this),
66   device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr),
6767   m_fdc(*this,"upd765"),
68   m_connector(*this,"upd765:0")
68   m_connector(*this,"upd765:0"), m_rom_active(false), m_romen(false)
6969{
7070}
7171
trunk/src/devices/bus/cpc/doubler.cpp
r250239r250240
3838
3939cpc_doubler_device::cpc_doubler_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4040   device_t(mconfig, CPC_DOUBLER, "Draysoft Doubler", tag, owner, clock, "cpc_doubler", __FILE__),
41   device_cpc_expansion_card_interface(mconfig, *this),
41   device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr),
4242   m_tape(*this,"doubler_tape")
4343{
4444}
trunk/src/devices/bus/cpc/hd20.cpp
r250239r250240
5050
5151cpc_hd20_device::cpc_hd20_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5252   device_t(mconfig, CPC_HD20, "Dobbertin HD20", tag, owner, clock, "cpc_hd20", __FILE__),
53   device_cpc_expansion_card_interface(mconfig, *this),
53   device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr),
5454   m_hdc(*this,"hdc")
5555{
5656}
trunk/src/devices/bus/cpc/magicsound.cpp
r250239r250240
7272
7373al_magicsound_device::al_magicsound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7474   device_t(mconfig, AL_MAGICSOUND, "Magic Sound Board", tag, owner, clock, "al_magicsound", __FILE__),
75   device_cpc_expansion_card_interface(mconfig, *this),
75   device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr),
7676   m_dac1(*this,"dac1"),
7777   m_dmac(*this,"dmac"),
7878   m_timer1(*this,"timer1"),
79   m_timer2(*this,"timer2")
79   m_timer2(*this,"timer2"), m_current_channel(0), m_ramptr(nullptr), m_current_output(0)
8080{
8181}
8282
trunk/src/devices/bus/cpc/mface2.cpp
r250239r250240
310310
311311cpc_multiface2_device::cpc_multiface2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
312312   device_t(mconfig, CPC_MFACE2, "Multiface II", tag, owner, clock, "cpc_mf2", __FILE__),
313   device_cpc_expansion_card_interface(mconfig, *this)
313   device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr), m_multiface_ram(nullptr), m_multiface_flags(0), m_romdis(0)
314314{
315315}
316316
trunk/src/devices/bus/cpc/playcity.cpp
r250239r250240
5454
5555cpc_playcity_device::cpc_playcity_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5656   device_t(mconfig, CPC_PLAYCITY, "PlayCity", tag, owner, clock, "cpc_playcity", __FILE__),
57   device_cpc_expansion_card_interface(mconfig, *this),
57   device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr),
5858   m_ctc(*this,"ctc"),
5959   m_ymz1(*this,"ymz_1"),
6060   m_ymz2(*this,"ymz_2")
trunk/src/devices/bus/cpc/smartwatch.cpp
r250239r250240
4747
4848cpc_smartwatch_device::cpc_smartwatch_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4949   device_t(mconfig, CPC_SMARTWATCH, "Dobbertin Smartwatch", tag, owner, clock, "cpc_smartwatch", __FILE__),
50   device_cpc_expansion_card_interface(mconfig, *this),
51   m_rtc(*this,"rtc")
50   device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr),
51   m_rtc(*this,"rtc"), m_bank(nullptr)
5252{
5353}
5454
trunk/src/devices/bus/cpc/symbfac2.cpp
r250239r250240
7373
7474cpc_symbiface2_device::cpc_symbiface2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7575   device_t(mconfig, CPC_SYMBIFACE2, "SYMBiFACE II", tag, owner, clock, "cpc_symf2", __FILE__),
76   device_cpc_expansion_card_interface(mconfig, *this),
76   device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr),
7777   m_ide(*this,"ide"),
7878   m_rtc(*this,"rtc"),
7979   m_nvram(*this,"nvram"),
8080   m_mouse_x(*this,"sf2_mouse_x"),
8181   m_mouse_y(*this,"sf2_mouse_y"),
82   m_mouse_buttons(*this,"sf2_mouse_buttons")
82   m_mouse_buttons(*this,"sf2_mouse_buttons"), m_iohigh(false), m_ide_data(0), m_mouse_state(0), m_input_x(0), m_input_y(0), m_4xxx_ptr_r(nullptr), m_4xxx_ptr_w(nullptr), m_6xxx_ptr_r(nullptr), m_6xxx_ptr_w(nullptr)
8383{
8484}
8585
trunk/src/devices/bus/cpc/transtape.cpp
r250239r250240
4444
4545cpc_transtape_device::cpc_transtape_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4646   device_t(mconfig, CPC_TRANSTAPE, "HM Transtape", tag, owner, clock, "cpc_transtape", __FILE__),
47   device_cpc_expansion_card_interface(mconfig, *this),
47   device_cpc_expansion_card_interface(mconfig, *this), m_slot(nullptr), m_cpu(nullptr), m_space(nullptr), m_ram(nullptr),
4848   m_rom_active(false),
4949   m_romen(true),
5050   m_output(0)
trunk/src/devices/bus/crvision/slot.cpp
r250239r250240
6666                  device_t(mconfig, CRVISION_CART_SLOT, "CreatiVision Cartridge Slot", tag, owner, clock, "crvision_cart_slot", __FILE__),
6767                  device_image_interface(mconfig, *this),
6868                  device_slot_interface(mconfig, *this),
69                  m_type(CRV_4K)
69                  m_type(CRV_4K), m_cart(nullptr)
7070{
7171}
7272
trunk/src/devices/bus/dmv/dmvbus.cpp
r250239r250240
201201      m_prog_write_cb(*this),
202202      m_out_int_cb(*this),
203203      m_out_irq_cb(*this),
204      m_out_thold_cb(*this)
204      m_out_thold_cb(*this), m_cart(nullptr)
205205{
206206}
207207
trunk/src/devices/bus/dmv/k210.cpp
r250239r250240
5757      m_ppi(*this, "ppi8255"),
5858      m_centronics(*this, "centronics"),
5959      m_cent_data_in(*this, "cent_data_in"),
60      m_cent_data_out(*this, "cent_data_out")
61{
60      m_cent_data_out(*this, "cent_data_out"), m_bus(nullptr), m_clk1_timer(nullptr), m_portb(0), m_portc(0)
61   {
6262}
6363
6464//-------------------------------------------------
trunk/src/devices/bus/dmv/k220.cpp
r250239r250240
138138      m_pit(*this, "pit8253"),
139139      m_ppi(*this, "ppi8255"),
140140      m_ram(*this, "ram"),
141      m_rom(*this, "rom")
142{
141      m_rom(*this, "rom"), m_portc(0)
142   {
143143}
144144
145145//-------------------------------------------------
trunk/src/devices/bus/dmv/k230.cpp
r250239r250240
110110      : device_t(mconfig, DMV_K230, "K230 8088 without interrupt controller", tag, owner, clock, "dmv_k230", __FILE__),
111111      device_dmvslot_interface( mconfig, *this ),
112112      m_maincpu(*this, "maincpu"),
113      m_rom(*this, "rom")
114{
113      m_rom(*this, "rom"), m_bus(nullptr), m_io(nullptr), m_switch16(0), m_hold(0)
114   {
115115}
116116
117117dmv_k230_device::dmv_k230_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)
118118      : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
119119      device_dmvslot_interface( mconfig, *this ),
120120      m_maincpu(*this, "maincpu"),
121      m_rom(*this, "rom")
122{
121      m_rom(*this, "rom"), m_bus(nullptr), m_io(nullptr), m_switch16(0), m_hold(0)
122   {
123123}
124124
125125//-------------------------------------------------
r250239r250240
136136//-------------------------------------------------
137137
138138dmv_k234_device::dmv_k234_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
139      : dmv_k230_device(mconfig, DMV_K234, "K234 68008", tag, owner, clock, "dmv_k234", __FILE__)
140{
139      : dmv_k230_device(mconfig, DMV_K234, "K234 68008", tag, owner, clock, "dmv_k234", __FILE__), m_snr(0)
140   {
141141}
142142
143143//-------------------------------------------------
r250239r250240
220220
221221const rom_entry *dmv_k234_device::device_rom_region() const
222222{
223   return NULL;
223   return nullptr;
224224}
225225
226226const rom_entry *dmv_k235_device::device_rom_region() const
trunk/src/devices/bus/dmv/k233.cpp
r250239r250240
3030
3131dmv_k233_device::dmv_k233_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3232      : device_t(mconfig, DMV_K233, "K233 16K Shared RAM", tag, owner, clock, "dmv_k233", __FILE__),
33      device_dmvslot_interface( mconfig, *this )
34{
33      device_dmvslot_interface( mconfig, *this ),
34   m_enabled(false),
35   m_ram(nullptr)
36   {
3537}
3638
3739//-------------------------------------------------
trunk/src/devices/bus/dmv/k801.cpp
r250239r250240
115115      : device_t(mconfig, DMV_K801, "K801 RS-232 Switchable Interface", tag, owner, clock, "dmv_k801", __FILE__),
116116      device_dmvslot_interface( mconfig, *this ),
117117      m_epci(*this, "epci"),
118      m_dsw(*this, "DSW")
119{
118      m_dsw(*this, "DSW"), m_bus(nullptr)
119   {
120120}
121121
122122dmv_k801_device::dmv_k801_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)
123123      : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
124124      device_dmvslot_interface( mconfig, *this ),
125125      m_epci(*this, "epci"),
126      m_dsw(*this, "DSW")
127{
126      m_dsw(*this, "DSW"), m_bus(nullptr)
127   {
128128}
129129
130130//-------------------------------------------------
trunk/src/devices/bus/dmv/k803.cpp
r250239r250240
5353      : device_t(mconfig, DMV_K803, "K803 RTC", tag, owner, clock, "dmv_k803", __FILE__),
5454      device_dmvslot_interface( mconfig, *this ),
5555      m_rtc(*this, "rtc"),
56      m_dsw(*this, "DSW")
57{
56      m_dsw(*this, "DSW"), m_bus(nullptr), m_latch(0), m_rtc_int(0)
57   {
5858}
5959
6060//-------------------------------------------------
trunk/src/devices/bus/dmv/k806.cpp
r250239r250240
8282      m_jumpers(*this, "JUMPERS"),
8383      m_mouse_buttons(*this, "MOUSE"),
8484      m_mouse_x(*this, "MOUSEX"),
85      m_mouse_y(*this, "MOUSEY")
86{
85      m_mouse_y(*this, "MOUSEY"), m_bus(nullptr)
86   {
8787}
8888
8989//-------------------------------------------------
trunk/src/devices/bus/dmv/ram.cpp
r250239r250240
3434
3535dmv_ram_device::dmv_ram_device(const machine_config &mconfig, device_type type, UINT32 size, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source)
3636      : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
37      device_dmvslot_interface( mconfig, *this ),
37      device_dmvslot_interface( mconfig, *this ), m_ram(nullptr),
3838      m_size(size)
3939{
4040}
trunk/src/devices/bus/ecbbus/ecbbus.cpp
r250239r250240
2828
2929ecbbus_slot_device::ecbbus_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030      device_t(mconfig, ECBBUS_SLOT, "ECB bus slot", tag, owner, clock, "ecbbus_slot", __FILE__),
31      device_slot_interface(mconfig, *this)
31      device_slot_interface(mconfig, *this), m_bus_tag(nullptr), m_bus_num(0), m_bus(nullptr)
3232{
3333}
3434
trunk/src/devices/bus/ecbbus/grip.cpp
r250239r250240
625625   m_video_ram(*this, "video_ram"),
626626   m_j3a(*this, "J3A"),
627627   m_j3b(*this, "J3B"),
628   m_j7(*this, "J7")
628   m_j7(*this, "J7"), m_centronics_busy(0), m_centronics_fault(0), m_vol0(0), m_vol1(0), m_ia(0), m_ib(0), m_keydata(0), m_kbf(0), m_lps(0), m_page(0), m_flash(0), m_base(0), m_ppi_pa(0), m_ppi_pc(0), m_kb_timer(nullptr)
629629{
630630}
631631
trunk/src/devices/bus/econet/e01.cpp
r250239r250240
396396      m_fdc_irq(CLEAR_LINE),
397397      m_fdc_drq(CLEAR_LINE),
398398      m_adlc_irq(CLEAR_LINE),
399      m_clk_en(0),
400      m_variant(TYPE_E01)
399      m_clk_en(0), m_ram_en(false),
400      m_variant(TYPE_E01), m_clk_timer(nullptr)
401401{
402402}
403403
r250239r250240
426426      m_fdc_irq(CLEAR_LINE),
427427      m_fdc_drq(CLEAR_LINE),
428428      m_adlc_irq(CLEAR_LINE),
429      m_clk_en(0),
430      m_variant(TYPE_E01)
429      m_clk_en(0), m_ram_en(false),
430      m_variant(TYPE_E01), m_clk_timer(nullptr)
431431{
432432}
433433
trunk/src/devices/bus/econet/econet.cpp
r250239r250240
3939//-------------------------------------------------
4040
4141device_econet_interface::device_econet_interface(const machine_config &mconfig, device_t &device) :
42   device_slot_card_interface(mconfig, device)
42   device_slot_card_interface(mconfig, device), m_next(nullptr), m_econet(nullptr), m_address(0)
4343{
4444}
4545
r250239r250240
5555
5656econet_slot_device::econet_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5757   device_t(mconfig, ECONET_SLOT, "Econet station", tag, owner, clock, "econet_slot", __FILE__),
58   device_slot_interface(mconfig, *this)
58   device_slot_interface(mconfig, *this), m_address(0), m_econet(nullptr)
5959{
6060}
6161
trunk/src/devices/bus/ep64/exp.cpp
r250239r250240
4848   m_write_irq(*this),
4949   m_write_nmi(*this),
5050   m_write_wait(*this),
51   m_dave(*this)
51   m_dave(*this), m_card(nullptr)
5252{
5353}
5454
trunk/src/devices/bus/epson_sio/epson_sio.cpp
r250239r250240
5454
5555epson_sio_device::epson_sio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5656      device_t(mconfig, EPSON_SIO, "EPSON SIO port", tag, owner, clock, "epson_sio", __FILE__),
57      device_slot_interface(mconfig, *this),
57      device_slot_interface(mconfig, *this), m_cart(nullptr),
5858      m_write_rx(*this),
5959      m_write_pin(*this)
6060{
trunk/src/devices/bus/epson_sio/pf10.cpp
r250239r250240
9696   device_epson_sio_interface(mconfig, *this),
9797   m_cpu(*this, "maincpu"),
9898   m_fdc(*this, "upd765a"),
99   m_sio_output(*this, "sio"),
99   m_sio_output(*this, "sio"), m_floppy(nullptr), m_timer(nullptr),
100100   m_port1(0xff),
101101   m_port2(0xff),
102   m_rxc(1)
102   m_rxc(1), m_hd6303_tx(0), m_pinc(0)
103103{
104104   m_sio_input = dynamic_cast<epson_sio_device *>(owner);
105105}
trunk/src/devices/bus/epson_sio/tf20.cpp
r250239r250240
133133   m_ram(*this, "ram"),
134134   m_fdc(*this, "5a"),
135135   m_mpsc(*this, "3a"),
136   m_sio_output(*this, "sio"),
137   m_rxc(1)
136   m_sio_output(*this, "sio"), m_fd0(nullptr), m_fd1(nullptr), m_timer_serial(nullptr), m_timer_tc(nullptr),
137   m_rxc(1), m_txda(0), m_dtra(0), m_pinc(0)
138138{
139139   m_sio_input = dynamic_cast<epson_sio_device *>(owner);
140140}
trunk/src/devices/bus/gameboy/gb_slot.cpp
r250239r250240
3838
3939device_gb_cart_interface::device_gb_cart_interface(const machine_config &mconfig, device_t &device)
4040   : device_slot_card_interface(mconfig, device),
41      m_rom(NULL),
42      m_rom_size(0),
43      has_rumble(false),
44      has_timer(false),
45      has_battery(false)
41     m_rom(NULL),
42     m_rom_size(0), m_ram_bank(0), m_latch_bank(0), m_latch_bank2(0),
43     has_rumble(false),
44     has_timer(false),
45     has_battery(false)
4646{
4747}
4848
r250239r250240
142142                  device_image_interface(mconfig, *this),
143143                  device_slot_interface(mconfig, *this),
144144                  m_sgb_hack(0),
145                  m_type(GB_MBC_UNKNOWN)
145                  m_type(GB_MBC_UNKNOWN), m_cart(nullptr)
146146{
147147}
148148
trunk/src/devices/bus/gameboy/mbc.cpp
r250239r250240
3939
4040gb_rom_mbc_device::gb_rom_mbc_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)
4141               : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
42                  device_gb_cart_interface( mconfig, *this )
43{
42                  device_gb_cart_interface( mconfig, *this ), m_ram_enable(0)
43            {
4444}
4545
4646gb_rom_mbc1_device::gb_rom_mbc1_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)
47               : gb_rom_mbc_device(mconfig, type, name, tag, owner, clock, shortname, source),
47               : gb_rom_mbc_device(mconfig, type, name, tag, owner, clock, shortname, source), m_mode(0),
4848                  m_mask(0x1f),
4949                  m_shift(0)
5050{
5151}
5252
5353gb_rom_mbc1_device::gb_rom_mbc1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
54               : gb_rom_mbc_device(mconfig, GB_ROM_MBC1, "GB MBC1 Carts", tag, owner, clock, "gb_rom_mbc1", __FILE__),
54               : gb_rom_mbc_device(mconfig, GB_ROM_MBC1, "GB MBC1 Carts", tag, owner, clock, "gb_rom_mbc1", __FILE__), m_mode(0),
5555                  m_mask(0x1f),
5656                  m_shift(0)
5757{
r250239r250240
7878}
7979
8080gb_rom_mbc6_device::gb_rom_mbc6_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
81               : gb_rom_mbc_device(mconfig, GB_ROM_MBC6, "GB MBC6 Carts", tag, owner, clock, "gb_rom_mbc6", __FILE__)
82{
81               : gb_rom_mbc_device(mconfig, GB_ROM_MBC6, "GB MBC6 Carts", tag, owner, clock, "gb_rom_mbc6", __FILE__), m_latch1(0), m_latch2(0), m_bank_4000(0), m_bank_6000(0)
82            {
8383}
8484
8585gb_rom_mbc7_device::gb_rom_mbc7_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
8888}
8989
9090gb_rom_m161_device::gb_rom_m161_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
91               : gb_rom_mbc_device(mconfig, GB_ROM_M161_M12, "GB M161-M12 Carts", tag, owner, clock, "gb_rom_m161m12", __FILE__)
92{
91               : gb_rom_mbc_device(mconfig, GB_ROM_M161_M12, "GB M161-M12 Carts", tag, owner, clock, "gb_rom_m161m12", __FILE__), m_base_bank(0)
92            {
9393}
9494
9595gb_rom_mmm01_device::gb_rom_mmm01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
96               : gb_rom_mbc_device(mconfig, GB_ROM_MMM01, "GB MMM01 Carts", tag, owner, clock, "gb_rom_mmm01", __FILE__)
97{
96               : gb_rom_mbc_device(mconfig, GB_ROM_MMM01, "GB MMM01 Carts", tag, owner, clock, "gb_rom_mmm01", __FILE__), m_bank_mask(0), m_bank(0), m_reg(0)
97            {
9898}
9999
100100gb_rom_sachen_mmc1_device::gb_rom_sachen_mmc1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
101               : gb_rom_mbc_device(mconfig, GB_ROM_SACHEN1, "GB Sachen MMC1 Carts", tag, owner, clock, "gb_rom_sachen1", __FILE__)
102{
101               : gb_rom_mbc_device(mconfig, GB_ROM_SACHEN1, "GB Sachen MMC1 Carts", tag, owner, clock, "gb_rom_sachen1", __FILE__), m_base_bank(0), m_mask(0), m_mode(0), m_unlock_cnt(0)
102            {
103103}
104104
105105gb_rom_sachen_mmc1_device::gb_rom_sachen_mmc1_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)
106               : gb_rom_mbc_device(mconfig, type, name, tag, owner, clock, shortname, source)
107{
106               : gb_rom_mbc_device(mconfig, type, name, tag, owner, clock, shortname, source), m_base_bank(0), m_mask(0), m_mode(0), m_unlock_cnt(0)
107            {
108108}
109109
110110gb_rom_sachen_mmc2_device::gb_rom_sachen_mmc2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
113113}
114114
115115gb_rom_188in1_device::gb_rom_188in1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
116               : gb_rom_mbc1_device(mconfig, GB_ROM_188IN1, "GB 188in1", tag, owner, clock, "gb_rom_188in1", __FILE__)
117{
116               : gb_rom_mbc1_device(mconfig, GB_ROM_188IN1, "GB 188in1", tag, owner, clock, "gb_rom_188in1", __FILE__), m_game_base(0)
117            {
118118}
119119
120120gb_rom_sintax_device::gb_rom_sintax_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
121               : gb_rom_mbc_device(mconfig, GB_ROM_SINTAX, "GB MBC5 Sintax Carts", tag, owner, clock, "gb_rom_sintax", __FILE__)
122{
121               : gb_rom_mbc_device(mconfig, GB_ROM_SINTAX, "GB MBC5 Sintax Carts", tag, owner, clock, "gb_rom_sintax", __FILE__), m_bank_mask(0), m_bank(0), m_reg(0), m_currentxor(0), m_xor2(0), m_xor3(0), m_xor4(0), m_xor5(0), m_sintax_mode(0)
122            {
123123}
124124
125125gb_rom_chongwu_device::gb_rom_chongwu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
126               : gb_rom_mbc5_device(mconfig, GB_ROM_CHONGWU, "GB Chong Wu Xiao Jing Ling", tag, owner, clock, "gb_rom_chongwu", __FILE__)
127{
126               : gb_rom_mbc5_device(mconfig, GB_ROM_CHONGWU, "GB Chong Wu Xiao Jing Ling", tag, owner, clock, "gb_rom_chongwu", __FILE__), m_protection_checked(0)
127            {
128128}
129129
130130gb_rom_licheng_device::gb_rom_licheng_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
138138}
139139
140140gb_rom_rockman8_device::gb_rom_rockman8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
141               : gb_rom_mbc_device(mconfig, GB_ROM_ROCKMAN8, "GB MBC1 Rockman 8", tag, owner, clock, "gb_rom_rockman8", __FILE__)
142{
141               : gb_rom_mbc_device(mconfig, GB_ROM_ROCKMAN8, "GB MBC1 Rockman 8", tag, owner, clock, "gb_rom_rockman8", __FILE__), m_bank_mask(0), m_bank(0), m_reg(0)
142            {
143143}
144144
145145gb_rom_sm3sp_device::gb_rom_sm3sp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
146               : gb_rom_mbc_device(mconfig, GB_ROM_SM3SP, "GB MBC1 Super Mario 3 Special", tag, owner, clock, "gb_rom_sm3sp", __FILE__)
147{
146               : gb_rom_mbc_device(mconfig, GB_ROM_SM3SP, "GB MBC1 Super Mario 3 Special", tag, owner, clock, "gb_rom_sm3sp", __FILE__), m_bank_mask(0), m_bank(0), m_reg(0), m_mode(0)
147            {
148148}
149149
150150
trunk/src/devices/bus/gameboy/rom.cpp
r250239r250240
4242}
4343
4444gb_rom_tama5_device::gb_rom_tama5_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
45               : gb_rom_device(mconfig, GB_ROM_TAMA5, "GB Tamagotchi", tag, owner, clock, "gb_rom_tama5", __FILE__)
46{
45               : gb_rom_device(mconfig, GB_ROM_TAMA5, "GB Tamagotchi", tag, owner, clock, "gb_rom_tama5", __FILE__), m_tama5_data(0), m_tama5_addr(0), m_tama5_cmd(0), m_rtc_reg(0)
46            {
4747}
4848
4949gb_rom_wisdom_device::gb_rom_wisdom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/gamegear/ggext.cpp
r250239r250240
5656
5757gg_ext_port_device::gg_ext_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5858                  device_t(mconfig, GG_EXT_PORT, "EXT Port", tag, owner, clock, "gg_ext_port", __FILE__),
59                  device_slot_interface(mconfig, *this),
59                  device_slot_interface(mconfig, *this), m_device(nullptr),
6060                  m_th_pin_handler(*this),
6161                  m_pixel_handler(*this)
6262{
trunk/src/devices/bus/gba/gba_slot.cpp
r250239r250240
7878                  device_t(mconfig, GBA_CART_SLOT, "Game Boy Advance Cartridge Slot", tag, owner, clock, "gba_cart_slot", __FILE__),
7979                  device_image_interface(mconfig, *this),
8080                  device_slot_interface(mconfig, *this),
81                  m_type(GBA_STD)
81                  m_type(GBA_STD), m_cart(nullptr)
8282{
8383}
8484
trunk/src/devices/bus/gba/rom.cpp
r250239r250240
5757}
5858
5959gba_rom_flash_device::gba_rom_flash_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
60               : gba_rom_device(mconfig, GBA_ROM_FLASH, "GBA Carts + Panasonic Flash", tag, owner, clock, "gba_flash", __FILE__),
60               : gba_rom_device(mconfig, GBA_ROM_FLASH, "GBA Carts + Panasonic Flash", tag, owner, clock, "gba_flash", __FILE__), m_flash_mask(0),
6161                  m_flash(*this, "flash")
6262{
6363}
6464
6565gba_rom_flash1m_device::gba_rom_flash1m_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
66               : gba_rom_device(mconfig, GBA_ROM_FLASH1M, "GBA Carts + Sanyo Flash", tag, owner, clock, "gba_flash1m", __FILE__),
66               : gba_rom_device(mconfig, GBA_ROM_FLASH1M, "GBA Carts + Sanyo Flash", tag, owner, clock, "gba_flash1m", __FILE__), m_flash_mask(0),
6767                  m_flash(*this, "flash")
6868{
6969}
trunk/src/devices/bus/generic/slot.cpp
r250239r250240
9292                  m_extensions("bin"),
9393                  m_must_be_loaded(FALSE),
9494                  m_width(GENERIC_ROM8_WIDTH),
95                  m_endianness(ENDIANNESS_LITTLE)
95                  m_endianness(ENDIANNESS_LITTLE), m_cart(nullptr)
9696{
9797}
9898
trunk/src/devices/bus/ieee488/c2031.cpp
r250239r250240
408408      m_address(*this, "ADDRESS"),
409409      m_nrfd_out(1),
410410      m_ndac_out(1),
411      m_atna(1),
411      m_atna(1), m_ifc(0),
412412      m_via0_irq(0),
413413      m_via1_irq(0)
414414{
trunk/src/devices/bus/ieee488/c2040.cpp
r250239r250240
690690   m_address(*this, "ADDRESS"),
691691   m_rfdo(1),
692692   m_daco(1),
693   m_atna(1)
693   m_atna(1), m_ifc(0)
694694{
695695}
696696
r250239r250240
710710   m_address(*this, "ADDRESS"),
711711   m_rfdo(1),
712712   m_daco(1),
713   m_atna(1)
713   m_atna(1), m_ifc(0)
714714{
715715}
716716
trunk/src/devices/bus/ieee488/c2040fdc.cpp
r250239r250240
8686   m_ds1(0),
8787   m_drv_sel(0),
8888   m_mode_sel(0),
89   m_rw_sel(0),
90   m_period(attotime::from_hz(clock))
89   m_rw_sel(0), m_odd_hd(0), m_pi(0),
90   m_period(attotime::from_hz(clock)), t_gen(nullptr)
9191{
9292   cur_live.tm = attotime::never;
9393   cur_live.state = IDLE;
trunk/src/devices/bus/ieee488/c8050.cpp
r250239r250240
832832   m_address(*this, "ADDRESS"),
833833   m_rfdo(1),
834834   m_daco(1),
835   m_atna(1)
835   m_atna(1), m_ifc(0)
836836{
837837}
838838
r250239r250240
851851   m_address(*this, "ADDRESS"),
852852   m_rfdo(1),
853853   m_daco(1),
854   m_atna(1)
854   m_atna(1), m_ifc(0)
855855{
856856}
857857
trunk/src/devices/bus/ieee488/c8050fdc.cpp
r250239r250240
8989   m_ds1(0),
9090   m_drv_sel(0),
9191   m_mode_sel(0),
92   m_rw_sel(1)
92   m_rw_sel(1), m_odd_hd(0), m_pi(0), t_gen(nullptr)
9393{
9494   cur_live.tm = attotime::never;
9595   cur_live.state = IDLE;
trunk/src/devices/bus/ieee488/c8280.cpp
r250239r250240
392392   m_fdc(*this, WD1797_TAG),
393393   m_floppy0(*this, WD1797_TAG ":0"),
394394   m_floppy1(*this, WD1797_TAG ":1"),
395   m_address(*this, "ADDRESS"),
395   m_address(*this, "ADDRESS"), m_floppy(nullptr),
396396   m_rfdo(1),
397397   m_daco(1),
398   m_atna(1)
398   m_atna(1), m_ifc(0), m_fk5(0)
399399{
400400}
401401
trunk/src/devices/bus/ieee488/d9060.cpp
r250239r250240
496496      m_address(*this, "ADDRESS"),
497497      m_rfdo(1),
498498      m_daco(1),
499      m_atna(1),
500      m_enable(0),
499      m_atna(1), m_ifc(0),
500      m_enable(0), m_data(0),
501501      m_variant(variant)
502502{
503503}
trunk/src/devices/bus/ieee488/hardbox.cpp
r250239r250240
350350   : device_t(mconfig, HARDBOX, "HardBox", tag, owner, clock, "hardbox", __FILE__),
351351      device_ieee488_interface(mconfig, *this),
352352      m_maincpu(*this, Z80_TAG),
353      m_hdc(*this, CORVUS_HDC_TAG)
353      m_hdc(*this, CORVUS_HDC_TAG), m_ifc(0)
354354{
355355}
356356
trunk/src/devices/bus/ieee488/ieee488.cpp
r250239r250240
4040//-------------------------------------------------
4141
4242device_ieee488_interface::device_ieee488_interface(const machine_config &mconfig, device_t &device)
43   : device_slot_card_interface(mconfig, device)
43   : device_slot_card_interface(mconfig, device), m_next(nullptr), m_bus(nullptr), m_slot(nullptr)
4444{
4545}
4646
r250239r250240
6565
6666ieee488_slot_device::ieee488_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6767      device_t(mconfig, IEEE488_SLOT, "IEEE-488 slot", tag, owner, clock, "ieee488_slot", __FILE__),
68      device_slot_interface(mconfig, *this)
68      device_slot_interface(mconfig, *this), m_address(0)
6969{
7070}
7171
trunk/src/devices/bus/ieee488/softbox.cpp
r250239r250240
331331      device_ieee488_interface(mconfig, *this),
332332      m_maincpu(*this, Z80_TAG),
333333      m_dbrg(*this, COM8116_TAG),
334      m_hdc(*this, CORVUS_HDC_TAG)
334      m_hdc(*this, CORVUS_HDC_TAG), m_ifc(0)
335335{
336336}
337337
trunk/src/devices/bus/imi7000/imi7000.cpp
r250239r250240
3636//-------------------------------------------------
3737
3838device_imi7000_interface::device_imi7000_interface(const machine_config &mconfig, device_t &device)
39   : device_slot_card_interface(mconfig, device)
39   : device_slot_card_interface(mconfig, device), m_slot(nullptr)
4040{
4141}
4242
r250239r250240
5252
5353imi7000_slot_device::imi7000_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5454      device_t(mconfig, IMI7000_SLOT, "IMI 7000 slot", tag, owner, clock, "imi7000_slot", __FILE__),
55      device_slot_interface(mconfig, *this)
55      device_slot_interface(mconfig, *this), m_card(nullptr)
5656{
5757}
5858
trunk/src/devices/bus/intv/slot.cpp
r250239r250240
148148                  device_t(mconfig, INTV_CART_SLOT, "Intellivision Cartridge Slot", tag, owner, clock, "intv_cart_slot", __FILE__),
149149                  device_image_interface(mconfig, *this),
150150                  device_slot_interface(mconfig, *this),
151                  m_type(INTV_STD)
151                  m_type(INTV_STD), m_cart(nullptr)
152152{
153153}
154154
trunk/src/devices/bus/iq151/disc2.cpp
r250239r250240
5151iq151_disc2_device::iq151_disc2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
5252      : device_t(mconfig, IQ151_DISC2, "IQ151 Disc2", tag, owner, clock, "iq151_disc2", __FILE__),
5353      device_iq151cart_interface( mconfig, *this ),
54      m_fdc(*this, "fdc")
55{
54      m_fdc(*this, "fdc"), m_rom(nullptr), m_rom_enabled(false)
55   {
5656}
5757
5858//-------------------------------------------------
trunk/src/devices/bus/iq151/grafik.cpp
r250239r250240
4040iq151_grafik_device::iq151_grafik_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4141      : device_t(mconfig, IQ151_GRAFIK, "IQ151 grafik", tag, owner, clock, "iq151_grafik", __FILE__),
4242      device_iq151cart_interface( mconfig, *this ),
43      m_ppi8255(*this, "ppi8255")
44{
43      m_ppi8255(*this, "ppi8255"), m_posx(0), m_posy(0), m_all(0), m_pen(0), m_fast(0), m_ev(0), m_ex(0), m_sel(0)
44   {
4545}
4646
4747//-------------------------------------------------
trunk/src/devices/bus/iq151/iq151.cpp
r250239r250240
6262      m_out_irq2_cb(*this),
6363      m_out_irq3_cb(*this),
6464      m_out_irq4_cb(*this),
65      m_out_drq_cb(*this)
65      m_out_drq_cb(*this), m_cart(nullptr)
6666{
6767}
6868
trunk/src/devices/bus/iq151/minigraf.cpp
r250239r250240
4949
5050iq151_minigraf_device::iq151_minigraf_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
5151      : device_t(mconfig, IQ151_MINIGRAF, "IQ151 Minigraf", tag, owner, clock, "iq151_minigraf", __FILE__),
52      device_iq151cart_interface( mconfig, *this )
53{
52      device_iq151cart_interface( mconfig, *this ), m_rom(nullptr), m_posx(0), m_posy(0), m_pen(0), m_control(0), m_paper(nullptr)
53   {
5454}
5555
5656//-------------------------------------------------
trunk/src/devices/bus/iq151/ms151a.cpp
r250239r250240
4848
4949iq151_ms151a_device::iq151_ms151a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
5050      : device_t(mconfig, IQ151_MS151A, "IQ151 MS151A", tag, owner, clock, "iq151_ms151a", __FILE__),
51      device_iq151cart_interface( mconfig, *this )
52{
51      device_iq151cart_interface( mconfig, *this ), m_rom(nullptr), m_posx(0), m_posy(0), m_pen(0), m_paper(nullptr)
52   {
5353}
5454
5555//-------------------------------------------------
trunk/src/devices/bus/iq151/rom.cpp
r250239r250240
4343
4444iq151_rom_device::iq151_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) :
4545      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
46      device_iq151cart_interface(mconfig, *this)
46      device_iq151cart_interface(mconfig, *this), m_rom(nullptr)
4747{
4848}
4949
trunk/src/devices/bus/iq151/staper.cpp
r250239r250240
4848      : device_t(mconfig, IQ151_STAPER, "IQ151 STAPER", tag, owner, clock, "iq151_staper", __FILE__),
4949      device_iq151cart_interface( mconfig, *this ),
5050      m_ppi(*this, "ppi8255"),
51      m_printer(*this, "printer")
52{
51      m_printer(*this, "printer"), m_printer_timer(nullptr), m_ppi_portc(0)
52   {
5353}
5454
5555//-------------------------------------------------
trunk/src/devices/bus/iq151/video32.cpp
r250239r250240
5959
6060iq151_video32_device::iq151_video32_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
6161      : device_t(mconfig, IQ151_VIDEO32, "IQ151 video32", tag, owner, clock, "iq151_video32", __FILE__),
62      device_iq151cart_interface( mconfig, *this ),
62      device_iq151cart_interface( mconfig, *this ), m_videoram(nullptr), m_chargen(nullptr),
6363      m_gfxdecode(*this, "gfxdecode"),
6464      m_palette(*this, "^^palette")
6565{
trunk/src/devices/bus/iq151/video64.cpp
r250239r250240
5959
6060iq151_video64_device::iq151_video64_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
6161      : device_t(mconfig, IQ151_VIDEO64, "IQ151 video64", tag, owner, clock, "iq151_video64", __FILE__),
62      device_iq151cart_interface( mconfig, *this ),
62      device_iq151cart_interface( mconfig, *this ), m_videoram(nullptr), m_chargen(nullptr),
6363      m_gfxdecode(*this, "gfxdecode"),
6464      m_palette(*this, "^^palette")
6565{
trunk/src/devices/bus/isa/3c503.cpp
r250239r250240
1818   return MACHINE_CONFIG_NAME(el2_3c503_config);
1919}
2020
21el2_3c503_device::el2_3c503_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
22      : device_t(mconfig, EL2_3C503, "3C503 Network Adapter", tag, owner, clock, "el2_3c503", __FILE__),
23      device_isa8_card_interface(mconfig, *this),
24      m_dp8390(*this, "dp8390d") {
21el2_3c503_device::el2_3c503_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock)
22   : device_t(mconfig, EL2_3C503, "3C503 Network Adapter", tag, owner, clock, "el2_3c503", __FILE__),
23     device_isa8_card_interface(mconfig, *this),
24     m_dp8390(*this, "dp8390d"),
25     m_irq_state(0)
26{
2527}
2628
2729void el2_3c503_device::device_start() {
trunk/src/devices/bus/isa/3c505.cpp
r250239r250240
309309   device_isa16_card_interface(mconfig, *this),
310310   m_iobase(*this, "IO_BASE"),
311311   m_irqdrq(*this, "IRQ_DRQ"),
312   m_romopts(*this, "ROM_OPTS")
312   m_romopts(*this, "ROM_OPTS"), m_status(0), m_control(0), m_command_index(0), m_command_pending(0), m_wait_for_ack(0), m_wait_for_nak(0), m_rx_data_index(0), m_rx_pending(0), m_tx_data_length(0), m_program_length(0), m_response_length(0), m_response_index(0), m_microcode_version(0), m_microcode_running(0), m_i82586_config(0), irq_state(), m_do_command_timer(nullptr), m_installed(false), m_irq(0), m_drq(0)
313313{
314314}
315315
r250239r250240
319319   device_isa16_card_interface(mconfig, *this),
320320   m_iobase(*this, "IO_BASE"),
321321   m_irqdrq(*this, "IRQ_DRQ"),
322   m_romopts(*this, "ROM_OPTS")
322   m_romopts(*this, "ROM_OPTS"), m_status(0), m_control(0), m_command_index(0), m_command_pending(0), m_wait_for_ack(0), m_wait_for_nak(0), m_rx_data_index(0), m_rx_pending(0), m_tx_data_length(0), m_program_length(0), m_response_length(0), m_response_index(0), m_microcode_version(0), m_microcode_running(0), m_i82586_config(0), irq_state(), m_do_command_timer(nullptr), m_installed(false), m_irq(0), m_drq(0)
323323{
324324}
325325
r250239r250240
447447//**************************************************************************
448448
449449threecom3c505_device::data_buffer::data_buffer() :
450   m_device(NULL)
450   m_device(nullptr), m_length(0)
451451{
452452}
453453
r250239r250240
508508//**************************************************************************
509509
510510threecom3c505_device::data_buffer_fifo::data_buffer_fifo() :
511   m_device(NULL),
512   m_size(0)
511   m_device(nullptr),
512   m_size(0), m_count(0), m_get_index(0), m_put_index(0)
513513{
514514}
515515
trunk/src/devices/bus/isa/aga.cpp
r250239r250240
6262      m_palette(*this, "palette"),
6363      m_mc6845(*this, AGA_MC6845_NAME),
6464      m_cga_config(*this, "cga_config"),
65      m_update_row_type(-1),
65      m_update_row_type(-1),
66      m_mode(),
6667      m_mda_mode_control(0),
67      m_mda_status(0),
68      m_mda_status(0),
69      m_mda_chr_gen(nullptr),
6870      m_cga_mode_control(0),
6971      m_cga_color_select(0),
70      m_cga_status(0),
72      m_cga_status(0),
73      m_cga_chr_gen(nullptr),
7174      m_framecnt(0),
7275      m_vsync(0),
73      m_hsync(0)
76      m_hsync(0),
77      m_videoram(nullptr)
7478{
7579}
7680
r250239r250240
8084      m_palette(*this, "palette"),
8185      m_mc6845(*this, AGA_MC6845_NAME),
8286      m_cga_config(*this, "cga_config"),
83      m_update_row_type(-1),
87      m_update_row_type(-1), m_mode(),
8488      m_mda_mode_control(0),
85      m_mda_status(0),
89      m_mda_status(0), m_mda_chr_gen(nullptr),
8690      m_cga_mode_control(0),
8791      m_cga_color_select(0),
88      m_cga_status(0),
92      m_cga_status(0), m_cga_chr_gen(nullptr),
8993      m_framecnt(0),
9094      m_vsync(0),
91      m_hsync(0)
95      m_hsync(0), m_videoram(nullptr)
9296{
9397}
9498//-------------------------------------------------
trunk/src/devices/bus/isa/cga.cpp
r250239r250240
301301isa8_cga_device::isa8_cga_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
302302      device_t(mconfig, ISA8_CGA, "IBM Color/Graphics Monitor Adapter", tag, owner, clock, "cga", __FILE__),
303303      device_isa8_card_interface(mconfig, *this),
304      m_cga_config(*this, "cga_config"),
305      m_update_row_type(-1),
306      m_vram_size( 0x4000 ),
304      m_cga_config(*this, "cga_config"), m_framecnt(0), m_mode_control(0), m_color_select(0),
305      m_update_row_type(-1), m_chr_gen_base(nullptr), m_chr_gen(nullptr), m_vsync(0), m_hsync(0),
306      m_vram_size( 0x4000 ), m_plantronics(0),
307307      m_palette(*this, "palette")
308308{
309309   m_chr_gen_offset[0] = m_chr_gen_offset[2] = 0x1800;
r250239r250240
316316isa8_cga_device::isa8_cga_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) :
317317      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
318318      device_isa8_card_interface(mconfig, *this),
319      m_cga_config(*this, "cga_config"),
320      m_update_row_type(-1),
321      m_vram_size( 0x4000 ),
319      m_cga_config(*this, "cga_config"), m_framecnt(0), m_mode_control(0), m_color_select(0),
320      m_update_row_type(-1), m_chr_gen_base(nullptr), m_chr_gen(nullptr), m_vsync(0), m_hsync(0),
321      m_vram_size( 0x4000 ), m_plantronics(0),
322322      m_palette(*this, "palette")
323323{
324324   m_chr_gen_offset[0] = m_chr_gen_offset[2] = 0x1800;
r250239r250240
15231523//-------------------------------------------------
15241524
15251525isa8_cga_pc1512_device::isa8_cga_pc1512_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1526      isa8_cga_device( mconfig, ISA8_CGA_PC1512, "ISA8_CGA_PC1512", tag, owner, clock, "cga_pc1512", __FILE__)
1526      isa8_cga_device( mconfig, ISA8_CGA_PC1512, "ISA8_CGA_PC1512", tag, owner, clock, "cga_pc1512", __FILE__), m_write(0), m_read(0), m_mc6845_address(0)
15271527{
15281528   m_vram_size = 0x10000;
15291529   m_chr_gen_offset[0] = 0x0000;
r250239r250240
16521652//-------------------------------------------------
16531653
16541654isa8_wyse700_device::isa8_wyse700_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1655      isa8_cga_device( mconfig, ISA8_WYSE700, "Wyse 700", tag, owner, clock, "wyse700", __FILE__)
1655      isa8_cga_device( mconfig, ISA8_WYSE700, "Wyse 700", tag, owner, clock, "wyse700", __FILE__), m_bank_offset(0), m_bank_base(0), m_control(0)
16561656{
16571657   m_vram_size = 0x20000;
16581658   m_start_offset = 0x18000;
r250239r250240
17401740//-------------------------------------------------
17411741
17421742isa8_ec1841_0002_device::isa8_ec1841_0002_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1743      isa8_cga_device( mconfig, ISA8_EC1841_0002, "EC 1841.0002 (CGA)", tag, owner, clock, "ec1841_0002", __FILE__)
1743      isa8_cga_device( mconfig, ISA8_EC1841_0002, "EC 1841.0002 (CGA)", tag, owner, clock, "ec1841_0002", __FILE__), m_p3df(0)
17441744{
17451745}
17461746
r250239r250240
18941894const device_type ISA8_CGA_M24 = &device_creator<isa8_cga_m24_device>;
18951895
18961896isa8_cga_m24_device::isa8_cga_m24_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1897      isa8_cga_device( mconfig, ISA8_CGA_M24, "Olivetti M24 CGA", tag, owner, clock, "cga_m24", __FILE__)
1897      isa8_cga_device( mconfig, ISA8_CGA_M24, "Olivetti M24 CGA", tag, owner, clock, "cga_m24", __FILE__), m_mode2(0), m_index(0)
18981898{
18991899   m_vram_size = 0x8000;
19001900}
trunk/src/devices/bus/isa/dectalk.cpp
r250239r250240
66
77dectalk_isa_device::dectalk_isa_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock) :
88   device_t(mconfig, ISA8_DECTALK, "DECTalk-PC", tag, owner, clock, "dectalk_isa", __FILE__),
9   device_isa8_card_interface(mconfig, *this),
9   device_isa8_card_interface(mconfig, *this),
10   m_cmd(0),
11   m_stat(0),
12   m_data(0),
13   m_dsp_dma(0),
14   m_ctl(0),
15   m_dma(0),
16   m_vol(0),
17   m_bio(0),
1018   m_cpu(*this, "dectalk_cpu"),
1119   m_dac(*this, "dac"),
1220   m_dsp(*this, "dectalk_dsp")
trunk/src/devices/bus/isa/ega.cpp
r250239r250240
572572
573573isa8_ega_device::isa8_ega_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
574574      device_t(mconfig, ISA8_EGA, "IBM Enhanced Graphics Adapter", tag, owner, clock, "ega", __FILE__),
575      device_isa8_card_interface(mconfig, *this),
576      m_misc_output(0),
575      device_isa8_card_interface(mconfig, *this), m_crtc_ega(nullptr), m_vram(nullptr), m_videoram(nullptr), m_charA(nullptr), m_charB(nullptr),
576      m_misc_output(0), m_feature_control(0), m_frame_cnt(0), m_hsync(0), m_vsync(0), m_vblank(0), m_display_enable(0), m_video_mode(0),
577577      m_palette(*this, "palette")
578578{
579579}
580580
581581isa8_ega_device::isa8_ega_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) :
582582      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
583      device_isa8_card_interface(mconfig, *this),
584      m_misc_output(0),
583      device_isa8_card_interface(mconfig, *this), m_crtc_ega(nullptr), m_vram(nullptr), m_videoram(nullptr), m_charA(nullptr), m_charB(nullptr),
584      m_misc_output(0), m_feature_control(0), m_frame_cnt(0), m_hsync(0), m_vsync(0), m_vblank(0), m_display_enable(0), m_video_mode(0),
585585      m_palette(*this, "palette")
586586{
587587}
trunk/src/devices/bus/isa/finalchs.cpp
r250239r250240
9191
9292isa8_finalchs_device::isa8_finalchs_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
9393      : device_t(mconfig, ISA8_FINALCHS, "Final Chess Card", tag, owner, clock, "finalchs", __FILE__),
94      device_isa8_card_interface( mconfig, *this )
95{
94      device_isa8_card_interface( mconfig, *this ), m_FCH_latch_data(0)
95   {
9696}
9797
9898//-------------------------------------------------
trunk/src/devices/bus/isa/gus.cpp
r250239r250240
352352
353353gf1_device::gf1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
354354   acia6850_device(mconfig, GGF1, "Gravis GF1", tag, owner, clock, "gf1", __FILE__),
355   device_sound_interface( mconfig, *this ),
355   device_sound_interface( mconfig, *this ), m_dma_dram_ctrl(0), m_dma_start_addr(0), m_dram_addr(0), m_timer_ctrl(0), m_timer1_count(0), m_timer2_count(0), m_timer1_value(0), m_timer2_value(0), m_sampling_freq(0), m_sampling_ctrl(0), m_joy_trim_dac(0), m_reset(0), m_active_voices(0), m_irq_source(0), m_stream(nullptr), m_timer1(nullptr), m_timer2(nullptr), m_dmatimer(nullptr), m_voltimer(nullptr), m_current_voice(0), m_current_reg(0), m_adlib_cmd(0), m_mix_ctrl(0), m_gf1_irq(0), m_midi_irq(0), m_dma_channel1(0), m_dma_channel2(0), m_irq_combine(0), m_dma_combine(0), m_adlib_timer_cmd(0), m_adlib_timer1_enable(0), m_adlib_timer2_enable(0), m_adlib_status(0), m_adlib_data(0), m_voice_irq_ptr(0), m_voice_irq_current(0), m_dma_16bit(0), m_statread(0), m_sb_data_2xc(0), m_sb_data_2xe(0), m_reg_ctrl(0), m_fake_adlib_status(0), m_dma_current(0), m_txirq(0), m_rxirq(0),
356356   m_txirq_handler(*this),
357357   m_rxirq_handler(*this),
358358   m_wave_irq_handler(*this),
r250239r250240
12761276isa16_gus_device::isa16_gus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
12771277   device_t(mconfig, ISA16_GUS, "Gravis Ultrasound", tag, owner, clock, "isa_gus", __FILE__),
12781278   device_isa16_card_interface( mconfig, *this ),
1279   m_gf1(*this, "gf1")
1279   m_gf1(*this, "gf1"), m_irq_status(0)
12801280{
12811281}
12821282
trunk/src/devices/bus/isa/hdc.cpp
r250239r250240
162162const device_type ST11M_HDC = &device_creator<st11m_device>;
163163
164164xt_hdc_device::xt_hdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
165      device_t(mconfig, XT_HDC, "Generic PC-XT Fixed Disk Controller", tag, owner, clock, "xt_hdc", __FILE__),
165      device_t(mconfig, XT_HDC, "Generic PC-XT Fixed Disk Controller", tag, owner, clock, "xt_hdc", __FILE__), buffer_ptr(nullptr), csb(0), status(0), error(0), m_current_cmd(0),
166166      m_irq_handler(*this),
167      m_drq_handler(*this)
167      m_drq_handler(*this), drv(0), timer(nullptr), data_cnt(0), hdc_control(0), hdcdma_src(nullptr), hdcdma_dst(nullptr), hdcdma_read(0), hdcdma_write(0), hdcdma_size(0)
168168{
169169   m_type = STANDARD;
170170}
171171
172172xt_hdc_device::xt_hdc_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) :
173      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
173      device_t(mconfig, type, name, tag, owner, clock, shortname, source), buffer_ptr(nullptr), csb(0), status(0), error(0), m_type(0), m_current_cmd(0),
174174      m_irq_handler(*this),
175      m_drq_handler(*this)
175      m_drq_handler(*this), drv(0), timer(nullptr), data_cnt(0), hdc_control(0), hdcdma_src(nullptr), hdcdma_dst(nullptr), hdcdma_read(0), hdcdma_write(0), hdcdma_size(0)
176176{
177177}
178178
r250239r250240
921921isa8_hdc_device::isa8_hdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
922922      device_t(mconfig, ISA8_HDC, "Fixed Disk Controller Card", tag, owner, clock, "hdc", __FILE__),
923923      device_isa8_card_interface(mconfig, *this),
924      m_hdc(*this,"hdc")
924      m_hdc(*this,"hdc"), dip(0)
925925{
926926}
927927
928928isa8_hdc_device::isa8_hdc_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) :
929929      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
930930      device_isa8_card_interface(mconfig, *this),
931      m_hdc(*this,"hdc")
931      m_hdc(*this,"hdc"), dip(0)
932932{
933933}
934934
trunk/src/devices/bus/isa/ibm_mfc.cpp
r250239r250240
449449
450450isa8_ibm_mfc_device::isa8_ibm_mfc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
451451      device_t(mconfig, ISA8_IBM_MFC, "IBM PC Music Feature Card", tag, owner, clock, "ibm_mfc", __FILE__),
452      device_isa8_card_interface(mconfig, *this),
452      device_isa8_card_interface(mconfig, *this), m_tcr(0), m_pc_ppi_c(0), m_z80_ppi_c(0), m_pc_irq_state(0), m_z80_irq_state(0),
453453      m_cpu(*this, "ibm_mfc"),
454454      m_ym2151(*this, "ym2151"),
455455      m_d8253(*this, "d8253"),
trunk/src/devices/bus/isa/isa.cpp
r250239r250240
2626//-------------------------------------------------
2727isa8_slot_device::isa8_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
2828      device_t(mconfig, ISA8_SLOT, "ISA8_SLOT", tag, owner, clock, "isa8_slot", __FILE__),
29      device_slot_interface(mconfig, *this)
29      device_slot_interface(mconfig, *this),
30   m_owner(nullptr),
31   m_isa_tag(nullptr)
3032{
3133}
3234
3335isa8_slot_device::isa8_slot_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) :
3436      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
35      device_slot_interface(mconfig, *this)
37      device_slot_interface(mconfig, *this), m_owner(nullptr), m_isa_tag(nullptr)
3638{
3739}
3840
r250239r250240
136138isa8_device::isa8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
137139      device_t(mconfig, ISA8, "ISA8", tag, owner, clock, "isa8", __FILE__),
138140      device_memory_interface(mconfig, *this),
139      m_program_config("ISA 8-bit program", ENDIANNESS_LITTLE, 8, 24, 0, NULL),
140      m_io_config("ISA 8-bit I/O", ENDIANNESS_LITTLE, 8, 16, 0, NULL),
141      m_program16_config("ISA 16-bit program", ENDIANNESS_LITTLE, 16, 24, 0, NULL),
142      m_io16_config("ISA 16-bit I/O", ENDIANNESS_LITTLE, 16, 16, 0, NULL),
141      m_program_config("ISA 8-bit program", ENDIANNESS_LITTLE, 8, 24, 0, nullptr),
142      m_io_config("ISA 8-bit I/O", ENDIANNESS_LITTLE, 8, 16, 0, nullptr),
143      m_program16_config("ISA 16-bit program", ENDIANNESS_LITTLE, 16, 24, 0, nullptr),
144      m_io16_config("ISA 16-bit I/O", ENDIANNESS_LITTLE, 16, 16, 0, nullptr), m_maincpu(nullptr), m_iospace(nullptr), m_prgspace(nullptr),
143145      m_out_irq2_cb(*this),
144146      m_out_irq3_cb(*this),
145147      m_out_irq4_cb(*this),
r250239r250240
148150      m_out_irq7_cb(*this),
149151      m_out_drq1_cb(*this),
150152      m_out_drq2_cb(*this),
151      m_out_drq3_cb(*this),
153      m_out_drq3_cb(*this), m_cputag(nullptr),
152154      m_write_iochck(*this)
153155{
154156   for(int i=0;i<8;i++)
155157   {
156      m_dma_device[i] = NULL;
158      m_dma_device[i] = nullptr;
157159      m_dma_eop[i] = false;
158160   }
159161   m_nmi_enabled = false;
r250239r250240
164166isa8_device::isa8_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) :
165167      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
166168      device_memory_interface(mconfig, *this),
167      m_program_config("ISA 8-bit program", ENDIANNESS_LITTLE, 8, 24, 0, NULL),
168      m_io_config("ISA 8-bit I/O", ENDIANNESS_LITTLE, 8, 16, 0, NULL),
169      m_program16_config("ISA 16-bit program", ENDIANNESS_LITTLE, 16, 24, 0, NULL),
170      m_io16_config("ISA 16-bit I/O", ENDIANNESS_LITTLE, 16, 16, 0, NULL),
169      m_program_config("ISA 8-bit program", ENDIANNESS_LITTLE, 8, 24, 0, nullptr),
170      m_io_config("ISA 8-bit I/O", ENDIANNESS_LITTLE, 8, 16, 0, nullptr),
171      m_program16_config("ISA 16-bit program", ENDIANNESS_LITTLE, 16, 24, 0, nullptr),
172      m_io16_config("ISA 16-bit I/O", ENDIANNESS_LITTLE, 16, 16, 0, nullptr), m_maincpu(nullptr), m_iospace(nullptr), m_prgspace(nullptr),
171173      m_out_irq2_cb(*this),
172174      m_out_irq3_cb(*this),
173175      m_out_irq4_cb(*this),
r250239r250240
176178      m_out_irq7_cb(*this),
177179      m_out_drq1_cb(*this),
178180      m_out_drq2_cb(*this),
179      m_out_drq3_cb(*this),
181      m_out_drq3_cb(*this), m_cputag(nullptr),
180182      m_write_iochck(*this)
181183{
182184   for(int i=0;i<8;i++)
183185   {
184      m_dma_device[i] = NULL;
186      m_dma_device[i] = nullptr;
185187      m_dma_eop[i] = false;
186188   }
187189   m_nmi_enabled = false;
r250239r250240
418420
419421device_isa8_card_interface::device_isa8_card_interface(const machine_config &mconfig, device_t &device)
420422   : device_slot_card_interface(mconfig, device),
421      m_isa(NULL)
423      m_isa(nullptr), m_isa_dev(nullptr), m_next(nullptr)
422424{
423425}
424426
r250239r250240
618620//-------------------------------------------------
619621
620622device_isa16_card_interface::device_isa16_card_interface(const machine_config &mconfig, device_t &device)
621   : device_isa8_card_interface(mconfig,device)
623   : device_isa8_card_interface(mconfig,device), m_isa(nullptr)
622624{
623625}
624626
trunk/src/devices/bus/isa/lpt.cpp
r250239r250240
1414
1515isa8_lpt_device::isa8_lpt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1616   device_t(mconfig, ISA8_LPT, "Printer Adapter", tag, owner, clock, "isa_lpt", __FILE__),
17   device_isa8_card_interface(mconfig, *this)
17   device_isa8_card_interface(mconfig, *this),
18   m_is_primary(false)
1819{
1920}
2021
trunk/src/devices/bus/isa/mach32.cpp
r250239r250240
2323
2424// 8514/A device
2525mach32_8514a_device::mach32_8514a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
26   : mach8_device(mconfig, ATIMACH32_8514A, "ATi mach32 (2D acceleration module)", tag, owner, clock, "mach32_8514a", __FILE__)
26   : mach8_device(mconfig, ATIMACH32_8514A, "ATi mach32 (2D acceleration module)", tag, owner, clock, "mach32_8514a", __FILE__),
27   m_chip_ID(0),
28   m_membounds(0)
2729{
2830}
2931
3032mach32_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)
31   : mach8_device(mconfig, type, name, tag, owner, clock, shortname, source)
33   : mach8_device(mconfig, type, name, tag, owner, clock, shortname, source),
34   m_chip_ID(0),
35   m_membounds(0)
3236{
3337}
3438
trunk/src/devices/bus/isa/mc1502_fdc.cpp
r250239r250240
192192mc1502_fdc_device::mc1502_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
193193   device_t(mconfig, MC1502_FDC, "MC-1502 floppy", tag, owner, clock, "mc1502_fdc", __FILE__),
194194   device_isa8_card_interface( mconfig, *this ),
195   m_fdc(*this, "fdc")
195   m_fdc(*this, "fdc"), motor_on(0), motor_timer(nullptr)
196196{
197197}
198198
trunk/src/devices/bus/isa/mda.cpp
r250239r250240
152152
153153isa8_mda_device::isa8_mda_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
154154      device_t(mconfig, ISA8_MDA, "IBM Monochrome Display and Printer Adapter", tag, owner, clock, "isa_ibm_mda", __FILE__),
155      device_isa8_card_interface(mconfig, *this),
156      m_update_row_type(-1),
155      device_isa8_card_interface(mconfig, *this), m_framecnt(0), m_mode_control(0),
156      m_update_row_type(-1), m_chr_gen(nullptr), m_vsync(0), m_hsync(0), m_pixel(0),
157157      m_palette(*this, "palette")
158158{
159159}
160160
161161isa8_mda_device::isa8_mda_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) :
162162      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
163      device_isa8_card_interface(mconfig, *this),
164      m_update_row_type(-1),
163      device_isa8_card_interface(mconfig, *this), m_framecnt(0), m_mode_control(0),
164      m_update_row_type(-1), m_chr_gen(nullptr), m_vsync(0), m_hsync(0), m_pixel(0),
165165      m_palette(*this, "palette")
166166{
167167}
r250239r250240
581581//-------------------------------------------------
582582
583583isa8_hercules_device::isa8_hercules_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
584      isa8_mda_device(mconfig, ISA8_HERCULES, "Hercules Graphics Card", tag, owner, clock, "isa_hercules", __FILE__)
584      isa8_mda_device(mconfig, ISA8_HERCULES, "Hercules Graphics Card", tag, owner, clock, "isa_hercules", __FILE__), m_configuration_switch(0)
585585{
586586}
587587
r250239r250240
787787//-------------------------------------------------
788788
789789isa8_ec1840_0002_device::isa8_ec1840_0002_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
790      isa8_mda_device( mconfig, ISA8_EC1840_0002, "EC 1840.0002 (MDA)", tag, owner, clock, "ec1840_0002", __FILE__)
790      isa8_mda_device( mconfig, ISA8_EC1840_0002, "EC 1840.0002 (MDA)", tag, owner, clock, "ec1840_0002", __FILE__), m_soft_chr_gen(nullptr)
791791{
792792}
793793
trunk/src/devices/bus/isa/ne1000.cpp
r250239r250240
1919ne1000_device::ne1000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2020      : device_t(mconfig, NE1000, "NE1000 Network Adapter", tag, owner, clock, "ne1000", __FILE__),
2121      device_isa8_card_interface(mconfig, *this),
22      m_dp8390(*this, "dp8390d") {
22      m_dp8390(*this, "dp8390d"),
23   m_irq(0)
24   {
2325}
2426
2527void ne1000_device::device_start() {
trunk/src/devices/bus/isa/ne2000.cpp
r250239r250240
1717   return MACHINE_CONFIG_NAME(ne2000_config);
1818}
1919
20ne2000_device::ne2000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
21      : device_t(mconfig, NE2000, "NE2000 Network Adapter", tag, owner, clock, "ne2000", __FILE__),
22      device_isa16_card_interface(mconfig, *this),
23      m_dp8390(*this, "dp8390d") {
20ne2000_device::ne2000_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock)
21   : device_t(mconfig, NE2000, "NE2000 Network Adapter", tag, owner, clock, "ne2000", __FILE__),
22     device_isa16_card_interface(mconfig, *this),
23     m_dp8390(*this, "dp8390d"),
24     m_irq(0)
25{
2426}
2527
2628void ne2000_device::device_start() {
trunk/src/devices/bus/isa/num9rev.cpp
r250239r250240
8383      m_upd7220(*this, "upd7220"),
8484      m_palette(*this, "palette"),
8585      m_ram(1024*1024),
86      m_overlay(1024)
86      m_overlay(1024), m_bank(0), m_mode(0), m_1024(false)
8787{
8888}
8989
trunk/src/devices/bus/isa/omti8621.cpp
r250239r250240
376376   device_isa16_card_interface(mconfig, *this),
377377   m_fdc(*this, OMTI_FDC_TAG),
378378   m_iobase(*this, "IO_BASE"),
379   m_biosopts(*this, "BIOS_OPTS")
379   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),
380   data_length(0), data_index(0), diskaddr_ecc_error(0), diskaddr_format_bad_track(0), m_timer(nullptr), m_installed(false)
380381{
381382}
382383
r250239r250240
12871288
12881289omti_disk_image_device::omti_disk_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
12891290   : device_t(mconfig, OMTI_DISK, "OMTI8621 ESDI disk", tag, owner, clock, "omti_disk_image", __FILE__),
1290      device_image_interface(mconfig, *this)
1291      device_image_interface(mconfig, *this), m_type(0), m_cylinders(0), m_heads(0), m_sectors(0), m_sectorbytes(0), m_sector_count(0), m_image(nullptr)
12911292{
12921293}
12931294
trunk/src/devices/bus/isa/pgc.cpp
r250239r250240
208208   device_isa8_card_interface(mconfig, *this),
209209   m_cpu(*this, "maincpu"),
210210   m_screen(*this, PGC_SCREEN_NAME),
211   m_palette(*this, "palette")
211   m_palette(*this, "palette"), m_commarea(nullptr), m_vram(nullptr), m_eram(nullptr), m_bitmap(nullptr)
212212{
213213}
214214
r250239r250240
217217   device_isa8_card_interface(mconfig, *this),
218218   m_cpu(*this, "maincpu"),
219219   m_screen(*this, PGC_SCREEN_NAME),
220   m_palette(*this, "palette")
220   m_palette(*this, "palette"), m_commarea(nullptr), m_vram(nullptr), m_eram(nullptr), m_bitmap(nullptr)
221221{
222222}
223223
trunk/src/devices/bus/isa/sb16.cpp
r250239r250240
684684   m_dacl(*this, "dacl"),
685685   m_dacr(*this, "dacr"),
686686   m_joy(*this, "pc_joy"),
687   m_cpu(*this, "sb16_cpu")
687   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),
688   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),
689   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)
688690{
689691}
690692
trunk/src/devices/bus/isa/sblaster.cpp
r250239r250240
11071107   m_dacl(*this, "sbdacl"),
11081108   m_dacr(*this, "sbdacr"),
11091109   m_joy(*this, "pc_joy"),
1110   m_mdout(*this, "mdout")
1110   m_mdout(*this, "mdout"), m_dack_out(0), m_onebyte_midi(false), m_uart_midi(false), m_uart_irq(false), m_mpu_midi(false), m_rx_waiting(0), m_tx_waiting(0), m_xmit_read(0), m_xmit_write(0), m_recv_read(0), m_recv_write(0), m_tx_busy(false), m_timer(nullptr)
11111111{
11121112}
11131113
trunk/src/devices/bus/isa/sc499.cpp
r250239r250240
319319   : device_t(mconfig, SC499, "Archive SC-499", tag, owner, clock, "sc499", __FILE__),
320320   device_isa8_card_interface(mconfig, *this),
321321   m_iobase(*this, "IO_BASE"),
322   m_irqdrq(*this, "IRQ_DRQ"),
323   m_image(*this, SC499_CTAPE_TAG)
322   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),
323   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),
324   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)
324325{
325326}
326327
trunk/src/devices/bus/isa/stereo_fx.cpp
r250239r250240
192192   m_dacl(*this, "dacl"),
193193   m_dacr(*this, "dacr"),
194194   m_joy(*this, "pc_joy"),
195   m_cpu(*this, "stereo_fx_cpu")
195   m_cpu(*this, "stereo_fx_cpu"), m_data_in(false), m_in_byte(0), m_data_out(false), m_out_byte(0), m_port20(0), m_port00(0), m_timer(nullptr), m_t0(0)
196196{
197197   m_t1 = 0;
198198}
trunk/src/devices/bus/isa/svga_cirrus.cpp
r250239r250240
6161
6262isa16_svga_cirrus_device::isa16_svga_cirrus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6363      device_t(mconfig, ISA16_SVGA_CIRRUS, "Diamond Speedstar Pro SE ISA Graphics Card (BIOS v1.00)", tag, owner, clock, "dm_clgd5430", __FILE__),
64      device_isa16_card_interface(mconfig, *this)
64      device_isa16_card_interface(mconfig, *this), m_vga(nullptr)
6565{
6666}
6767
r250239r250240
147147
148148isa16_svga_cirrus_gd542x_device::isa16_svga_cirrus_gd542x_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
149149      device_t(mconfig, ISA16_SVGA_CIRRUS_GD542X, "Generic Cirrus Logic GD542x Graphics Card (BIOS v1.20)", tag, owner, clock, "clgd542x", __FILE__),
150      device_isa16_card_interface(mconfig, *this)
150      device_isa16_card_interface(mconfig, *this), m_vga(nullptr)
151151{
152152}
153153
trunk/src/devices/bus/isa/svga_s3.cpp
r250239r250240
7272
7373isa16_svga_s3_device::isa16_svga_s3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7474      device_t(mconfig, ISA16_SVGA_S3, "Number Nine 9FX Vision 330 (S3 764) Graphics Card", tag, owner, clock, "s3_764", __FILE__),
75      device_isa16_card_interface(mconfig, *this)
75      device_isa16_card_interface(mconfig, *this), m_vga(nullptr), m_8514(nullptr)
7676{
7777}
7878
r250239r250240
184184
185185isa16_s3virge_device::isa16_s3virge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
186186      device_t(mconfig, ISA16_S3VIRGE, "S3 ViRGE Graphics Card", tag, owner, clock, "s3virge", __FILE__),
187      device_isa16_card_interface(mconfig, *this)
187      device_isa16_card_interface(mconfig, *this), m_vga(nullptr)
188188{
189189}
190190
r250239r250240
271271
272272isa16_s3virgedx_device::isa16_s3virgedx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
273273      device_t(mconfig, ISA16_S3VIRGEDX, "S3 ViRGE/DX Graphics Card", tag, owner, clock, "s3virgedx", __FILE__),
274      device_isa16_card_interface(mconfig, *this)
274      device_isa16_card_interface(mconfig, *this), m_vga(nullptr)
275275{
276276}
277277
r250239r250240
359359
360360isa16_stealth3d2kpro_device::isa16_stealth3d2kpro_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
361361      device_t(mconfig, ISA16_DMS3D2KPRO, "Diamond Stealth 3D 2000 Pro", tag, owner, clock, "dms3d2kp", __FILE__),
362      device_isa16_card_interface(mconfig, *this)
362      device_isa16_card_interface(mconfig, *this), m_vga(nullptr)
363363{
364364}
365365
trunk/src/devices/bus/isa/svga_trident.cpp
r250239r250240
6363
6464isa16_svga_tgui9680_device::isa16_svga_tgui9680_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6565      device_t(mconfig, ISA16_SVGA_TGUI9680, "Trident TGUI9680 Graphics Card (BIOS X5.5 (02) 02/13/96)", tag, owner, clock, "tgui9680", __FILE__),
66      device_isa16_card_interface(mconfig, *this)
66      device_isa16_card_interface(mconfig, *this), m_vga(nullptr)
6767{
6868}
6969
trunk/src/devices/bus/isa/svga_tseng.cpp
r250239r250240
6161
6262isa8_svga_et4k_device::isa8_svga_et4k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6363      device_t(mconfig, ISA8_SVGA_ET4K, "SVGA Tseng ET4000 Graphics Card", tag, owner, clock, "et4000", __FILE__),
64      device_isa8_card_interface(mconfig, *this)
64      device_isa8_card_interface(mconfig, *this), m_vga(nullptr)
6565{
6666}
6767
trunk/src/devices/bus/isa/vga.cpp
r250239r250240
5151
5252isa8_vga_device::isa8_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5353      device_t(mconfig, ISA8_VGA, "IBM VGA Graphics Card", tag, owner, clock, "ibm_vga", __FILE__),
54      device_isa8_card_interface(mconfig, *this)
54      device_isa8_card_interface(mconfig, *this), m_vga(nullptr)
5555{
5656}
5757
trunk/src/devices/bus/isa/vga_ati.cpp
r250239r250240
148148
149149isa16_vga_gfxultra_device::isa16_vga_gfxultra_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
150150      device_t(mconfig, ISA16_VGA_GFXULTRA, "ATi Graphics Ultra Card", tag, owner, clock, "gfxultra", __FILE__),
151      device_isa16_card_interface(mconfig, *this)
151      device_isa16_card_interface(mconfig, *this), m_vga(nullptr), m_8514(nullptr)
152152{
153153}
154154
155155isa16_vga_gfxultrapro_device::isa16_vga_gfxultrapro_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
156156      device_t(mconfig, ISA16_SVGA_GFXULTRAPRO, "ATi Graphics Ultra Pro Card", tag, owner, clock, "gfxultrp", __FILE__),
157      device_isa16_card_interface(mconfig, *this)
157      device_isa16_card_interface(mconfig, *this), m_vga(nullptr)
158158{
159159}
160160
161161isa16_vga_mach64_device::isa16_vga_mach64_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
162162      device_t(mconfig, ISA16_SVGA_MACH64, "ATi mach64 Card", tag, owner, clock, "mach64", __FILE__),
163      device_isa16_card_interface(mconfig, *this)
163      device_isa16_card_interface(mconfig, *this), m_vga(nullptr)
164164{
165165}
166166
trunk/src/devices/bus/isa/xtide.cpp
r250239r250240
303303   : device_t(mconfig, ISA8_XTIDE, "XT-IDE Fixed Drive Adapter", tag, owner, clock, "isa8_xtide", __FILE__),
304304   device_isa8_card_interface( mconfig, *this ),
305305   m_ata(*this, "ata"),
306   m_eeprom(*this, "eeprom")
306   m_eeprom(*this, "eeprom"), m_irq_number(0), m_d8_d15_latch(0)
307307{
308308}
309309
trunk/src/devices/bus/isbx/isbc_218a.cpp
r250239r250240
8383   device_t(mconfig, ISBC_218A, "ISBX 218a for ISBC", tag, owner, clock, "isbc_218a", __FILE__),
8484   device_isbx_card_interface(mconfig, *this),
8585   m_fdc(*this, I8272_TAG),
86   m_floppy0(*this, I8272_TAG":0")
86   m_floppy0(*this, I8272_TAG":0"), m_reset(false), m_motor(false)
8787{
8888}
8989
trunk/src/devices/bus/isbx/isbx.cpp
r250239r250240
4343   m_write_mintr0(*this),
4444   m_write_mintr1(*this),
4545   m_write_mdrqt(*this),
46   m_write_mwait(*this)
46   m_write_mwait(*this), m_card(nullptr)
4747{
4848}
4949
trunk/src/devices/bus/kc/d002.cpp
r250239r250240
110110
111111kc_d002_device::kc_d002_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
112112      : device_t(mconfig, KC_D002, "D002 Bus Driver", tag, owner, clock, "kc_d002", __FILE__),
113      device_kcexp_interface( mconfig, *this )
114{
113      device_kcexp_interface( mconfig, *this ), m_slot(nullptr)
114   {
115115}
116116
117117//-------------------------------------------------
trunk/src/devices/bus/kc/d004.cpp
r250239r250240
137137      m_floppy1(*this, UPD765_TAG ":1"),
138138      m_floppy2(*this, UPD765_TAG ":2"),
139139      m_floppy3(*this, UPD765_TAG ":3"),
140      m_koppel_ram(*this, "koppelram")
141{
140      m_koppel_ram(*this, "koppelram"), m_reset_timer(nullptr), m_rom(nullptr), m_rom_base(0), m_enabled(0), m_connected(0), m_floppy(nullptr)
141   {
142142}
143143
144144kc_d004_device::kc_d004_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)
r250239r250240
150150      m_floppy1(*this, UPD765_TAG ":1"),
151151      m_floppy2(*this, UPD765_TAG ":2"),
152152      m_floppy3(*this, UPD765_TAG ":3"),
153      m_koppel_ram(*this, "koppelram")
154{
153      m_koppel_ram(*this, "koppelram"), m_reset_timer(nullptr), m_rom(nullptr), m_rom_base(0), m_enabled(0), m_connected(0), m_floppy(nullptr)
154   {
155155}
156156
157157//-------------------------------------------------
r250239r250240
384384
385385kc_d004_gide_device::kc_d004_gide_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
386386      : kc_d004_device(mconfig, KC_D004, "D004 Floppy Disk + GIDE Interface", tag, owner, clock, "kc_d004gide", __FILE__),
387      m_ata(*this, ATA_TAG)
388{
387      m_ata(*this, ATA_TAG), m_ata_data(0), m_lh(0)
388   {
389389}
390390
391391//-------------------------------------------------
trunk/src/devices/bus/kc/kc.cpp
r250239r250240
158158      device_slot_interface(mconfig, *this),
159159      m_out_irq_cb(*this),
160160      m_out_nmi_cb(*this),
161      m_out_halt_cb(*this)
161      m_out_halt_cb(*this), m_cart(nullptr), m_next_slot_tag(nullptr), m_next_slot(nullptr)
162162{
163163}
164164
r250239r250240
167167      device_slot_interface(mconfig, *this),
168168      m_out_irq_cb(*this),
169169      m_out_nmi_cb(*this),
170      m_out_halt_cb(*this)
170      m_out_halt_cb(*this), m_cart(nullptr), m_next_slot_tag(nullptr), m_next_slot(nullptr)
171171{
172172}
173173
trunk/src/devices/bus/kc/ram.cpp
r250239r250240
4444
4545kc_m011_device::kc_m011_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4646      : device_t(mconfig, KC_M011, "M011 64KB RAM", tag, owner, clock, "kc_m011", __FILE__),
47      device_kcexp_interface( mconfig, *this )
48{
47      device_kcexp_interface( mconfig, *this ), m_slot(nullptr), m_mei(0), m_ram(nullptr), m_enabled(0), m_write_enabled(0), m_base(0), m_segment(0)
48   {
4949}
5050
5151kc_m011_device::kc_m011_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)
5252      : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
53      device_kcexp_interface( mconfig, *this )
53      device_kcexp_interface( mconfig, *this ), m_slot(nullptr), m_mei(0), m_ram(nullptr), m_enabled(0), m_write_enabled(0), m_base(0), m_segment(0)
5454{
5555}
5656
trunk/src/devices/bus/kc/rom.cpp
r250239r250240
4444
4545kc_8k_device::kc_8k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4646      : device_t(mconfig, KC_STANDARD, "Standard", tag, owner, clock, "kc_8k", __FILE__),
47      device_kcexp_interface( mconfig, *this )
48{
47      device_kcexp_interface( mconfig, *this ), m_slot(nullptr), m_mei(0), m_rom(nullptr), m_enabled(0), m_base(0)
48   {
4949}
5050
5151kc_8k_device::kc_8k_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)
5252      : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
53      device_kcexp_interface( mconfig, *this )
54{
53      device_kcexp_interface( mconfig, *this ), m_slot(nullptr), m_mei(0), m_rom(nullptr), m_enabled(0), m_base(0)
54   {
5555}
5656
5757
r250239r250240
185185//-------------------------------------------------
186186
187187kc_m033_device::kc_m033_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
188      : kc_8k_device(mconfig, KC_M033, "M033 TypeStar", tag, owner, clock, "kc_m033", __FILE__)
189{
188      : kc_8k_device(mconfig, KC_M033, "M033 TypeStar", tag, owner, clock, "kc_m033", __FILE__), m_bank(0)
189   {
190190}
191191
192192//-------------------------------------------------
trunk/src/devices/bus/lpci/i82439tx.cpp
r250239r250240
2020   : northbridge_device(mconfig, I82439TX, "Intel 82439TX", tag, owner, clock, "i82439tx", __FILE__),
2121   pci_device_interface( mconfig, *this ),
2222   m_cpu_tag( NULL ),
23   m_region_tag( NULL )
23   m_region_tag( NULL ),
24   m_space(nullptr),
25   m_rom(nullptr)
2426{
2527}
2628
trunk/src/devices/bus/lpci/mpc105.cpp
r250239r250240
3232mpc105_device::mpc105_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3333   : device_t(mconfig, MPC105, "MPC105", tag, owner, clock, "mpc105", __FILE__),
3434   pci_device_interface( mconfig, *this ),
35   m_cpu_tag(NULL),
36   m_bank_base_default(0)
35   m_cpu_tag(nullptr),
36   m_bank_base_default(0),
37   m_bank_base(0),
38   m_bank_enable(0),
39   m_maincpu(nullptr)
3740{
3841}
3942
trunk/src/devices/bus/lpci/pci.cpp
r250239r250240
9090//  pci_bus_device - constructor
9191//-------------------------------------------------
9292pci_bus_device::pci_bus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
93      device_t(mconfig, PCI_BUS, "PCI Bus", tag, owner, clock, "pci_bus", __FILE__),
94      m_father(NULL)
93      device_t(mconfig, PCI_BUS, "PCI Bus", tag, owner, clock, "pci_bus", __FILE__), m_busnum(0),
94      m_father(NULL), m_address(0), m_devicenum(0), m_busnumber(0), m_busnumaddr(nullptr)
9595{
9696   for (int i = 0; i < ARRAY_LENGTH(m_devtag); i++) {
9797      m_devtag[i]= NULL;
trunk/src/devices/bus/lpci/southbridge.cpp
r250239r250240
141141   m_ds12885(*this, "rtc"),
142142   m_pc_kbdc(*this, "pc_kbdc"),
143143   m_ide(*this, "ide"),
144   m_ide2(*this, "ide2")
144   m_ide2(*this, "ide2"), m_at_spkrdata(0), m_pit_out2(0), m_dma_channel(0), m_cur_eop(false), m_dma_high_byte(0), m_at_speaker(0), m_refresh(false), m_channel_check(0), m_nmi_enabled(0)
145145{
146146}
147147/**********************************************************
trunk/src/devices/bus/macpds/macpds.cpp
r250239r250240
2828//-------------------------------------------------
2929macpds_slot_device::macpds_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030      device_t(mconfig, MACPDS_SLOT, "Mac 68000 Processor-Direct Slot", tag, owner, clock, "macpds_slot", __FILE__),
31      device_slot_interface(mconfig, *this)
31      device_slot_interface(mconfig, *this),
32   m_macpds_tag(nullptr),
33   m_macpds_slottag(nullptr)
3234{
3335}
3436
3537macpds_slot_device::macpds_slot_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) :
3638      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
37      device_slot_interface(mconfig, *this)
39      device_slot_interface(mconfig, *this), m_macpds_tag(nullptr), m_macpds_slottag(nullptr)
3840{
3941}
4042
r250239r250240
7779//-------------------------------------------------
7880
7981macpds_device::macpds_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
80      device_t(mconfig, MACPDS, "MACPDS", tag, owner, clock, "macpds", __FILE__)
82      device_t(mconfig, MACPDS, "MACPDS", tag, owner, clock, "macpds", __FILE__), m_maincpu(nullptr), m_cputag(nullptr)
8183{
8284}
8385
8486macpds_device::macpds_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) :
85      device_t(mconfig, type, name, tag, owner, clock, shortname, source)
87      device_t(mconfig, type, name, tag, owner, clock, shortname, source), m_maincpu(nullptr), m_cputag(nullptr)
8688{
8789}
8890//-------------------------------------------------
r250239r250240
148150
149151device_macpds_card_interface::device_macpds_card_interface(const machine_config &mconfig, device_t &device)
150152   : device_slot_card_interface(mconfig, device),
151      m_macpds(NULL),
152      m_macpds_tag(NULL)
153      m_macpds(nullptr),
154      m_macpds_tag(nullptr), m_macpds_slottag(nullptr), m_next(nullptr)
153155{
154156}
155157
trunk/src/devices/bus/macpds/pds_tpdfpd.cpp
r250239r250240
8989macpds_sedisplay_device::macpds_sedisplay_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
9090      device_t(mconfig, PDS_SEDISPLAY, "Radius SE Full Page Display", tag, owner, clock, "pds_sefp", __FILE__),
9191      device_video_interface(mconfig, *this),
92      device_macpds_card_interface(mconfig, *this)
92      device_macpds_card_interface(mconfig, *this), m_vram(nullptr), m_vbl_disable(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
9393{
9494   m_assembled_tag = std::string(tag).append(":").append(SEDISPLAY_SCREEN_NAME);
9595   m_screen_tag = m_assembled_tag.c_str();
r250239r250240
9898macpds_sedisplay_device::macpds_sedisplay_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) :
9999      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
100100      device_video_interface(mconfig, *this),
101      device_macpds_card_interface(mconfig, *this)
101      device_macpds_card_interface(mconfig, *this), m_vram(nullptr), m_vbl_disable(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
102102{
103103   m_assembled_tag = std::string(tag).append(":").append(SEDISPLAY_SCREEN_NAME);
104104   m_screen_tag = m_assembled_tag.c_str();
trunk/src/devices/bus/megadrive/eeprom.cpp
r250239r250240
6363md_std_eeprom_device::md_std_eeprom_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)
6464               : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
6565               device_md_cart_interface( mconfig, *this ),
66               m_i2cmem(*this, "i2cmem")
67{
66               m_i2cmem(*this, "i2cmem"), m_i2c_mem(0), m_i2c_clk(0)
67            {
6868}
6969
7070md_std_eeprom_device::md_std_eeprom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
7171               : device_t(mconfig, MD_STD_EEPROM, "MD Standard cart + EEPROM", tag, owner, clock, "md_std_eeprom", __FILE__),
7272               device_md_cart_interface( mconfig, *this ),
73               m_i2cmem(*this, "i2cmem")
74{
73               m_i2cmem(*this, "i2cmem"), m_i2c_mem(0), m_i2c_clk(0)
74            {
7575}
7676
7777md_eeprom_nbajam_device::md_eeprom_nbajam_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/megadrive/ggenie.cpp
r250239r250240
3535md_rom_ggenie_device::md_rom_ggenie_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3636               : device_t(mconfig, MD_ROM_GAMEGENIE, "MD Game Genie", tag, owner, clock, "md_ggenie", __FILE__),
3737                  device_md_cart_interface( mconfig, *this ),
38                  m_exp(*this, "subslot")
39{
38                  m_exp(*this, "subslot"), m_gg_bypass(0), m_reg_enable(0)
39            {
4040}
4141
4242
trunk/src/devices/bus/megadrive/jcart.cpp
r250239r250240
5959// Micro Machines 2, Micro Machines Military
6060md_seprom_codemast_device::md_seprom_codemast_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)
6161               : md_jcart_device(mconfig, type, name, tag, owner, clock, shortname, source),
62               m_i2cmem(*this, "i2cmem")
63{
62               m_i2cmem(*this, "i2cmem"), m_i2c_mem(0), m_i2c_clk(0)
63            {
6464}
6565
6666md_seprom_codemast_device::md_seprom_codemast_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
6767               : md_jcart_device(mconfig, MD_SEPROM_CODEMAST, "MD J-Cart games + SEPROM", tag, owner, clock, "md_seprom_codemast", __FILE__),
68               m_i2cmem(*this, "i2cmem")
69{
68               m_i2cmem(*this, "i2cmem"), m_i2c_mem(0), m_i2c_clk(0)
69            {
7070}
7171
7272// Micro Machines 96
trunk/src/devices/bus/megadrive/md_slot.cpp
r250239r250240
6464//-------------------------------------------------
6565
6666device_md_cart_interface::device_md_cart_interface(const machine_config &mconfig, device_t &device)
67   : device_slot_card_interface(mconfig, device),
67   : device_slot_card_interface(mconfig, device), m_nvram_start(0), m_nvram_end(0), m_nvram_active(0), m_nvram_readonly(0), m_nvram_handlers_installed(0),
6868      m_rom(NULL),
6969      m_rom_size(0)
7070{
r250239r250240
164164                  device_t(mconfig, type, name, tag, owner, clock, shortname, source),
165165                  device_image_interface(mconfig, *this),
166166                  device_slot_interface(mconfig, *this),
167                  m_type(SEGA_STD),
167                  m_type(SEGA_STD), m_cart(nullptr),
168168                  m_must_be_loaded(1)
169169{
170170}
trunk/src/devices/bus/megadrive/rom.cpp
r250239r250240
8686}
8787
8888md_rom_ssf2_device::md_rom_ssf2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
89               : md_std_rom_device(mconfig, MD_ROM_SSF2, "MD Super SF2", tag, owner, clock, "md_rom_ssf2", __FILE__)
90{
89               : md_std_rom_device(mconfig, MD_ROM_SSF2, "MD Super SF2", tag, owner, clock, "md_rom_ssf2", __FILE__), m_lastoff(0), m_lastdata(0)
90            {
9191}
9292
9393md_rom_cm2in1_device::md_rom_cm2in1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
94               : md_std_rom_device(mconfig, MD_ROM_CM2IN1, "MD Codemasters 2in1", tag, owner, clock, "md_rom_cm2in1", __FILE__)
95{
94               : md_std_rom_device(mconfig, MD_ROM_CM2IN1, "MD Codemasters 2in1", tag, owner, clock, "md_rom_cm2in1", __FILE__), m_base(0)
95            {
9696}
9797
9898md_rom_mcpirate_device::md_rom_mcpirate_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
99               : md_std_rom_device(mconfig, MD_ROM_MCPIR, "MD Pirate Multicarts (Various)", tag, owner, clock, "md_rom_mcpirate", __FILE__)
100{
99               : md_std_rom_device(mconfig, MD_ROM_MCPIR, "MD Pirate Multicarts (Various)", tag, owner, clock, "md_rom_mcpirate", __FILE__), m_bank(0)
100            {
101101}
102102
103103md_rom_bugslife_device::md_rom_bugslife_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
121121}
122122
123123md_rom_smw64_device::md_rom_smw64_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
124               : md_std_rom_device(mconfig, MD_ROM_SMW64, "MD Super Mario World 64", tag, owner, clock, "md_rom_smw64", __FILE__)
125{
124               : md_std_rom_device(mconfig, MD_ROM_SMW64, "MD Super Mario World 64", tag, owner, clock, "md_rom_smw64", __FILE__), m_latch0(0), m_latch1(0)
125            {
126126}
127127
128128md_rom_sbubl_device::md_rom_sbubl_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
156156}
157157
158158md_rom_chinf3_device::md_rom_chinf3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
159               : md_std_rom_device(mconfig, MD_ROM_CHINF3, "MD Chinese Fighter 3", tag, owner, clock, "md_rom_chinf3", __FILE__)
160{
159               : md_std_rom_device(mconfig, MD_ROM_CHINF3, "MD Chinese Fighter 3", tag, owner, clock, "md_rom_chinf3", __FILE__), m_bank(0)
160            {
161161}
162162
163163md_rom_16mj2_device::md_rom_16mj2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
176176}
177177
178178md_rom_lion2_device::md_rom_lion2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
179               : md_std_rom_device(mconfig, MD_ROM_LION2, "MD Lion King 2", tag, owner, clock, "md_rom_lion2", __FILE__)
180{
179               : md_std_rom_device(mconfig, MD_ROM_LION2, "MD Lion King 2", tag, owner, clock, "md_rom_lion2", __FILE__), m_prot1_data(0), m_prot2_data(0)
180            {
181181}
182182
183183md_rom_lion3_device::md_rom_lion3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
184               : md_std_rom_device(mconfig, MD_ROM_LION3, "MD Lion King 3", tag, owner, clock, "md_rom_lion3", __FILE__)
185{
184               : md_std_rom_device(mconfig, MD_ROM_LION3, "MD Lion King 3", tag, owner, clock, "md_rom_lion3", __FILE__), m_bank(0)
185            {
186186}
187187
188188md_rom_pokea_device::md_rom_pokea_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
191191}
192192
193193md_rom_pokestad_device::md_rom_pokestad_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
194               : md_std_rom_device(mconfig, MD_ROM_POKESTAD, "MD Pokemon Stadium", tag, owner, clock, "md_rom_pokestad", __FILE__)
195{
194               : md_std_rom_device(mconfig, MD_ROM_POKESTAD, "MD Pokemon Stadium", tag, owner, clock, "md_rom_pokestad", __FILE__), m_bank(0)
195            {
196196}
197197
198198md_rom_realtec_device::md_rom_realtec_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
199               : md_std_rom_device(mconfig, MD_ROM_REALTEC, "MD Realtec", tag, owner, clock, "md_rom_realtec", __FILE__)
200{
199               : md_std_rom_device(mconfig, MD_ROM_REALTEC, "MD Realtec", tag, owner, clock, "md_rom_realtec", __FILE__), m_bank_addr(0), m_bank_size(0), m_old_bank_addr(0)
200            {
201201}
202202
203203md_rom_redcl_device::md_rom_redcl_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
206206}
207207
208208md_rom_squir_device::md_rom_squir_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
209               : md_std_rom_device(mconfig, MD_ROM_SQUIR, "MD Squirrel King", tag, owner, clock, "md_rom_squir", __FILE__)
210{
209               : md_std_rom_device(mconfig, MD_ROM_SQUIR, "MD Squirrel King", tag, owner, clock, "md_rom_squir", __FILE__), m_latch(0)
210            {
211211}
212212
213213md_rom_tekkensp_device::md_rom_tekkensp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
214               : md_std_rom_device(mconfig, MD_ROM_TEKKENSP, "MD Tekken Special", tag, owner, clock, "md_rom_tekkensp", __FILE__)
215{
214               : md_std_rom_device(mconfig, MD_ROM_TEKKENSP, "MD Tekken Special", tag, owner, clock, "md_rom_tekkensp", __FILE__), m_reg(0)
215            {
216216}
217217
218218md_rom_topf_device::md_rom_topf_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
219               : md_std_rom_device(mconfig, MD_ROM_TOPF, "MD Top Fighter", tag, owner, clock, "md_rom_topf", __FILE__)
220{
219               : md_std_rom_device(mconfig, MD_ROM_TOPF, "MD Top Fighter", tag, owner, clock, "md_rom_topf", __FILE__), m_latch(0)
220            {
221221}
222222
223223md_rom_radica_device::md_rom_radica_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
224               : md_std_rom_device(mconfig, MD_ROM_RADICA, "MD Radica TV games", tag, owner, clock, "md_rom_radica", __FILE__)
225{
224               : md_std_rom_device(mconfig, MD_ROM_RADICA, "MD Radica TV games", tag, owner, clock, "md_rom_radica", __FILE__), m_bank(0)
225            {
226226}
227227
228228md_rom_beggarp_device::md_rom_beggarp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
229               : md_std_rom_device(mconfig, MD_ROM_BEGGARP, "MD Beggar Prince", tag, owner, clock, "md_rom_beggarp", __FILE__)
230{
229               : md_std_rom_device(mconfig, MD_ROM_BEGGARP, "MD Beggar Prince", tag, owner, clock, "md_rom_beggarp", __FILE__), m_mode(0), m_lock(0)
230            {
231231}
232232
233233md_rom_wukong_device::md_rom_wukong_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
234               : md_std_rom_device(mconfig, MD_ROM_WUKONG, "MD Legend of Wukong", tag, owner, clock, "md_rom_wukong", __FILE__)
235{
234               : md_std_rom_device(mconfig, MD_ROM_WUKONG, "MD Legend of Wukong", tag, owner, clock, "md_rom_wukong", __FILE__), m_mode(0)
235            {
236236}
237237
238238//-------------------------------------------------
trunk/src/devices/bus/megadrive/stm95.cpp
r250239r250240
177177
178178md_eeprom_stm95_device::md_eeprom_stm95_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)
179179               : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
180               device_md_cart_interface( mconfig, *this )
181{
180               device_md_cart_interface( mconfig, *this ), m_rdcnt(0)
181            {
182182}
183183
184184md_eeprom_stm95_device::md_eeprom_stm95_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
185185               : device_t(mconfig, MD_EEPROM_STM95, "MD Cart + EEPROM STM95", tag, owner, clock, "md_eeprom_stm95", __FILE__),
186               device_md_cart_interface( mconfig, *this )
187{
186               device_md_cart_interface( mconfig, *this ), m_rdcnt(0)
187            {
188188}
189189
190190
trunk/src/devices/bus/megadrive/svp.cpp
r250239r250240
4040                     : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
4141                     device_md_cart_interface( mconfig, *this ),
4242                     m_svp(*this, "svp"),
43                     m_test_ipt(*this, "MEMORY_TEST")
44{
43                     m_test_ipt(*this, "MEMORY_TEST"), m_emu_status(0), m_xst(0), m_xst2(0)
44                  {
4545}
4646
4747md_rom_svp_device::md_rom_svp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4848                     : device_t(mconfig, MD_ROM_SVP, "MD Virtua Racing", tag, owner, clock, "md_rom_svp", __FILE__),
4949                     device_md_cart_interface( mconfig, *this ),
5050                     m_svp(*this, "svp"),
51                     m_test_ipt(*this, "MEMORY_TEST")
52{
51                     m_test_ipt(*this, "MEMORY_TEST"), m_emu_status(0), m_xst(0), m_xst2(0)
52                  {
5353}
5454
5555
trunk/src/devices/bus/midi/midi.cpp
r250239r250240
66
77midi_port_device::midi_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
88   : device_t(mconfig, MIDI_PORT, "Midi Port", tag, owner, clock, "midi_port", __FILE__),
9   device_slot_interface(mconfig, *this),
9   device_slot_interface(mconfig, *this),
10   m_rxd(0),
1011   m_rxd_handler(*this),
1112   m_dev(NULL)
1213{
trunk/src/devices/bus/msx_cart/disk.cpp
r250239r250240
140140
141141
142142msx_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)
143   : msx_cart_disk_wd(mconfig, type, name, tag, owner, clock, shortname)
144   , m_control(0)
143   : msx_cart_disk_wd(mconfig, type, name, tag, owner, clock, shortname), m_side_control(0)
144     , m_control(0)
145145{
146146}
147147
trunk/src/devices/bus/msx_cart/msx_audio_kb.cpp
r250239r250240
88
99
1010msx_audio_kbdc_port_device::msx_audio_kbdc_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
11   : device_t(mconfig, MSX_AUDIO_KBDC_PORT, "MSX Audio keyboard connector port", tag, owner, clock, "msx_audio_kbdc_port", __FILE__)
12   , device_slot_interface(mconfig, *this)
11   : device_t(mconfig, MSX_AUDIO_KBDC_PORT, "MSX Audio keyboard connector port", tag, owner, clock, "msx_audio_kbdc_port", __FILE__),
12   device_slot_interface(mconfig, *this),
13   m_keyboard(NULL)
1314{
1415}
1516
trunk/src/devices/bus/neogeo/banked_cart.cpp
r250239r250240
1010
1111neogeo_banked_cart_device::neogeo_banked_cart_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1212   : device_t(mconfig, NEOGEO_BANKED_CART, "NeoGeo Banked Cartridge", tag, owner, clock, "neogeo_banked_cart", __FILE__),
13   m_bank_cartridge(0),
14   m_region(0)
13   m_bank_cartridge(0),
14   m_main_cpu_bank_address(0),
15   m_region(0),
16   m_region_size(0)
1517
1618{
1719}
trunk/src/devices/bus/neogeo/bootleg_prot.cpp
r250239r250240
1010
1111
1212ngbootleg_prot_device::ngbootleg_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
13   : device_t(mconfig, NGBOOTLEG_PROT, "NeoGeo Protection (Bootleg)", tag, owner, clock, "ngbootleg_prot", __FILE__)
13   : device_t(mconfig, NGBOOTLEG_PROT, "NeoGeo Protection (Bootleg)", tag, owner, clock, "ngbootleg_prot", __FILE__),
14   kof2k3_overlay(0),
15   m_mainrom(NULL),
16   m_fixedrom(NULL),
17   m_bankdev(NULL)
1418{
1519}
1620
trunk/src/devices/bus/neogeo/cmc_prot.cpp
r250239r250240
1010
1111
1212cmc_prot_device::cmc_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
13   : device_t(mconfig, CMC_PROT, "NeoGeo Protection (CMC)", tag, owner, clock, "cmc_prot", __FILE__)
13   : device_t(mconfig, CMC_PROT, "NeoGeo Protection (CMC)", tag, owner, clock, "cmc_prot", __FILE__),
14   type0_t03(NULL),
15   type0_t12(NULL),
16   type1_t03(NULL),
17   type1_t12(NULL),
18   address_8_15_xor1(NULL),
19   address_8_15_xor2(NULL),
20   address_16_23_xor1(NULL),
21   address_16_23_xor2(NULL),
22   address_0_7_xor(NULL)
1423{
1524}
1625
trunk/src/devices/bus/neogeo/fatfury2_prot.cpp
r250239r250240
1010
1111
1212fatfury2_prot_device::fatfury2_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
13   : device_t(mconfig, FATFURY2_PROT, "NeoGeo Protection (Fatal Fury 2)", tag, owner, clock, "fatfury2_prot", __FILE__)
13   : device_t(mconfig, FATFURY2_PROT, "NeoGeo Protection (Fatal Fury 2)", tag, owner, clock, "fatfury2_prot", __FILE__),
14   m_bankdev(NULL),
15   m_fatfury2_prot_data(0)
1416{
1517}
1618
trunk/src/devices/bus/neogeo/kof98_prot.cpp
r250239r250240
1111
1212
1313kof98_prot_device::kof98_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
14   : device_t(mconfig, KOF98_PROT, "NeoGeo Protection (KOF98)", tag, owner, clock, "kof98_prot", __FILE__)
14   : device_t(mconfig, KOF98_PROT, "NeoGeo Protection (KOF98)", tag, owner, clock, "kof98_prot", __FILE__),
15   kof98_prot_state(0)
1516{
1617}
1718
trunk/src/devices/bus/neogeo/mslugx_prot.cpp
r250239r250240
99
1010
1111mslugx_prot_device::mslugx_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
12   : device_t(mconfig, MSLUGX_PROT, "NeoGeo Protection (Metal Slug X)", tag, owner, clock, "mslugx_prot", __FILE__)
12   : device_t(mconfig, MSLUGX_PROT, "NeoGeo Protection (Metal Slug X)", tag, owner, clock, "mslugx_prot", __FILE__),
13   m_mslugx_counter(0),
14   m_mslugx_command(0)
1315{
1416}
1517
trunk/src/devices/bus/neogeo/neogeo_intf.cpp
r250239r250240
99//-------------------------------------------------
1010
1111device_neogeo_cart_interface::device_neogeo_cart_interface(const machine_config &mconfig, device_t &device)
12   : device_slot_card_interface(mconfig, device)
13   /*
14   m_rom(NULL),
15   m_fixed(NULL),
16   m_sprites(NULL),
17   m_sprites_optimized(NULL),
18   m_audio(NULL),
19   m_ym(NULL),
20   m_ymdelta(NULL),
21   m_audiocrypt(NULL)
22   */
12   : device_slot_card_interface(mconfig, device),
13      m_sprite_gfx_address_mask(0)
14/*
15m_rom(NULL),
16m_fixed(NULL),
17m_sprites(NULL),
18m_sprites_optimized(NULL),
19m_audio(NULL),
20m_ym(NULL),
21m_ymdelta(NULL),
22m_audiocrypt(NULL)
23*/
2324{
2425}
2526
trunk/src/devices/bus/neogeo/pvc_prot.cpp
r250239r250240
1111
1212
1313pvc_prot_device::pvc_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
14   : device_t(mconfig, PVC_PROT, "NeoGeo Protection (PVC)", tag, owner, clock, "pvc_prot", __FILE__)
14   : device_t(mconfig, PVC_PROT, "NeoGeo Protection (PVC)", tag, owner, clock, "pvc_prot", __FILE__),
15   m_bankdev(NULL)
1516{
1617}
1718
trunk/src/devices/bus/neogeo/sbp_prot.cpp
r250239r250240
1111
1212
1313sbp_prot_device::sbp_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
14   : device_t(mconfig, SBP_PROT, "NeoGeo Protection (Super Bubble Pop)", tag, owner, clock, "sbp_prot", __FILE__)
14   : device_t(mconfig, SBP_PROT, "NeoGeo Protection (Super Bubble Pop)", tag, owner, clock, "sbp_prot", __FILE__),
15   m_mainrom(NULL)
1516{
1617}
1718
trunk/src/devices/bus/neogeo/sma_prot.cpp
r250239r250240
99
1010
1111sma_prot_device::sma_prot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
12   : device_t(mconfig, SMA_PROT, "NeoGeo SMA Cartridge", tag, owner, clock, "sma_prot", __FILE__)
12   : device_t(mconfig, SMA_PROT, "NeoGeo SMA Cartridge", tag, owner, clock, "sma_prot", __FILE__),
13   m_bankdev(NULL),
14   m_sma_rng(0)
1315{
1416}
1517
trunk/src/devices/bus/nes/act53.cpp
r250239r250240
3333
3434
3535nes_action53_device::nes_action53_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
36               : nes_nrom_device(mconfig, NES_ACTION53, "NES Cart Action 53 PCB", tag, owner, clock, "nes_action53", __FILE__)
37{
36               : nes_nrom_device(mconfig, NES_ACTION53, "NES Cart Action 53 PCB", tag, owner, clock, "nes_action53", __FILE__),
37   m_sel(0)
38            {
3839}
3940
4041
trunk/src/devices/bus/nes/aladdin.cpp
r250239r250240
4141aladdin_cart_interface::aladdin_cart_interface(const machine_config &mconfig, device_t &device)
4242                  : device_slot_card_interface(mconfig, device),
4343                     m_rom(NULL),
44                     m_rom_size(0),
44                     m_rom_size(0),
45   m_lobank(0),
46   m_hibank(0),
4547                     m_rom_mask(0xff)
4648{
4749}
r250239r250240
6769nes_aladdin_slot_device::nes_aladdin_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6870                  device_t(mconfig, NES_ALADDIN_SLOT, "NES Aladdin Deck Enhancer Cartridge Slot", tag, owner, clock, "nes_ade_slot", __FILE__),
6971                  device_image_interface(mconfig, *this),
70                  device_slot_interface(mconfig, *this)
72                  device_slot_interface(mconfig, *this), m_cart(nullptr)
7173{
7274}
7375
r250239r250240
194196}
195197
196198nes_algq_rom_device::nes_algq_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
197                  : nes_algn_rom_device(mconfig, NES_ALGQ_ROM, "NES Aladdin Deck Enhancer ALGQ ROM", tag, owner, clock, "nes_algq_rom", __FILE__)
198{
199                  : nes_algn_rom_device(mconfig, NES_ALGQ_ROM, "NES Aladdin Deck Enhancer ALGQ ROM", tag, owner, clock, "nes_algq_rom", __FILE__), m_bank_base(0)
200               {
199201}
200202
201203void nes_algn_rom_device::device_start()
trunk/src/devices/bus/nes/ave.cpp
r250239r250240
4949}
5050
5151nes_maxi15_device::nes_maxi15_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
52               : nes_nrom_device(mconfig, NES_MAXI15, "NES Cart AVE Maxi 15 PCB", tag, owner, clock, "nes_maxi15", __FILE__)
53{
52               : nes_nrom_device(mconfig, NES_MAXI15, "NES Cart AVE Maxi 15 PCB", tag, owner, clock, "nes_maxi15", __FILE__), m_reg(0), m_bank(0)
53            {
5454}
5555
5656
trunk/src/devices/bus/nes/bandai.cpp
r250239r250240
5959
6060
6161nes_oekakids_device::nes_oekakids_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
62               : nes_nrom_device(mconfig, NES_OEKAKIDS, "NES Cart Bandai Oeka Kids PCB", tag, owner, clock, "nes_oeka", __FILE__)
63{
62               : nes_nrom_device(mconfig, NES_OEKAKIDS, "NES Cart Bandai Oeka Kids PCB", tag, owner, clock, "nes_oeka", __FILE__), m_reg(0), m_latch(0)
63            {
6464}
6565
6666nes_fcg_device::nes_fcg_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)
67               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
68{
67               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr)
68            {
6969}
7070
7171nes_fcg_device::nes_fcg_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
72               : nes_nrom_device(mconfig, NES_FCG, "NES Cart Bandai FCG PCB", tag, owner, clock, "nes_fcg", __FILE__)
73{
72               : nes_nrom_device(mconfig, NES_FCG, "NES Cart Bandai FCG PCB", tag, owner, clock, "nes_fcg", __FILE__), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr)
73            {
7474}
7575
7676nes_lz93d50_device::nes_lz93d50_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)
r250239r250240
8585
8686nes_lz93d50_24c01_device::nes_lz93d50_24c01_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)
8787               : nes_lz93d50_device(mconfig, type, name, tag, owner, clock, shortname, source),
88                  m_i2cmem(*this, "i2cmem")
89{
88                  m_i2cmem(*this, "i2cmem"), m_i2c_dir(0)
89            {
9090}
9191
9292nes_lz93d50_24c01_device::nes_lz93d50_24c01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
9393               : nes_lz93d50_device(mconfig, NES_LZ93D50_24C01, "NES Cart Bandai LZ93D50 + 24C01 PCB", tag, owner, clock, "nes_lz93d50_ep1", __FILE__),
94                  m_i2cmem(*this, "i2cmem")
95{
94                  m_i2cmem(*this, "i2cmem"), m_i2c_dir(0)
95            {
9696}
9797
9898nes_lz93d50_24c02_device::nes_lz93d50_24c02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/nes/benshieng.cpp
r250239r250240
3232
3333
3434nes_benshieng_device::nes_benshieng_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
35               : nes_nrom_device(mconfig, NES_BENSHIENG, "NES Cart Benshieng PCB", tag, owner, clock, "nes_benshieng", __FILE__)
36{
35               : nes_nrom_device(mconfig, NES_BENSHIENG, "NES Cart Benshieng PCB", tag, owner, clock, "nes_benshieng", __FILE__),
36   m_dipsetting(0)
37            {
3738}
3839
3940
trunk/src/devices/bus/nes/bootleg.cpp
r250239r250240
6666}
6767
6868nes_sc127_device::nes_sc127_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
69               : nes_nrom_device(mconfig, NES_SC127, "NES Cart SC-127 PCB", tag, owner, clock, "nes_sc127", __FILE__)
70{
69               : nes_nrom_device(mconfig, NES_SC127, "NES Cart SC-127 PCB", tag, owner, clock, "nes_sc127", __FILE__), m_irq_count(0), m_irq_enable(0)
70            {
7171}
7272
7373nes_mbaby_device::nes_mbaby_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
74               : nes_nrom_device(mconfig, NES_MARIOBABY, "NES Cart Mario Baby Bootleg PCB", tag, owner, clock, "nes_mbaby", __FILE__)
75{
74               : nes_nrom_device(mconfig, NES_MARIOBABY, "NES Cart Mario Baby Bootleg PCB", tag, owner, clock, "nes_mbaby", __FILE__), m_latch(0), m_irq_enable(0), irq_timer(nullptr)
75            {
7676}
7777
7878nes_asn_device::nes_asn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
79               : nes_nrom_device(mconfig, NES_ASN, "NES Cart Ai Senshi Nicol Bootleg PCB", tag, owner, clock, "nes_asn", __FILE__)
80{
79               : nes_nrom_device(mconfig, NES_ASN, "NES Cart Ai Senshi Nicol Bootleg PCB", tag, owner, clock, "nes_asn", __FILE__), m_latch(0)
80            {
8181}
8282
8383nes_smb3p_device::nes_smb3p_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
84               : nes_nrom_device(mconfig, NES_SMB3PIRATE, "NES Cart Super Mario Bros. 3 Pirate PCB", tag, owner, clock, "nes_smb3p", __FILE__)
85{
84               : nes_nrom_device(mconfig, NES_SMB3PIRATE, "NES Cart Super Mario Bros. 3 Pirate PCB", tag, owner, clock, "nes_smb3p", __FILE__), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr)
85            {
8686}
8787
8888nes_btl_dn_device::nes_btl_dn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
89               : nes_nrom_device(mconfig, NES_BTL_DNINJA, "NES Cart DragonNinja Pirate PCB", tag, owner, clock, "nes_btl_dn", __FILE__)
90{
89               : nes_nrom_device(mconfig, NES_BTL_DNINJA, "NES Cart DragonNinja Pirate PCB", tag, owner, clock, "nes_btl_dn", __FILE__), m_irq_count(0)
90            {
9191}
9292
9393nes_whirl2706_device::nes_whirl2706_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
94               : nes_nrom_device(mconfig, NES_WHIRLWIND_2706, "NES Cart Whirlwind 2706 PCB", tag, owner, clock, "nes_whirl2706", __FILE__)
95{
94               : nes_nrom_device(mconfig, NES_WHIRLWIND_2706, "NES Cart Whirlwind 2706 PCB", tag, owner, clock, "nes_whirl2706", __FILE__), m_latch(0)
95            {
9696}
9797
9898nes_smb2j_device::nes_smb2j_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
99               : nes_nrom_device(mconfig, NES_SMB2J, "NES Cart Super Mario Bros. 2 Jpn PCB", tag, owner, clock, "nes_smb2j", __FILE__)
100{
99               : nes_nrom_device(mconfig, NES_SMB2J, "NES Cart Super Mario Bros. 2 Jpn PCB", tag, owner, clock, "nes_smb2j", __FILE__), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr)
100            {
101101}
102102
103103nes_smb2ja_device::nes_smb2ja_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
104               : nes_nrom_device(mconfig, NES_SMB2JA, "NES Cart Super Mario Bros. 2 Jpn (Alt) PCB", tag, owner, clock, "nes_smb2ja", __FILE__)
105{
104               : nes_nrom_device(mconfig, NES_SMB2JA, "NES Cart Super Mario Bros. 2 Jpn (Alt) PCB", tag, owner, clock, "nes_smb2ja", __FILE__), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr)
105            {
106106}
107107
108108nes_smb2jb_device::nes_smb2jb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
109               : nes_nrom_device(mconfig, NES_SMB2JB, "NES Cart Super Mario Bros. 2 Jpn (Alt 2) PCB", tag, owner, clock, "nes_smb2jb", __FILE__)
110{
109               : nes_nrom_device(mconfig, NES_SMB2JB, "NES Cart Super Mario Bros. 2 Jpn (Alt 2) PCB", tag, owner, clock, "nes_smb2jb", __FILE__), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr)
110            {
111111}
112112
113113nes_09034a_device::nes_09034a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
114               : nes_nrom_device(mconfig, NES_09034A, "NES Cart 09-034A PCB", tag, owner, clock, "nes_09034a", __FILE__)
115{
114               : nes_nrom_device(mconfig, NES_09034A, "NES Cart 09-034A PCB", tag, owner, clock, "nes_09034a", __FILE__), m_reg(0)
115            {
116116}
117117
118118nes_tobidase_device::nes_tobidase_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
119               : nes_nrom_device(mconfig, NES_TOBIDASE, "NES Cart Tobidase Daisakusen Pirate PCB", tag, owner, clock, "nes_tobidase", __FILE__)
120{
119               : nes_nrom_device(mconfig, NES_TOBIDASE, "NES Cart Tobidase Daisakusen Pirate PCB", tag, owner, clock, "nes_tobidase", __FILE__), m_latch(0)
120            {
121121}
122122
123123nes_lh32_device::nes_lh32_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
124               : nes_nrom_device(mconfig, NES_LH32, "NES Cart LH-32 Pirate PCB", tag, owner, clock, "nes_lh32", __FILE__)
125{
124               : nes_nrom_device(mconfig, NES_LH32, "NES Cart LH-32 Pirate PCB", tag, owner, clock, "nes_lh32", __FILE__), m_latch(0)
125            {
126126}
127127
128128nes_lh10_device::nes_lh10_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
129               : nes_nrom_device(mconfig, NES_LH10, "NES Cart LH-10 Pirate PCB", tag, owner, clock, "nes_lh10", __FILE__)
130{
129               : nes_nrom_device(mconfig, NES_LH10, "NES Cart LH-10 Pirate PCB", tag, owner, clock, "nes_lh10", __FILE__), m_latch(0)
130            {
131131}
132132
133133nes_lh53_device::nes_lh53_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
134               : nes_nrom_device(mconfig, NES_LH53, "NES Cart LH-53 Pirate PCB", tag, owner, clock, "nes_lh53", __FILE__)
135{
134               : nes_nrom_device(mconfig, NES_LH53, "NES Cart LH-53 Pirate PCB", tag, owner, clock, "nes_lh53", __FILE__), m_irq_count(0), m_irq_enable(0), m_reg(0), irq_timer(nullptr)
135            {
136136}
137137
138138nes_2708_device::nes_2708_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
141141}
142142
143143nes_ac08_device::nes_ac08_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
144               : nes_nrom_device(mconfig, NES_AC08, "NES Cart AC08 Pirate PCB", tag, owner, clock, "nes_ac08", __FILE__)
145{
144               : nes_nrom_device(mconfig, NES_AC08, "NES Cart AC08 Pirate PCB", tag, owner, clock, "nes_ac08", __FILE__), m_latch(0)
145            {
146146}
147147
148148nes_unl_bb_device::nes_unl_bb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
156156}
157157
158158nes_shuiguan_device::nes_shuiguan_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
159               : nes_nrom_device(mconfig, NES_SHUIGUAN, "NES Cart Shui Guan Pipe Pirate PCB", tag, owner, clock, "nes_shuiguan", __FILE__)
160{
159               : nes_nrom_device(mconfig, NES_SHUIGUAN, "NES Cart Shui Guan Pipe Pirate PCB", tag, owner, clock, "nes_shuiguan", __FILE__), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr)
160            {
161161}
162162
163163
trunk/src/devices/bus/nes/camerica.cpp
r250239r250240
5252}
5353
5454nes_bf9096_device::nes_bf9096_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
55               : nes_nrom_device(mconfig, NES_BF9096, "NES Cart Camerica BF9096 PCB", tag, owner, clock, "nes_bf9096", __FILE__)
56{
55               : nes_nrom_device(mconfig, NES_BF9096, "NES Cart Camerica BF9096 PCB", tag, owner, clock, "nes_bf9096", __FILE__), m_bank_base(0), m_latch(0)
56            {
5757}
5858
5959nes_golden5_device::nes_golden5_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
60               : nes_nrom_device(mconfig, NES_GOLDEN5, "NES Cart Camerica Golden 5 PCB", tag, owner, clock, "nes_golden5", __FILE__)
61{
60               : nes_nrom_device(mconfig, NES_GOLDEN5, "NES Cart Camerica Golden 5 PCB", tag, owner, clock, "nes_golden5", __FILE__), m_bank_base(0), m_latch(0)
61            {
6262}
6363
6464
trunk/src/devices/bus/nes/cony.cpp
r250239r250240
4040
4141
4242nes_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)
43               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
44{
43               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source),
44   m_irq_count(0),
45   m_irq_enable(0),
46   irq_timer(nullptr),
47   m_latch1(0),
48   m_latch2(0),
49   m_extra1(0)
50            {
4551}
4652
4753nes_cony_device::nes_cony_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
48               : nes_nrom_device(mconfig, NES_CONY, "NES Cart Cony PCB", tag, owner, clock, "nes_cony", __FILE__)
49{
54               : nes_nrom_device(mconfig, NES_CONY, "NES Cart Cony PCB", tag, owner, clock, "nes_cony", __FILE__), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr), m_latch1(0), m_latch2(0), m_extra1(0)
55            {
5056}
5157
5258nes_yoko_device::nes_yoko_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
53               : nes_cony_device(mconfig, NES_YOKO, "NES Cart Yoko PCB", tag, owner, clock, "nes_yoko", __FILE__)
54{
59               : nes_cony_device(mconfig, NES_YOKO, "NES Cart Yoko PCB", tag, owner, clock, "nes_yoko", __FILE__), m_extra2(0)
60            {
5561}
5662
5763
trunk/src/devices/bus/nes/datach.cpp
r250239r250240
4545datach_cart_interface::datach_cart_interface(const machine_config &mconfig, device_t &device)
4646               : device_slot_card_interface(mconfig, device),
4747                  m_i2cmem(*this, "i2cmem"),
48                  m_rom(NULL)
49{
48                  m_rom(nullptr), m_bank(0)
49            {
5050}
5151
5252datach_cart_interface::~datach_cart_interface()
r250239r250240
7070nes_datach_slot_device::nes_datach_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7171                  device_t(mconfig, NES_DATACH_SLOT, "NES Datach Cartridge Slot", tag, owner, clock, "nes_datach_slot", __FILE__),
7272                  device_image_interface(mconfig, *this),
73                  device_slot_interface(mconfig, *this)
73                  device_slot_interface(mconfig, *this), m_cart(nullptr)
7474{
7575}
7676
r250239r250240
228228
229229
230230nes_datach_device::nes_datach_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
231               : nes_lz93d50_device(mconfig, NES_DATACH, "NES Cart Bandai Datach PCB", tag, owner, clock, "nes_datach", __FILE__),
231               : nes_lz93d50_device(mconfig, NES_DATACH, "NES Cart Bandai Datach PCB", tag, owner, clock, "nes_datach", __FILE__), m_datach_latch(0),
232232                  m_i2cmem(*this, "i2cmem"),
233233                  m_reader(*this, "datach"),
234                  m_subslot(*this, "datach_slot")
235{
234                  m_subslot(*this, "datach_slot"), m_i2c_dir(0), m_i2c_in_use(0), serial_timer(nullptr)
235            {
236236}
237237
238238
trunk/src/devices/bus/nes/disksys.cpp
r250239r250240
104104
105105
106106nes_disksys_device::nes_disksys_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
107               : nes_nrom_device(mconfig, NES_DISKSYS, "FC RAM Expansion + Disk System PCB", tag, owner, clock, "fc_disksys", __FILE__),
107               : nes_nrom_device(mconfig, NES_DISKSYS, "FC RAM Expansion + Disk System PCB", tag, owner, clock, "fc_disksys", __FILE__), m_2c33_rom(nullptr),
108108                  m_fds_data(NULL),
109                  m_disk(*this, FLOPPY_0),
110                  m_fds_sides(0)
111{
109                  m_disk(*this, FLOPPY_0), irq_timer(nullptr), m_irq_count(0), m_irq_count_latch(0), m_irq_enable(0), m_irq_transfer(0), m_fds_motor_on(0), m_fds_door_closed(0), m_fds_current_side(0), m_fds_head_position(0), m_fds_status0(0), m_read_mode(0), m_drive_ready(0),
110                  m_fds_sides(0), m_fds_last_side(0), m_fds_count(0)
111            {
112112}
113113
114114
trunk/src/devices/bus/nes/event.cpp
r250239r250240
3737
3838nes_event_device::nes_event_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3939               : nes_sxrom_device(mconfig, NES_EVENT, "NES Cart Event PCB", tag, owner, clock, "nes_event", __FILE__),
40                  m_dsw(*this, "DIPSW")
41{
40                  m_dsw(*this, "DIPSW"),
41   m_nwc_init(0),
42   event_timer(nullptr),
43   m_timer_count(0),
44   m_timer_on(0),
45   m_timer_enabled(0)
46            {
4247}
4348
4449
trunk/src/devices/bus/nes/ggenie.cpp
r250239r250240
3636
3737nes_ggenie_device::nes_ggenie_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3838               : nes_nrom_device(mconfig, NES_GGENIE, "NES Cart Game Genie PCB", tag, owner, clock, "nes_ggenie", __FILE__),
39                  m_ggslot(*this, "gg_slot")
40{
39                  m_ggslot(*this, "gg_slot"),
40   m_gg_bypass(0)
41            {
4142}
4243
4344
trunk/src/devices/bus/nes/henggedianzi.cpp
r250239r250240
5454}
5555
5656nes_hengg_shjy3_device::nes_hengg_shjy3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
57               : nes_nrom_device(mconfig, NES_HENGG_SHJY3, "NES Cart Henggedianzi Shen Hua Jian Yun III PCB", tag, owner, clock, "nes_hengg_shjy3", __FILE__)
58{
57               : nes_nrom_device(mconfig, NES_HENGG_SHJY3, "NES Cart Henggedianzi Shen Hua Jian Yun III PCB", tag, owner, clock, "nes_hengg_shjy3", __FILE__), m_irq_count(0), m_irq_count_latch(0), m_irq_enable(0), m_chr_mode(0)
58            {
5959}
6060
6161
trunk/src/devices/bus/nes/hosenkan.cpp
r250239r250240
3333
3434
3535nes_hosenkan_device::nes_hosenkan_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
36               : nes_nrom_device(mconfig, NES_HOSENKAN, "NES Cart HOSENKAN PCB", tag, owner, clock, "nes_hosenkan", __FILE__)
37{
36               : nes_nrom_device(mconfig, NES_HOSENKAN, "NES Cart HOSENKAN PCB", tag, owner, clock, "nes_hosenkan", __FILE__),
37   m_irq_count(0),
38   m_irq_count_latch(0),
39   m_irq_clear(0),
40   m_irq_enable(0),
41   m_latch(0)
42            {
3843}
3944
4045
trunk/src/devices/bus/nes/irem.cpp
r250239r250240
5858}
5959
6060nes_g101_device::nes_g101_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
61               : nes_nrom_device(mconfig, NES_G101, "NES Cart Irem G-101 PCB", tag, owner, clock, "nes_g101", __FILE__)
62{
61               : nes_nrom_device(mconfig, NES_G101, "NES Cart Irem G-101 PCB", tag, owner, clock, "nes_g101", __FILE__), m_latch(0)
62            {
6363}
6464
6565nes_h3001_device::nes_h3001_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
66               : nes_nrom_device(mconfig, NES_H3001, "NES Cart Irem H-3001 PCB", tag, owner, clock, "nes_h3001", __FILE__)
67{
66               : nes_nrom_device(mconfig, NES_H3001, "NES Cart Irem H-3001 PCB", tag, owner, clock, "nes_h3001", __FILE__), m_irq_count(0), m_irq_count_latch(0), m_irq_enable(0), irq_timer(nullptr)
67            {
6868}
6969
7070
trunk/src/devices/bus/nes/jaleco.cpp
r250239r250240
6868}
6969
7070nes_jf17_device::nes_jf17_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)
71               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
72{
71               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_latch(0)
72            {
7373}
7474
7575nes_jf17_device::nes_jf17_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
76               : nes_nrom_device(mconfig, NES_JF17, "NES Cart Jaleco JF-17 PCB", tag, owner, clock, "nes_jf17", __FILE__)
77{
76               : nes_nrom_device(mconfig, NES_JF17, "NES Cart Jaleco JF-17 PCB", tag, owner, clock, "nes_jf17", __FILE__), m_latch(0)
77            {
7878}
7979
8080nes_jf17_adpcm_device::nes_jf17_adpcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
100100}
101101
102102nes_ss88006_device::nes_ss88006_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)
103               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
104{
103               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_irq_count(0), m_irq_count_latch(0), m_irq_mode(0), m_irq_enable(0), irq_timer(nullptr), m_latch(0)
104            {
105105}
106106
107107nes_ss88006_device::nes_ss88006_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
108               : nes_nrom_device(mconfig, NES_SS88006, "NES Cart Jaleco SS88006 PCB", tag, owner, clock, "nes_ss88006", __FILE__)
109{
108               : nes_nrom_device(mconfig, NES_SS88006, "NES Cart Jaleco SS88006 PCB", tag, owner, clock, "nes_ss88006", __FILE__), m_irq_count(0), m_irq_count_latch(0), m_irq_mode(0), m_irq_enable(0), irq_timer(nullptr), m_latch(0)
109            {
110110}
111111
112112nes_ss88006_adpcm_device::nes_ss88006_adpcm_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)
trunk/src/devices/bus/nes/jy.cpp
r250239r250240
4343
4444
4545nes_jy_typea_device::nes_jy_typea_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)
46               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
47{
46               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_latch(0), m_extra_chr_bank(0), m_extra_chr_mask(0), m_bank_6000(0),
47   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)
48            {
4849}
4950
5051nes_jy_typea_device::nes_jy_typea_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
51               : nes_nrom_device(mconfig, NES_JY_TYPEA, "NES Cart JY Company Type A PCB", tag, owner, clock, "nes_jya", __FILE__)
52               : 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),
53   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),
54   m_irq_down(0), irq_timer(nullptr)
5255{
5356}
5457
trunk/src/devices/bus/nes/kaiser.cpp
r250239r250240
6363}
6464
6565nes_ks7022_device::nes_ks7022_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
66               : nes_nrom_device(mconfig, NES_KS7022, "NES Cart Kaiser KS-7022 PCB", tag, owner, clock, "nes_ks7022", __FILE__)
67{
66               : nes_nrom_device(mconfig, NES_KS7022, "NES Cart Kaiser KS-7022 PCB", tag, owner, clock, "nes_ks7022", __FILE__), m_latch(0)
67            {
6868}
6969
7070nes_ks7032_device::nes_ks7032_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)
71               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
72{
71               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_latch(0), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr)
72            {
7373}
7474
7575nes_ks7032_device::nes_ks7032_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
76               : nes_nrom_device(mconfig, NES_KS7032, "NES Cart Kaiser KS-7032 PCB", tag, owner, clock, "nes_ks7032", __FILE__)
77{
76               : nes_nrom_device(mconfig, NES_KS7032, "NES Cart Kaiser KS-7032 PCB", tag, owner, clock, "nes_ks7032", __FILE__), m_latch(0), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr)
77            {
7878}
7979
8080nes_ks202_device::nes_ks202_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
8383}
8484
8585nes_ks7017_device::nes_ks7017_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
86               : nes_nrom_device(mconfig, NES_KS7017, "NES Cart Kaiser KS-7017 PCB", tag, owner, clock, "nes_ks7017", __FILE__)
87{
86               : nes_nrom_device(mconfig, NES_KS7017, "NES Cart Kaiser KS-7017 PCB", tag, owner, clock, "nes_ks7017", __FILE__), m_latch(0), m_irq_count(0), m_irq_status(0), m_irq_enable(0), irq_timer(nullptr)
87            {
8888}
8989
9090nes_ks7012_device::nes_ks7012_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/nes/karastudio.cpp
r250239r250240
5252
5353kstudio_cart_interface::kstudio_cart_interface(const machine_config &mconfig, device_t &device)
5454               : device_slot_card_interface(mconfig, device),
55               m_rom(NULL)
56{
55               m_rom(nullptr), m_bank(0)
56            {
5757}
5858
5959kstudio_cart_interface::~kstudio_cart_interface()
r250239r250240
7474nes_kstudio_slot_device::nes_kstudio_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7575                     device_t(mconfig, NES_KSEXPANSION_SLOT, "NES Karaoke Studio Expansion Slot", tag, owner, clock, "nes_ks_slot", __FILE__),
7676                     device_image_interface(mconfig, *this),
77                     device_slot_interface(mconfig, *this)
77                     device_slot_interface(mconfig, *this), m_cart(nullptr)
7878{
7979}
8080
r250239r250240
188188
189189
190190nes_karaokestudio_device::nes_karaokestudio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
191               : nes_nrom_device(mconfig, NES_KARAOKESTUDIO, "NES Cart Bandai Karaoke Studio PCB", tag, owner, clock, "nes_karaoke", __FILE__),
191               : nes_nrom_device(mconfig, NES_KARAOKESTUDIO, "NES Cart Bandai Karaoke Studio PCB", tag, owner, clock, "nes_karaoke", __FILE__), m_exp_active(0),
192192               m_subslot(*this, "exp_slot"),
193193               m_mic_ipt(*this, "MIC")
194194{
trunk/src/devices/bus/nes/konami.cpp
r250239r250240
5757}
5858
5959nes_konami_vrc2_device::nes_konami_vrc2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
60               : nes_nrom_device(mconfig, NES_VRC2, "NES Cart Konami VRC-2 PCB", tag, owner, clock, "nes_vrc2", __FILE__)
61{
60               : nes_nrom_device(mconfig, NES_VRC2, "NES Cart Konami VRC-2 PCB", tag, owner, clock, "nes_vrc2", __FILE__), m_latch(0)
61            {
6262}
6363
6464nes_konami_vrc3_device::nes_konami_vrc3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
65               : nes_nrom_device(mconfig, NES_VRC3, "NES Cart Konami VRC-3 PCB", tag, owner, clock, "nes_vrc3", __FILE__)
66{
65               : nes_nrom_device(mconfig, NES_VRC3, "NES Cart Konami VRC-3 PCB", tag, owner, clock, "nes_vrc3", __FILE__), m_irq_count(0), m_irq_count_latch(0), m_irq_enable(0), m_irq_enable_latch(0), m_irq_mode(0), irq_timer(nullptr)
66            {
6767}
6868
6969nes_konami_vrc4_device::nes_konami_vrc4_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)
70               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
71{
70               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_latch(0), m_mmc_prg_bank(0), m_irq_count(0), m_irq_count_latch(0), m_irq_enable(0), m_irq_enable_latch(0), m_irq_mode(0), m_irq_prescale(0), irq_timer(nullptr)
71            {
7272}
7373
7474nes_konami_vrc4_device::nes_konami_vrc4_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
75               : nes_nrom_device(mconfig, NES_VRC4, "NES Cart Konami VRC-4 PCB", tag, owner, clock, "nes_vrc4", __FILE__)
76{
75               : nes_nrom_device(mconfig, NES_VRC4, "NES Cart Konami VRC-4 PCB", tag, owner, clock, "nes_vrc4", __FILE__), m_latch(0), m_mmc_prg_bank(0), m_irq_count(0), m_irq_count_latch(0), m_irq_enable(0), m_irq_enable_latch(0), m_irq_mode(0), m_irq_prescale(0), irq_timer(nullptr)
76            {
7777}
7878
7979nes_konami_vrc6_device::nes_konami_vrc6_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/nes/legacy.cpp
r250239r250240
4545}
4646
4747nes_ffe4_device::nes_ffe4_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)
48               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
49{
48               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr), m_latch(0), m_exram_enabled(0), m_exram_bank(0)
49            {
5050}
5151
5252nes_ffe4_device::nes_ffe4_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
53               : nes_nrom_device(mconfig, NES_FFE4, "NES Cart FFE-4 PCB", tag, owner, clock, "nes_ff4", __FILE__)
54{
53               : nes_nrom_device(mconfig, NES_FFE4, "NES Cart FFE-4 PCB", tag, owner, clock, "nes_ff4", __FILE__), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr), m_latch(0), m_exram_enabled(0), m_exram_bank(0)
54            {
5555}
5656
5757nes_ffe8_device::nes_ffe8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/nes/mmc1.cpp
r250239r250240
4040
4141
4242nes_sxrom_device::nes_sxrom_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)
43               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
44{
43               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_reg_write_enable(0), m_latch(0), m_count(0)
44            {
4545}
4646
4747nes_sxrom_device::nes_sxrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
48               : nes_nrom_device(mconfig, NES_SXROM, "NES Cart SxROM (MMC-1) PCB", tag, owner, clock, "nes_sxrom", __FILE__)
49{
48               : nes_nrom_device(mconfig, NES_SXROM, "NES Cart SxROM (MMC-1) PCB", tag, owner, clock, "nes_sxrom", __FILE__), m_reg_write_enable(0), m_latch(0), m_count(0)
49            {
5050}
5151
5252nes_sorom_device::nes_sorom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/nes/mmc2.cpp
r250239r250240
3333
3434
3535nes_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)
36               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
37{
36               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source),
37   m_latch1(0),
38   m_latch2(0)
39            {
3840}
3941
4042nes_pxrom_device::nes_pxrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
41               : nes_nrom_device(mconfig, NES_PXROM, "NES Cart PxROM (MMC-2) PCB", tag, owner, clock, "nes_pxrom", __FILE__)
42{
43               : nes_nrom_device(mconfig, NES_PXROM, "NES Cart PxROM (MMC-2) PCB", tag, owner, clock, "nes_pxrom", __FILE__), m_latch1(0), m_latch2(0)
44            {
4345}
4446
4547nes_fxrom_device::nes_fxrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/nes/mmc3.cpp
r250239r250240
5454
5555
5656nes_txrom_device::nes_txrom_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)
57               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
58{
57               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_prg_base(0), m_prg_mask(0), m_chr_base(0), m_chr_mask(0),
58   m_latch(0), m_wram_protect(0), m_alt_irq(0), m_irq_count(0), m_irq_count_latch(0), m_irq_clear(0), m_irq_enable(0)
59            {
5960}
6061
6162nes_txrom_device::nes_txrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
62               : nes_nrom_device(mconfig, NES_TXROM, "NES Cart TxROM (MMC-3) PCB", tag, owner, clock, "nes_txrom", __FILE__)
63{
63               : nes_nrom_device(mconfig, NES_TXROM, "NES Cart TxROM (MMC-3) PCB", tag, owner, clock, "nes_txrom", __FILE__), m_prg_base(0), m_prg_mask(0), m_chr_base(0), m_chr_mask(0),
64   m_latch(0), m_wram_protect(0), m_alt_irq(0), m_irq_count(0), m_irq_count_latch(0), m_irq_clear(0), m_irq_enable(0)
65            {
6466}
6567
6668nes_hkrom_device::nes_hkrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
67               : nes_txrom_device(mconfig, NES_HKROM, "NES Cart HKROM (MMC-6) PCB", tag, owner, clock, "nes_hkrom", __FILE__)
68{
69               : nes_txrom_device(mconfig, NES_HKROM, "NES Cart HKROM (MMC-6) PCB", tag, owner, clock, "nes_hkrom", __FILE__), m_wram_enable(0), m_mmc6_reg(0)
70            {
6971}
7072
7173nes_txsrom_device::nes_txsrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/nes/mmc3_clones.cpp
r250239r250240
9696}
9797
9898nes_8237_device::nes_8237_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
99               : nes_txrom_device(mconfig, NES_8237, "NES Cart UNL-8237 PCB", tag, owner, clock, "nes_8237", __FILE__)
100{
99               : nes_txrom_device(mconfig, NES_8237, "NES Cart UNL-8237 PCB", tag, owner, clock, "nes_8237", __FILE__), m_cd_enable(0)
100            {
101101}
102102
103103nes_sglionk_device::nes_sglionk_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
104               : nes_txrom_device(mconfig, NES_SG_LIONK, "NES Cart SuperGame Lion King PCB", tag, owner, clock, "nes_sglionk", __FILE__)
105{
104               : nes_txrom_device(mconfig, NES_SG_LIONK, "NES Cart SuperGame Lion King PCB", tag, owner, clock, "nes_sglionk", __FILE__), m_reg(0), m_reg_enabled(0)
105            {
106106}
107107
108108nes_sgboog_device::nes_sgboog_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
109               : nes_txrom_device(mconfig, NES_SG_BOOG, "NES Cart SuperGame BoogerMan PCB", tag, owner, clock, "nes_sgbooger", __FILE__)
110{
109               : nes_txrom_device(mconfig, NES_SG_BOOG, "NES Cart SuperGame BoogerMan PCB", tag, owner, clock, "nes_sgbooger", __FILE__), m_mode(0)
110            {
111111}
112112
113113nes_kasing_device::nes_kasing_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
114               : nes_txrom_device(mconfig, NES_KASING, "NES Cart Kasing PCB", tag, owner, clock, "nes_kasing", __FILE__)
115{
114               : nes_txrom_device(mconfig, NES_KASING, "NES Cart Kasing PCB", tag, owner, clock, "nes_kasing", __FILE__), m_reg(0)
115            {
116116}
117117
118118nes_kay_device::nes_kay_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
119               : nes_txrom_device(mconfig, NES_KAY, "NES Cart KAY PCB", tag, owner, clock, "nes_kay", __FILE__)
120{
119               : nes_txrom_device(mconfig, NES_KAY, "NES Cart KAY PCB", tag, owner, clock, "nes_kay", __FILE__), m_low_reg(0)
120            {
121121}
122122
123123nes_h2288_device::nes_h2288_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
126126}
127127
128128nes_6035052_device::nes_6035052_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
129               : nes_txrom_device(mconfig, NES_6035052, "NES Cart UNL-603-5052 PCB", tag, owner, clock, "nes_6035052", __FILE__)
130{
129               : nes_txrom_device(mconfig, NES_6035052, "NES Cart UNL-603-5052 PCB", tag, owner, clock, "nes_6035052", __FILE__), m_prot(0)
130            {
131131}
132132
133133nes_txc_tw_device::nes_txc_tw_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
156156}
157157
158158nes_sa9602b_device::nes_sa9602b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
159               : nes_txrom_device(mconfig, NES_SA9602B, "NES Cart SA-9602B PCB", tag, owner, clock, "nes_sa9602b", __FILE__)
160{
159               : nes_txrom_device(mconfig, NES_SA9602B, "NES Cart SA-9602B PCB", tag, owner, clock, "nes_sa9602b", __FILE__), m_reg(0), m_prg_chip(0)
160            {
161161}
162162
163163nes_sachen_shero_device::nes_sachen_shero_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
164               : nes_txrom_device(mconfig, NES_SACHEN_SHERO, "NES Cart Street Hero PCB", tag, owner, clock, "nes_shero", __FILE__)
165{
164               : nes_txrom_device(mconfig, NES_SACHEN_SHERO, "NES Cart Street Hero PCB", tag, owner, clock, "nes_shero", __FILE__), m_reg(0)
165            {
166166}
167167
168168//nes_a9746_device::nes_a9746_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
171171//}
172172
173173nes_fk23c_device::nes_fk23c_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)
174               : nes_txrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
175{
174               : nes_txrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_mmc_cmd1(0)
175            {
176176}
177177
178178nes_fk23c_device::nes_fk23c_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
179               : nes_txrom_device(mconfig, NES_FK23C, "NES Cart FK23C PCB", tag, owner, clock, "nes_fk23c", __FILE__)
180{
179               : nes_txrom_device(mconfig, NES_FK23C, "NES Cart FK23C PCB", tag, owner, clock, "nes_fk23c", __FILE__), m_mmc_cmd1(0)
180            {
181181}
182182
183183nes_fk23ca_device::nes_fk23ca_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
201201}
202202
203203nes_bmc_hik8_device::nes_bmc_hik8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
204               : nes_txrom_device(mconfig, NES_BMC_HIK8, "NES Cart BMC Super HIK 8 in 1 PCB", tag, owner, clock, "nes_bmc_hik8", __FILE__)
205{
204               : nes_txrom_device(mconfig, NES_BMC_HIK8, "NES Cart BMC Super HIK 8 in 1 PCB", tag, owner, clock, "nes_bmc_hik8", __FILE__), m_count(0)
205            {
206206}
207207
208208nes_bmc_hik4_device::nes_bmc_hik4_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
211211}
212212
213213nes_bmc_mario7in1_device::nes_bmc_mario7in1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
214               : nes_txrom_device(mconfig, NES_BMC_MARIO7IN1, "NES Cart BMC Mario 7 in 1 PCB", tag, owner, clock, "nes_bmc_mario7in1", __FILE__)
215{
214               : nes_txrom_device(mconfig, NES_BMC_MARIO7IN1, "NES Cart BMC Mario 7 in 1 PCB", tag, owner, clock, "nes_bmc_mario7in1", __FILE__), m_reg_written(0)
215            {
216216}
217217
218218nes_bmc_gold7in1_device::nes_bmc_gold7in1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
219               : nes_txrom_device(mconfig, NES_BMC_GOLD7IN1, "NES Cart BMC Golden 7 in 1 PCB", tag, owner, clock, "nes_bmc_gold7in1", __FILE__)
220{
219               : nes_txrom_device(mconfig, NES_BMC_GOLD7IN1, "NES Cart BMC Golden 7 in 1 PCB", tag, owner, clock, "nes_bmc_gold7in1", __FILE__), m_reg_written(0)
220            {
221221}
222222
223223nes_bmc_gc6in1_device::nes_bmc_gc6in1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
226226}
227227
228228nes_bmc_411120c_device::nes_bmc_411120c_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
229               : nes_txrom_device(mconfig, NES_BMC_411120C, "NES Cart BMC 411120C PCB", tag, owner, clock, "nes_bmc_411120c", __FILE__)
230{
229               : nes_txrom_device(mconfig, NES_BMC_411120C, "NES Cart BMC 411120C PCB", tag, owner, clock, "nes_bmc_411120c", __FILE__), m_reg(0)
230            {
231231}
232232
233233nes_bmc_830118c_device::nes_bmc_830118c_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
234               : nes_txrom_device(mconfig, NES_BMC_830118C, "NES Cart BMC 830118C PCB", tag, owner, clock, "nes_bmc_830118c", __FILE__)
235{
234               : nes_txrom_device(mconfig, NES_BMC_830118C, "NES Cart BMC 830118C PCB", tag, owner, clock, "nes_bmc_830118c", __FILE__), m_reg(0)
235            {
236236}
237237
238238nes_pjoy84_device::nes_pjoy84_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/nes/mmc5.cpp
r250239r250240
4545
4646
4747nes_exrom_device::nes_exrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
48               : nes_nrom_device(mconfig, NES_EXROM, "NES Cart ExROM (MMC-5) PCB", tag, owner, clock, "nes_exrom", __FILE__)
49{
48               : nes_nrom_device(mconfig, NES_EXROM, "NES Cart ExROM (MMC-5) PCB", tag, owner, clock, "nes_exrom", __FILE__), m_irq_count(0),
49   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),
50   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),
51   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)
52            {
5053}
5154
5255
trunk/src/devices/bus/nes/multigame.cpp
r250239r250240
8383}
8484
8585nes_caltron_device::nes_caltron_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
86               : nes_nrom_device(mconfig, NES_CALTRON6IN1, "NES Cart Caltron 6 in 1 PCB", tag, owner, clock, "nes_caltron", __FILE__)
87{
86               : nes_nrom_device(mconfig, NES_CALTRON6IN1, "NES Cart Caltron 6 in 1 PCB", tag, owner, clock, "nes_caltron", __FILE__), m_latch(0)
87            {
8888}
8989
9090nes_rumblestat_device::nes_rumblestat_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
91               : nes_nrom_device(mconfig, NES_RUMBLESTATION, "NES Cart Rumblestation PCB", tag, owner, clock, "nes_rumblestat", __FILE__)
92{
91               : nes_nrom_device(mconfig, NES_RUMBLESTATION, "NES Cart Rumblestation PCB", tag, owner, clock, "nes_rumblestat", __FILE__), m_prg(0), m_chr(0)
92            {
9393}
9494
9595nes_svision16_device::nes_svision16_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
96               : nes_nrom_device(mconfig, NES_SVISION16, "NES Cart Supervision 16 in 1 PCB", tag, owner, clock, "nes_svision16", __FILE__)
97{
96               : nes_nrom_device(mconfig, NES_SVISION16, "NES Cart Supervision 16 in 1 PCB", tag, owner, clock, "nes_svision16", __FILE__), m_latch1(0), m_latch2(0)
97            {
9898}
9999
100100nes_n625092_device::nes_n625092_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
101               : nes_nrom_device(mconfig, NES_N625092, "NES Cart N625092 PCB", tag, owner, clock, "nes_n625092", __FILE__)
102{
101               : nes_nrom_device(mconfig, NES_N625092, "NES Cart N625092 PCB", tag, owner, clock, "nes_n625092", __FILE__), m_latch1(0), m_latch2(0)
102            {
103103}
104104
105105nes_a65as_device::nes_a65as_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
108108}
109109
110110nes_t262_device::nes_t262_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
111               : nes_nrom_device(mconfig, NES_T262, "NES Cart T-262 PCB", tag, owner, clock, "nes_t262", __FILE__)
112{
111               : nes_nrom_device(mconfig, NES_T262, "NES Cart T-262 PCB", tag, owner, clock, "nes_t262", __FILE__), m_latch1(0), m_latch2(0)
112            {
113113}
114114
115115nes_novel1_device::nes_novel1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
133133}
134134
135135nes_vt5201_device::nes_vt5201_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
136               : nes_nrom_device(mconfig, NES_VT5201, "NES Cart VT5201 PCB", tag, owner, clock, "nes_vt5201", __FILE__)
137{
136               : nes_nrom_device(mconfig, NES_VT5201, "NES Cart VT5201 PCB", tag, owner, clock, "nes_vt5201", __FILE__), m_latch(0), m_dipsetting(0)
137            {
138138}
139139
140140nes_810544c_device::nes_810544c_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
148148}
149149
150150nes_bmc_gb63_device::nes_bmc_gb63_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
151               : nes_nrom_device(mconfig, NES_BMC_GB63, "NES Cart BMC Ghostbusters 63 in 1 PCB", tag, owner, clock, "nes_bmc_gb63", __FILE__)
152{
151               : nes_nrom_device(mconfig, NES_BMC_GB63, "NES Cart BMC Ghostbusters 63 in 1 PCB", tag, owner, clock, "nes_bmc_gb63", __FILE__), m_latch(0), m_dipsetting(0), m_vram_disable(0)
152            {
153153}
154154
155155nes_bmc_gka_device::nes_bmc_gka_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
156               : nes_nrom_device(mconfig, NES_BMC_GKA, "NES Cart BMC GK-A PCB", tag, owner, clock, "nes_bmc_gka", __FILE__)
157{
156               : nes_nrom_device(mconfig, NES_BMC_GKA, "NES Cart BMC GK-A PCB", tag, owner, clock, "nes_bmc_gka", __FILE__), m_latch1(0), m_latch2(0)
157            {
158158}
159159
160160nes_bmc_gkb_device::nes_bmc_gkb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
163163}
164164
165165nes_bmc_ws_device::nes_bmc_ws_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
166               : nes_nrom_device(mconfig, NES_BMC_WS, "NES Cart BMC WS PCB", tag, owner, clock, "nes_bmc_ws", __FILE__)
167{
166               : nes_nrom_device(mconfig, NES_BMC_WS, "NES Cart BMC WS PCB", tag, owner, clock, "nes_bmc_ws", __FILE__), m_latch(0)
167            {
168168}
169169
170170nes_bmc_11160_device::nes_bmc_11160_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
243243}
244244
245245nes_bmc_70in1_device::nes_bmc_70in1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
246               : nes_nrom_device(mconfig, NES_BMC_70IN1, "NES Cart BMC 70 in 1 PCB", tag, owner, clock, "nes_bmc_70in1", __FILE__)
247{
246               : nes_nrom_device(mconfig, NES_BMC_70IN1, "NES Cart BMC 70 in 1 PCB", tag, owner, clock, "nes_bmc_70in1", __FILE__), m_mode(0)
247            {
248248}
249249
250250nes_bmc_72in1_device::nes_bmc_72in1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
253253}
254254
255255nes_bmc_76in1_device::nes_bmc_76in1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
256               : nes_nrom_device(mconfig, NES_BMC_76IN1, "NES Cart BMC 76 in 1 PCB", tag, owner, clock, "nes_bmc_76in1", __FILE__)
257{
256               : nes_nrom_device(mconfig, NES_BMC_76IN1, "NES Cart BMC 76 in 1 PCB", tag, owner, clock, "nes_bmc_76in1", __FILE__), m_latch1(0), m_latch2(0)
257            {
258258}
259259
260260nes_bmc_110in1_device::nes_bmc_110in1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
273273}
274274
275275nes_bmc_800in1_device::nes_bmc_800in1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
276               : nes_nrom_device(mconfig, NES_BMC_800IN1, "NES Cart BMC 800 in 1 PCB", tag, owner, clock, "nes_bmc_800in1", __FILE__)
277{
276               : nes_nrom_device(mconfig, NES_BMC_800IN1, "NES Cart BMC 800 in 1 PCB", tag, owner, clock, "nes_bmc_800in1", __FILE__), m_mode(0)
277            {
278278}
279279
280280nes_bmc_1200in1_device::nes_bmc_1200in1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
281               : nes_nrom_device(mconfig, NES_BMC_1200IN1, "NES Cart BMC 1200 in 1 PCB", tag, owner, clock, "nes_bmc_1200in1", __FILE__)
282{
281               : nes_nrom_device(mconfig, NES_BMC_1200IN1, "NES Cart BMC 1200 in 1 PCB", tag, owner, clock, "nes_bmc_1200in1", __FILE__), m_vram_protect(0)
282            {
283283}
284284
285285nes_bmc_gold150_device::nes_bmc_gold150_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
286               : nes_nrom_device(mconfig, NES_BMC_GOLD150, "NES Cart BMC Golden 150 in 1 PCB", tag, owner, clock, "nes_bmc_gold150", __FILE__)
287{
286               : nes_nrom_device(mconfig, NES_BMC_GOLD150, "NES Cart BMC Golden 150 in 1 PCB", tag, owner, clock, "nes_bmc_gold150", __FILE__), m_latch(0)
287            {
288288}
289289
290290nes_bmc_gold260_device::nes_bmc_gold260_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
293293}
294294
295295nes_bmc_ch001_device::nes_bmc_ch001_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
296               : nes_nrom_device(mconfig, NES_BMC_CH001, "NES Cart BMC CH-001 PCB", tag, owner, clock, "nes_bmc_ch001", __FILE__)
297{
296               : nes_nrom_device(mconfig, NES_BMC_CH001, "NES Cart BMC CH-001 PCB", tag, owner, clock, "nes_bmc_ch001", __FILE__), m_latch(0)
297            {
298298}
299299
300300nes_bmc_super22_device::nes_bmc_super22_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
303303}
304304
305305nes_bmc_4in1reset_device::nes_bmc_4in1reset_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
306               : nes_nrom_device(mconfig, NES_BMC_4IN1RESET, "NES Cart BMC 4 in 1 (Reset Based) PCB", tag, owner, clock, "nes_bmc_4in1reset", __FILE__)
307{
306               : nes_nrom_device(mconfig, NES_BMC_4IN1RESET, "NES Cart BMC 4 in 1 (Reset Based) PCB", tag, owner, clock, "nes_bmc_4in1reset", __FILE__), m_latch(0)
307            {
308308}
309309
310310nes_bmc_42in1reset_device::nes_bmc_42in1reset_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
311               : nes_nrom_device(mconfig, NES_BMC_42IN1RESET, "NES Cart BMC 42 in 1 (Reset Based) PCB", tag, owner, clock, "nes_bmc_42in1reset", __FILE__)
312{
311               : nes_nrom_device(mconfig, NES_BMC_42IN1RESET, "NES Cart BMC 42 in 1 (Reset Based) PCB", tag, owner, clock, "nes_bmc_42in1reset", __FILE__), m_latch(0)
312            {
313313}
314314
315315
trunk/src/devices/bus/nes/namcot.cpp
r250239r250240
5050
5151
5252nes_namcot3433_device::nes_namcot3433_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)
53               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
54{
53               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_latch(0)
54            {
5555}
5656
5757nes_namcot3433_device::nes_namcot3433_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
58               : nes_nrom_device(mconfig, NES_NAMCOT3433, "NES Cart Namcot 3433 & 3443 / DxROM PCB", tag, owner, clock, "nes_namcot3433", __FILE__)
59{
58               : nes_nrom_device(mconfig, NES_NAMCOT3433, "NES Cart Namcot 3433 & 3443 / DxROM PCB", tag, owner, clock, "nes_namcot3433", __FILE__), m_latch(0)
59            {
6060}
6161
6262nes_namcot3446_device::nes_namcot3446_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
63               : nes_nrom_device(mconfig, NES_NAMCOT3446, "NES Cart Namcot 3446 PCB", tag, owner, clock, "nes_namcot3446", __FILE__)
64{
63               : nes_nrom_device(mconfig, NES_NAMCOT3446, "NES Cart Namcot 3446 PCB", tag, owner, clock, "nes_namcot3446", __FILE__), m_latch(0)
64            {
6565}
6666
6767nes_namcot3425_device::nes_namcot3425_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
68               : nes_nrom_device(mconfig, NES_NAMCOT3425, "NES Cart Namcot 3425 PCB", tag, owner, clock, "nes_namcot3425", __FILE__)
69{
68               : nes_nrom_device(mconfig, NES_NAMCOT3425, "NES Cart Namcot 3425 PCB", tag, owner, clock, "nes_namcot3425", __FILE__), m_latch(0)
69            {
7070}
7171
7272nes_namcot340_device::nes_namcot340_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)
73               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
74{
73               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr)
74            {
7575}
7676
7777nes_namcot340_device::nes_namcot340_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
78               : nes_nrom_device(mconfig, NES_NAMCOT175, "NES Cart Namcot 340 PCB", tag, owner, clock, "nes_namcot340", __FILE__)
79{
78               : nes_nrom_device(mconfig, NES_NAMCOT175, "NES Cart Namcot 340 PCB", tag, owner, clock, "nes_namcot340", __FILE__), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr)
79            {
8080}
8181
8282nes_namcot175_device::nes_namcot175_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
83               : nes_namcot340_device(mconfig, NES_NAMCOT340, "NES Cart Namcot 175 PCB", tag, owner, clock, "nes_namcot175", __FILE__)
84{
83               : nes_namcot340_device(mconfig, NES_NAMCOT340, "NES Cart Namcot 175 PCB", tag, owner, clock, "nes_namcot175", __FILE__), m_wram_protect(0)
84            {
8585}
8686
8787nes_namcot163_device::nes_namcot163_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
88               : nes_namcot340_device(mconfig, NES_NAMCOT163, "NES Cart Namcot 163 PCB", tag, owner, clock, "nes_namcot163", __FILE__)
89{
88               : nes_namcot340_device(mconfig, NES_NAMCOT163, "NES Cart Namcot 163 PCB", tag, owner, clock, "nes_namcot163", __FILE__), m_wram_protect(0), m_latch(0), m_chr_bank(0)
89            {
9090}
9191
9292
trunk/src/devices/bus/nes/nanjing.cpp
r250239r250240
3434
3535
3636nes_nanjing_device::nes_nanjing_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
37               : nes_nrom_device(mconfig, NES_NANJING, "NES Cart Nanjing PCB", tag, owner, clock, "nes_nanjing", __FILE__)
38{
37               : nes_nrom_device(mconfig, NES_NANJING, "NES Cart Nanjing PCB", tag, owner, clock, "nes_nanjing", __FILE__),
38   m_count(0),
39   m_latch1(0),
40   m_latch2(0)
41            {
3942}
4043
4144
trunk/src/devices/bus/nes/nes_slot.cpp
r250239r250240
110110                  m_vrom(NULL),
111111                  m_ciram(NULL),
112112                  m_prg_size(0),
113                  m_vrom_size(0),
113                  m_vrom_size(0), m_maincpu(nullptr),
114114                  m_mapper_sram(NULL),
115115                  m_mapper_sram_size(0),
116116                  m_ce_mask(0),
r250239r250240
746746                  device_t(mconfig, NES_CART_SLOT, "NES Cartridge Slot", tag, owner, clock, "nes_cart_slot", __FILE__),
747747                  device_image_interface(mconfig, *this),
748748                  device_slot_interface(mconfig, *this),
749                  m_crc_hack(0),
749                  m_crc_hack(0), m_cart(nullptr),
750750                  m_pcb_id(NO_BOARD),
751751                  m_must_be_loaded(1)
752752{
trunk/src/devices/bus/nes/ntdec.cpp
r250239r250240
3939
4040
4141nes_ntdec_asder_device::nes_ntdec_asder_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
42               : nes_nrom_device(mconfig, NES_NTDEC_ASDER, "NES Cart NTDEC Asder PCB", tag, owner, clock, "nes_ntdec_asder", __FILE__)
43{
42               : nes_nrom_device(mconfig, NES_NTDEC_ASDER, "NES Cart NTDEC Asder PCB", tag, owner, clock, "nes_ntdec_asder", __FILE__),
43   m_latch(0)
44            {
4445}
4546
4647nes_ntdec_fh_device::nes_ntdec_fh_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/nes/nxrom.cpp
r250239r250240
9292}
9393
9494nes_cnrom_device::nes_cnrom_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)
95               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
96{
95               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_chr_open_bus(0)
96            {
9797}
9898
9999nes_cnrom_device::nes_cnrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
100               : nes_nrom_device(mconfig, NES_CNROM, "NES Cart CNROM PCB", tag, owner, clock, "nes_cnrom", __FILE__)
101{
100               : nes_nrom_device(mconfig, NES_CNROM, "NES Cart CNROM PCB", tag, owner, clock, "nes_cnrom", __FILE__), m_chr_open_bus(0)
101            {
102102}
103103
104104nes_cprom_device::nes_cprom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/nes/pirate.cpp
r250239r250240
6464}
6565
6666nes_fukutake_device::nes_fukutake_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
67               : nes_nrom_device(mconfig, NES_FUKUTAKE, "NES Cart Fukutake Study Box PCB", tag, owner, clock, "nes_fukutake", __FILE__)
68{
67               : nes_nrom_device(mconfig, NES_FUKUTAKE, "NES Cart Fukutake Study Box PCB", tag, owner, clock, "nes_fukutake", __FILE__), m_latch(0)
68            {
6969}
7070
7171nes_futuremedia_device::nes_futuremedia_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
72               : nes_nrom_device(mconfig, NES_FUTUREMEDIA, "NES Cart FutureMedia PCB", tag, owner, clock, "nes_futuremedia", __FILE__)
73{
72               : nes_nrom_device(mconfig, NES_FUTUREMEDIA, "NES Cart FutureMedia PCB", tag, owner, clock, "nes_futuremedia", __FILE__), m_irq_count(0), m_irq_count_latch(0), m_irq_clear(0), m_irq_enable(0)
73            {
7474}
7575
7676nes_magseries_device::nes_magseries_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
104104}
105105
106106nes_edu2k_device::nes_edu2k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
107               : nes_nrom_device(mconfig, NES_EDU2K, "NES Cart Educational Computer 2000 PCB", tag, owner, clock, "nes_edu2k", __FILE__)
108{
107               : nes_nrom_device(mconfig, NES_EDU2K, "NES Cart Educational Computer 2000 PCB", tag, owner, clock, "nes_edu2k", __FILE__), m_latch(0)
108            {
109109}
110110
111111nes_t230_device::nes_t230_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
112               : nes_nrom_device(mconfig, NES_T230, "NES Cart T-230 PCB", tag, owner, clock, "nes_t230", __FILE__)
113{
112               : nes_nrom_device(mconfig, NES_T230, "NES Cart T-230 PCB", tag, owner, clock, "nes_t230", __FILE__), m_irq_count(0), m_irq_count_latch(0), m_irq_mode(0), m_irq_enable(0), m_irq_enable_latch(0)
113            {
114114}
115115
116116nes_mk2_device::nes_mk2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
117               : nes_nrom_device(mconfig, NES_MK2, "NES Cart Mortal Kombat 2 PCB", tag, owner, clock, "nes_mk2", __FILE__)
118{
117               : nes_nrom_device(mconfig, NES_MK2, "NES Cart Mortal Kombat 2 PCB", tag, owner, clock, "nes_mk2", __FILE__), m_irq_count(0), m_irq_count_latch(0), m_irq_clear(0), m_irq_enable(0)
118            {
119119}
120120
121121nes_whero_device::nes_whero_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
122               : nes_nrom_device(mconfig, NES_WHERO, "NES Cart World Heroes PCB", tag, owner, clock, "nes_whero", __FILE__)
123{
122               : nes_nrom_device(mconfig, NES_WHERO, "NES Cart World Heroes PCB", tag, owner, clock, "nes_whero", __FILE__), m_reg(0), m_irq_count(0), m_irq_count_latch(0), m_irq_enable(0), m_irq_enable_latch(0)
123            {
124124}
125125
126126nes_43272_device::nes_43272_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
127               : nes_nrom_device(mconfig, NES_43272, "NES Cart UNL-43272 PCB", tag, owner, clock, "nes_43272", __FILE__)
128{
127               : nes_nrom_device(mconfig, NES_43272, "NES Cart UNL-43272 PCB", tag, owner, clock, "nes_43272", __FILE__), m_latch(0)
128            {
129129}
130130
131131nes_tf1201_device::nes_tf1201_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
132               : nes_nrom_device(mconfig, NES_TF1201, "NES Cart UNL-TF1201 PCB", tag, owner, clock, "nes_tf1201", __FILE__)
133{
132               : nes_nrom_device(mconfig, NES_TF1201, "NES Cart UNL-TF1201 PCB", tag, owner, clock, "nes_tf1201", __FILE__), m_prg(0), m_swap(0), m_irq_count(0), m_irq_enable(0), m_irq_enable_latch(0)
133            {
134134}
135135
136136nes_cityfight_device::nes_cityfight_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
137               : nes_nrom_device(mconfig, NES_TF1201, "NES Cart City Fighter PCB", tag, owner, clock, "nes_cityfight", __FILE__)
138{
137               : nes_nrom_device(mconfig, NES_TF1201, "NES Cart City Fighter PCB", tag, owner, clock, "nes_cityfight", __FILE__), m_prg_reg(0), m_prg_mode(0), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr)
138            {
139139}
140140
141141
trunk/src/devices/bus/nes/racermate.cpp
r250239r250240
3636
3737
3838nes_racermate_device::nes_racermate_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
39               : nes_nrom_device(mconfig, NES_RACERMATE, "NES Cart Racermate PCB", tag, owner, clock, "nes_racermate", __FILE__)
40{
39               : nes_nrom_device(mconfig, NES_RACERMATE, "NES Cart Racermate PCB", tag, owner, clock, "nes_racermate", __FILE__),
40   m_latch(0)
41            {
4142}
4243
4344
trunk/src/devices/bus/nes/rcm.cpp
r250239r250240
6767}
6868
6969nes_3dblock_device::nes_3dblock_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
70               : nes_nrom_device(mconfig, NES_3DBLOCK, "NES Cart RCM 3D Block PCB", tag, owner, clock, "nes_3dblock", __FILE__)
71{
70               : nes_nrom_device(mconfig, NES_3DBLOCK, "NES Cart RCM 3D Block PCB", tag, owner, clock, "nes_3dblock", __FILE__), m_irq_count(0)
71            {
7272}
7373
7474
trunk/src/devices/bus/nes/rexsoft.cpp
r250239r250240
4040
4141
4242nes_rex_dbz5_device::nes_rex_dbz5_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
43               : nes_txrom_device(mconfig, NES_REX_DBZ5, "NES Cart Rex Soft DragonBall Z V PCB", tag, owner, clock, "nes_rex_dbz5", __FILE__)
44{
43               : nes_txrom_device(mconfig, NES_REX_DBZ5, "NES Cart Rex Soft DragonBall Z V PCB", tag, owner, clock, "nes_rex_dbz5", __FILE__),
44   m_extra(0)
45            {
4546}
4647
4748nes_rex_sl1632_device::nes_rex_sl1632_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
48               : nes_txrom_device(mconfig, NES_REX_SL1632, "NES Cart Rex Soft SL-1632 PCB", tag, owner, clock, "nes_rex_sl1632", __FILE__)
49{
49               : nes_txrom_device(mconfig, NES_REX_SL1632, "NES Cart Rex Soft SL-1632 PCB", tag, owner, clock, "nes_rex_sl1632", __FILE__), m_mode(0), m_mirror(0)
50            {
5051}
5152
5253
trunk/src/devices/bus/nes/sachen.cpp
r250239r250240
9696}
9797
9898nes_sachen_tcu02_device::nes_sachen_tcu02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
99               : nes_nrom_device(mconfig, NES_SACHEN_TCU02, "NES Cart Sachen TCU-02 PCB", tag, owner, clock, "nes_tcu02", __FILE__)
100{
99               : nes_nrom_device(mconfig, NES_SACHEN_TCU02, "NES Cart Sachen TCU-02 PCB", tag, owner, clock, "nes_tcu02", __FILE__), m_latch(0)
100            {
101101}
102102
103103nes_sachen_74x374_device::nes_sachen_74x374_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)
104               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
105{
104               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_latch(0), m_mmc_vrom_bank(0)
105            {
106106}
107107
108108nes_sachen_74x374_device::nes_sachen_74x374_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
109               : nes_nrom_device(mconfig, NES_SACHEN_74X374, "NES Cart Sachen 74*374 PCB", tag, owner, clock, "nes_s74x34", __FILE__)
110{
109               : nes_nrom_device(mconfig, NES_SACHEN_74X374, "NES Cart Sachen 74*374 PCB", tag, owner, clock, "nes_s74x34", __FILE__), m_latch(0), m_mmc_vrom_bank(0)
110            {
111111}
112112
113113nes_sachen_74x374_alt_device::nes_sachen_74x374_alt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/nes/somari.cpp
r250239r250240
4040
4141
4242nes_somari_device::nes_somari_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
43               : nes_txrom_device(mconfig, NES_SOMARI, "NES Cart Team Somari PCB", tag, owner, clock, "nes_somari", __FILE__)
44{
43               : nes_txrom_device(mconfig, NES_SOMARI, "NES Cart Team Somari PCB", tag, owner, clock, "nes_somari", __FILE__),
44   m_board_mode(0),
45   m_mmc3_mirror_reg(0),
46   m_count(0),
47   m_mmc1_latch(0),
48   m_vrc_mirror_reg(0)
49            {
4550}
4651
4752
trunk/src/devices/bus/nes/sunsoft.cpp
r250239r250240
5959}
6060
6161nes_sunsoft_3_device::nes_sunsoft_3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
62               : nes_nrom_device(mconfig, NES_SUNSOFT_3, "NES Cart Sunsoft 3 PCB", tag, owner, clock, "nes_sun3", __FILE__)
63{
62               : nes_nrom_device(mconfig, NES_SUNSOFT_3, "NES Cart Sunsoft 3 PCB", tag, owner, clock, "nes_sun3", __FILE__), m_irq_count(0), m_irq_enable(0), m_irq_toggle(0), irq_timer(nullptr)
63            {
6464}
6565
6666nes_sunsoft_4_device::nes_sunsoft_4_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)
67               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
68{
67               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_reg(0), m_latch1(0), m_latch2(0), m_wram_enable(0)
68            {
6969}
7070
7171nes_sunsoft_4_device::nes_sunsoft_4_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
72               : nes_nrom_device(mconfig, NES_SUNSOFT_4, "NES Cart Sunsoft 4 PCB", tag, owner, clock, "nes_sun4", __FILE__)
73{
72               : nes_nrom_device(mconfig, NES_SUNSOFT_4, "NES Cart Sunsoft 4 PCB", tag, owner, clock, "nes_sun4", __FILE__), m_reg(0), m_latch1(0), m_latch2(0), m_wram_enable(0)
73            {
7474}
7575
7676nes_sunsoft_fme7_device::nes_sunsoft_fme7_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)
77               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
78{
77               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr), m_latch(0), m_wram_bank(0)
78            {
7979}
8080
8181nes_sunsoft_fme7_device::nes_sunsoft_fme7_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
82               : nes_nrom_device(mconfig, NES_SUNSOFT_4, "NES Cart Sunsoft FME7 PCB", tag, owner, clock, "nes_fme7", __FILE__)
83{
82               : nes_nrom_device(mconfig, NES_SUNSOFT_4, "NES Cart Sunsoft FME7 PCB", tag, owner, clock, "nes_fme7", __FILE__), m_irq_count(0), m_irq_enable(0), irq_timer(nullptr), m_latch(0), m_wram_bank(0)
83            {
8484}
8585
8686nes_sunsoft_5_device::nes_sunsoft_5_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/nes/sunsoft_dcs.cpp
r250239r250240
5353nes_ntb_slot_device::nes_ntb_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5454                  device_t(mconfig, NES_NTB_SLOT, "NES NTB Cartridge Slot", tag, owner, clock, "nes_ntb_slot", __FILE__),
5555                  device_image_interface(mconfig, *this),
56                  device_slot_interface(mconfig, *this)
56                  device_slot_interface(mconfig, *this), m_cart(nullptr)
5757{
5858}
5959
r250239r250240
163163
164164
165165nes_sunsoft_dcs_device::nes_sunsoft_dcs_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
166               : nes_sunsoft_4_device(mconfig, NES_SUNSOFT_DCS, "NES Cart Sunsoft DCS PCB", tag, owner, clock, "nes_dcs", __FILE__),
167                  m_subslot(*this, "ntb_slot")
168{
166               : nes_sunsoft_4_device(mconfig, NES_SUNSOFT_DCS, "NES Cart Sunsoft DCS PCB", tag, owner, clock, "nes_dcs", __FILE__), m_timer_on(0), m_exrom_enable(0),
167                  m_subslot(*this, "ntb_slot"), ntb_enable_timer(nullptr)
168            {
169169}
170170
171171
trunk/src/devices/bus/nes/taito.cpp
r250239r250240
5858}
5959
6060nes_tc0190fmc_pal16r4_device::nes_tc0190fmc_pal16r4_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
61               : nes_tc0190fmc_device(mconfig, NES_TC0190FMC_PAL16R4, "NES Cart Taito TC0190FMC + PAL16R4 PCB", tag, owner, clock, "nes_tc0190pal", __FILE__)
62{
61               : nes_tc0190fmc_device(mconfig, NES_TC0190FMC_PAL16R4, "NES Cart Taito TC0190FMC + PAL16R4 PCB", tag, owner, clock, "nes_tc0190pal", __FILE__), m_irq_count(0), m_irq_count_latch(0), m_irq_enable(0)
62            {
6363}
6464
6565nes_x1_005_device::nes_x1_005_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
66               : nes_nrom_device(mconfig, NES_X1_005, "NES Cart Taito X1-005 PCB", tag, owner, clock, "nes_x1_005", __FILE__)
67{
66               : nes_nrom_device(mconfig, NES_X1_005, "NES Cart Taito X1-005 PCB", tag, owner, clock, "nes_x1_005", __FILE__), m_latch(0)
67            {
6868}
6969
7070nes_x1_017_device::nes_x1_017_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
71               : nes_nrom_device(mconfig, NES_X1_017, "NES Cart Taito X1-017 PCB", tag, owner, clock, "nes_x1_017", __FILE__)
72{
71               : nes_nrom_device(mconfig, NES_X1_017, "NES Cart Taito X1-017 PCB", tag, owner, clock, "nes_x1_017", __FILE__), m_latch(0)
72            {
7373}
7474
7575
trunk/src/devices/bus/nes/tengen.cpp
r250239r250240
4949}
5050
5151nes_tengen032_device::nes_tengen032_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)
52               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source)
53{
52               : nes_nrom_device(mconfig, type, name, tag, owner, clock, shortname, source), m_irq_count(0), m_irq_count_latch(0), m_irq_mode(0), m_irq_reset(0), m_irq_enable(0), m_latch(0), irq_timer(nullptr)
53            {
5454}
5555
5656nes_tengen032_device::nes_tengen032_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
57               : nes_nrom_device(mconfig, NES_TENGEN_800032, "NES Cart Tengen 800032 PCB", tag, owner, clock, "nes_tengen032", __FILE__)
57               : nes_nrom_device(mconfig, NES_TENGEN_800032, "NES Cart Tengen 800032 PCB", tag, owner, clock, "nes_tengen032", __FILE__), m_irq_count(0), m_irq_count_latch(0), m_irq_mode(0), m_irq_reset(0), m_irq_enable(0), m_latch(0), irq_timer(nullptr)
5858{
5959}
6060
trunk/src/devices/bus/nes/waixing.cpp
r250239r250240
132132}
133133
134134nes_waixing_sec_device::nes_waixing_sec_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
135               : nes_txrom_device(mconfig, NES_WAIXING_SEC, "NES Cart Waixing Security Chip PCB", tag, owner, clock, "nes_waixing_sec", __FILE__)
136{
135               : nes_txrom_device(mconfig, NES_WAIXING_SEC, "NES Cart Waixing Security Chip PCB", tag, owner, clock, "nes_waixing_sec", __FILE__), m_reg(0)
136            {
137137}
138138
139139nes_waixing_sgz_device::nes_waixing_sgz_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
140               : nes_nrom_device(mconfig, NES_WAIXING_SGZ, "NES Cart Waixing San Guo Zhi PCB", tag, owner, clock, "nes_waixing_sgz", __FILE__)
141{
140               : nes_nrom_device(mconfig, NES_WAIXING_SGZ, "NES Cart Waixing San Guo Zhi PCB", tag, owner, clock, "nes_waixing_sgz", __FILE__), m_irq_count(0), m_irq_count_latch(0), m_irq_enable(0), m_irq_enable_latch(0)
141            {
142142}
143143
144144nes_waixing_sgzlz_device::nes_waixing_sgzlz_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
145               : nes_nrom_device(mconfig, NES_WAIXING_SGZLZ, "NES Cart Waixing San Guo Zhong Lie Zhuan PCB", tag, owner, clock, "nes_waixing_sgzlz", __FILE__)
146{
145               : nes_nrom_device(mconfig, NES_WAIXING_SGZLZ, "NES Cart Waixing San Guo Zhong Lie Zhuan PCB", tag, owner, clock, "nes_waixing_sgzlz", __FILE__), m_latch(0)
146            {
147147}
148148
149149nes_waixing_ffv_device::nes_waixing_ffv_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/nes_ctrl/4score.cpp
r250239r250240
112112
113113nes_4score_device::nes_4score_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)
114114               : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
115                  device_nes_control_port_interface(mconfig, *this)
116{
115                  device_nes_control_port_interface(mconfig, *this), m_latch(0)
116            {
117117}
118118
119119nes_4score_p1p3_device::nes_4score_p1p3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
trunk/src/devices/bus/nes_ctrl/arkpaddle.cpp
r250239r250240
4848               : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
4949                  device_nes_control_port_interface(mconfig, *this),
5050                  m_paddle(*this, "PADDLE"),
51                  m_button(*this, "BUTTON")
52{
51                  m_button(*this, "BUTTON"), m_start_conv(0), m_latch(0)
52            {
5353}
5454
5555nes_vaus_device::nes_vaus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5656               device_t(mconfig, NES_ARKPADDLE, "NES Arkanoid Vaus Controller", tag, owner, clock, "nes_vaus", __FILE__),
5757               device_nes_control_port_interface(mconfig, *this),
5858               m_paddle(*this, "PADDLE"),
59               m_button(*this, "BUTTON")
59               m_button(*this, "BUTTON"), m_start_conv(0), m_latch(0)
6060{
6161}
6262
trunk/src/devices/bus/nes_ctrl/bcbattle.cpp
r250239r250240
8484nes_bcbattle_device::nes_bcbattle_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
8585               device_t(mconfig, NES_BARCODE_BATTLER, "Epoch Barcode Battler (FC)", tag, owner, clock, "nes_bcbattle", __FILE__),
8686               device_nes_control_port_interface(mconfig, *this),
87               m_reader(*this, "battler")
87               m_reader(*this, "battler"), m_pending_code(0), m_new_code(0), m_transmitting(0), m_cur_bit(0), m_cur_byte(0), battler_timer(nullptr)
8888{
8989}
9090
trunk/src/devices/bus/nes_ctrl/ctrl.cpp
r250239r250240
102102
103103nes_control_port_device::nes_control_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
104104                  device_t(mconfig, NES_CONTROL_PORT, "Nintendo NES/FC control port", tag, owner, clock, "nes_control_port", __FILE__),
105                  device_slot_interface(mconfig, *this)
105                  device_slot_interface(mconfig, *this), m_device(nullptr)
106106{
107107}
108108
trunk/src/devices/bus/nes_ctrl/fckeybrd.cpp
r250239r250240
148148               device_t(mconfig, NES_FCKEYBOARD, "Nintendo Family Computer Keyboard Component", tag, owner, clock, "nes_fckeybrd", __FILE__),
149149               device_nes_control_port_interface(mconfig, *this),
150150               m_cassette(*this, "tape"),
151               m_kbd(*this, "FCKEY")
151               m_kbd(*this, "FCKEY"), m_fck_scan(0), m_fck_mode(0)
152152{
153153}
154154
trunk/src/devices/bus/nes_ctrl/ftrainer.cpp
r250239r250240
8686nes_ftrainer_device::nes_ftrainer_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
8787               device_t(mconfig, NES_FTRAINER, "Bandai Family Trainer", tag, owner, clock, "nes_famtrain", __FILE__),
8888               device_nes_control_port_interface(mconfig, *this),
89               m_trainer(*this, "FT_COL")
89               m_trainer(*this, "FT_COL"), m_row_scan(0)
9090{
9191}
9292
trunk/src/devices/bus/nes_ctrl/joypad.cpp
r250239r250240
176176nes_joypad_device::nes_joypad_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) :
177177               device_t(mconfig, type, name, tag, owner, clock, shortname, source),
178178               device_nes_control_port_interface(mconfig, *this),
179               m_joypad(*this, "JOYPAD")
179               m_joypad(*this, "JOYPAD"), m_latch(0)
180180{
181181}
182182
183183nes_joypad_device::nes_joypad_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
184184               device_t(mconfig, NES_JOYPAD, "Nintendo NES / FC Control Pad", tag, owner, clock, "nes_joypad", __FILE__),
185185               device_nes_control_port_interface(mconfig, *this),
186               m_joypad(*this, "JOYPAD")
186               m_joypad(*this, "JOYPAD"), m_latch(0)
187187{
188188}
189189
trunk/src/devices/bus/nes_ctrl/konamihs.cpp
r250239r250240
4646               device_t(mconfig, NES_KONAMIHS, "Konami Hyper Shot Controller", tag, owner, clock, "nes_konamihs", __FILE__),
4747               device_nes_control_port_interface(mconfig, *this),
4848               m_ipt_p1(*this, "P1"),
49               m_ipt_p2(*this, "P2")
49               m_ipt_p2(*this, "P2"), m_latch_p1(0), m_latch_p2(0)
5050{
5151}
5252
trunk/src/devices/bus/nes_ctrl/miracle.cpp
r250239r250240
6363               device_serial_interface(mconfig, *this),
6464               device_nes_control_port_interface(mconfig, *this),
6565               m_midiin(*this, "mdin"),
66               m_midiout(*this, "mdout")
66               m_midiout(*this, "mdout"), strobe_timer(nullptr), m_strobe_on(0), m_midi_mode(0), m_sent_bits(0), m_strobe_clock(0),
67               m_data_sent(0), m_xmit_read(0), m_xmit_write(0), m_recv_read(0), m_recv_write(0), m_tx_busy(false), m_read_status(false), m_status_bit(false)
6768{
6869}
6970
trunk/src/devices/bus/nes_ctrl/mjpanel.cpp
r250239r250240
7272nes_mjpanel_device::nes_mjpanel_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7373               device_t(mconfig, NES_MJPANEL, "Famicom Mahjong Panel", tag, owner, clock, "nes_mjpanel", __FILE__),
7474               device_nes_control_port_interface(mconfig, *this),
75               m_panel(*this, "MJPANEL")
75               m_panel(*this, "MJPANEL"), m_latch(0)
7676{
7777}
7878
trunk/src/devices/bus/nes_ctrl/pachinko.cpp
r250239r250240
5151               device_t(mconfig, NES_PACHINKO, "Famicom Pachinko Controller", tag, owner, clock, "nes_pachinko", __FILE__),
5252               device_nes_control_port_interface(mconfig, *this),
5353               m_joypad(*this, "JOYPAD"),
54               m_trigger(*this, "TRIGGER")
54               m_trigger(*this, "TRIGGER"), m_latch(0)
5555{
5656}
5757
trunk/src/devices/bus/nes_ctrl/partytap.cpp
r250239r250240
4646nes_partytap_device::nes_partytap_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4747               device_t(mconfig, NES_PARTYTAP, "Yonezawa Party Tap Controller", tag, owner, clock, "nes_partytap", __FILE__),
4848               device_nes_control_port_interface(mconfig, *this),
49               m_inputs(*this, "INPUTS")
49               m_inputs(*this, "INPUTS"), m_mode(0), m_latch(0)
5050{
5151}
5252
trunk/src/devices/bus/nes_ctrl/suborkey.cpp
r250239r250240
163163nes_suborkey_device::nes_suborkey_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
164164               device_t(mconfig, NES_SUBORKEYBOARD, "Subor FC Keyboard", tag, owner, clock, "nes_suborkey", __FILE__),
165165               device_nes_control_port_interface(mconfig, *this),
166               m_kbd(*this, "SUBOR")
166               m_kbd(*this, "SUBOR"), m_fck_scan(0), m_fck_mode(0)
167167{
168168}
169169
trunk/src/devices/bus/nubus/nubus.cpp
r250239r250240
2828//-------------------------------------------------
2929nubus_slot_device::nubus_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030      device_t(mconfig, NUBUS_SLOT, "NUBUS_SLOT", tag, owner, clock, "nubus_slot", __FILE__),
31      device_slot_interface(mconfig, *this)
31      device_slot_interface(mconfig, *this),
32   m_nubus_tag(nullptr),
33   m_nubus_slottag(nullptr)
3234{
3335}
3436
3537nubus_slot_device::nubus_slot_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) :
3638      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
37      device_slot_interface(mconfig, *this)
39      device_slot_interface(mconfig, *this), m_nubus_tag(nullptr), m_nubus_slottag(nullptr)
3840{
3941}
4042
r250239r250240
7779//-------------------------------------------------
7880
7981nubus_device::nubus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
80      device_t(mconfig, NUBUS, "NUBUS", tag, owner, clock, "nubus", __FILE__),
82      device_t(mconfig, NUBUS, "NUBUS", tag, owner, clock, "nubus", __FILE__), m_maincpu(nullptr),
8183      m_out_irq9_cb(*this),
8284      m_out_irqa_cb(*this),
8385      m_out_irqb_cb(*this),
8486      m_out_irqc_cb(*this),
8587      m_out_irqd_cb(*this),
86      m_out_irqe_cb(*this)
88      m_out_irqe_cb(*this), m_cputag(nullptr)
8789{
8890}
8991
9092nubus_device::nubus_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) :
91      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
93      device_t(mconfig, type, name, tag, owner, clock, shortname, source), m_maincpu(nullptr),
9294      m_out_irq9_cb(*this),
9395      m_out_irqa_cb(*this),
9496      m_out_irqb_cb(*this),
9597      m_out_irqc_cb(*this),
9698      m_out_irqd_cb(*this),
97      m_out_irqe_cb(*this)
99      m_out_irqe_cb(*this), m_cputag(nullptr)
98100{
99101}
100102//-------------------------------------------------
r250239r250240
256258
257259device_nubus_card_interface::device_nubus_card_interface(const machine_config &mconfig, device_t &device)
258260   : device_slot_card_interface(mconfig, device),
259      m_nubus(NULL),
260      m_nubus_tag(NULL)
261      m_nubus(nullptr),
262      m_nubus_tag(nullptr), m_nubus_slottag(nullptr), m_slot(0), m_next(nullptr)
261263{
262264}
263265
trunk/src/devices/bus/nubus/nubus_48gc.cpp
r250239r250240
7979jmfb_device::jmfb_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) :
8080      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
8181      device_video_interface(mconfig, *this),
82      device_nubus_card_interface(mconfig, *this)
82      device_nubus_card_interface(mconfig, *this), m_screen(nullptr), m_timer(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_stride(0), m_base(0), m_count(0), m_clutoffs(0), m_xres(0), m_yres(0), m_is824(false)
8383{
8484   m_assembled_tag = std::string(tag).append(":").append(GC48_SCREEN_NAME);
8585   m_screen_tag = m_assembled_tag.c_str();
trunk/src/devices/bus/nubus/nubus_cb264.cpp
r250239r250240
7171
7272nubus_cb264_device::nubus_cb264_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7373      device_t(mconfig, NUBUS_CB264, "RasterOps ColorBoard 264 video card", tag, owner, clock, "nb_cb264", __FILE__),
74      device_nubus_card_interface(mconfig, *this)
74      device_nubus_card_interface(mconfig, *this), m_cb264_mode(0), m_cb264_vbl_disable(0), m_cb264_toggle(0), m_count(0), m_clutoffs(0)
7575{
7676}
7777
7878nubus_cb264_device::nubus_cb264_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) :
7979      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
80      device_nubus_card_interface(mconfig, *this)
80      device_nubus_card_interface(mconfig, *this), m_cb264_mode(0), m_cb264_vbl_disable(0), m_cb264_toggle(0), m_count(0), m_clutoffs(0)
8181{
8282}
8383
trunk/src/devices/bus/nubus/nubus_image.cpp
r250239r250240
7070
7171messimg_disk_image_device::messimg_disk_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
7272   : device_t(mconfig, MESSIMG_DISK, "Mac image", tag, owner, clock, "messimg_disk_image", __FILE__),
73      device_image_interface(mconfig, *this)
73      device_image_interface(mconfig, *this), m_size(0), m_data(nullptr), m_ejected(false)
7474{
7575}
7676
r250239r250240
175175
176176nubus_image_device::nubus_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
177177      device_t(mconfig, NUBUS_IMAGE, "Disk Image Pseudo-Card", tag, owner, clock, "nb_image", __FILE__),
178      device_nubus_card_interface(mconfig, *this)
178      device_nubus_card_interface(mconfig, *this), m_image(nullptr)
179179{
180180}
181181
182182nubus_image_device::nubus_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) :
183183      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
184      device_nubus_card_interface(mconfig, *this)
184      device_nubus_card_interface(mconfig, *this), m_image(nullptr)
185185{
186186}
187187
trunk/src/devices/bus/nubus/nubus_m2hires.cpp
r250239r250240
6868nubus_m2hires_device::nubus_m2hires_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6969      device_t(mconfig, NUBUS_M2HIRES, "Macintosh II Hi-Resolution video card", tag, owner, clock, "nb_m2hr", __FILE__),
7070      device_video_interface(mconfig, *this),
71      device_nubus_card_interface(mconfig, *this)
71      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
7272{
7373   m_assembled_tag = std::string(tag).append(":").append(M2HIRES_SCREEN_NAME);
7474   m_screen_tag = m_assembled_tag.c_str();
r250239r250240
7777nubus_m2hires_device::nubus_m2hires_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) :
7878      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
7979      device_video_interface(mconfig, *this),
80      device_nubus_card_interface(mconfig, *this)
80      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
8181{
8282   m_assembled_tag = std::string(tag).append(":").append(M2HIRES_SCREEN_NAME);
8383   m_screen_tag = m_assembled_tag.c_str();
trunk/src/devices/bus/nubus/nubus_m2video.cpp
r250239r250240
6969nubus_m2video_device::nubus_m2video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7070      device_t(mconfig, NUBUS_M2VIDEO, "Macintosh II Video Card", tag, owner, clock, "nb_m2vc", __FILE__),
7171      device_video_interface(mconfig, *this),
72      device_nubus_card_interface(mconfig, *this)
72      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
7373{
7474   m_assembled_tag = std::string(tag).append(":").append(M2VIDEO_SCREEN_NAME);
7575   m_screen_tag = m_assembled_tag.c_str();
r250239r250240
7878nubus_m2video_device::nubus_m2video_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) :
7979      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
8080      device_video_interface(mconfig, *this),
81      device_nubus_card_interface(mconfig, *this)
81      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
8282{
8383   m_assembled_tag = std::string(tag).append(":").append(M2VIDEO_SCREEN_NAME);
8484   m_screen_tag = m_assembled_tag.c_str();
trunk/src/devices/bus/nubus/nubus_radiustpd.cpp
r250239r250240
6868nubus_radiustpd_device::nubus_radiustpd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6969      device_t(mconfig, NUBUS_RADIUSTPD, "Radius Two Page Display video card", tag, owner, clock, "nb_rtpd", __FILE__),
7070      device_video_interface(mconfig, *this),
71      device_nubus_card_interface(mconfig, *this)
71      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
7272{
7373   m_assembled_tag = std::string(tag).append(":").append(RADIUSTPD_SCREEN_NAME);
7474   m_screen_tag = m_assembled_tag.c_str();
r250239r250240
7777nubus_radiustpd_device::nubus_radiustpd_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) :
7878      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
7979      device_video_interface(mconfig, *this),
80      device_nubus_card_interface(mconfig, *this)
80      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
8181{
8282   m_assembled_tag = std::string(tag).append(":").append(RADIUSTPD_SCREEN_NAME);
8383   m_screen_tag = m_assembled_tag.c_str();
trunk/src/devices/bus/nubus/nubus_spec8.cpp
r250239r250240
7070nubus_spec8s3_device::nubus_spec8s3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7171      device_t(mconfig, NUBUS_SPEC8S3, "SuperMac Spectrum/8 Series III video card", tag, owner, clock, "nb_sp8s3", __FILE__),
7272      device_video_interface(mconfig, *this),
73      device_nubus_card_interface(mconfig, *this)
73      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_count(0), m_clutoffs(0), m_timer(nullptr), m_vbl_pending(false), m_parameter(0)
7474{
7575   m_assembled_tag = std::string(tag).append(":").append(SPEC8S3_SCREEN_NAME);
7676   m_screen_tag = m_assembled_tag.c_str();
r250239r250240
7979nubus_spec8s3_device::nubus_spec8s3_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) :
8080      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
8181      device_video_interface(mconfig, *this),
82      device_nubus_card_interface(mconfig, *this)
82      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_count(0), m_clutoffs(0), m_timer(nullptr), m_vbl_pending(false), m_parameter(0)
8383{
8484   m_assembled_tag = std::string(tag).append(":").append(SPEC8S3_SCREEN_NAME);
8585   m_screen_tag = m_assembled_tag.c_str();
trunk/src/devices/bus/nubus/nubus_specpdq.cpp
r250239r250240
8585nubus_specpdq_device::nubus_specpdq_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
8686      device_t(mconfig, NUBUS_SPECPDQ, "SuperMac Spectrum PDQ video card", tag, owner, clock, "nb_spdq", __FILE__),
8787      device_video_interface(mconfig, *this),
88      device_nubus_card_interface(mconfig, *this),
88      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_count(0), m_clutoffs(0), m_timer(nullptr), m_width(0), m_height(0), m_patofsx(0), m_patofsy(0), m_vram_addr(0), m_vram_src(0),
8989      m_palette(*this, "palette")
9090{
9191   m_assembled_tag = std::string(tag).append(":").append(SPECPDQ_SCREEN_NAME);
r250239r250240
9595nubus_specpdq_device::nubus_specpdq_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) :
9696      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
9797      device_video_interface(mconfig, *this),
98      device_nubus_card_interface(mconfig, *this),
98      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_count(0), m_clutoffs(0), m_timer(nullptr), m_width(0), m_height(0), m_patofsx(0), m_patofsy(0), m_vram_addr(0), m_vram_src(0),
9999      m_palette(*this, "palette")
100100{
101101   m_assembled_tag = std::string(tag).append(":").append(SPECPDQ_SCREEN_NAME);
trunk/src/devices/bus/nubus/nubus_vikbw.cpp
r250239r250240
6767
6868nubus_vikbw_device::nubus_vikbw_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6969      device_t(mconfig, NUBUS_VIKBW, "Moniterm Viking video card", tag, owner, clock, "nb_vikbw", __FILE__),
70      device_nubus_card_interface(mconfig, *this)
70      device_nubus_card_interface(mconfig, *this), m_vbl_disable(0)
7171{
7272}
7373
7474nubus_vikbw_device::nubus_vikbw_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) :
7575      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
76      device_nubus_card_interface(mconfig, *this)
76      device_nubus_card_interface(mconfig, *this), m_vbl_disable(0)
7777{
7878}
7979
trunk/src/devices/bus/nubus/nubus_wsportrait.cpp
r250239r250240
7171nubus_wsportrait_device::nubus_wsportrait_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7272      device_t(mconfig, NUBUS_WSPORTRAIT, "Macintosh II Portrait Video Card", tag, owner, clock, "nb_wspt", __FILE__),
7373      device_video_interface(mconfig, *this),
74      device_nubus_card_interface(mconfig, *this)
74      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
7575{
7676   m_assembled_tag = std::string(tag).append(":").append(WSPORTRAIT_SCREEN_NAME);
7777   m_screen_tag = m_assembled_tag.c_str();
r250239r250240
8080nubus_wsportrait_device::nubus_wsportrait_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) :
8181      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
8282      device_video_interface(mconfig, *this),
83      device_nubus_card_interface(mconfig, *this)
83      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
8484{
8585   m_assembled_tag = std::string(tag).append(":").append(WSPORTRAIT_SCREEN_NAME);
8686   m_screen_tag = m_assembled_tag.c_str();
trunk/src/devices/bus/nubus/pds30_30hr.cpp
r250239r250240
7171nubus_xceed30hr_device::nubus_xceed30hr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7272      device_t(mconfig, PDS030_XCEED30HR, "Micron/XCEED Technology Color 30HR", tag, owner, clock, "pd3_30hr", __FILE__),
7373      device_video_interface(mconfig, *this),
74      device_nubus_card_interface(mconfig, *this)
74      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
7575{
7676   m_assembled_tag = std::string(tag).append(":").append(XCEED30HR_SCREEN_NAME);
7777   m_screen_tag = m_assembled_tag.c_str();
r250239r250240
8080nubus_xceed30hr_device::nubus_xceed30hr_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) :
8181      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
8282      device_video_interface(mconfig, *this),
83      device_nubus_card_interface(mconfig, *this)
83      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
8484{
8585   m_assembled_tag = std::string(tag).append(":").append(XCEED30HR_SCREEN_NAME);
8686   m_screen_tag = m_assembled_tag.c_str();
trunk/src/devices/bus/nubus/pds30_cb264.cpp
r250239r250240
6464nubus_cb264se30_device::nubus_cb264se30_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6565      device_t(mconfig, PDS030_CB264SE30, "RasterOps Colorboard 264/SE30", tag, owner, clock, "pd3_c264", __FILE__),
6666      device_video_interface(mconfig, *this),
67      device_nubus_card_interface(mconfig, *this)
67      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
6868{
6969   m_assembled_tag = std::string(tag).append(":").append(CB264SE30_SCREEN_NAME);
7070   m_screen_tag = m_assembled_tag.c_str();
r250239r250240
7373nubus_cb264se30_device::nubus_cb264se30_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) :
7474      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
7575      device_video_interface(mconfig, *this),
76      device_nubus_card_interface(mconfig, *this)
76      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
7777{
7878   m_assembled_tag = std::string(tag).append(":").append(CB264SE30_SCREEN_NAME);
7979   m_screen_tag = m_assembled_tag.c_str();
trunk/src/devices/bus/nubus/pds30_mc30.cpp
r250239r250240
6767nubus_xceedmc30_device::nubus_xceedmc30_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6868      device_t(mconfig, PDS030_XCEEDMC30, "Micron/XCEED Technology MacroColor 30", tag, owner, clock, "pd3_mclr", __FILE__),
6969      device_video_interface(mconfig, *this),
70      device_nubus_card_interface(mconfig, *this)
70      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
7171{
7272   m_assembled_tag = std::string(tag).append(":").append(XCEEDMC30_SCREEN_NAME);
7373   m_screen_tag = m_assembled_tag.c_str();
r250239r250240
7676nubus_xceedmc30_device::nubus_xceedmc30_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) :
7777      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
7878      device_video_interface(mconfig, *this),
79      device_nubus_card_interface(mconfig, *this)
79      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
8080{
8181   m_assembled_tag = std::string(tag).append(":").append(XCEEDMC30_SCREEN_NAME);
8282   m_screen_tag = m_assembled_tag.c_str();
trunk/src/devices/bus/nubus/pds30_procolor816.cpp
r250239r250240
7070nubus_procolor816_device::nubus_procolor816_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
7171      device_t(mconfig, PDS030_PROCOLOR816, "Lapis ProColor Server 8*16", tag, owner, clock, "pd3_pc16", __FILE__),
7272      device_video_interface(mconfig, *this),
73      device_nubus_card_interface(mconfig, *this)
73      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
7474{
7575   m_assembled_tag = std::string(tag).append(":").append(PROCOLOR816_SCREEN_NAME);
7676   m_screen_tag = m_assembled_tag.c_str();
r250239r250240
7979nubus_procolor816_device::nubus_procolor816_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) :
8080      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
8181      device_video_interface(mconfig, *this),
82      device_nubus_card_interface(mconfig, *this)
82      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_mode(0), m_vbl_disable(0), m_toggle(0), m_count(0), m_clutoffs(0), m_timer(nullptr)
8383{
8484   m_assembled_tag = std::string(tag).append(":").append(PROCOLOR816_SCREEN_NAME);
8585   m_screen_tag = m_assembled_tag.c_str();
trunk/src/devices/bus/nubus/pds30_sigmalview.cpp
r250239r250240
6464nubus_lview_device::nubus_lview_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6565      device_t(mconfig, PDS030_LVIEW, "Sigma Designs L-View", tag, owner, clock, "pd3_lviw", __FILE__),
6666      device_video_interface(mconfig, *this),
67      device_nubus_card_interface(mconfig, *this)
67      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_vbl_disable(0), m_toggle(0), m_timer(nullptr), m_protstate(0)
6868{
6969   m_assembled_tag = std::string(tag).append(":").append(LVIEW_SCREEN_NAME);
7070   m_screen_tag = m_assembled_tag.c_str();
r250239r250240
7373nubus_lview_device::nubus_lview_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) :
7474      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
7575      device_video_interface(mconfig, *this),
76      device_nubus_card_interface(mconfig, *this)
76      device_nubus_card_interface(mconfig, *this), m_vram32(nullptr), m_vbl_disable(0), m_toggle(0), m_timer(nullptr), m_protstate(0)
7777{
7878   m_assembled_tag = std::string(tag).append(":").append(LVIEW_SCREEN_NAME);
7979   m_screen_tag = m_assembled_tag.c_str();
trunk/src/devices/bus/odyssey2/rom.cpp
r250239r250240
2323
2424
2525o2_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)
26               : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
27                  device_o2_cart_interface( mconfig, *this )
26   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
27     device_o2_cart_interface(mconfig, *this),
28     m_bank_base(0)
2829{
2930}
3031
3132o2_rom_device::o2_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3233               : device_t(mconfig, O2_ROM_STD, "Odyssey 2 Standard Carts", tag, owner, clock, "o2_rom", __FILE__),
33                  device_o2_cart_interface( mconfig, *this )
34{
34                  device_o2_cart_interface( mconfig, *this ),
35   m_bank_base(0)
36            {
3537}
3638
3739o2_rom12_device::o2_rom12_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/odyssey2/slot.cpp
r250239r250240
7676                  device_t(mconfig, O2_CART_SLOT, "Odyssey 2 Cartridge Slot", tag, owner, clock, "o2_cart_slot", __FILE__),
7777                  device_image_interface(mconfig, *this),
7878                  device_slot_interface(mconfig, *this),
79                  m_type(O2_STD)
79                  m_type(O2_STD), m_cart(nullptr)
8080{
8181}
8282
trunk/src/devices/bus/oricext/jasmin.cpp
r250239r250240
4444
4545jasmin_device::jasmin_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4646   oricext_device(mconfig, JASMIN, "Jasmin floppy drive interface", tag, owner, clock, "jasmin", __FILE__),
47   fdc(*this, "fdc")
47   fdc(*this, "fdc"), side_sel(false), fdc_reset(false), ram_access(false), rom_access(false), jasmin_rom(nullptr), cur_floppy(nullptr)
4848{
4949}
5050
trunk/src/devices/bus/oricext/microdisc.cpp
r250239r250240
3939
4040microdisc_device::microdisc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4141   oricext_device(mconfig, MICRODISC, "Microdisc floppy drive interface", tag, owner, clock, "microdisc", __FILE__),
42   fdc(*this, "fdc")
42   fdc(*this, "fdc"), microdisc_rom(nullptr), port_314(0), intrq_state(false), drq_state(false), hld_state(false)
4343{
4444}
4545
trunk/src/devices/bus/oricext/oricext.cpp
r250239r250240
99oricext_connector::oricext_connector(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1010   device_t(mconfig, ORICEXT_CONNECTOR, "ORIC extension connector", tag, owner, clock, "oricext_connector", __FILE__),
1111   device_slot_interface(mconfig, *this),
12   irq_handler(*this)
12   irq_handler(*this),
13   cputag(NULL)
1314{
1415}
1516
r250239r250240
4142
4243oricext_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) :
4344   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
44   device_slot_card_interface(mconfig, *this)
45   device_slot_card_interface(mconfig, *this),
46   cputag(nullptr),
47   cpu(nullptr),
48   connector(nullptr),
49   bank_c000_r(nullptr),
50   bank_e000_r(nullptr),
51   bank_f800_r(nullptr),
52   bank_c000_w(nullptr),
53   bank_e000_w(nullptr),
54   bank_f800_w(nullptr),
55   rom(nullptr),
56   ram(nullptr)
4557{
4658}
4759
trunk/src/devices/bus/pc_joy/pc_joy.cpp
r250239r250240
1515
1616pc_joy_device::pc_joy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1717   device_t(mconfig, PC_JOY, "PC joystick port", tag, owner, clock, "pc_joy", __FILE__),
18   device_slot_interface(mconfig, *this)
18   device_slot_interface(mconfig, *this),
19   m_dev(nullptr)
1920{
2021}
2122
trunk/src/devices/bus/pc_joy/pc_joy_sw.cpp
r250239r250240
1313   m_btn2(*this, "btn2"),
1414   m_btn3(*this, "btn3"),
1515   m_btn4(*this, "btn4"),
16   m_conf(*this, "CONFIG")
16   m_conf(*this, "CONFIG"),
17   m_timer(NULL),
18   m_count(0),
19   m_state(0),
20   m_active(false)
1721{
1822}
1923
trunk/src/devices/bus/pc_kbd/iskr1030.cpp
r250239r250240
286286      m_md20(*this, "MD20"),
287287      m_md21(*this, "MD21"),
288288      m_md22(*this, "MD22"),
289      m_md23(*this, "MD23"),
289      m_md23(*this, "MD23"), m_bus(0),
290290      m_p1(0),
291291      m_p2(0),
292292      m_q(0)
trunk/src/devices/bus/pc_kbd/keytro.cpp
r250239r250240
380380pc_kbd_keytronic_pc3270_device::pc_kbd_keytronic_pc3270_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
381381   device_t(mconfig, PC_KBD_KEYTRONIC_PC3270, "Keytronic PC3270", tag, owner, clock, "keytronic_pc3270", __FILE__),
382382   device_pc_kbd_interface(mconfig, *this),
383   m_cpu(*this, "kb_keytr")
383   m_cpu(*this, "kb_keytr"), m_p1(0), m_p1_data(0), m_p2(0), m_p3(0), m_last_write_addr(0)
384384{
385385}
386386
trunk/src/devices/bus/pc_kbd/msnat.cpp
r250239r250240
247247   , m_p1_4(*this, "P1.4")
248248   , m_p1_5(*this, "P1.5")
249249   , m_p1_6(*this, "P1.6")
250   , m_p1_7(*this, "P1.7")
250   , m_p1_7(*this, "P1.7"), m_p0(0), m_p1(0), m_p2(0), m_p3(0)
251251{
252252}
253253
trunk/src/devices/bus/pc_kbd/pc83.cpp
r250239r250240
275275      m_dr20(*this, "DR20"),
276276      m_dr21(*this, "DR21"),
277277      m_dr22(*this, "DR22"),
278      m_dr23(*this, "DR23")
278      m_dr23(*this, "DR23"), m_cnt(0)
279279{
280280}
281281
trunk/src/devices/bus/pc_kbd/pc_kbdc.cpp
r250239r250240
3333//-------------------------------------------------
3434pc_kbdc_slot_device::pc_kbdc_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3535      device_t(mconfig, PC_KBDC_SLOT, "PC_KBDC_SLOT", tag, owner, clock, "pc_kbdc_slot", __FILE__),
36      device_slot_interface(mconfig, *this)
36      device_slot_interface(mconfig, *this),
37   m_kbdc_device(nullptr)
3738{
3839}
3940
r250239r250240
7475      m_out_clock_cb(*this),
7576      m_out_data_cb(*this),
7677      m_clock_state(-1),
77      m_data_state(-1),
78      m_data_state(-1), m_mb_clock_state(0), m_mb_data_state(0),
7879      m_kb_clock_state(1),
7980      m_kb_data_state(1),
8081      m_keyboard( NULL )
r250239r250240
195196device_pc_kbd_interface::device_pc_kbd_interface(const machine_config &mconfig, device_t &device)
196197   : device_slot_card_interface(mconfig, device),
197198      m_pc_kbdc(NULL),
198      m_pc_kbdc_tag(NULL)
199      m_pc_kbdc_tag(NULL), m_next(nullptr)
199200{
200201}
201202
trunk/src/devices/bus/pce/pce_rom.cpp
r250239r250240
4646}
4747
4848pce_sf2_device::pce_sf2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
49               : pce_rom_device(mconfig, PCE_ROM_SF2, "PCE Street Fighters 2 Cart", tag, owner, clock, "pce_sf2", __FILE__)
50{
49               : pce_rom_device(mconfig, PCE_ROM_SF2, "PCE Street Fighters 2 Cart", tag, owner, clock, "pce_sf2", __FILE__), m_bank_base(0)
50            {
5151}
5252
5353
trunk/src/devices/bus/pce/pce_slot.cpp
r250239r250240
140140                  device_image_interface(mconfig, *this),
141141                  device_slot_interface(mconfig, *this),
142142                  m_interface("pce_cart"),
143                  m_type(PCE_STD)
143                  m_type(PCE_STD), m_cart(nullptr)
144144{
145145}
146146
trunk/src/devices/bus/pet/c2n.cpp
r250239r250240
5555   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
5656      device_pet_datassette_port_interface(mconfig, *this),
5757      m_cassette(*this, "cassette"),
58      m_motor(false)
58      m_motor(false),
59   m_read_timer(nullptr)
5960{
6061}
6162
r250239r250240
6364   : device_t(mconfig, C2N, "C2N Datassette", tag, owner, clock, "c2n", __FILE__),
6465      device_pet_datassette_port_interface(mconfig, *this),
6566      m_cassette(*this, "cassette"),
66      m_motor(false)
67      m_motor(false), m_read_timer(nullptr)
6768{
6869}
6970
trunk/src/devices/bus/pet/cass.cpp
r250239r250240
5454pet_datassette_port_device::pet_datassette_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5555   device_t(mconfig, PET_DATASSETTE_PORT, "Datassette Port", tag, owner, clock, "pet_datassette_port", __FILE__),
5656   device_slot_interface(mconfig, *this),
57   m_read_handler(*this)
57   m_read_handler(*this), m_cart(nullptr)
5858{
5959}
6060
trunk/src/devices/bus/pet/exp.cpp
r250239r250240
3636
3737pet_expansion_slot_device::pet_expansion_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3838   device_t(mconfig, PET_EXPANSION_SLOT, "PET memory expansion port", tag, owner, clock, "pet_expansion_slot", __FILE__),
39   device_slot_interface(mconfig, *this),
39   device_slot_interface(mconfig, *this), m_card(nullptr),
4040   m_read_dma(*this),
4141   m_write_dma(*this)
4242{
trunk/src/devices/bus/pet/superpet.cpp
r250239r250240
185185   m_io_sw1(*this, "SW1"),
186186   m_io_sw2(*this, "SW2"),
187187   m_system(0),
188   m_bank(0),
188   m_bank(0), m_sw1(0), m_sw2(0),
189189   m_sel9_rom(0),
190190   m_pet_irq(CLEAR_LINE),
191191   m_acia_irq(CLEAR_LINE)
trunk/src/devices/bus/plus4/c1551.cpp
r250239r250240
428428      m_status(1),
429429      m_dav(1),
430430      m_ack(1),
431      m_dev(0)
431      m_dev(0), m_irq_timer(nullptr)
432432{
433433}
434434
trunk/src/devices/bus/plus4/exp.cpp
r250239r250240
7474      m_write_irq(*this),
7575      m_read_dma_cd(*this),
7676      m_write_dma_cd(*this),
77      m_write_aec(*this)
77      m_write_aec(*this), m_card(nullptr)
7878{
7979}
8080
trunk/src/devices/bus/psx/analogue.cpp
r250239r250240
77
88psx_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) :
99      device_t(mconfig, type, name, tag, owner, clock, shortname, source),
10      device_psx_controller_interface(mconfig, *this),
10      device_psx_controller_interface(mconfig, *this),
11      m_type(),
12      m_confmode(false),
13      m_analogmode(false),
14      m_analoglock(false),
15      m_temp(0),
16      m_cmd(0),
1117      m_pad0(*this, "PSXPAD0"),
1218      m_pad1(*this, "PSXPAD1"),
1319      m_rstickx(*this, "PSXRSTICKX"),
trunk/src/devices/bus/psx/ctlrport.cpp
r250239r250240
1010
1111psx_controller_port_device::psx_controller_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
1212      device_t(mconfig, PSX_CONTROLLER_PORT, "Playstation Controller Port", tag, owner, clock, "psx_controller_port", __FILE__),
13      device_slot_interface(mconfig, *this),
13      device_slot_interface(mconfig, *this),
14      m_tx(false),
15      m_dev(nullptr),
1416      m_card(*this, "card")
1517{
1618}
r250239r250240
4042const device_type PSXCONTROLLERPORTS = &device_creator<psxcontrollerports_device>;
4143
4244psxcontrollerports_device::psxcontrollerports_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
43   : device_t(mconfig, PSXCONTROLLERPORTS, "PSXCONTROLLERPORTS", tag, owner, clock, "psxcontrollerports", __FILE__),
45   : device_t(mconfig, PSXCONTROLLERPORTS, "PSXCONTROLLERPORTS", tag, owner, clock, "psxcontrollerports", __FILE__), m_port0(nullptr), m_port1(nullptr),
4446   m_dsr_handler(*this),
4547   m_rxd_handler(*this)
4648{
r250239r250240
9799}
98100
99101device_psx_controller_interface::device_psx_controller_interface(const machine_config &mconfig, device_t &device) :
100      device_slot_card_interface(mconfig, device),
101      m_ack(true)
102      device_slot_card_interface(mconfig, device), m_odata(0), m_idata(0), m_bit(0), m_count(0), m_memcard(false), m_clock(false), m_sel(false),
103      m_ack(true), m_rx(false), m_ack_timer(nullptr), m_owner(nullptr)
102104{
103105}
104106
trunk/src/devices/bus/psx/memcard.cpp
r250239r250240
4343
4444psxcard_device::psxcard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4545   : device_t(mconfig, PSXCARD, "Sony PSX Memory Card", tag, owner, clock, "psxcard", __FILE__),
46   device_image_interface(mconfig, *this)
46   device_image_interface(mconfig, *this),
47   pkt_ptr(0),
48   pkt_sz(0),
49   cmd(0),
50   addr(0),
51   state(0),
52   m_disabled(false),
53   m_odata(0),
54   m_idata(0),
55   m_bit(0),
56   m_count(0),
57   m_pad(false),
58   m_clock(false),
59   m_sel(false),
60   m_ack(false),
61   m_rx(false),
62   m_ack_timer(nullptr),
63   m_owner(nullptr)
4764{
4865}
4966
trunk/src/devices/bus/psx/multitap.cpp
r250239r250240
88
99psx_multitap_device::psx_multitap_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock) :
1010   device_t(mconfig, PSX_MULTITAP, "Playstation Multitap", tag, owner, clock, "psx_multitap", __FILE__),
11   device_psx_controller_interface(mconfig, *this),
11   device_psx_controller_interface(mconfig, *this),
12   m_activeport(0),
13   m_singlemode(false),
14   m_nextmode(false),
15   m_tapmc(false),
1216   m_porta(*this, "a"),
1317   m_portb(*this, "b"),
1418   m_portc(*this, "c"),
trunk/src/devices/bus/ql/exp.cpp
r250239r250240
4949   m_write_ipl0l(*this),
5050   m_write_ipl1l(*this),
5151   m_write_berrl(*this),
52   m_write_extintl(*this)
52   m_write_extintl(*this), m_card(nullptr)
5353{
5454}
5555
trunk/src/devices/bus/ql/rom.cpp
r250239r250240
5656ql_rom_cartridge_slot_t::ql_rom_cartridge_slot_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5757   device_t(mconfig, QL_ROM_CARTRIDGE_SLOT, "QL ROM cartridge slot", tag, owner, clock, "ql_rom_cartridge_slot", __FILE__),
5858   device_slot_interface(mconfig, *this),
59   device_image_interface(mconfig, *this)
59   device_image_interface(mconfig, *this), m_card(nullptr)
6060{
6161}
6262
trunk/src/devices/bus/ql/sandy_superdisk.cpp
r250239r250240
120120   m_centronics(*this, CENTRONICS_TAG),
121121   m_latch(*this, TTL74273_TAG),
122122   m_rom(*this, "rom"),
123   m_busy(1)
123   m_busy(1), m_fd6(0)
124124{
125125}
126126
trunk/src/devices/bus/ql/trumpcard.cpp
r250239r250240
119119   m_floppy1(*this, WD1772_TAG":1"),
120120   m_rom(*this, "rom"),
121121   m_ram(*this, "ram"),
122   m_ram_size(0)
122   m_ram_size(0), m_rom_en(false)
123123{
124124}
125125
r250239r250240
131131   m_floppy1(*this, WD1772_TAG":1"),
132132   m_rom(*this, "rom"),
133133   m_ram(*this, "ram"),
134   m_ram_size(ram_size)
134   m_ram_size(ram_size), m_rom_en(false)
135135{
136136}
137137
trunk/src/devices/bus/rs232/keyboard.cpp
r250239r250240
55serial_keyboard_device::serial_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
66   : generic_keyboard_device(mconfig, SERIAL_KEYBOARD, "Serial Keyboard", tag, owner, clock, "serial_keyboard", __FILE__),
77   device_serial_interface(mconfig, *this),
8   device_rs232_port_interface(mconfig, *this),
8   device_rs232_port_interface(mconfig, *this),
9   m_curr_key(0),
910   m_key_valid(false),
1011   m_rs232_txbaud(*this, "RS232_TXBAUD"),
1112   m_rs232_startbits(*this, "RS232_STARTBITS"),
r250239r250240
1819serial_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)
1920   : generic_keyboard_device(mconfig, type, name, tag, owner, clock, shortname, source),
2021   device_serial_interface(mconfig, *this),
21   device_rs232_port_interface(mconfig, *this),
22   device_rs232_port_interface(mconfig, *this),
23   m_curr_key(0),
2224   m_key_valid(false),
2325   m_rs232_txbaud(*this, "RS232_TXBAUD"),
2426   m_rs232_startbits(*this, "RS232_STARTBITS"),
trunk/src/devices/bus/rs232/null_modem.cpp
r250239r250240
1414   m_rs232_parity(*this, "RS232_PARITY"),
1515   m_rs232_stopbits(*this, "RS232_STOPBITS"),
1616   m_input_count(0),
17   m_input_index(0)
17   m_input_index(0),
18   m_timer_poll(NULL)
1819{
1920}
2021
trunk/src/devices/bus/rs232/pty.cpp
r250239r250240
1818      m_rs232_parity(*this, "RS232_PARITY"),
1919      m_rs232_stopbits(*this, "RS232_STOPBITS"),
2020      m_input_count(0),
21      m_input_index(0)
21      m_input_index(0),
22      m_timer_poll(NULL)
2223{
2324}
2425
trunk/src/devices/bus/rs232/rs232.cpp
r250239r250240
66
77rs232_port_device::rs232_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
88   device_t(mconfig, RS232_PORT, "RS232 Port", tag, owner, clock, "rs232", __FILE__),
9   device_slot_interface(mconfig, *this),
9   device_slot_interface(mconfig, *this),
10   m_rxd(0),
11   m_dcd(0),
12   m_dsr(0),
13   m_ri(0),
14   m_cts(0),
1015   m_rxd_handler(*this),
1116   m_dcd_handler(*this),
1217   m_dsr_handler(*this),
r250239r250240
1823
1924rs232_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)
2025   : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
21   device_slot_interface(mconfig, *this),
26   device_slot_interface(mconfig, *this),
27   m_rxd(0),
28   m_dcd(0),
29   m_dsr(0),
30   m_ri(0),
31   m_cts(0),
2232   m_rxd_handler(*this),
2333   m_dcd_handler(*this),
2434   m_dsr_handler(*this),
trunk/src/devices/bus/rs232/ser_mouse.cpp
r250239r250240
1616   device_rs232_port_interface(mconfig, *this),
1717   device_serial_interface(mconfig, *this),
1818   m_dtr(1),
19   m_rts(1),
19   m_rts(1),
20   m_head(0),
21   m_tail(0),
22   m_mb(0),
23   m_timer(nullptr),
24   m_enabled(false),
2025   m_x(*this, "ser_mouse_x"),
2126   m_y(*this, "ser_mouse_y"),
2227   m_btn(*this, "ser_mouse_btn")
trunk/src/devices/bus/rs232/terminal.cpp
r250239r250240
1111   m_rs232_startbits(*this, "RS232_STARTBITS"),
1212   m_rs232_databits(*this, "RS232_DATABITS"),
1313   m_rs232_parity(*this, "RS232_PARITY"),
14   m_rs232_stopbits(*this, "RS232_STOPBITS")
14   m_rs232_stopbits(*this, "RS232_STOPBITS"),
15   m_curr_key(0),
16   m_key_valid(false)
1517{
1618}
1719
trunk/src/devices/bus/rs232/xvd701.cpp
r250239r250240
55jvc_xvd701_device::jvc_xvd701_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
66   : device_t(mconfig, JVC_XVD701, "JVC XV-D701", tag, owner, clock, "xvd701", __FILE__),
77   device_serial_interface(mconfig, *this),
8   device_rs232_port_interface(mconfig, *this)
8   device_rs232_port_interface(mconfig, *this),
9   m_response_index(0),
10   m_timer_response(nullptr)
911{
1012}
1113
trunk/src/devices/bus/s100/s100.cpp
r250239r250240
2727//-------------------------------------------------
2828
2929device_s100_card_interface::device_s100_card_interface(const machine_config &mconfig, device_t &device)
30   : device_slot_card_interface(mconfig, device)
30   : device_slot_card_interface(mconfig, device),
31   m_bus(nullptr),
32   m_next(nullptr)
3133{
3234}
3335
r250239r250240
3739//-------------------------------------------------
3840s100_slot_t::s100_slot_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3941   device_t(mconfig, S100_SLOT, "S100 slot", tag, owner, clock, "s100_slot", __FILE__),
40   device_slot_interface(mconfig, *this)
42   device_slot_interface(mconfig, *this), m_bus(nullptr)
4143{
4244}
4345
trunk/src/devices/bus/s100/wunderbus.cpp
r250239r250240
245245   m_ace3(*this, INS8250_3_TAG),
246246   m_rtc(*this, UPD1990C_TAG),
247247   m_7c(*this, "7C"),
248   m_10a(*this, "10A")
248   m_10a(*this, "10A"), m_group(0), m_rtc_tp(0)
249249{
250250}
251251
trunk/src/devices/bus/saturn/sat_slot.cpp
r250239r250240
3737//-------------------------------------------------
3838
3939device_sat_cart_interface::device_sat_cart_interface(const machine_config &mconfig, device_t &device)
40   : device_slot_card_interface(mconfig, device),
40   : device_slot_card_interface(mconfig, device), m_cart_type(0),
4141      m_rom(NULL),
4242      m_rom_size(0)
4343{
r250239r250240
104104sat_cart_slot_device::sat_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
105105                  device_t(mconfig, SATURN_CART_SLOT, "Saturn Cartridge Slot", tag, owner, clock, "sat_cart_slot", __FILE__),
106106                  device_image_interface(mconfig, *this),
107                  device_slot_interface(mconfig, *this)
107                  device_slot_interface(mconfig, *this), m_cart(nullptr)
108108{
109109}
110110
trunk/src/devices/bus/scsi/scsi.cpp
r250239r250240
2121   m_data4_handler(*this),
2222   m_data5_handler(*this),
2323   m_data6_handler(*this),
24   m_data7_handler(*this),
24   m_data7_handler(*this),
25   m_device_count(0),
2526   m_bsy_in(0),
2627   m_sel_in(0),
2728   m_cd_in(0),
2829   m_io_in(0),
2930   m_msg_in(0),
3031   m_req_in(0),
31   m_ack_in(0),
32   m_ack_in(0),
33   m_atn_in(0),
3234   m_rst_in(0),
3335   m_data0_in(0),
3436   m_data1_in(0),
r250239r250240
4446   m_io_out(0),
4547   m_msg_out(0),
4648   m_req_out(0),
47   m_ack_out(0),
49   m_ack_out(0),
50   m_atn_out(0),
4851   m_rst_out(0),
4952   m_data0_out(0),
5053   m_data1_out(0),
trunk/src/devices/bus/scsi/scsihle.cpp
r250239r250240
1313scsihle_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) :
1414   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
1515   scsi_port_interface(mconfig, *this),
16   m_scsi_id(*this, "SCSI_ID"),
16   m_scsi_id(*this, "SCSI_ID"),
17   req_timer(NULL),
18   sel_timer(NULL),
19   dataout_timer(NULL),
20   cmd_idx(0),
21   is_linked(0),
22   data_idx(0),
23   bytes_left(0),
24   data_last(0),
25   scsiID(0),
1726   m_input_data(0)
1827{
1928}
trunk/src/devices/bus/scv/rom.cpp
r250239r250240
4949}
5050
5151scv_rom32ram8_device::scv_rom32ram8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
52               : scv_rom8_device(mconfig, SCV_ROM32K_RAM8K, "SCV 32K + RAM 8K Carts", tag, owner, clock, "scv_rom32_ram8", __FILE__)
53{
52               : scv_rom8_device(mconfig, SCV_ROM32K_RAM8K, "SCV 32K + RAM 8K Carts", tag, owner, clock, "scv_rom32_ram8", __FILE__), m_ram_enabled(0)
53            {
5454}
5555
5656scv_rom64_device::scv_rom64_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
57               : scv_rom8_device(mconfig, SCV_ROM16K, "SCV 64K Carts", tag, owner, clock, "scv_rom64", __FILE__)
58{
57               : scv_rom8_device(mconfig, SCV_ROM16K, "SCV 64K Carts", tag, owner, clock, "scv_rom64", __FILE__), m_bank_base(0)
58            {
5959}
6060
6161scv_rom128_device::scv_rom128_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
62               : scv_rom8_device(mconfig, SCV_ROM32K, "SCV 128K Carts", tag, owner, clock, "scv_rom128", __FILE__)
63{
62               : scv_rom8_device(mconfig, SCV_ROM32K, "SCV 128K Carts", tag, owner, clock, "scv_rom128", __FILE__), m_bank_base(0)
63            {
6464}
6565
6666scv_rom128ram4_device::scv_rom128ram4_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
67               : scv_rom8_device(mconfig, SCV_ROM128K_RAM4K, "SCV 128K + RAM 4K Carts", tag, owner, clock, "scv_rom128_ram4", __FILE__)
68{
67               : scv_rom8_device(mconfig, SCV_ROM128K_RAM4K, "SCV 128K + RAM 4K Carts", tag, owner, clock, "scv_rom128_ram4", __FILE__), m_bank_base(0), m_ram_enabled(0)
68            {
6969}
7070
7171
trunk/src/devices/bus/scv/slot.cpp
r250239r250240
7676                  device_t(mconfig, SCV_CART_SLOT, "SCV Cartridge Slot", tag, owner, clock, "scv_cart_slot", __FILE__),
7777                  device_image_interface(mconfig, *this),
7878                  device_slot_interface(mconfig, *this),
79                  m_type(SCV_8K)
79                  m_type(SCV_8K), m_cart(nullptr)
8080{
8181}
8282
trunk/src/devices/bus/sega8/rom.cpp
r250239r250240
4545
4646sega8_rom_device::sega8_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)
4747               : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
48                  device_sega8_cart_interface( mconfig, *this )
49{
48                  device_sega8_cart_interface( mconfig, *this ), m_ram_base(0), m_ram_enabled(0)
49            {
5050}
5151
5252sega8_rom_device::sega8_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
5353               : device_t(mconfig, SEGA8_ROM_STD, "Mark III, SMS & GG Carts", tag, owner, clock, "sega8_rom", __FILE__),
54                  device_sega8_cart_interface( mconfig, *this )
55{
54                  device_sega8_cart_interface( mconfig, *this ), m_ram_base(0), m_ram_enabled(0)
55            {
5656}
5757
5858
r250239r250240
8686               : sega8_rom_device(mconfig, SEGA8_ROM_TEREBI, "SG-1000 Terebi Oekaki Cart", tag, owner, clock, "sega8_terebi", __FILE__),
8787                  m_tvdraw_x(*this, "TVDRAW_X"),
8888                  m_tvdraw_y(*this, "TVDRAW_Y"),
89                  m_tvdraw_pen(*this, "TVDRAW_PEN")
90{
89                  m_tvdraw_pen(*this, "TVDRAW_PEN"), m_tvdraw_data(0)
90            {
9191}
9292
9393
r250239r250240
108108sega8_eeprom_device::sega8_eeprom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
109109               : device_t(mconfig, SEGA8_ROM_EEPROM, "GG Carts + EEPROM", tag, owner, clock, "sega8_eeprom", __FILE__),
110110                  device_sega8_cart_interface( mconfig, *this ),
111                  m_eeprom(*this, "eeprom")
112{
111                  m_eeprom(*this, "eeprom"), m_93c46_enabled(0), m_93c46_lines(0)
112            {
113113}
114114
115115
116116sega8_codemasters_device::sega8_codemasters_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
117117               : device_t(mconfig, SEGA8_ROM_CODEMASTERS, "Mark III, SMS & GG Codemasters Carts", tag, owner, clock, "sega8_codemasters", __FILE__),
118                  device_sega8_cart_interface( mconfig, *this )
119{
118                  device_sega8_cart_interface( mconfig, *this ), m_ram_base(0), m_ram_enabled(0)
119            {
120120}
121121
122122
r250239r250240
128128
129129sega8_zemina_device::sega8_zemina_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)
130130               : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
131                  device_sega8_cart_interface( mconfig, *this )
132{
131                  device_sega8_cart_interface( mconfig, *this ), m_ram_base(0), m_ram_enabled(0)
132            {
133133}
134134
135135sega8_zemina_device::sega8_zemina_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
136136               : device_t(mconfig, SEGA8_ROM_ZEMINA, "SMS Zemina Carts", tag, owner, clock, "sega8_zemina", __FILE__),
137                  device_sega8_cart_interface( mconfig, *this )
138{
137                  device_sega8_cart_interface( mconfig, *this ), m_ram_base(0), m_ram_enabled(0)
138            {
139139}
140140
141141
r250239r250240
153153
154154
155155sega8_hicom_device::sega8_hicom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
156               : sega8_rom_device(mconfig, SEGA8_ROM_HICOM, "SMS Hi-Com Carts", tag, owner, clock, "sega8_hicom", __FILE__)
157{
156               : sega8_rom_device(mconfig, SEGA8_ROM_HICOM, "SMS Hi-Com Carts", tag, owner, clock, "sega8_hicom", __FILE__), m_rom_bank_base(0)
157            {
158158}
159159
160160
trunk/src/devices/bus/sega8/sega8_slot.cpp
r250239r250240
114114                  m_type(SEGA8_BASE_ROM),
115115                  m_must_be_loaded(FALSE),
116116                  m_interface("sms_cart"),
117                  m_extensions("bin")
117                  m_extensions("bin"), m_cart(nullptr)
118118{
119119   m_is_card = is_card;
120120}
r250239r250240
127127                  m_must_be_loaded(FALSE),
128128                  m_is_card(FALSE),
129129                  m_interface("sms_cart"),
130                  m_extensions("bin")
130                  m_extensions("bin"), m_cart(nullptr)
131131{
132132}
133133
trunk/src/devices/bus/sms_ctrl/lphaser.cpp
r250239r250240
7474   device_sms_control_port_interface(mconfig, *this),
7575   m_lphaser_pins(*this, "CTRL_PORT"),
7676   m_lphaser_x(*this, "LPHASER_X"),
77   m_lphaser_y(*this, "LPHASER_Y")
77   m_lphaser_y(*this, "LPHASER_Y"), m_sensor_last_state(0), m_lphaser_timer(nullptr)
7878{
7979   // Workaround for failed validation that occurs when running on a driver
8080   // with Sega Scope emulation, which adds 2 screens (left/right lenses).
trunk/src/devices/bus/sms_ctrl/smsctrl.cpp
r250239r250240
6262
6363sms_control_port_device::sms_control_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6464                  device_t(mconfig, SMS_CONTROL_PORT, "Sega SMS control port", tag, owner, clock, "sms_control_port", __FILE__),
65                  device_slot_interface(mconfig, *this),
65                  device_slot_interface(mconfig, *this), m_device(nullptr),
6666                  m_th_pin_handler(*this),
6767                  m_pixel_handler(*this)
6868{
trunk/src/devices/bus/sms_ctrl/sports.cpp
r250239r250240
154154   m_last_data(0),
155155   m_x_axis_reset_value(0x80), // value 0x80 helps when start playing paddle games.
156156   m_y_axis_reset_value(0x80),
157   m_interval(SPORTS_PAD_INTERVAL)
157   m_interval(SPORTS_PAD_INTERVAL), m_sportspad_timer(nullptr)
158158{
159159}
160160
trunk/src/devices/bus/sms_exp/smsexp.cpp
r250239r250240
5252
5353sms_expansion_slot_device::sms_expansion_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5454                  device_t(mconfig, SMS_EXPANSION_SLOT, "Sega SMS expansion slot", tag, owner, clock, "sms_expansion_slot", __FILE__),
55                  device_slot_interface(mconfig, *this)
55                  device_slot_interface(mconfig, *this), m_device(nullptr)
5656{
5757}
5858
trunk/src/devices/bus/snes/bsx.cpp
r250239r250240
2525
2626
2727sns_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)
28               : sns_rom_device(mconfig, type, name, tag, owner, clock, shortname, source),
29                  m_slot(*this, "bs_slot")
28               : sns_rom_device(mconfig, type, name, tag, owner, clock, shortname, source),
29   m_base_unit(nullptr),
30   access_00_1f(0),
31   access_80_9f(0),
32   access_40_4f(0),
33   access_50_5f(0),
34   access_60_6f(0),
35   rom_access(0),
36   m_slot(*this, "bs_slot")
3037{
3138}
3239
3340sns_rom_bsx_device::sns_rom_bsx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3441               : sns_rom_device(mconfig, SNS_ROM_BSX, "SNES BS-X Cart", tag, owner, clock, "sns_rom_bsx", __FILE__),
42   m_base_unit(nullptr),
43   access_00_1f(0),
44   access_80_9f(0),
45   access_40_4f(0),
46   access_50_5f(0),
47   access_60_6f(0),
48   rom_access(0),
3549                  m_slot(*this, "bs_slot")
3650{
3751}
r250239r250240
4963}
5064
5165sns_rom_bsmempak_device::sns_rom_bsmempak_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
52               : sns_rom_device(mconfig, SNS_BSMEMPAK, "SNES BS-X Memory packs", tag, owner, clock, "sns_bsmempak", __FILE__)
53{
66               : sns_rom_device(mconfig, SNS_BSMEMPAK, "SNES BS-X Memory packs", tag, owner, clock, "sns_bsmempak", __FILE__), m_command(0), m_write_old(0), m_write_new(0), m_flash_enable(0), m_read_enable(0), m_write_enable(0)
67            {
5468}
5569
5670
r250239r250240
113127// BS-X Base Unit emulation, to be device-fied ?
114128
115129BSX_base::BSX_base(running_machine &machine)
116         : m_machine(machine)
130         : r2192_minute(0), m_machine(machine)
117131{
118132   m_machine.save().save_item(regs, "SNES_BSX/regs");
119133   m_machine.save().save_item(r2192_counter, "SNES_BSX/r2192_counter");
trunk/src/devices/bus/snes/event.cpp
r250239r250240
2121
2222
2323sns_pfest94_device::sns_pfest94_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
24               : device_t(mconfig, SNS_PFEST94, "SNES Powerfest '94", tag, owner, clock, "sns_pfest94", __FILE__),
25                  device_sns_cart_interface( mconfig, *this ),
26                  m_upd7725(*this, "dsp"),
27                  m_dsw(*this, "DIPSW")
24   : device_t(mconfig, SNS_PFEST94, "SNES Powerfest '94", tag, owner, clock, "sns_pfest94", __FILE__),
25     device_sns_cart_interface(mconfig, *this),
26     m_upd7725(*this, "dsp"),
27     m_dsw(*this, "DIPSW"),
28     m_base_bank(0),
29     m_mask(0),
30     m_status(0),
31     m_count(0),
32     pfest94_timer(nullptr)
2833{
2934}
3035
trunk/src/devices/bus/snes/rom.cpp
r250239r250240
4242}
4343
4444sns_rom_obc1_device::sns_rom_obc1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
45               : sns_rom_device(mconfig, SNS_LOROM_OBC1, "SNES Cart (LoROM) + OBC-1", tag, owner, clock, "sns_rom_obc1", __FILE__)
46{
45               : sns_rom_device(mconfig, SNS_LOROM_OBC1, "SNES Cart (LoROM) + OBC-1", tag, owner, clock, "sns_rom_obc1", __FILE__), m_address(0), m_offset(0), m_shift(0)
46            {
4747}
4848
4949
5050
5151// Pirate LoROM 'mappers'
5252sns_rom_pokemon_device::sns_rom_pokemon_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
53               : sns_rom_device(mconfig, SNS_LOROM_POKEMON, "SNES Pirate Carts with Protection", tag, owner, clock, "sns_rom_pokemon", __FILE__)
54{
53               : sns_rom_device(mconfig, SNS_LOROM_POKEMON, "SNES Pirate Carts with Protection", tag, owner, clock, "sns_rom_pokemon", __FILE__), m_latch(0)
54            {
5555}
5656
5757sns_rom_tekken2_device::sns_rom_tekken2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
58               : sns_rom_device(mconfig, SNS_LOROM_TEKKEN2, "SNES Tekken 2", tag, owner, clock, "sns_rom_tekken2", __FILE__)
59{
58               : sns_rom_device(mconfig, SNS_LOROM_TEKKEN2, "SNES Tekken 2", tag, owner, clock, "sns_rom_tekken2", __FILE__), m_prot(0)
59            {
6060}
6161
6262sns_rom_soulblad_device::sns_rom_soulblad_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
r250239r250240
7676
7777// Multigame LoROM 'mappers'
7878sns_rom_mcpirate1_device::sns_rom_mcpirate1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
79               : sns_rom_device(mconfig, SNS_LOROM_MCPIR1, "SNES Pirate Multigame Carts Type 1", tag, owner, clock, "sns_rom_mcpirate1", __FILE__)
80{
79               : sns_rom_device(mconfig, SNS_LOROM_MCPIR1, "SNES Pirate Multigame Carts Type 1", tag, owner, clock, "sns_rom_mcpirate1", __FILE__), m_base_bank(0)
80            {
8181}
8282
8383sns_rom_mcpirate2_device::sns_rom_mcpirate2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
84               : sns_rom_device(mconfig, SNS_LOROM_MCPIR2, "SNES Pirate Multigame Carts Type 2", tag, owner, clock, "sns_rom_mcpirate2", __FILE__)
85{
84               : sns_rom_device(mconfig, SNS_LOROM_MCPIR2, "SNES Pirate Multigame Carts Type 2", tag, owner, clock, "sns_rom_mcpirate2", __FILE__), m_base_bank(0)
85            {
8686}
8787
8888sns_rom_20col_device::sns_rom_20col_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
89               : sns_rom_device(mconfig, SNS_LOROM_20COL, "SNES Super 20 Collection", tag, owner, clock, "sns_rom_20col", __FILE__)
90{
89               : sns_rom_device(mconfig, SNS_LOROM_20COL, "SNES Super 20 Collection", tag, owner, clock, "sns_rom_20col", __FILE__), m_base_bank(0)
90            {
9191}
9292
9393
trunk/src/devices/bus/snes/rom21.cpp
r250239r250240
3232}
3333
3434sns_rom21_srtc_device::sns_rom21_srtc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
35               : sns_rom21_device(mconfig, SNS_HIROM_SRTC, "SNES Cart (HiROM) + S-RTC", tag, owner, clock, "sns_rom21_srtc", __FILE__)
36{
35               : sns_rom21_device(mconfig, SNS_HIROM_SRTC, "SNES Cart (HiROM) + S-RTC", tag, owner, clock, "sns_rom21_srtc", __FILE__), m_mode(0), m_index(0)
36            {
3737}
3838
3939
trunk/src/devices/bus/snes/sa1.cpp
r250239r250240
8888sns_sa1_device::sns_sa1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
8989               : device_t(mconfig, SNS_LOROM_SA1, "SNES Cart + SA-1", tag, owner, clock, "sns_rom_sa1", __FILE__),
9090                  device_sns_cart_interface( mconfig, *this ),
91                  m_sa1(*this, "sa1cpu")
92{
91                  m_sa1(*this, "sa1cpu"), m_sa1_ctrl(0), m_scpu_sie(0), m_sa1_reset(0), m_sa1_nmi(0), m_sa1_irq(0), m_scpu_ctrl(0), m_sa1_sie(0), m_irq_vector(0), m_nmi_vector(0), m_hcount(0), m_vcount(0), m_bank_c_hi(0), m_bank_c_rom(0), m_bank_d_hi(0), m_bank_d_rom(0), m_bank_e_hi(0), m_bank_e_rom(0), m_bank_f_hi(0), m_bank_f_rom(0), m_bwram_snes(0), m_bwram_sa1(0), m_bwram_sa1_source(0), m_bwram_sa1_format(0), m_bwram_write_snes(0), m_bwram_write_sa1(0), m_bwpa_sa1(0), m_iram_write_snes(0), m_iram_write_sa1(0), m_dma_ctrl(0), m_dma_ccparam(0), m_src_addr(0), m_dst_addr(0), m_dma_cnt(0), m_math_ctlr(0), m_math_overflow(0), m_math_a(0), m_math_b(0), m_math_res(0), m_vda(0), m_vbit(0), m_vlen(0), m_drm(0), m_scpu_flags(0), m_sa1_flags(0), m_hcr(0), m_vcr(0)
92            {
9393}
9494
9595
trunk/src/devices/bus/snes/sdd1.cpp
r250239r250240
413413
414414sns_rom_sdd1_device::sns_rom_sdd1_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)
415415               : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
416                  device_sns_cart_interface( mconfig, *this )
417{
416                  device_sns_cart_interface( mconfig, *this ), m_sdd1_enable(0), m_xfer_enable(0), m_sdd1emu(nullptr)
417            {
418418}
419419
420420sns_rom_sdd1_device::sns_rom_sdd1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
421421               : device_t(mconfig, SNS_LOROM_SDD1, "SNES Cart + S-DD1", tag, owner, clock, "sns_rom_sdd1", __FILE__),
422                  device_sns_cart_interface( mconfig, *this )
423{
422                  device_sns_cart_interface( mconfig, *this ), m_sdd1_enable(0), m_xfer_enable(0), m_sdd1emu(nullptr)
423            {
424424}
425425
426426
trunk/src/devices/bus/snes/sdd1.h
r250239r250240
1010class SDD1_IM //Input Manager
1111{
1212public:
13   SDD1_IM() {}
13   SDD1_IM():
14      m_byte_ptr(0),
15      m_bit_count(0)
16   { }
1417
1518   UINT32 m_byte_ptr;
1619   UINT8 m_bit_count;
r250239r250240
3437{
3538public:
3639   SDD1_BG(SDD1_GCD* associatedGCD, UINT8 code)
37   : m_code_num(code),
38   m_GCD(associatedGCD) { }
40      : m_code_num(code),
41        m_MPScount(0),
42        m_LPSind(0),
43        m_GCD(associatedGCD)
44   {
45   }
3946
4047   UINT8 m_code_num;
4148   UINT8 m_MPScount;
r250239r250240
8390{
8491public:
8592   SDD1_CM(SDD1_PEM* associatedPEM)
86   : m_PEM(associatedPEM) { }
93   : m_bitplanesInfo(0), m_contextBitsInfo(0), m_bit_number(0), m_currBitplane(0), m_PEM(associatedPEM) { }
8794
8895   UINT8 m_bitplanesInfo;
8996   UINT8 m_contextBitsInfo;
r250239r250240
101108{
102109public:
103110   SDD1_OL(SDD1_CM* associatedCM)
104   : m_CM(associatedCM) { }
111   : m_bitplanesInfo(0), m_length(0), m_buffer(nullptr), m_CM(associatedCM) { }
105112
106113   UINT8 m_bitplanesInfo;
107114   UINT16 m_length;
trunk/src/devices/bus/snes/sgb.cpp
r250239r250240
2222const device_type SNS_LOROM_SUPERGB = &device_creator<sns_rom_sgb_device>;
2323
2424
25sns_rom_sgb_device::sns_rom_sgb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
26               : sns_rom_device(mconfig, SNS_LOROM_SUPERGB, "SNES Super Game Boy Cart", tag, owner, clock, "sns_rom_sgb", __FILE__),
27               m_gb_cpu(*this, "sgb_cpu"),
28               m_gb_snd(*this, "sgb_snd"),
29               m_gb_lcd(*this, "sgb_lcd"),
30               m_cartslot(*this, "gb_slot")
25sns_rom_sgb_device::sns_rom_sgb_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock) :
26   sns_rom_device(mconfig, SNS_LOROM_SUPERGB, "SNES Super Game Boy Cart", tag, owner, clock, "sns_rom_sgb", __FILE__),
27   m_gb_cpu(*this, "sgb_cpu"),
28   m_gb_snd(*this, "sgb_snd"),
29   m_gb_lcd(*this, "sgb_lcd"),
30   m_cartslot(*this, "gb_slot"),
31   m_sgb_ly(0),
32   m_sgb_row(0),
33   m_vram(0),
34   m_port(0),
35   m_joy1(0),
36   m_joy2(0),
37   m_joy3(0),
38   m_joy4(0),
39   m_vram_offs(0),
40   m_mlt_req(0),
41   m_lcd_row(0),
42   m_packetsize(0)
3143{
3244}
3345
trunk/src/devices/bus/snes/snes_slot.cpp
r250239r250240
177177                  device_image_interface(mconfig, *this),
178178                  device_slot_interface(mconfig, *this),
179179                  m_addon(ADDON_NONE),
180                  m_type(SNES_MODE20)
180                  m_type(SNES_MODE20), m_cart(nullptr)
181181{
182182}
183183
trunk/src/devices/bus/snes/spc7110.cpp
r250239r250240
2525
2626
2727sns_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)
28         : sns_rom21_device(mconfig, type, name, tag, owner, clock, shortname, source)
29{
28         : 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),
29   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),
30   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),
31   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),
32   m_r4841(0), m_r4842(0), m_rtc_state(0), m_rtc_mode(0), m_rtc_index(0), m_rtc_offset(0)
33      {
3034}
3135
3236sns_rom_spc7110_device::sns_rom_spc7110_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
33         : sns_rom21_device(mconfig, SNS_HIROM_SPC7110, "SNES Cart + SPC-7110", tag, owner, clock, "sns_rom_spc7110", __FILE__)
37         : sns_rom21_device(mconfig, SNS_HIROM_SPC7110, "SNES Cart + SPC-7110", tag, owner, clock, "sns_rom_spc7110", __FILE__), m_r4801(0), m_r4802(0), m_r4803(0), m_r4804(0), m_r4805(0), m_r4806(0), m_r4807(0),
38   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),
39   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),
40   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),
41   m_r4841(0), m_r4842(0), m_rtc_state(0), m_rtc_mode(0), m_rtc_index(0), m_rtc_offset(0)
3442{
3543}
3644
trunk/src/devices/bus/snes_ctrl/bcbattle.cpp
r250239r250240
8484snes_bcbattle_device::snes_bcbattle_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
8585               device_t(mconfig, SNES_BARCODE_BATTLER, "Epoch Barcode Battler (SFC)", tag, owner, clock, "snes_bcbattle", __FILE__),
8686               device_snes_control_port_interface(mconfig, *this),
87               m_reader(*this, "battler")
87               m_reader(*this, "battler"), m_pending_code(0), m_new_code(0), m_transmitting(0), m_cur_bit(0), m_cur_byte(0), battler_timer(nullptr), m_strobe(0), m_idx(0)
8888{
8989}
9090
trunk/src/devices/bus/snes_ctrl/ctrl.cpp
r250239r250240
5959
6060snes_control_port_device::snes_control_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
6161                  device_t(mconfig, SNES_CONTROL_PORT, "Nintendo SNES / SFC control port", tag, owner, clock, "snes_control_port", __FILE__),
62                  device_slot_interface(mconfig, *this)
62                  device_slot_interface(mconfig, *this), m_device(nullptr)
6363{
6464}
6565
trunk/src/devices/bus/snes_ctrl/joypad.cpp
r250239r250240
5555snes_joypad_device::snes_joypad_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5656               device_t(mconfig, SNES_JOYPAD, "Nintendo SNES / SFC Control Pad", tag, owner, clock, "snes_joypad", __FILE__),
5757               device_snes_control_port_interface(mconfig, *this),
58               m_joypad(*this, "JOYPAD")
58               m_joypad(*this, "JOYPAD"), m_strobe(0), m_latch(0)
5959{
6060}
6161
trunk/src/devices/bus/snes_ctrl/miracle.cpp
r250239r250240
6464               device_serial_interface(mconfig, *this),
6565               device_snes_control_port_interface(mconfig, *this),
6666               m_midiin(*this, "mdin"),
67               m_midiout(*this, "mdout")
67               m_midiout(*this, "mdout"), strobe_timer(nullptr), m_strobe_on(0), m_midi_mode(0), m_sent_bits(0), m_strobe_clock(0),
68   m_data_sent(0), m_xmit_read(0), m_xmit_write(0), m_recv_read(0), m_recv_write(0), m_tx_busy(false), m_read_status(false), m_status_bit(false)
6869{
6970}
7071
trunk/src/devices/bus/snes_ctrl/mouse.cpp
r250239r250240
6363               device_snes_control_port_interface(mconfig, *this),
6464               m_buttons(*this, "BUTTONS"),
6565               m_xaxis(*this, "MOUSE_X"),
66               m_yaxis(*this, "MOUSE_Y")
66               m_yaxis(*this, "MOUSE_Y"), m_strobe(0), m_idx(0), m_latch(0), m_x(0), m_y(0), m_oldx(0), m_oldy(0), m_deltax(0),
67   m_deltay(0), m_speed(0), m_dirx(0), m_diry(0)
6768{
6869}
6970
trunk/src/devices/bus/snes_ctrl/multitap.cpp
r250239r250240
7474   m_port2(*this, "port2"),
7575   m_port3(*this, "port3"),
7676   m_port4(*this, "port4"),
77   m_cfg(*this, "CONFIG")
77   m_cfg(*this, "CONFIG"), m_select(0)
7878{
7979}
8080
trunk/src/devices/bus/snes_ctrl/pachinko.cpp
r250239r250240
4848               device_t(mconfig, SNES_PACHINKO, "Sunsoft Pachinko Controller", tag, owner, clock, "snes_pachinko", __FILE__),
4949               device_snes_control_port_interface(mconfig, *this),
5050               m_dial(*this, "DIAL"),
51               m_button(*this, "BUTTON")
51               m_button(*this, "BUTTON"), m_strobe(0), m_latch(0)
5252{
5353}
5454
trunk/src/devices/bus/snes_ctrl/sscope.cpp
r250239r250240
5858               device_snes_control_port_interface(mconfig, *this),
5959               m_buttons(*this, "BUTTONS"),
6060               m_xaxis(*this, "SSX"),
61               m_yaxis(*this, "SSY")
61               m_yaxis(*this, "SSY"), m_strobe(0), m_idx(0), m_latch(0), m_x(0), m_y(0), m_turbo_lock(0), m_pause_lock(0), m_fire_lock(0)
6262{
6363}
6464
trunk/src/devices/bus/snes_ctrl/twintap.cpp
r250239r250240
5252snes_twintap_device::snes_twintap_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5353               device_t(mconfig, SNES_TWINTAP, "Yonezawa Twin Tap Controller", tag, owner, clock, "snes_twintap", __FILE__),
5454               device_snes_control_port_interface(mconfig, *this),
55               m_inputs(*this, "INPUTS")
55               m_inputs(*this, "INPUTS"), m_strobe(0), m_latch(0)
5656{
5757}
5858
trunk/src/devices/bus/spc1000/exp.cpp
r250239r250240
3737//-------------------------------------------------
3838spc1000_exp_device::spc1000_exp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3939                  device_t(mconfig, SPC1000_EXP_SLOT, "Samsung SPC-1000 expansion", tag, owner, clock, "spc1000_exp", __FILE__),
40                  device_slot_interface(mconfig, *this)
40                  device_slot_interface(mconfig, *this), m_card(nullptr)
4141{
4242}
4343
trunk/src/devices/bus/spc1000/fdd.cpp
r250239r250240
139139      device_spc1000_card_interface(mconfig, *this),
140140      m_cpu(*this, "fdccpu"),
141141      m_fdc(*this, "upd765"),
142      m_pio(*this, "d8255_master")
143{
142      m_pio(*this, "d8255_master"), m_fd0(nullptr), m_fd1(nullptr), m_timer_tc(nullptr), m_i8255_0_pc(0), m_i8255_1_pc(0), m_i8255_portb(0)
143   {
144144}
145145
146146
trunk/src/devices/bus/ti99_peb/bwg.cpp
r250239r250240
8585*/
8686
8787snug_bwg_device::snug_bwg_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
88         : ti_expansion_card_device(mconfig, TI99_BWG, "SNUG BwG Floppy Controller", tag, owner, clock, "ti99_bwg", __FILE__),
88         : ti_expansion_card_device(mconfig, TI99_BWG, "SNUG BwG Floppy Controller", tag, owner, clock, "ti99_bwg", __FILE__), m_DRQ(), m_IRQ(), m_dip1(0), m_dip2(0), m_dip34(0), m_ram_page(0), m_rom_page(0), m_WAITena(false), m_inDsrArea(false), m_WDsel(false), m_WDsel0(false), m_RTCsel(false), m_lastK(false), m_dataregLB(false), m_rtc_enabled(false), m_MOTOR_ON(), m_lastval(0), m_address(0), m_DSEL(0), m_SIDSEL(), m_motor_on_timer(nullptr), m_dsrrom(nullptr), m_buffer_ram(nullptr), m_current_floppy(nullptr),
8989            m_wd1773(*this, FDC_TAG),
90            m_clock(*this, CLOCK_TAG) { }
90            m_clock(*this, CLOCK_TAG), m_debug_dataout(false)
91      { }
9192
9293/*
9394    Operate the wait state logic.
trunk/src/devices/bus/ti99_peb/evpc.cpp
r250239r250240
2626
2727snug_enhanced_video_device::snug_enhanced_video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
2828: ti_expansion_card_device(mconfig, TI99_EVPC, "SNUG Enhanced Video Processor Card", tag, owner, clock, "ti99_evpc", __FILE__),
29   device_nvram_interface(mconfig, *this)
29   device_nvram_interface(mconfig, *this),
30   m_dsrrom(nullptr),
31   m_RAMEN(false),
32   m_dsr_page(0),
33   m_novram(nullptr)
3034{
3135}
3236
trunk/src/devices/bus/ti99_peb/hfdc.cpp
r250239r250240
8888   Constructor for the HFDC card.
8989*/
9090myarc_hfdc_device::myarc_hfdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
91   : ti_expansion_card_device(mconfig, TI99_HFDC, "Myarc Hard and Floppy Disk Controller", tag, owner, clock, "ti99_hfdc", __FILE__),
91   : ti_expansion_card_device(mconfig, TI99_HFDC, "Myarc Hard and Floppy Disk Controller", tag, owner, clock, "ti99_hfdc", __FILE__), m_motor_on_timer(nullptr),
9292      m_hdc9234(*this, FDC_TAG),
93      m_clock(*this, CLOCK_TAG)
93      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),
94   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),
95   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)
9496{
9597}
9698
trunk/src/devices/bus/ti99_peb/horizon.cpp
r250239r250240
6767
6868horizon_ramdisk_device::horizon_ramdisk_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
6969: ti_expansion_card_device(mconfig, TI99_HORIZON, "Horizon 4000 Ramdisk", tag, owner, clock,"ti99_horizon",__FILE__),
70   device_nvram_interface(mconfig, *this)
70   device_nvram_interface(mconfig, *this), m_ram(nullptr), m_nvram(nullptr), m_ros(nullptr), m_select6_value(0), m_select_all(0), m_page(0), m_cru_horizon(0), m_cru_phoenix(0), m_timode(false), m_32k_installed(false), m_split_mode(false), m_rambo_mode(false), m_killswitch(false), m_use_rambo(false)
7171{
7272}
7373
trunk/src/devices/bus/ti99_peb/hsgpl.cpp
r250239r250240
140140#define ROM6_EEPROM "u6_rom6"
141141
142142snug_high_speed_gpl_device::snug_high_speed_gpl_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
143: ti_expansion_card_device(mconfig, TI99_HSGPL, "SNUG High-speed GPL card", tag, owner, clock, "ti99_hsgpl", __FILE__)
143: ti_expansion_card_device(mconfig, TI99_HSGPL, "SNUG High-speed GPL card", tag, owner, clock, "ti99_hsgpl", __FILE__), m_dsr_eeprom(nullptr),
144m_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),
145m_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),
146m_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)
144147{
145148}
146149
trunk/src/devices/bus/ti99_peb/memex.cpp
r250239r250240
3333};
3434
3535geneve_memex_device::geneve_memex_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
36: ti_expansion_card_device(mconfig, TI99_MEMEX, "Geneve memory expansion card", tag, owner, clock, "ti99_memex", __FILE__)
36: ti_expansion_card_device(mconfig, TI99_MEMEX, "Geneve memory expansion card", tag, owner, clock, "ti99_memex", __FILE__),
37  m_ram(nullptr),
38  m_genmod(0)
3739{
3840}
3941
trunk/src/devices/bus/ti99_peb/myarcmem.cpp
r250239r250240
4545};
4646
4747myarc_memory_expansion_device::myarc_memory_expansion_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
48: ti_expansion_card_device(mconfig, TI99_MYARCMEM, "Myarc Memory expansion card MEXP-1", tag, owner, clock, "ti99_myarcmem", __FILE__)
48: ti_expansion_card_device(mconfig, TI99_MYARCMEM, "Myarc Memory expansion card MEXP-1", tag, owner, clock, "ti99_myarcmem", __FILE__),
49m_ram(nullptr), m_dsrrom(nullptr), m_bank(0), m_size(0)
4950{
5051}
5152
trunk/src/devices/bus/ti99_peb/pcode.cpp
r250239r250240
9696#define VERBOSE 1
9797
9898ti_pcode_card_device::ti_pcode_card_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
99: ti_expansion_card_device(mconfig, TI99_P_CODE, "TI-99 P-Code Card", tag, owner, clock, "ti99_pcode", __FILE__)
99: ti_expansion_card_device(mconfig, TI99_P_CODE, "TI-99 P-Code Card", tag, owner, clock, "ti99_pcode", __FILE__), m_rom(nullptr), m_bank_select(0), m_switch(false)
100100{
101101}
102102
trunk/src/devices/bus/ti99_peb/peribox.cpp
r250239r250240
220220: bus8z_device(mconfig, PERIBOX, "Peripheral expansion box", tag, owner, clock, "peribox", __FILE__),
221221   m_console_inta(*this),
222222   m_console_intb(*this),
223   m_datamux_ready(*this)
223   m_datamux_ready(*this), m_inta_flag(0), m_intb_flag(0), m_ready_flag(0)
224224{
225225   for (int i=2; i <= 8; i++) m_slot[i] = NULL;
226226   // The address prefix is actually created by the "Flex cable interface"
r250239r250240
235235: bus8z_device(mconfig, type, name, tag, owner, clock, shortname, source),
236236   m_console_inta(*this),
237237   m_console_intb(*this),
238   m_datamux_ready(*this)
238   m_datamux_ready(*this), m_inta_flag(0), m_intb_flag(0), m_ready_flag(0), m_address_prefix(0)
239239{
240240   for (int i=2; i <= 8; i++) m_slot[i] = NULL;
241241}
r250239r250240
614614}
615615
616616peribox_slot_device::peribox_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
617: bus8z_device(mconfig, PERIBOX_SLOT, "TI P-Box slot", tag, owner, clock, "peribox_slot", __FILE__), device_slot_interface(mconfig, *this)
617: bus8z_device(mconfig, PERIBOX_SLOT, "TI P-Box slot", tag, owner, clock, "peribox_slot", __FILE__), device_slot_interface(mconfig, *this), m_card(nullptr), m_slotnumber(0)
618618{
619619}
620620
trunk/src/devices/bus/ti99_peb/peribox.h
r250239r250240
193193public:
194194   ti_expansion_card_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)
195195   : bus8z_device(mconfig, type, name, tag, owner, clock, shortname, source),
196   device_slot_card_interface(mconfig, *this)
197   {
196   device_slot_card_interface(mconfig, *this), m_selected(false), m_cru_base(0), m_select_mask(0), m_select_value(0)
197{
198198      m_slot = static_cast<peribox_slot_device*>(owner);
199199      m_senila = CLEAR_LINE;
200200      m_senilb = CLEAR_LINE;
trunk/src/devices/bus/ti99_peb/samsmem.cpp
r250239r250240
2626#define LOG logerror
2727
2828sams_memory_expansion_device::sams_memory_expansion_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
29: ti_expansion_card_device(mconfig, TI99_SAMSMEM, "SuperAMS memory expansion card", tag, owner, clock, "ti99_sams", __FILE__)
29: ti_expansion_card_device(mconfig, TI99_SAMSMEM, "SuperAMS memory expansion card", tag, owner, clock, "ti99_sams", __FILE__), m_ram(nullptr), m_map_mode(false), m_access_mapper(false)
3030{
3131}
3232
trunk/src/devices/bus/ti99_peb/spchsyn.cpp
r250239r250240
3333/****************************************************************************/
3434
3535ti_speech_synthesizer_device::ti_speech_synthesizer_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
36: ti_expansion_card_device(mconfig, TI99_SPEECH, "TI-99 Speech synthesizer (on adapter card)", tag, owner, clock, "ti99_speech", __FILE__)
36: ti_expansion_card_device(mconfig, TI99_SPEECH, "TI-99 Speech synthesizer (on adapter card)", tag, owner, clock, "ti99_speech", __FILE__), m_vsp(nullptr), m_read_mode(false)
3737{
3838}
3939
trunk/src/devices/bus/ti99_peb/ti_32kmem.cpp
r250239r250240
3232#define RAMREGION "ram"
3333
3434ti_32k_expcard_device::ti_32k_expcard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
35: ti_expansion_card_device(mconfig, TI_32KMEM, "TI-99 32KiB memory expansion card", tag, owner, clock, "ti99_32k", __FILE__)
35: ti_expansion_card_device(mconfig, TI_32KMEM, "TI-99 32KiB memory expansion card", tag, owner, clock, "ti99_32k", __FILE__), m_ram_ptr(nullptr)
3636{
3737}
3838
trunk/src/devices/bus/ti99_peb/ti_fdc.cpp
r250239r250240
4848#define TI_FDC_TAG "ti_dssd_controller"
4949
5050ti_fdc_device::ti_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
51         : ti_expansion_card_device(mconfig, TI99_FDC, "TI-99 Standard DSSD Floppy Controller", tag, owner, clock, "ti99_fdc", __FILE__),
52         m_fd1771(*this, FDC_TAG) { }
51         : 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(),
52   m_lastval(0), m_DVENA(), m_inDsrArea(false), m_WAITena(false), m_WDsel(false), m_DSEL(0), m_SIDSEL(), m_motor_on_timer(nullptr),
53         m_fd1771(*this, FDC_TAG), m_dsrrom(nullptr), m_current_floppy(nullptr), m_debug_dataout(false)
54      { }
5355
5456/*
5557    Operate the wait state logic.
trunk/src/devices/bus/ti99_peb/ti_rs232.cpp
r250239r250240
117117#define ESC 0x1b
118118
119119ti_rs232_pio_device::ti_rs232_pio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
120: ti_expansion_card_device(mconfig, TI99_RS232, "TI-99 RS232/PIO interface", tag, owner, clock, "ti99_rs232", __FILE__)
120: ti_expansion_card_device(mconfig, TI99_RS232, "TI-99 RS232/PIO interface", tag, owner, clock, "ti99_rs232", __FILE__), m_piodev(nullptr), m_dsrrom(nullptr), m_pio_direction_in(false), m_pio_handshakeout(false), m_pio_handshakein(false), m_pio_spareout(false), m_pio_sparein(false), m_flag0(false), m_led(false), m_pio_out_buffer(0), m_pio_in_buffer(0), m_pio_readable(false), m_pio_writable(false), m_pio_write(false), m_ila(0)
121121{
122122}
123123
trunk/src/devices/bus/ti99_peb/tn_ide.cpp
r250239r250240
5050};
5151
5252nouspikel_ide_interface_device::nouspikel_ide_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
53   : ti_expansion_card_device(mconfig, TI99_IDE, "Nouspikel IDE interface card", tag, owner, clock, "ti99_ide", __FILE__),
54   m_ata(*this, "ata")
53   : ti_expansion_card_device(mconfig, TI99_IDE, "Nouspikel IDE interface card", tag, owner, clock, "ti99_ide", __FILE__), m_ata_irq(false),
54   m_cru_register(0), m_rtc(nullptr),
55   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),
56   m_input_latch(0), m_output_latch(0), m_ram(nullptr)
5557{
5658}
5759
trunk/src/devices/bus/ti99_peb/tn_usbsm.cpp
r250239r250240
5252};
5353
5454nouspikel_usb_smartmedia_device::nouspikel_usb_smartmedia_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
55: ti_expansion_card_device(mconfig, TI99_USBSM, "Nouspikel USB/Smartmedia card", tag, owner, clock, "ti99_usbsm", __FILE__),
55: ti_expansion_card_device(mconfig, TI99_USBSM, "Nouspikel USB/Smartmedia card", tag, owner, clock, "ti99_usbsm", __FILE__),
56m_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),
57m_write_flash(false), m_input_latch(0), m_output_latch(0),
5658   m_smartmedia(*this, "smartmedia"),
5759   m_flash(*this, STRATA_TAG)
5860{
trunk/src/devices/bus/ti99x/990_dk.cpp
r250239r250240
4343const device_type FD800 = &device_creator<fd800_legacy_device>;
4444
4545fd800_legacy_device::fd800_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
46   : device_t(mconfig, FD800, "TI FD800 Diablo floppy disk controller", tag, owner, clock, "fd800", __FILE__),
47   m_int_line(*this)
46   : device_t(mconfig, FD800, "TI FD800 Diablo floppy disk controller", tag, owner, clock, "fd800", __FILE__),
47   m_recv_buf(0), m_stat_reg(0), m_xmit_buf(0), m_cmd_reg(0), m_interrupt_f_f(0),
48   m_int_line(*this), m_buf_pos(0), m_buf_mode(), m_unit(0), m_sector(0)
4849{
4950}
5051
trunk/src/devices/bus/ti99x/998board.cpp
r250239r250240
205205
206206mainboard8_device::mainboard8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
207207   : bus8z_device(mconfig, MAINBOARD8, "TI-99/8 Main board", tag, owner, clock, "ti998_mainboard", __FILE__),
208   m_ready(*this),
208   m_ready(*this), m_dsr_selected(false), m_hexbus_selected(false), m_CRUS(false), m_PTGE(false), m_waitcount(0), m_sram(nullptr), m_dram(nullptr), m_rom0(nullptr), m_rom1(nullptr), m_pcode(nullptr),
209209   m_oso(*this, OSO_TAG)
210210   { }
211211
r250239r250240
859859};
860860
861861ti998_oso_device::ti998_oso_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
862: device_t(mconfig, OSO, "OSO Hexbus interface", tag, owner, clock, "ti998_oso", __FILE__)
862: device_t(mconfig, OSO, "OSO Hexbus interface", tag, owner, clock, "ti998_oso", __FILE__), m_data(0), m_status(0), m_control(0), m_xmit(0)
863863{
864864}
865865
r250239r250240
948948#define REAL_TIMING 0
949949
950950ti998_spsyn_device::ti998_spsyn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
951: bus8z_device(mconfig, SPEECH8, "TI-99/8 Onboard Speech synthesizer", tag, owner, clock, "ti998_speech", __FILE__),
951: bus8z_device(mconfig, SPEECH8, "TI-99/8 Onboard Speech synthesizer", tag, owner, clock, "ti998_speech", __FILE__), m_vsp(nullptr),
952952   m_ready(*this)
953953{
954954}
trunk/src/devices/bus/ti99x/998board.h
r250239r250240
9090
9191public:
9292   logically_addressed_device(mapper8_device_kind kind, device_t *busdevice, const mapper8_list_entry &entry)
93   : m_kind(kind), m_device(busdevice), m_config(&entry) { };
93   : m_next(nullptr), m_kind(kind), m_device(busdevice), m_config(&entry) { };
9494
9595private:
9696   logically_addressed_device     *m_next;        // needed for simple_list
r250239r250240
109109
110110public:
111111   physically_addressed_device(mapper8_device_kind kind, device_t *busdevice, const mapper8_list_entry &entry)
112   : m_kind(kind), m_device(busdevice), m_config(&entry) { };
112   : m_next(nullptr), m_kind(kind), m_device(busdevice), m_config(&entry) { };
113113
114114private:
115115   physically_addressed_device       *m_next;        // needed for simple_list
trunk/src/devices/bus/ti99x/datamux.cpp
r250239r250240
7575    Constructor
7676*/
7777ti99_datamux_device::ti99_datamux_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
78: device_t(mconfig, DATAMUX, "Databus multiplexer", tag, owner, clock, "ti99_datamux", __FILE__),
79   m_ready(*this) { }
78: device_t(mconfig, DATAMUX, "Databus multiplexer", tag, owner, clock, "ti99_datamux", __FILE__), m_spacep(nullptr),
79   m_ready(*this), m_muxready(), m_sysready(), m_addr_buf(0), m_read_mode(false), m_latch(0), m_waitcount(0), m_ram16b(nullptr), m_use32k(false), m_base32k(0), m_cpu(nullptr)
80{ }
8081
8182#define TRACE_READY 0
8283#define TRACE_ACCESS 0
trunk/src/devices/bus/ti99x/datamux.h
r250239r250240
5454
5555public:
5656   attached_device(device_t *busdevice, const dmux_device_list_entry &entry)
57   : m_device(busdevice), m_config(&entry) { };
57   : m_next(nullptr), m_device(busdevice), m_config(&entry) { };
5858
5959private:
6060   attached_device                 *m_next;
trunk/src/devices/bus/ti99x/genboard.cpp
r250239r250240
206206#define TRACE_PFM 0
207207
208208geneve_mapper_device::geneve_mapper_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
209: device_t(mconfig, GENEVE_MAPPER, "Geneve Gate Array", tag, owner, clock, "geneve_mapper", __FILE__),
210   m_ready(*this)
209: device_t(mconfig, GENEVE_MAPPER, "Geneve Gate Array", tag, owner, clock, "geneve_mapper", __FILE__), m_gromwaddr_LSB(false), m_gromraddr_LSB(false), m_grom_address(0), m_video_waitstates(false), m_extra_waitstates(false), m_ready_asserted(false), m_read_mode(false), m_debug_no_ws(false), m_geneve_mode(false), m_direct_mode(false), m_cartridge_size(0), m_cartridge_secondpage(false), m_cartridge6_writable(false), m_cartridge7_writable(false), m_turbo(false), m_genmod(false), m_timode(false), m_pfm_mode(0), m_pfm_bank(0), m_pfm_output_enable(false), m_sram_mask(0), m_sram_val(0),
210   m_ready(*this), m_waitcount(0), m_ext_waitcount(0), m_clock(nullptr), m_cpu(nullptr), m_pfm512(nullptr), m_pfm512a(nullptr), m_keyboard(nullptr), m_video(nullptr), m_peribox(nullptr), m_sound(nullptr), m_sram(nullptr), m_dram(nullptr)
211211{
212212   m_eprom = NULL;
213213}
r250239r250240
14681468
14691469geneve_keyboard_device::geneve_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
14701470: device_t(mconfig, GENEVE_KEYBOARD, "Geneve XT-style keyboard", tag, owner, clock, "geneve_keyboard", __FILE__),
1471   m_interrupt(*this)
1471   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),
1472   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),
1473   m_keyboard_clock(false), m_timer(nullptr)
14721474{
14731475}
14741476
r250239r250240
19181920****************************************************************************/
19191921
19201922geneve_mouse_device::geneve_mouse_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
1921: device_t(mconfig, GENEVE_MOUSE, "Geneve mouse", tag, owner, clock, "geneve_mouse", __FILE__)
1923: device_t(mconfig, GENEVE_MOUSE, "Geneve mouse", tag, owner, clock, "geneve_mouse", __FILE__), m_v9938(nullptr), m_last_mx(0), m_last_my(0)
19221924{
19231925}
19241926
trunk/src/devices/bus/ti99x/grom.cpp
r250239r250240
9393    Constructor.
9494*/
9595ti99_grom_device::ti99_grom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
96: bus8z_device(mconfig, GROM, "TI-99 GROM device", tag, owner, clock, "ti99_grom", __FILE__),
97   m_gromready(*this)
96: bus8z_device(mconfig, GROM, "TI-99 GROM device", tag, owner, clock, "ti99_grom", __FILE__), m_writable(false), m_ident(0), m_size(0),
97   m_gromready(*this), m_clockrate(0), m_address(0), m_buffer(0), m_raddr_LSB(false), m_waddr_LSB(false), m_memptr(nullptr), m_timer(nullptr)
9898{
9999}
100100
trunk/src/devices/bus/ti99x/gromport.cpp
r250239r250240
137137gromport_device::gromport_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
138138   :   bus8z_device(mconfig, GROMPORT, "Cartridge port", tag, owner, clock, "gromport", __FILE__),
139139      device_slot_interface(mconfig, *this),
140      m_connector(NULL),
140      m_connector(nullptr),
141141      m_reset_on_insert(true),
142142      m_console_ready(*this),
143      m_console_reset(*this) { }
143      m_console_reset(*this), m_grombase(0), m_grommask(0)
144{ }
144145
145146/* Only called for addresses 6000-7fff and GROM addresses (see datamux config) */
146147READ8Z_MEMBER(gromport_device::readz)
r250239r250240
14521453    Unlike in the previous implementation we do not model it as a full device.
14531454***************************************************************************/
14541455
1455ti99_cartridge_pcb::ti99_cartridge_pcb()
1456ti99_cartridge_pcb::ti99_cartridge_pcb(): m_cart(nullptr), m_grom_size(0), m_rom_size(0), m_ram_size(0), m_rom_ptr(nullptr), m_ram_ptr(nullptr), m_rom_page(0), m_grom_ptr(nullptr), m_grom_address(0), m_ram_page(0), m_tag(nullptr)
14561457{
14571458}
14581459
r250239r250240
21242125    Constructor.
21252126*/
21262127rpk::rpk(emu_options& options, const char* sysname)
2127   :m_options(options)
2128   //,m_system_name(sysname)
2128   :m_options(options), m_type(0)
2129//,m_system_name(sysname)
21292130{
21302131   m_sockets.reset();
21312132}
r250239r250240
24612462         if (strcmp(socket_node->name, "socket")!=0) throw rpk_exception(RPK_INVALID_LAYOUT, "<pcb> element has only <socket> children");
24622463         id = xml_get_attribute_string(socket_node, "id", NULL);
24632464         if (id == NULL) throw rpk_exception(RPK_INVALID_LAYOUT, "<socket> must have an 'id' attribute");
2464         uses_name = xml_get_attribute_string(socket_node, "uses", NULL);
2465         if (uses_name == NULL) throw rpk_exception(RPK_INVALID_LAYOUT, "<socket> must have a 'uses' attribute");
2465         uses_name = xml_get_attribute_string(socket_node, "uses", nullptr);
2466         if (uses_name == nullptr) throw rpk_exception(RPK_INVALID_LAYOUT, "<socket> must have a 'uses' attribute");
24662467
24672468         bool found = false;
24682469         // Locate the resource node
trunk/src/devices/bus/ti99x/gromport.h
r250239r250240
404404class ti99_gromemu_cartridge : public ti99_cartridge_pcb
405405{
406406public:
407   ti99_gromemu_cartridge() {  m_grom_address = 0; }
407   ti99_gromemu_cartridge(): m_waddr_LSB(false)
408   {  m_grom_address = 0; }
408409   ~ti99_gromemu_cartridge() { };
409410   DECLARE_READ8Z_MEMBER(readz);
410411   DECLARE_WRITE8_MEMBER(write);
trunk/src/devices/bus/ti99x/handset.cpp
r250239r250240
5151static const char *const keynames[] = { "KP0", "KP1", "KP2", "KP3", "KP4" };
5252
5353ti99_handset_device::ti99_handset_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
54: joyport_attached_device(mconfig, HANDSET, "TI-99/4 IR handset", tag, owner, clock, "handset", __FILE__)
54: joyport_attached_device(mconfig, HANDSET, "TI-99/4 IR handset", tag, owner, clock, "handset", __FILE__), m_ack(0), m_clock_high(false), m_buf(0), m_buflen(0), m_delay_timer(nullptr)
5555{
5656}
5757
r250239r250240
490490INPUT_PORTS_END
491491
492492ti99_twin_joystick::ti99_twin_joystick(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
493: joyport_attached_device(mconfig, HANDSET, "TI-99/4(A) Twin Joystick", tag, owner, clock, "twinjoy", __FILE__)
493: joyport_attached_device(mconfig, HANDSET, "TI-99/4(A) Twin Joystick", tag, owner, clock, "twinjoy", __FILE__), m_joystick(0)
494494{
495495}
496496
trunk/src/devices/bus/ti99x/joyport.cpp
r250239r250240
4242joyport_device::joyport_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4343   :   device_t(mconfig, JOYPORT, "Joystick port", tag, owner, clock, "ti99_joyport", __FILE__),
4444      device_slot_interface(mconfig, *this),
45      m_interrupt(*this)
45      m_interrupt(*this), m_connected(nullptr)
4646{
4747}
4848
trunk/src/devices/bus/ti99x/joyport.h
r250239r250240
3333{
3434public:
3535   joyport_attached_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)
36   : device_t(mconfig, type, name, tag, owner, clock, shortname, source) { }
36   : device_t(mconfig, type, name, tag, owner, clock, shortname, source), m_joyport(nullptr)
37{ }
3738
3839   virtual UINT8 read_dev() =0;
3940   virtual void write_dev(UINT8 data) =0;
trunk/src/devices/bus/ti99x/mecmouse.cpp
r250239r250240
5353#define POLL_TIMER 1
5454
5555mecmouse_device::mecmouse_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
56   : joyport_attached_device(mconfig, MECMOUSE, "Mechatronics Mouse", tag, owner, clock, "mecmouse", __FILE__)
56   : joyport_attached_device(mconfig, MECMOUSE, "Mechatronics Mouse", tag, owner, clock, "mecmouse", __FILE__), m_last_select(0), m_read_y_axis(false), m_x(0), m_y(0), m_x_buf(0), m_y_buf(0), m_last_mx(0), m_last_my(0), m_poll_timer(nullptr)
5757{
5858}
5959
trunk/src/devices/bus/ti99x/videowrp.cpp
r250239r250240
2828    Constructors
2929*/
3030ti_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)
31: bus8z_device(mconfig, type, name, tag, owner, clock, shortname, source)
31: bus8z_device(mconfig, type, name, tag, owner, clock, shortname, source),
32m_tms9928a(nullptr)
3233{
3334}
3435
r250239r250240
3839}
3940
4041ti_exp_video_device::ti_exp_video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
41   : ti_video_device(mconfig, V9938VIDEO, "TI99 EXP Video subsystem", tag, owner, clock, "v9938_video", __FILE__)
42   : ti_video_device(mconfig, V9938VIDEO, "TI99 EXP Video subsystem", tag, owner, clock, "v9938_video", __FILE__), m_v9938(nullptr)
4243{
4344}
4445
trunk/src/devices/bus/ti99x/videowrp.h
r250239r250240
8585{
8686public:
8787   ti_sound_system_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)
88   : bus8z_device(mconfig, type, name, tag, owner, clock, shortname, source),
88   : bus8z_device(mconfig, type, name, tag, owner, clock, shortname, source), m_sound_chip(nullptr),
8989      m_console_ready(*this) { };
9090
9191   // Cannot read from sound; just ignore silently
trunk/src/devices/bus/tiki100/exp.cpp
r250239r250240
2929tiki100_bus_slot_t::tiki100_bus_slot_t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030   device_t(mconfig, TIKI100_BUS_SLOT, "TIKI-100 expansion bus slot", tag, owner, clock, "tiki100bus_slot", __FILE__),
3131   device_slot_interface(mconfig, *this),
32   device_z80daisy_interface(mconfig, *this)
32   device_z80daisy_interface(mconfig, *this),
33   m_bus(nullptr),
34   m_card(nullptr)
3335{
3436}
3537
r250239r250240
186188//-------------------------------------------------
187189
188190device_tiki100bus_card_interface::device_tiki100bus_card_interface(const machine_config &mconfig, device_t &device) :
189   device_slot_card_interface(mconfig, device),
190   m_busak(CLEAR_LINE)
191   device_slot_card_interface(mconfig, device), m_bus(nullptr),
192   m_busak(CLEAR_LINE), m_next(nullptr)
191193{
192194   m_slot = dynamic_cast<tiki100_bus_slot_t *>(device.owner());
193195}
trunk/src/devices/bus/tvc/hbf.cpp
r250239r250240
6161tvc_hbf_device::tvc_hbf_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
6262      : device_t(mconfig, TVC_HBF, "HBF floppy interface", tag, owner, clock, "tvc_hbf", __FILE__),
6363      device_tvcexp_interface( mconfig, *this ),
64      m_fdc(*this, "fdc")
65{
64      m_fdc(*this, "fdc"), m_rom(nullptr), m_ram(nullptr), m_rom_bank(0)
65   {
6666}
6767
6868
trunk/src/devices/bus/tvc/tvc.cpp
r250239r250240
5656      device_t(mconfig, TVCEXP_SLOT, "TVC64 Expansion Slot", tag, owner, clock, "tvcexp_slot", __FILE__),
5757      device_slot_interface(mconfig, *this),
5858      m_out_irq_cb(*this),
59      m_out_nmi_cb(*this)
59      m_out_nmi_cb(*this), m_cart(nullptr)
6060{
6161}
6262
trunk/src/devices/bus/vboy/slot.cpp
r250239r250240
7878                  device_t(mconfig, VBOY_CART_SLOT, "Nintendo Virtual Boy Cartridge Slot", tag, owner, clock, "vboy_cart_slot", __FILE__),
7979                  device_image_interface(mconfig, *this),
8080                  device_slot_interface(mconfig, *this),
81                  m_type(VBOY_STD)
81                  m_type(VBOY_STD), m_cart(nullptr)
8282{
8383}
8484
trunk/src/devices/bus/vc4000/slot.cpp
r250239r250240
7676                  device_t(mconfig, VC4000_CART_SLOT, "Interton VC 4000 Cartridge Slot", tag, owner, clock, "vc4000_cart_slot", __FILE__),
7777                  device_image_interface(mconfig, *this),
7878                  device_slot_interface(mconfig, *this),
79                  m_type(VC4000_STD)
79                  m_type(VC4000_STD), m_cart(nullptr)
8080{
8181}
8282
trunk/src/devices/bus/vcs/dpc.cpp
r250239r250240
1717const device_type ATARI_DPC = &device_creator<dpc_device>;
1818
1919
20dpc_device::dpc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
21         : device_t(mconfig, ATARI_DPC, "Atari DCP", tag, owner, clock, "atari_dcp", __FILE__),
22            m_displaydata(NULL)
20dpc_device::dpc_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock) :
21   device_t(mconfig, ATARI_DPC, "Atari DCP", tag, owner, clock, "atari_dcp", __FILE__),
22   m_movamt(0),
23   m_latch_62(0),
24   m_latch_64(0),
25   m_dlc(0),
26   m_shift_reg(0),
27   m_displaydata(nullptr),
28   m_oscillator(nullptr)
2329{
2430}
2531
trunk/src/devices/bus/vcs/rom.cpp
r250239r250240
104104
105105
106106a26_rom_fe_device::a26_rom_fe_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
107               : a26_rom_2k_device(mconfig, A26_ROM_FE, "Atari VCS 2600 ROM Carts w/FE bankswitch", tag, owner, clock, "vcs_fe", __FILE__)
108{
107               : a26_rom_2k_device(mconfig, A26_ROM_FE, "Atari VCS 2600 ROM Carts w/FE bankswitch", tag, owner, clock, "vcs_fe", __FILE__), m_base_bank(0), m_trigger_on_next_access(0)
108            {
109109}
110110
111111
112112a26_rom_3e_device::a26_rom_3e_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
113               : a26_rom_f6_device(mconfig, A26_ROM_3E, "Atari VCS 2600 ROM Carts w/3E bankswitch", tag, owner, clock, "vcs_3e", __FILE__)
114{
113               : a26_rom_f6_device(mconfig, A26_ROM_3E, "Atari VCS 2600 ROM Carts w/3E bankswitch", tag, owner, clock, "vcs_3e", __FILE__), m_num_bank(0), m_ram_bank(0), m_ram_enable(0)
114            {
115115}
116116
117117
118118a26_rom_3f_device::a26_rom_3f_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
119               : a26_rom_f6_device(mconfig, A26_ROM_3F, "Atari VCS 2600 ROM Carts w/3F bankswitch", tag, owner, clock, "vcs_3f", __FILE__)
120{
119               : a26_rom_f6_device(mconfig, A26_ROM_3F, "Atari VCS 2600 ROM Carts w/3F bankswitch", tag, owner, clock, "vcs_3f", __FILE__), m_num_bank(0)
120            {
121121}
122122
123123
r250239r250240
128128
129129
130130a26_rom_e7_device::a26_rom_e7_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
131               : a26_rom_f6_device(mconfig, A26_ROM_E7, "Atari VCS 2600 ROM Carts w/E7 bankswitch", tag, owner, clock, "vcs_e7", __FILE__)
132{
131               : a26_rom_f6_device(mconfig, A26_ROM_E7, "Atari VCS 2600 ROM Carts w/E7 bankswitch", tag, owner, clock, "vcs_e7", __FILE__), m_ram_bank(0)
132            {
133133}
134134
135135
r250239r250240
152152
153153
154154a26_rom_fv_device::a26_rom_fv_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
155               : a26_rom_f6_device(mconfig, A26_ROM_FV, "Atari VCS 2600 ROM Carts w/FV bankswitch", tag, owner, clock, "vcs_fv", __FILE__)
156{
155               : a26_rom_f6_device(mconfig, A26_ROM_FV, "Atari VCS 2600 ROM Carts w/FV bankswitch", tag, owner, clock, "vcs_fv", __FILE__), m_locked(0)
156            {
157157}
158158
159159
r250239r250240
170170
171171
172172a26_rom_8in1_device::a26_rom_8in1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
173               : a26_rom_f8_device(mconfig, A26_ROM_8IN1, "Atari VCS 2600 ROM Cart 8 in 1", tag, owner, clock, "vcs_8in1", __FILE__)
174{
173               : a26_rom_f8_device(mconfig, A26_ROM_8IN1, "Atari VCS 2600 ROM Cart 8 in 1", tag, owner, clock, "vcs_8in1", __FILE__), m_reset_bank(0)
174            {
175175}
176176
177177
trunk/src/devices/bus/vcs/scharger.cpp
r250239r250240
4242
4343a26_rom_ss_device::a26_rom_ss_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
4444                  : a26_rom_f6_device(mconfig, A26_ROM_SUPERCHARGER, "Atari 2600 ROM Cart Supercharger", tag, owner, clock, "a2600_ss", __FILE__),
45                     m_cassette(*this, "cassette")
46{
45                     m_cassette(*this, "cassette"),
46   m_maincpu(nullptr),
47   m_reg(0),
48   m_write_delay(0),
49   m_ram_write_enabled(0),
50   m_rom_enabled(0),
51   m_byte_started(0),
52   m_last_address(0),
53   m_diff_adjust(0)
54               {
4755}
4856
4957//-------------------------------------------------
trunk/src/devices/bus/vcs/vcs_slot.cpp
r250239r250240
8080vcs_cart_slot_device::vcs_cart_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
8181                  device_t(mconfig, VCS_CART_SLOT, "Atari VCS 2600 Cartridge Slot", tag, owner, clock, "vcs_cart_slot", __FILE__),
8282                  device_image_interface(mconfig, *this),
83                  device_slot_interface(mconfig, *this)
83                  device_slot_interface(mconfig, *this), m_cart(nullptr), m_type(0)
8484{
8585}
8686
trunk/src/devices/bus/vcs_ctrl/ctrl.cpp
r250239r250240
4444
4545vcs_control_port_device::vcs_control_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4646   device_t(mconfig, VCS_CONTROL_PORT, "Atari VCS control port", tag, owner, clock, "vcs_control_port", __FILE__),
47   device_slot_interface(mconfig, *this),
47   device_slot_interface(mconfig, *this), m_device(nullptr),
4848   m_write_trigger(*this)
4949{
5050}
trunk/src/devices/bus/vcs_ctrl/keypad.cpp
r250239r250240
5656vcs_keypad_device::vcs_keypad_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
5757   device_t(mconfig, VCS_KEYPAD, "Atari / CBM Keypad", tag, owner, clock, "vcs_keypad", __FILE__),
5858   device_vcs_control_port_interface(mconfig, *this),
59   m_keypad(*this, "KEYPAD")
59   m_keypad(*this, "KEYPAD"), m_column(0)
6060{
6161}
6262
trunk/src/devices/bus/vectrex/rom.cpp
r250239r250240
3838}
3939
4040vectrex_rom64k_device::vectrex_rom64k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
41               : vectrex_rom_device(mconfig, VECTREX_ROM_64K, "Vectrex Carts w/ Bankswitch", tag, owner, clock, "vectrex_64k", __FILE__)
42{
41               : vectrex_rom_device(mconfig, VECTREX_ROM_64K, "Vectrex Carts w/ Bankswitch", tag, owner, clock, "vectrex_64k", __FILE__), m_bank(0)
42            {
4343}
4444
4545vectrex_sram_device::vectrex_sram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
trunk/src/devices/bus/vectrex/slot.cpp
r250239r250240
6767                  device_image_interface(mconfig, *this),
6868                  device_slot_interface(mconfig, *this),
6969                  m_type(VECTREX_STD),
70                  m_vec3d(VEC3D_NONE)
70                  m_vec3d(VEC3D_NONE), m_cart(nullptr)
7171{
7272}
7373
trunk/src/devices/bus/vic10/exp.cpp
r250239r250240
6363      m_write_irq(*this),
6464      m_write_res(*this),
6565      m_write_cnt(*this),
66      m_write_sp(*this)
66      m_write_sp(*this), m_card(nullptr)
6767{
6868}
6969
trunk/src/devices/bus/vic20/exp.cpp
r250239r250240
6262      device_image_interface(mconfig, *this),
6363      m_write_irq(*this),
6464      m_write_nmi(*this),
65      m_write_res(*this)
65      m_write_res(*this), m_card(nullptr)
6666{
6767}
6868
trunk/src/devices/bus/vic20/fe3.cpp
r250239r250240
114114   device_t(mconfig, VIC20_FE3, "Final Expansion v3", tag, owner, clock, "vic20_fe3", __FILE__),
115115   device_vic20_expansion_card_interface(mconfig, *this),
116116   m_flash_rom(*this, AM29F040_TAG),
117   m_ram(*this, "sram")
117   m_ram(*this, "sram"), m_reg1(0), m_reg2(0), m_lockbit(0)
118118{
119119}
120120
trunk/src/devices/bus/vic20/vic1112.cpp
r250239r250240
139139      device_vic20_expansion_card_interface(mconfig, *this),
140140      m_via0(*this, M6522_0_TAG),
141141      m_via1(*this, M6522_1_TAG),
142      m_bus(*this, IEEE488_TAG)
142      m_bus(*this, IEEE488_TAG), m_via0_irq(0), m_via1_irq(0)
143143{
144144}
145145
trunk/src/devices/bus/vidbrain/exp.cpp
r250239r250240
9090   device_t(mconfig, VIDEOBRAIN_EXPANSION_SLOT, "VideoBrain expansion port", tag, owner, clock, "videobrain_expansion_slot", __FILE__),
9191   device_slot_interface(mconfig, *this),
9292   device_image_interface(mconfig, *this),
93   m_write_extres(*this)
93   m_write_extres(*this), m_cart(nullptr)
9494{
9595}
9696
trunk/src/devices/bus/vip/byteio.cpp
r250239r250240
4545vip_byteio_port_device::vip_byteio_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4646      device_t(mconfig, VIP_BYTEIO_PORT, "VIP byte I/O port", tag, owner, clock, "vip_byteio_port", __FILE__),
4747      device_slot_interface(mconfig, *this),
48      m_write_inst(*this)
48      m_write_inst(*this), m_cart(nullptr)
4949{
5050}
5151
trunk/src/devices/bus/vip/exp.cpp
r250239r250240
5555   device_slot_interface(mconfig, *this),
5656   m_write_int(*this),
5757   m_write_dma_out(*this),
58   m_write_dma_in(*this)
58   m_write_dma_in(*this), m_card(nullptr)
5959{
6060}
6161
trunk/src/devices/bus/vip/vp550.cpp
r250239r250240
8282   device_t(mconfig, VP550, "VP550", tag, owner, clock, "vp550", __FILE__),
8383   device_vip_expansion_card_interface(mconfig, *this),
8484   m_pfg_a(*this, CDP1863_A_TAG),
85   m_pfg_b(*this, CDP1863_B_TAG)
85   m_pfg_b(*this, CDP1863_B_TAG), m_sync_timer(nullptr)
8686{
8787}
8888
trunk/src/devices/bus/vip/vp585.cpp
r250239r250240
8383   device_t(mconfig, VP585, "VP585", tag, owner, clock, "vp585", __FILE__),
8484   device_vip_expansion_card_interface(mconfig, *this),
8585   m_j1(*this, "J1"),
86   m_j2(*this, "J2")
86   m_j2(*this, "J2"), m_keylatch(0)
8787{
8888}
8989
trunk/src/devices/bus/vip/vp590.cpp
r250239r250240
142142   m_cgc(*this, CDP1862_TAG),
143143   m_color_ram(*this, "color_ram"),
144144   m_j1(*this, "J1"),
145   m_j2(*this, "J2")
145   m_j2(*this, "J2"), m_a12(0), m_color(0), m_keylatch(0)
146146{
147147}
148148
trunk/src/devices/bus/vtech/memexp/floppy.cpp
r250239r250240
7272   device_memexp_interface(mconfig, *this),
7373   m_memexp(*this, "mem"),
7474   m_floppy0(*this, "0"),
75   m_floppy1(*this, "1")
75   m_floppy1(*this, "1"), m_floppy(nullptr), m_latch(0), m_shifter(0), m_latching_inverter(false), m_current_cyl(0), m_write_position(0)
7676{
7777}
7878
trunk/src/devices/bus/wangpc/emb.cpp
r250239r250240
4646wangpc_emb_device::wangpc_emb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
4747   device_t(mconfig, WANGPC_EMB, "Wang PC-PM031-B", tag, owner, clock, "wangpc_emb", __FILE__),
4848   device_wangpcbus_card_interface(mconfig, *this),
49   m_ram(*this, "ram")
49   m_ram(*this, "ram"), m_option(0), m_parity_error(0), m_parity_odd(0)
5050{
5151}
5252
trunk/src/devices/bus/wangpc/lvc.cpp
r250239r250240
171171   device_wangpcbus_card_interface(mconfig, *this),
172172   m_crtc(*this, MC6845_TAG),
173173   m_video_ram(*this, "video_ram"),
174   m_option(0),
174   m_option(0), m_scroll(0),
175175   m_irq(CLEAR_LINE)
176176{
177177}
trunk/src/devices/bus/wangpc/mcc.cpp
r250239r250240
106106   device_t(mconfig, WANGPC_MCC, "Wang PC-PM043", tag, owner, clock, "wangpc_mcc", __FILE__),
107107   device_wangpcbus_card_interface(mconfig, *this),
108108   m_sio(*this, Z80SIO2_TAG),
109   m_dart(*this, Z80DART_TAG)
109   m_dart(*this, Z80DART_TAG), m_option(0), m_irq(0)
110110{
111111}
112112
trunk/src/devices/bus/wangpc/tig.cpp
r250239r250240
155155   device_wangpcbus_card_interface(mconfig, *this),
156156   m_hgdc0(*this, UPD7720_0_TAG),
157157   m_hgdc1(*this, UPD7720_1_TAG),
158   m_option(0),
158   m_option(0), m_underline(0),
159159   m_palette(*this, "palette")
160160{
161161}
trunk/src/devices/bus/wangpc/wangpc.cpp
r250239r250240
2828
2929wangpcbus_slot_device::wangpcbus_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
3030   device_t(mconfig, WANGPC_BUS_SLOT, "Wang PC bus slot", tag, owner, clock, "wangpcbus_slot", __FILE__),
31   device_slot_interface(mconfig, *this)
31   device_slot_interface(mconfig, *this),
32   m_bus(nullptr),
33   m_sid(0)
3234{
3335}
3436
r250239r250240
246248//-------------------------------------------------
247249
248250device_wangpcbus_card_interface::device_wangpcbus_card_interface(const machine_config &mconfig, device_t &device) :
249   device_slot_card_interface(mconfig, device)
251   device_slot_card_interface(mconfig, device), m_bus(nullptr), m_sid(0), m_next(nullptr)
250252{
251253   m_slot = dynamic_cast<wangpcbus_slot_device *>(device.owner());
252254}
trunk/src/devices/bus/wangpc/wdc.cpp
r250239r250240
145145   device_t(mconfig, WANGPC_WDC, "Wang PC-PM001", tag, owner, clock, "wangpc_wdc", __FILE__),
146146   device_wangpcbus_card_interface(mconfig, *this),
147147   m_maincpu(*this, Z80_TAG),
148   m_ctc(*this, MK3882_TAG)
148   m_ctc(*this, MK3882_TAG), m_status(0), m_option(0), m_irq(0)
149149{
150150}
151151
trunk/src/devices/bus/wswan/rom.cpp
r250239r250240
2626const device_type WS_ROM_EEPROM = &device_creator<ws_rom_eeprom_device>;
2727
2828
29ws_rom_device::ws_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)
30               : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
31                  device_ws_cart_interface( mconfig, *this )
29ws_rom_device::ws_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) :
30   device_t(mconfig, type, name, tag, owner, clock, shortname, source),
31   device_ws_cart_interface(mconfig, *this),
32   m_base20(0),
33   m_base30(0),
34   m_base40(0),
35   m_rtc_setting(0),
36   m_rtc_year(0),
37   m_rtc_month(0),
38   m_rtc_day(0),
39   m_rtc_day_of_week(0),
40   m_rtc_hour(0),
41   m_rtc_minute(0),
42   m_rtc_second(0),
43   m_rtc_index(0),
44   rtc_timer(nullptr)
3245{
3346}
3447
3548ws_rom_device::ws_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3649               : device_t(mconfig, WS_ROM_STD, "Wonderswan Standard Carts", tag, owner, clock, "ws_rom", __FILE__),
37                  device_ws_cart_interface( mconfig, *this )
38{
50                  device_ws_cart_interface( mconfig, *this ), m_base20(0),
51   m_base30(0),
52   m_base40(0),
53   m_rtc_setting(0),
54   m_rtc_year(0),
55   m_rtc_month(0),
56   m_rtc_day(0),
57   m_rtc_day_of_week(0),
58   m_rtc_hour(0),
59   m_rtc_minute(0),
60   m_rtc_second(0),
61   m_rtc_index(0),
62   rtc_timer(nullptr)
63            {
3964}
4065
4166ws_rom_sram_device::ws_rom_sram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
42               : ws_rom_device(mconfig, WS_ROM_SRAM, "Wonderswan Carts w/SRAM", tag, owner, clock, "ws_sram", __FILE__)
43{
67               : ws_rom_device(mconfig, WS_ROM_SRAM, "Wonderswan Carts w/SRAM", tag, owner, clock, "ws_sram", __FILE__), m_nvram_base(0)
68            {
4469}
4570
4671
4772ws_rom_eeprom_device::ws_rom_eeprom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
48               : ws_rom_device(mconfig, WS_ROM_EEPROM, "Wonderswan Carts w/EEPROM", tag, owner, clock, "ws_eeprom", __FILE__)
49{
73               : ws_rom_device(mconfig, WS_ROM_EEPROM, "Wonderswan Carts w/EEPROM", tag, owner, clock, "ws_eeprom", __FILE__), m_eeprom_mode(0),
74   m_eeprom_address(0), m_eeprom_command(0), m_eeprom_start(0), m_eeprom_write_enabled(0)
75            {
5076}
5177
5278
trunk/src/devices/bus/wswan/slot.cpp
r250239r250240
8080                  device_t(mconfig, WS_CART_SLOT, "Wonderswan Cartridge Slot", tag, owner, clock, "ws_cart_slot", __FILE__),
8181                  device_image_interface(mconfig, *this),
8282                  device_slot_interface(mconfig, *this),
83                  m_type(WS_STD)
83                  m_type(WS_STD), m_cart(nullptr)
8484{
8585}
8686
trunk/src/devices/bus/x68k/x68k_neptunex.cpp
r250239r250240
3030
3131x68k_neptune_device::x68k_neptune_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3232      : device_t(mconfig, X68K_NEPTUNEX, "Neptune-X", tag, owner, clock, "x68k_neptunex", __FILE__),
33      device_x68k_expansion_card_interface(mconfig, *this),
33      device_x68k_expansion_card_interface(mconfig, *this),
34   m_slot(nullptr),
3435      m_dp8390(*this, "dp8390d")
3536{
3637}
trunk/src/devices/bus/x68k/x68k_scsiext.cpp
r250239r250240
5858
5959x68k_scsiext_device::x68k_scsiext_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
6060      : device_t(mconfig, X68K_SCSIEXT, "Sharp CZ-6BS1 SCSI-1", tag, owner, clock, "x68k_cz6bs1", __FILE__),
61      device_x68k_expansion_card_interface(mconfig, *this),
61      device_x68k_expansion_card_interface(mconfig, *this), m_slot(nullptr),
6262      m_spc(*this, "mb89352")
6363{
6464}
trunk/src/devices/bus/x68k/x68kexp.cpp
r250239r250240
4040      m_out_irq2_cb(*this),
4141      m_out_irq4_cb(*this),
4242      m_out_nmi_cb(*this),
43      m_out_reset_cb(*this)
43      m_out_reset_cb(*this), m_card(nullptr)
4444{
4545}
4646
trunk/src/devices/bus/z88/ram.cpp
r250239r250240
3434
3535z88_32k_ram_device::z88_32k_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3636      : device_t(mconfig, Z88_32K_RAM, "Z88 32KB RAM", tag, owner, clock, "z88_32k_ram", __FILE__),
37      device_z88cart_interface( mconfig, *this )
38{
37      device_z88cart_interface( mconfig, *this ), m_ram(nullptr)
38   {
3939}
4040
4141z88_32k_ram_device::z88_32k_ram_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)
4242      : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
43      device_z88cart_interface( mconfig, *this )
44{
43      device_z88cart_interface( mconfig, *this ), m_ram(nullptr)
44   {
4545}
4646
4747//-------------------------------------------------
trunk/src/devices/bus/z88/rom.cpp
r250239r250240
3333
3434z88_32k_rom_device::z88_32k_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
3535      : device_t(mconfig, Z88_32K_ROM, "Z88 32KB ROM", tag, owner, clock, "z88_32k_rom", __FILE__),
36      device_z88cart_interface( mconfig, *this )
37{
36      device_z88cart_interface( mconfig, *this ), m_rom(nullptr)
37   {
3838}
3939
4040z88_32k_rom_device::z88_32k_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)
4141      : device_t(mconfig, type, name, tag, owner, clock, shortname, source),
42      device_z88cart_interface( mconfig, *this )
43{
42      device_z88cart_interface( mconfig, *this ), m_rom(nullptr)
43   {
4444}
4545
4646//-------------------------------------------------
trunk/src/devices/bus/z88/z88.cpp
r250239r250240
6060      device_t(mconfig, Z88CART_SLOT, "Z88 Cartridge Slot", tag, owner, clock, "z88cart_slot", __FILE__),
6161      device_image_interface(mconfig, *this),
6262      device_slot_interface(mconfig, *this),
63      m_out_flp_cb(*this)
63      m_out_flp_cb(*this), m_cart(nullptr), m_flp_timer(nullptr)
6464{
6565}
6666
trunk/src/devices/video/poly.h
r250239r250240
10021002      edgeptr->dxdy = (edgeptr->v2->x - edgeptr->v1->x) * ooy;
10031003      for (int paramnum = 0; paramnum < paramcount; paramnum++)
10041004         edgeptr->dpdy[paramnum] = (edgeptr->v2->p[paramnum] - edgeptr->v1->p[paramnum]) * ooy;
1005      edgeptr++;
1005      ++edgeptr;
10061006   }
10071007
10081008   // walk backward to build up the backward edge list
r250239r250240
10231023      edgeptr->dxdy = (edgeptr->v2->x - edgeptr->v1->x) * ooy;
10241024      for (int paramnum = 0; paramnum < paramcount; paramnum++)
10251025         edgeptr->dpdy[paramnum] = (edgeptr->v2->p[paramnum] - edgeptr->v1->p[paramnum]) * ooy;
1026      edgeptr++;
1026      ++edgeptr;
10271027   }
10281028
10291029   // determine which list is left/right:
r250239r250240
10681068         // compute the ending X based on which part of the triangle we're in
10691069         _BaseType fully = _BaseType(curscan + extnum) + _BaseType(0.5);
10701070         while (fully > ledge->v2->y && fully < v[maxv].y)
1071            ledge++;
1071            ++ledge;
10721072         while (fully > redge->v2->y && fully < v[maxv].y)
1073            redge++;
1073            ++redge;
10741074         _BaseType startx = ledge->v1->x + (fully - ledge->v1->y) * ledge->dxdy;
10751075         _BaseType stopx = redge->v1->x + (fully - redge->v1->y) * redge->dxdy;
10761076
r250239r250240
11591159         nextout->y = v1.y + frac * (v2.y - v1.y);
11601160         for (int paramnum = 0; paramnum < paramcount; paramnum++)
11611161            nextout->p[paramnum] = v1.p[paramnum] + frac * (v2.p[paramnum] - v1.p[paramnum]);
1162         nextout++;
1162         ++nextout;
11631163      }
11641164
11651165      // if this vertex is not clipped, copy it in
trunk/src/emu/debug/debugcmd.cpp
r250239r250240
14841484   /* loop over all CPUs */
14851485   device_iterator iter(machine.root_device());
14861486   for (device_t *device = iter.first(); device != NULL; device = iter.next())
1487      for (address_spacenum spacenum = AS_0; spacenum < ADDRESS_SPACES; spacenum++)
1487      for (address_spacenum spacenum = AS_0; spacenum < ADDRESS_SPACES; ++spacenum)
14881488         if (device->debug()->watchpoint_first(spacenum) != NULL)
14891489         {
14901490            static const char *const types[] = { "unkn ", "read ", "write", "r/w  " };
trunk/src/emu/debug/debugcpu.cpp
r250239r250240
23772377bool device_debug::watchpoint_clear(int index)
23782378{
23792379   // scan the list to see if we own this breakpoint
2380   for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); spacenum++)
2380   for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); ++spacenum)
23812381      for (watchpoint **wp = &m_wplist[spacenum]; *wp != NULL; wp = &(*wp)->m_next)
23822382         if ((*wp)->m_index == index)
23832383         {
r250239r250240
24012401void device_debug::watchpoint_clear_all()
24022402{
24032403   // clear the head until we run out
2404   for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); spacenum++)
2404   for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); ++spacenum)
24052405      while (m_wplist[spacenum] != NULL)
24062406         watchpoint_clear(m_wplist[spacenum]->index());
24072407}
r250239r250240
24152415bool device_debug::watchpoint_enable(int index, bool enable)
24162416{
24172417   // scan the list to see if we own this watchpoint
2418   for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); spacenum++)
2418   for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); ++spacenum)
24192419      for (watchpoint *wp = m_wplist[spacenum]; wp != NULL; wp = wp->next())
24202420         if (wp->m_index == index)
24212421         {
r250239r250240
24372437void device_debug::watchpoint_enable_all(bool enable)
24382438{
24392439   // apply the enable to all watchpoints we own
2440   for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); spacenum++)
2440   for (address_spacenum spacenum = AS_0; spacenum < ARRAY_LENGTH(m_wplist); ++spacenum)
24412441      for (watchpoint *wp = m_wplist[spacenum]; wp != NULL; wp = wp->next())
24422442         watchpoint_enable(wp->index(), enable);
24432443}
trunk/src/emu/debug/dvmemory.cpp
r250239r250240
133133   memory_interface_iterator iter(machine().root_device());
134134   for (device_memory_interface *memintf = iter.first(); memintf != NULL; memintf = iter.next())
135135      if (&memintf->device() != &machine().root_device())
136         for (address_spacenum spacenum = AS_0; spacenum < ADDRESS_SPACES; spacenum++)
136         for (address_spacenum spacenum = AS_0; spacenum < ADDRESS_SPACES; ++spacenum)
137137            if (memintf->has_space(spacenum))
138138            {
139139               address_space &space = memintf->space(spacenum);
trunk/src/emu/debug/dvwpoints.cpp
r250239r250240
231231   {
232232      // Collect
233233      device_debug &debugInterface = *source->device()->debug();
234      for (address_spacenum spacenum = AS_0; spacenum < ADDRESS_SPACES; spacenum++)
234      for (address_spacenum spacenum = AS_0; spacenum < ADDRESS_SPACES; ++spacenum)
235235      {
236236         for (device_debug::watchpoint *wp = debugInterface.watchpoint_first(spacenum); wp != NULL; wp = wp->next())
237237            m_buffer.push_back(wp);
trunk/src/emu/dimemory.cpp
r250239r250240
241241   bool detected_overlap = DETECT_OVERLAPPING_MEMORY ? false : true;
242242
243243   // loop over all address spaces
244   for (address_spacenum spacenum = AS_0; spacenum < ADDRESS_SPACES; spacenum++)
244   for (address_spacenum spacenum = AS_0; spacenum < ADDRESS_SPACES; ++spacenum)
245245   {
246246      const address_space_config *spaceconfig = space_config(spacenum);
247247      if (spaceconfig != NULL)
trunk/src/emu/input.cpp
r250239r250240
834834   // if we have a generic ID, pick a new internal one
835835   input_item_id originalid = itemid;
836836   if (itemid >= ITEM_ID_OTHER_SWITCH && itemid <= ITEM_ID_OTHER_AXIS_RELATIVE)
837      for (itemid = (input_item_id)(ITEM_ID_MAXIMUM + 1); itemid <= ITEM_ID_ABSOLUTE_MAXIMUM; itemid++)
837      for (itemid = (input_item_id)(ITEM_ID_MAXIMUM + 1); itemid <= ITEM_ID_ABSOLUTE_MAXIMUM; ++itemid)
838838         if (m_item[itemid] == NULL)
839839            break;
840840   assert(itemid <= ITEM_ID_ABSOLUTE_MAXIMUM);
r250239r250240
920920
921921   // update the state of all the keys and see if any changed state
922922   bool anything_changed = false;
923   for (input_item_id itemid = ITEM_ID_FIRST_VALID; itemid <= m_maxitem; itemid++)
923   for (input_item_id itemid = ITEM_ID_FIRST_VALID; itemid <= m_maxitem; ++itemid)
924924   {
925925      input_device_item *item = m_item[itemid];
926926      if (item != NULL && item->itemclass() == ITEM_CLASS_SWITCH)
r250239r250240
930930
931931   // if the keyboard state is stable, flush the current state
932932   if (!anything_changed)
933      for (input_item_id itemid = ITEM_ID_FIRST_VALID; itemid <= m_maxitem; itemid++)
933      for (input_item_id itemid = ITEM_ID_FIRST_VALID; itemid <= m_maxitem; ++itemid)
934934      {
935935         input_device_item *item = m_item[itemid];
936936         if (item != NULL && item->itemclass() == ITEM_CLASS_SWITCH)
r250239r250240
11831183   reset_memory();
11841184
11851185   // iterate over device classes and devices
1186   for (input_device_class devclass = DEVICE_CLASS_FIRST_VALID; devclass <= DEVICE_CLASS_LAST_VALID; devclass++)
1186   for (input_device_class devclass = DEVICE_CLASS_FIRST_VALID; devclass <= DEVICE_CLASS_LAST_VALID; ++devclass)
11871187      for (int devnum = 0; devnum <= m_class[devclass]->maxindex(); devnum++)
11881188      {
11891189         // fetch the device; ignore if NULL
r250239r250240
11921192            continue;
11931193
11941194         // iterate over items within each device
1195         for (input_item_id itemid = ITEM_ID_FIRST_VALID; itemid <= device->maxitem(); itemid++)
1195         for (input_item_id itemid = ITEM_ID_FIRST_VALID; itemid <= device->maxitem(); ++itemid)
11961196         {
11971197            // for any non-switch items, set memory equal to the current value
11981198            input_device_item *item = device->item(itemid);
r250239r250240
12101210input_code input_manager::poll_switches()
12111211{
12121212   // iterate over device classes and devices
1213   for (input_device_class devclass = DEVICE_CLASS_FIRST_VALID; devclass <= DEVICE_CLASS_LAST_VALID; devclass++)
1213   for (input_device_class devclass = DEVICE_CLASS_FIRST_VALID; devclass <= DEVICE_CLASS_LAST_VALID; ++devclass)
12141214      for (int devnum = 0; devnum <= m_class[devclass]->maxindex(); devnum++)
12151215      {
12161216         // fetch the device; ignore if NULL
r250239r250240
12191219            continue;
12201220
12211221         // iterate over items within each device
1222         for (input_item_id itemid = ITEM_ID_FIRST_VALID; itemid <= device->maxitem(); itemid++)
1222         for (input_item_id itemid = ITEM_ID_FIRST_VALID; itemid <= device->maxitem(); ++itemid)
12231223         {
12241224            input_device_item *item = device->item(itemid);
12251225            if (item != NULL)
r250239r250240
12991299         continue;
13001300
13011301      // iterate over items within each device
1302      for (input_item_id itemid = ITEM_ID_FIRST_VALID; itemid <= device->maxitem(); itemid++)
1302      for (input_item_id itemid = ITEM_ID_FIRST_VALID; itemid <= device->maxitem(); ++itemid)
13031303      {
13041304         input_device_item *item = device->item(itemid);
13051305         if (item != NULL && item->itemclass() == ITEM_CLASS_SWITCH)
r250239r250240
13641364input_code input_manager::poll_axes()
13651365{
13661366   // iterate over device classes and devices
1367   for (input_device_class devclass = DEVICE_CLASS_FIRST_VALID; devclass <= DEVICE_CLASS_LAST_VALID; devclass++)
1367   for (input_device_class devclass = DEVICE_CLASS_FIRST_VALID; devclass <= DEVICE_CLASS_LAST_VALID; ++devclass)
13681368      for (int devnum = 0; devnum <= m_class[devclass]->maxindex(); devnum++)
13691369      {
13701370         // fetch the device; ignore if NULL
r250239r250240
13731373            continue;
13741374
13751375         // iterate over items within each device
1376         for (input_item_id itemid = ITEM_ID_FIRST_VALID; itemid <= device->maxitem(); itemid++)
1376         for (input_item_id itemid = ITEM_ID_FIRST_VALID; itemid <= device->maxitem(); ++itemid)
13771377         {
13781378            input_device_item *item = device->item(itemid);
13791379            if (item != NULL && item->itemclass() != ITEM_CLASS_SWITCH)
r250239r250240
14451445input_code input_manager::code_from_itemid(input_item_id itemid) const
14461446{
14471447   // iterate over device classes and devices
1448   for (input_device_class devclass = DEVICE_CLASS_FIRST_VALID; devclass <= DEVICE_CLASS_LAST_VALID; devclass++)
1448   for (input_device_class devclass = DEVICE_CLASS_FIRST_VALID; devclass <= DEVICE_CLASS_LAST_VALID; ++devclass)
14491449      for (int devnum = 0; devnum <= m_class[devclass]->maxindex(); devnum++)
14501450      {
14511451         input_device *device = m_class[devclass]->device(devnum);
r250239r250240
16131613         return INPUT_CODE_INVALID;
16141614
16151615      // if not a standard code, look it up in the device specific codes
1616      for (itemid = ITEM_ID_FIRST_VALID; itemid <= device->maxitem(); itemid++)
1616      for (itemid = ITEM_ID_FIRST_VALID; itemid <= device->maxitem(); ++itemid)
16171617      {
16181618         input_device_item *item = device->item(itemid);
16191619         if (item != NULL && token[curtok].compare(item->token()) == 0)
trunk/src/emu/ioport.cpp
r250239r250240
712712
713713void input_type_entry::restore_default_seq()
714714{
715   for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
715   for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
716716      m_seq[seqtype] = defseq(seqtype);
717717}
718718
r250239r250240
763763
764764   // read all the associated ports
765765   running_machine *machine = NULL;
766   for (direction_t direction = JOYDIR_UP; direction < JOYDIR_COUNT; direction++)
766   for (direction_t direction = JOYDIR_UP; direction < JOYDIR_COUNT; ++direction)
767767      for (const simple_list_wrapper<ioport_field> *i = m_field[direction].first(); i != NULL; i = i->next())
768768      {
769769         machine = &i->object()->machine();
r250239r250240
14771477      m_way(0)
14781478{
14791479   // reset sequences and chars
1480   for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
1480   for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
14811481      m_seq[seqtype].set_default();
14821482   m_chars[0] = m_chars[1] = m_chars[2] = m_chars[3] = unicode_char(0);
14831483
r250239r250240
16791679   memset(&settings, 0, sizeof(settings));
16801680
16811681   // copy the basics
1682   for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
1682   for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
16831683      settings.seq[seqtype] = seq(seqtype);
16841684
16851685   // if there's a list of settings or we're an adjuster, copy the current value
r250239r250240
17111711void ioport_field::set_user_settings(const user_settings &settings)
17121712{
17131713   // copy the basics
1714   for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
1714   for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
17151715   {
17161716      const input_seq &defseq = manager().type_seq(m_type, m_player, input_seq_type(seqtype));
17171717      if (defseq == settings.seq[seqtype])
r250239r250240
21592159      joydir(digital_joystick::JOYDIR_COUNT)
21602160{
21612161   // fill in the basic values
2162   for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
2162   for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
21632163      seq[seqtype] = field.defseq_unresolved(seqtype);
21642164
21652165   // if this is a digital joystick field, make a note of it
r250239r250240
29842984
29852985      // initialize sequences to invalid defaults
29862986      input_seq newseq[SEQ_TYPE_TOTAL];
2987      for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
2987      for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
29882988         newseq[seqtype].set(INPUT_CODE_INVALID);
29892989
29902990      // loop over new sequences
r250239r250240
30123012   // what we will diff against
30133013   if (config_type == CONFIG_TYPE_CONTROLLER)
30143014      for (input_type_entry *entry = m_typelist.first(); entry != NULL; entry = entry->next())
3015         for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
3015         for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
30163016            entry->defseq(seqtype) = entry->seq(seqtype);
30173017}
30183018
r250239r250240
30533053      // loop over the remapping table, then over default ports, replacing old with new
30543054      for (int remapnum = 0; remapnum < count; remapnum++)
30553055         for (input_type_entry *entry = m_typelist.first(); entry != NULL; entry = entry->next())
3056            for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
3056            for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
30573057               entry->m_seq[seqtype].replace(oldtable[remapnum], newtable[remapnum]);
30583058   }
30593059}
r250239r250240
30703070   for (input_type_entry *entry = m_typelist.first(); entry != NULL; entry = entry->next())
30713071      if (entry->type() == type && entry->player() == player)
30723072      {
3073         for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
3073         for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
30743074            if (newseq[seqtype][0] != INPUT_CODE_INVALID)
30753075               entry->m_seq[seqtype] = newseq[seqtype];
30763076         return true;
r250239r250240
31023102               field->mask() == mask && (field->defvalue() & mask) == (defvalue & mask))
31033103            {
31043104               // if a sequence was specified, copy it in
3105               for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
3105               for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
31063106                  if (newseq[seqtype][0] != INPUT_CODE_INVALID)
31073107                     field->live().seq[seqtype] = newseq[seqtype];
31083108
r250239r250240
32213221      {
32223222         // see if any of the sequences have changed
32233223         input_seq_type seqtype;
3224         for (seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
3224         for (seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
32253225            if (entry->seq(seqtype) != entry->defseq(seqtype))
32263226               break;
32273227
r250239r250240
32373237               xml_set_attribute(portnode, "type", input_type_to_token(tempstr, entry->type(), entry->player()));
32383238
32393239               // add only the sequences that have changed from the defaults
3240               for (input_seq_type type = SEQ_TYPE_STANDARD; type < SEQ_TYPE_TOTAL; type++)
3240               for (input_seq_type type = SEQ_TYPE_STANDARD; type < SEQ_TYPE_TOTAL; ++type)
32413241                  if (entry->seq(type) != entry->defseq(type))
32423242                     save_sequence(portnode, type, entry->type(), entry->seq(type));
32433243            }
r250239r250240
32613261         {
32623262            // determine if we changed
32633263            bool changed = false;
3264            for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
3264            for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
32653265               changed |= (field->seq(seqtype) != field->defseq(seqtype));
32663266
32673267            // non-analog changes
r250239r250240
32953295                  xml_set_attribute_int(portnode, "defvalue", field->defvalue() & field->mask());
32963296
32973297                  // add sequences if changed
3298                  for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
3298                  for (input_seq_type seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
32993299                     if (field->seq(seqtype) != field->defseq(seqtype))
33003300                        save_sequence(portnode, seqtype, field->type(), field->seq(seqtype));
33013301
trunk/src/emu/luaengine.cpp
r250239r250240
428428   lua_State *L = luaThis->m_lua_state;
429429   luabridge::LuaRef sp_table = luabridge::LuaRef::newTable(L);
430430
431   for (address_spacenum sp = AS_0; sp < ADDRESS_SPACES; sp++) {
431   for (address_spacenum sp = AS_0; sp < ADDRESS_SPACES; ++sp) {
432432      if (dev->memory().has_space(sp)) {
433433         sp_table[dev->memory().space(sp).name()] = &(dev->memory().space(sp));
434434      }
trunk/src/emu/memory.cpp
r250239r250240
484484
485485   // forward delegate callbacks configuration
486486   template<typename _delegate> void set_delegate(_delegate delegate) const {
487      for (typename std::list<_HandlerEntry *>::const_iterator i = handlers.begin(); i != handlers.end(); i++)
487      for (typename std::list<_HandlerEntry *>::const_iterator i = handlers.begin(); i != handlers.end(); ++i)
488488         (*i)->set_delegate(delegate, mask);
489489   }
490490
491491   // forward I/O port access configuration
492492   void set_ioport(ioport_port &ioport) const {
493      for (typename std::list<_HandlerEntry *>::const_iterator i = handlers.begin(); i != handlers.end(); i++)
493      for (typename std::list<_HandlerEntry *>::const_iterator i = handlers.begin(); i != handlers.end(); ++i)
494494         (*i)->set_ioport(ioport);
495495   }
496496
r250239r250240
661661      std::list<UINT32> entries;
662662      setup_range(bytestart, byteend, bytemask, bytemirror, mask, entries);
663663      std::list<handler_entry_read *> handlers;
664      for (std::list<UINT32>::const_iterator i = entries.begin(); i != entries.end(); i++)
664      for (std::list<UINT32>::const_iterator i = entries.begin(); i != entries.end(); ++i)
665665         handlers.push_back(&handler_read(*i));
666666      return handler_entry_proxy<handler_entry_read>(handlers, mask);
667667   }
r250239r250240
734734      std::list<UINT32> entries;
735735      setup_range(bytestart, byteend, bytemask, bytemirror, mask, entries);
736736      std::list<handler_entry_write *> handlers;
737      for (std::list<UINT32>::const_iterator i = entries.begin(); i != entries.end(); i++)
737      for (std::list<UINT32>::const_iterator i = entries.begin(); i != entries.end(); ++i)
738738         handlers.push_back(&handler_write(*i));
739739      return handler_entry_proxy<handler_entry_write>(handlers, mask);
740740   }
r250239r250240
812812      std::list<UINT32> entries;
813813      setup_range(bytestart, byteend, bytemask, bytemirror, mask, entries);
814814      std::list<handler_entry_setoffset *> handlers;
815      for (std::list<UINT32>::const_iterator i = entries.begin(); i != entries.end(); i++)
815      for (std::list<UINT32>::const_iterator i = entries.begin(); i != entries.end(); ++i)
816816         handlers.push_back(&handler_setoffset(*i));
817817      return handler_entry_proxy<handler_entry_setoffset>(handlers, mask);
818818   }
r250239r250240
15241524   // loop over devices and spaces within each device
15251525   memory_interface_iterator iter(machine().root_device());
15261526   for (device_memory_interface *memory = iter.first(); memory != NULL; memory = iter.next())
1527      for (address_spacenum spacenum = AS_0; spacenum < ADDRESS_SPACES; spacenum++)
1527      for (address_spacenum spacenum = AS_0; spacenum < ADDRESS_SPACES; ++spacenum)
15281528      {
15291529         // if there is a configuration for this space, we need an address space
15301530         const address_space_config *spaceconfig = memory->space_config(spacenum);
r250239r250240
19111911   {
19121912      // find the entry before the last one we processed
19131913      const address_map_entry *entry;
1914      for (entry = map->m_entrylist.first(); entry->next() != last_entry; entry = entry->next()) ;
1914      for (entry = map->m_entrylist.first(); entry->next() != last_entry; entry = entry->next()) { };
19151915      last_entry = entry;
19161916
19171917      // map both read and write halves
r250239r250240
28692869      curentry.configure(bytestart, byteend, bytemask);
28702870
28712871      // Populate it wherever needed
2872      for (std::list<subrange>::const_iterator i = range_override.begin(); i != range_override.end(); i++)
2872      for (std::list<subrange>::const_iterator i = range_override.begin(); i != range_override.end(); ++i)
28732873         populate_range(i->start, i->end, entry);
28742874
28752875      // Add it in the "to be setup" list
r250239r250240
28822882   // Ranges in range_partial must duplicated then partially changed
28832883   if (!range_partial.empty())
28842884   {
2885      for (std::map<UINT16, std::list<subrange> >::const_iterator i = range_partial.begin(); i != range_partial.end(); i++)
2885      for (std::map<UINT16, std::list<subrange> >::const_iterator i = range_partial.begin(); i != range_partial.end(); ++i)
28862886      {
28872887         // Theorically, if the handler to change matches the
28882888         // characteristics of ours, we can directly change it.  In
r250239r250240
29122912         curentry.configure(bytestart, byteend, bytemask);
29132913
29142914         // Populate it wherever needed
2915         for (std::list<subrange>::const_iterator j = i->second.begin(); j != i->second.end(); j++)
2915         for (std::list<subrange>::const_iterator j = i->second.begin(); j != i->second.end(); ++j)
29162916            populate_range(j->start, j->end, entry);
29172917
29182918         // Add it in the "to be setup" list
trunk/src/emu/profiler.cpp
r250239r250240
175175   // compute the total time for all bits, not including profiler or idle
176176   UINT64 computed = 0;
177177   profile_type curtype;
178   for (curtype = PROFILER_DEVICE_FIRST; curtype < PROFILER_PROFILER; curtype++)
178   for (curtype = PROFILER_DEVICE_FIRST; curtype < PROFILER_PROFILER; ++curtype)
179179      computed += m_data[curtype];
180180
181181   // save that result in normalize, and continue adding the rest
182182   UINT64 normalize = computed;
183   for ( ; curtype < PROFILER_TOTAL; curtype++)
183   for ( ; curtype < PROFILER_TOTAL; ++curtype)
184184      computed += m_data[curtype];
185185
186186   // this becomes the total; if we end up with 0 for anything, we were just started, so return empty
r250239r250240
193193
194194   // loop over all types and generate the string
195195   device_iterator iter(machine.root_device());
196   for (curtype = PROFILER_DEVICE_FIRST; curtype < PROFILER_TOTAL; curtype++)
196   for (curtype = PROFILER_DEVICE_FIRST; curtype < PROFILER_TOTAL; ++curtype)
197197   {
198198      // determine the accumulated time for this type
199199      computed = m_data[curtype];
trunk/src/emu/render.cpp
r250239r250240
12041204      throw emu_fatalerror("Mandatory artwork is missing");
12051205
12061206   // scan the current view for all screens
1207   for (item_layer layer = ITEM_LAYER_FIRST; layer < ITEM_LAYER_MAX; layer++)
1207   for (item_layer layer = ITEM_LAYER_FIRST; layer < ITEM_LAYER_MAX; ++layer)
12081208
12091209      // iterate over items in the layer
12101210      for (layout_view::item *curitem = m_curview->first_item(layer); curitem != NULL; curitem = curitem->next())
r250239r250240
12871287
12881288   // iterate over layers back-to-front, but only if we're running
12891289   if (m_manager.machine().phase() >= MACHINE_PHASE_RESET)
1290      for (item_layer layernum = ITEM_LAYER_FIRST; layernum < ITEM_LAYER_MAX; layernum++)
1290      for (item_layer layernum = ITEM_LAYER_FIRST; layernum < ITEM_LAYER_MAX; ++layernum)
12911291      {
12921292         int blendmode;
12931293         item_layer layer = get_layer_and_blendmode(*m_curview, layernum, blendmode);
r250239r250240
19161916   }
19171917
19181918   // loop through each layer
1919   for (item_layer layernum = ITEM_LAYER_FIRST; layernum < ITEM_LAYER_MAX; layernum++)
1919   for (item_layer layernum = ITEM_LAYER_FIRST; layernum < ITEM_LAYER_MAX; ++layernum)
19201920   {
19211921      int blendmode;
19221922      item_layer layer = get_layer_and_blendmode(*m_curview, layernum, blendmode);
trunk/src/emu/rendlay.cpp
r250239r250240
22162216   // loop over all layers
22172217   bool first = true;
22182218   bool scrfirst = true;
2219   for (item_layer layer = ITEM_LAYER_FIRST; layer < ITEM_LAYER_MAX; layer++)
2219   for (item_layer layer = ITEM_LAYER_FIRST; layer < ITEM_LAYER_MAX; ++layer)
22202220   {
22212221      // determine if this layer should be visible
22222222      switch (layer)
r250239r250240
22912291   float yscale = (target_bounds.y1 - target_bounds.y0) / (m_bounds.y1 - m_bounds.y0);
22922292
22932293   // normalize all the item bounds
2294   for (item_layer layer = ITEM_LAYER_FIRST; layer < ITEM_LAYER_MAX; layer++)
2294   for (item_layer layer = ITEM_LAYER_FIRST; layer < ITEM_LAYER_MAX; ++layer)
22952295      for (item *curitem = first_item(layer); curitem != NULL; curitem = curitem->next())
22962296      {
22972297         curitem->m_bounds.x0 = target_bounds.x0 + (curitem->m_rawbounds.x0 - xoffs) * xscale;
r250239r250240
23082308
23092309void layout_view::resolve_tags()
23102310{
2311   for (item_layer layer = ITEM_LAYER_FIRST; layer < ITEM_LAYER_MAX; layer++)
2311   for (item_layer layer = ITEM_LAYER_FIRST; layer < ITEM_LAYER_MAX; ++layer)
23122312   {
23132313      for (item *curitem = first_item(layer); curitem != NULL; curitem = curitem->next())
23142314      {
trunk/src/emu/tilemap.cpp
r250239r250240
13551355               // advance in X
13561356               cx += incxx;
13571357               x++;
1358               dest++;
1358               ++dest;
13591359               pri++;
13601360            }
13611361         }
r250239r250240
13951395            cx += incxx;
13961396            cy += incxy;
13971397            x++;
1398            dest++;
1398            ++dest;
13991399            pri++;
14001400         }
14011401
r250239r250240
14361436            cx += incxx;
14371437            cy += incxy;
14381438            x++;
1439            dest++;
1439            ++dest;
14401440            pri++;
14411441         }
14421442
trunk/src/emu/ui/inputmap.cpp
r250239r250240
109109
110110         /* loop over all sequence types */
111111         sortorder++;
112         for (seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
112         for (seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
113113         {
114114            /* build an entry for the standard sequence */
115115            input_item_data *item = (input_item_data *)m_pool_alloc(sizeof(*item));
r250239r250240
187187               sortorder = field->type() | 0xf000;
188188
189189            /* loop over all sequence types */
190            for (seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; seqtype++)
190            for (seqtype = SEQ_TYPE_STANDARD; seqtype < SEQ_TYPE_TOTAL; ++seqtype)
191191            {
192192               /* build an entry for the standard sequence */
193193               input_item_data *item = (input_item_data *)m_pool_alloc(sizeof(*item));
trunk/src/emu/ui/ui.cpp
r250239r250240
17131713   }
17141714
17151715   // check for A-Z or 0-9
1716   for (input_item_id id = ITEM_ID_A; id <= ITEM_ID_Z; id++)
1716   for (input_item_id id = ITEM_ID_A; id <= ITEM_ID_Z; ++id)
17171717      if (machine.input().code_pressed_once(input_code(DEVICE_CLASS_KEYBOARD, 0, ITEM_CLASS_SWITCH, ITEM_MODIFIER_NONE, id)))
17181718         file = id - ITEM_ID_A + 'a';
17191719   if (file == 0)
1720      for (input_item_id id = ITEM_ID_0; id <= ITEM_ID_9; id++)
1720      for (input_item_id id = ITEM_ID_0; id <= ITEM_ID_9; ++id)
17211721         if (machine.input().code_pressed_once(input_code(DEVICE_CLASS_KEYBOARD, 0, ITEM_CLASS_SWITCH, ITEM_MODIFIER_NONE, id)))
17221722            file = id - ITEM_ID_0 + '0';
17231723   if (file == 0)
1724      for (input_item_id id = ITEM_ID_0_PAD; id <= ITEM_ID_9_PAD; id++)
1724      for (input_item_id id = ITEM_ID_0_PAD; id <= ITEM_ID_9_PAD; ++id)
17251725         if (machine.input().code_pressed_once(input_code(DEVICE_CLASS_KEYBOARD, 0, ITEM_CLASS_SWITCH, ITEM_MODIFIER_NONE, id)))
17261726            file = id - ITEM_ID_0_PAD + '0';
17271727   if (file == 0)
trunk/src/emu/uiinput.cpp
r250239r250240
9797   ui_input_private *uidata = machine.ui_input_data;
9898
9999   /* update the state of all the UI keys */
100   for (ioport_type code = ioport_type(IPT_UI_FIRST + 1); code < IPT_UI_LAST; code++)
100   for (ioport_type code = ioport_type(IPT_UI_FIRST + 1); code < IPT_UI_LAST; ++code)
101101   {
102102      bool pressed = machine.ioport().type_pressed(code);
103103      if (!pressed || uidata->seqpressed[code] != SEQ_PRESSED_RESET)


Previous 199869 Revisions Next


© 1997-2024 The MAME Team