| Previous | 199869 Revisions | Next |
| r22096 Tuesday 26th March, 2013 at 15:18:37 UTC by Miodrag Milanović |
|---|
| Expanded device_t constructor with parameters for short name and source file location [Miodrag Milanovic] |
| [src/emu] | devcpu.c devcpu.h device.c device.h driver.c |
| [src/emu/cpu/m6502] | deco16.c m3745x.c m3745x.h m4510.c m5074x.c m5074x.h m6502.c m6502.h m6504.c m6509.c m6510.c m6510.h m6510t.c m65c02.c m65c02.h m65ce02.c m65ce02.h m65sc02.c m740.c m740.h m7501.c m8502.c n2a03.c r65c02.c r65c02.h |
| [src/emu/cpu/mcs96] | i8x9x.c i8x9x.h i8xc196.c i8xc196.h |
| [src/emu/cpu/psx] | siodev.c siodev.h |
| [src/emu/cpu/tms32031] | tms32031.c tms32031.h |
| [src/emu/imagedev] | chd_cd.c chd_cd.h flopdrv.c flopdrv.h floppy.c floppy.h snapquik.c snapquik.h |
| [src/emu/machine] | 53c7xx.c cr589.c ctronics.c ctronics.h idectrl.c idectrl.h laserdsc.c laserdsc.h ldpr8210.c ldpr8210.h ldstub.h ldv1000.c ldvp931.c n68681.c nscsi_bus.c nscsi_bus.h nscsi_cd.c nscsi_cd.h nscsi_hd.c nscsi_hd.h scsicb.c scsicd.c scsicd.h scsidev.c scsidev.h scsihd.c scsihd.h scsihle.c scsihle.h upd765.c upd765.h |
| [src/emu/sound] | bsmt2000.c dac.c k054539.c qs1000.c segapcm.c votrax.c |
| [src/emu/video] | h63484.c hd44780.c hd44780.h hd61830.c m50458.c mb90082.c msm6255.c msm6255.h saa5050.c saa5050.h sed1330.c sed1330.h upd7220.c v9938.c |
| [src/mame/audio] | gottlieb.c midway.c namco52.c namco52.h namco54.c namco54.h williams.c |
| [src/mame/drivers] | chihiro.c |
| [src/mame/machine] | dc-ctrl.c deco222.c decocpu6.c decocpu7.c gdrom.c k573cass.c mapledev.c mapledev.h mega32x.c mie.c namco06.c namco06.h namco50.c namco50.h namco51.c namco51.h namco53.c namco53.h namco62.c namco62.h zndip.c znsec.c |
| [src/mess/audio] | lynx.c |
| [src/mess/includes] | apollo.h lynx.h |
| [src/mess/machine] | 3c503.c 3c503.h a2alfam2.c a2alfam2.h a2arcadebd.c a2arcadebd.h a2bus.c a2bus.h a2cffa.c a2cffa.h a2diskii.c a2diskii.h a2eauxslot.c a2eauxslot.h a2echoii.c a2echoii.h a2eext80col.c a2eext80col.h a2eramworks3.c a2eramworks3.h a2estd80col.c a2estd80col.h a2lang.c a2lang.h a2memexp.c a2memexp.h a2midi.c a2midi.h a2mockingboard.c a2mockingboard.h a2sam.c a2sam.h a2scsi.c a2scsi.h a2softcard.c a2softcard.h a2ssc.c a2ssc.h a2swyft.c a2swyft.h a2themill.c a2themill.h a2thunderclock.c a2thunderclock.h a2videoterm.c a2videoterm.h a2vulcan.c a2vulcan.h a2zipdrive.c a2zipdrive.h abc77.c abc77.h abc800kb.c abc80kb.c abc890.c abc890.h abc99.c abc_dos.c abc_dos.h abc_fd2.c abc_fd2.h abc_hdc.c abc_hdc.h abc_sio.c abc_sio.h abc_slutprov.c abc_slutprov.h abc_turbo.c abc_turbo.h abc_uni800.c abc_uni800.h abc_xebec.c abc_xebec.h acb4070.c adam_ddp.c adam_ddp.h adam_fdc.c adam_fdc.h adam_ide.c adam_ide.h adam_kb.c adam_kb.h adam_prn.c adam_prn.h adam_ram.c adam_ram.h adam_spi.c adam_spi.h adamlink.c adamlink.h appldriv.c applefdc.c applefdc.h apricotkb.c at_keybc.c beta.c beta.h bw2_ramcard.c bw2_ramcard.h c128_comal80.c c128_comal80.h c1541.c c1541.h c1551.c c1551.h c1571.c c1571.h c1581.c c1581.h c2031.c c2031.h c2040.c c2040.h c2n.c c2n.h c64_16kb.c c64_16kb.h c64_4cga.c c64_4cga.h c64_4dxh.c c64_4dxh.h c64_4ksa.c c64_4ksa.h c64_4tba.c c64_4tba.h c64_bn1541.c c64_bn1541.h c64_comal80.c c64_comal80.h c64_cpm.c c64_cpm.h c64_currah_speech.c c64_currah_speech.h c64_dela_ep256.c c64_dela_ep256.h c64_dela_ep64.c c64_dela_ep64.h c64_dela_ep7x8.c c64_dela_ep7x8.h c64_dinamic.c c64_dinamic.h c64_dqbb.c c64_dqbb.h c64_easy_calc_result.c c64_easy_calc_result.h c64_easyflash.c c64_easyflash.h c64_epyx_fast_load.c c64_epyx_fast_load.h c64_exos.c c64_exos.h c64_fcc.c c64_fcc.h c64_final.c c64_final.h c64_final3.c c64_final3.h c64_fun_play.c c64_fun_play.h c64_geocable.c c64_geocable.h c64_georam.c c64_georam.h c64_ide64.c c64_ide64.h c64_ieee488.c c64_ieee488.h c64_kingsoft.c c64_kingsoft.h c64_mach5.c c64_mach5.h c64_magic_desk.c c64_magic_desk.h c64_magic_formel.c c64_magic_formel.h c64_magic_voice.c c64_magic_voice.h c64_midi_maplin.c c64_midi_maplin.h c64_midi_namesoft.c c64_midi_namesoft.h c64_midi_passport.c c64_midi_passport.h c64_midi_sci.c c64_midi_sci.h c64_midi_siel.c c64_midi_siel.h c64_mikro_assembler.c c64_mikro_assembler.h c64_multiscreen.c c64_multiscreen.h c64_neoram.c c64_neoram.h c64_ocean.c c64_ocean.h c64_pagefox.c c64_pagefox.h c64_prophet64.c c64_prophet64.h c64_ps64.c c64_ps64.h c64_reu.c c64_reu.h c64_rex.c c64_rex.h c64_rex_ep256.c c64_rex_ep256.h c64_ross.c c64_ross.h c64_sfx_sound_expander.c c64_sfx_sound_expander.h c64_silverrock.c c64_silverrock.h c64_simons_basic.c c64_simons_basic.h c64_stardos.c c64_stardos.h c64_std.c c64_std.h c64_structured_basic.c c64_structured_basic.h c64_super_explode.c c64_super_explode.h c64_super_games.c c64_super_games.h c64_supercpu.c c64_supercpu.h c64_sw8k.c c64_sw8k.h c64_swiftlink.c c64_swiftlink.h c64_system3.c c64_system3.h c64_tdos.c c64_tdos.h c64_turbo232.c c64_turbo232.h c64_vic1011.c c64_vic1011.h c64_vizastar.c c64_vizastar.h c64_vw64.c c64_vw64.h c64_warp_speed.c c64_warp_speed.h c64_westermann.c c64_westermann.h c64_xl80.c c64_xl80.h c64_zaxxon.c c64_zaxxon.h c8280.c c8280.h cbm2_24k.c cbm2_24k.h cbm2_graphic.c cbm2_graphic.h cbm2_std.c cbm2_std.h cmdhd.c cmdhd.h cntr_covox.c cntr_covox.h coco_232.c coco_232.h coco_fdc.c coco_fdc.h coco_multi.c coco_multi.h coco_orch90.c coco_orch90.h coco_pak.c coco_pak.h compiskb.c comx_clm.c comx_clm.h comx_eb.c comx_eb.h comx_epr.c comx_epr.h comx_fd.c comx_fd.h comx_joy.c comx_joy.h comx_prn.c comx_prn.h comx_ram.c comx_ram.h comx_thm.c comx_thm.h comxpl80.c comxpl80.h cpc_rom.c cpc_rom.h cpc_ssa1.c cpc_ssa1.h cuda.c d9060.c d9060.h d9060hd.c dec_lk201.c dec_lk201.h diag264_lb_iec.c diag264_lb_iec.h diag264_lb_tape.c diag264_lb_tape.h diag264_lb_user.c diag264_lb_user.h dp8390.c dp8390.h e01.c e01.h ecb_grip.c ecb_grip.h egret.c esqpanel.c esqpanel.h fd2000.c fd2000.h gb_mbc.c gb_mbc.h gb_rom.c gb_rom.h i82371ab.c i82371ab.h i82371sb.c i82371sb.h i82439tx.c interpod.c interpod.h iq151_disc2.c iq151_disc2.h iq151_minigraf.c iq151_minigraf.h iq151_ms151a.c iq151_ms151a.h iq151_rom.c iq151_rom.h iq151_staper.c iq151_staper.h isa_adlib.c isa_adlib.h isa_aha1542.c isa_aha1542.h isa_com.c isa_com.h isa_fdc.c isa_fdc.h isa_finalchs.c isa_gblaster.c isa_gblaster.h isa_gus.c isa_gus.h isa_hdc.c isa_ibm_mfc.c isa_ibm_mfc.h isa_ide.c isa_ide.h isa_ide_cd.c isa_ide_cd.h isa_mpu401.c isa_mpu401.h isa_sblaster.c isa_sblaster.h isa_ssi2001.c isa_ssi2001.h isa_stereo_fx.c isa_stereo_fx.h isa_wdxt_gen.c isa_wdxt_gen.h k7659kb.c k7659kb.h kb_keytro.c kb_msnat.c kc_d002.c kc_d002.h kc_d004.c kc_d004.h kc_ram.c kc_ram.h kc_rom.c kc_rom.h keyboard.c keyboard.h laser128.c laser128.h lux10828.c lux10828.h lux21046.c lux21046.h lux4105.c lux4105.h mackbd.c mackbd.h md_eeprom.c md_eeprom.h md_jcart.c md_jcart.h md_rom.c md_rom.h md_sk.c md_sk.h md_stm95.c md_stm95.h md_svp.c md_svp.h mface2.c mface2.h midiinport.c midiinport.h midioutport.c midioutport.h mos6702.c mos6702.h mpc105.c msm6222b.c msm6222b.h ncr5380n.c ncr5390.c ne1000.c ne1000.h ne2000.c ne2000.h nes_slot.c nes_slot.h northbridge.c northbridge.h nubus.c nubus.h nubus_asntmc3b.c nubus_asntmc3b.h nubus_image.c nubus_image.h null_modem.c null_modem.h pc1512kb.c pc9801_118.c pc9801_118.h pc9801_26.c pc9801_26.h pc9801_86.c pc9801_86.h pc_fdc.c pc_fdc.h pc_lpt.c pc_lpt.h pet_64k.c pet_64k.h pf10.c pf10.h plus4_sid.c plus4_sid.h plus4_std.c plus4_std.h psxanalog.c psxanalog.h psxcd.c psxcport.c psxcport.h s100_dj2db.c s100_dj2db.h s100_djdma.c s100_djdma.h s100_mm65k16s.c s100_mm65k16s.h s100_wunderbus.c s100_wunderbus.h s1410.c s1410.h sa1403d.c sa1403d.h sat_bram.c sat_bram.h sat_dram.c sat_dram.h sat_rom.c sat_rom.h sed1200.c sed1200.h ser_mouse.c ser_mouse.h serial.c serial.h serialbox.c serialbox.h smartmed.c smartmed.h sns_bsx.c sns_bsx.h sns_rom.c sns_rom.h sns_rom21.c sns_rom21.h sns_sdd1.c sns_sdd1.h sns_sfx.c sns_sfx.h sns_spc7110.c sns_spc7110.h sns_sufami.c sns_sufami.h sns_upd.c sns_upd.h softbox.c softbox.h sonydriv.c southbridge.c southbridge.h superpet.c superpet.h swim.c tandy2kb.c teleprinter.c terminal.c terminal.h tf20.c tf20.h trs80m2kb.c tvc_hbf.c tvc_hbf.h v1050kb.c v1050kb.h vb_money_minder.c vb_money_minder.h vb_std.c vb_std.h vb_timeshare.c vb_timeshare.h vcs_joy.c vcs_joy.h vcs_joybooster.c vcs_joybooster.h vcs_keypad.c vcs_keypad.h vcs_lightpen.c vcs_lightpen.h vcs_paddles.c vcs_paddles.h vcs_wheel.c vcs_wheel.h vic1010.c vic1010.h vic1011.c vic1011.h vic10std.c vic10std.h vic1110.c vic1110.h vic1111.c vic1111.h vic1112.c vic1112.h vic1210.c vic1210.h vic20_megacart.c vic20_megacart.h vic20std.c vic20std.h victor9kb.c vp550.c vp550.h vp570.c vp570.h vp575.c vp575.h vp585.c vp585.h vp590.c vp590.h vp595.c vp595.h vp620.c vp620.h vp700.c vp700.h wangpc_emb.c wangpc_emb.h wangpc_lic.c wangpc_lic.h wangpc_lvc.c wangpc_lvc.h wangpc_mcc.c wangpc_mcc.h wangpc_mvc.c wangpc_mvc.h wangpc_rtc.c wangpc_rtc.h wangpc_tig.c wangpc_tig.h wangpc_wdc.c wangpc_wdc.h wangpckb.c wangpckb.h x68k_neptunex.c x68k_neptunex.h x68k_scsiext.c x68k_scsiext.h z88_flash.c z88_flash.h z88_ram.c z88_ram.h z88_rom.c z88_rom.h |
| [src/mess/machine/ti99] | bwg.c evpc.c grom.c gromport.c gromport.h handset.c hfdc.c horizon.c hsgpl.c joyport.h mapper8.c mecmouse.c memex.c myarcmem.c p_code.c peribox.c peribox.h samsmem.c spchsyn.c speech8.c ti32kmem.c ti99defs.h ti_fdc.c ti_rs232.c tn_ide.c tn_usbsm.c videowrp.c videowrp.h |
| [src/mess/video] | apollo.c cirrus.c cirrus.h iq151_grafik.c iq151_grafik.h iq151_video32.c iq151_video32.h iq151_video64.c iq151_video64.h isa_cga.c isa_cga.h isa_ega.c isa_ega.h isa_mda.c isa_mda.h isa_svga_cirrus.c isa_svga_s3.c isa_svga_tseng.c isa_vga.c isa_vga_ati.c nubus_48gc.c nubus_48gc.h nubus_cb264.c nubus_cb264.h nubus_m2hires.c nubus_m2hires.h nubus_m2video.c nubus_m2video.h nubus_radiustpd.c nubus_radiustpd.h nubus_spec8.c nubus_spec8.h nubus_specpdq.c nubus_specpdq.h nubus_vikbw.c nubus_vikbw.h nubus_wsportrait.c nubus_wsportrait.h pds30_30hr.c pds30_30hr.h pds30_cb264.c pds30_cb264.h pds30_mc30.c pds30_mc30.h pds30_procolor816.c pds30_procolor816.h pds30_sigmalview.c pds30_sigmalview.h |
| r22095 | r22096 | |
|---|---|---|
| 3 | 3 | const device_type KONAMI573CASSETTE = &device_creator<konami573cassette_device>; |
| 4 | 4 | |
| 5 | 5 | konami573cassette_device::konami573cassette_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 6 | psxsiodev_device(mconfig, KONAMI573CASSETTE, "KONAMI 573 CASSETTE", tag, owner, clock) | |
| 6 | psxsiodev_device(mconfig, KONAMI573CASSETTE, "KONAMI 573 CASSETTE", tag, owner, clock, "konami573", __FILE__) | |
| 7 | 7 | { |
| 8 | 8 | } |
| 9 | 9 |
| r22095 | r22096 | |
|---|---|---|
| 29 | 29 | const device_type GDROM = &device_creator<gdrom_device>; |
| 30 | 30 | |
| 31 | 31 | gdrom_device::gdrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 32 | : scsihle_device(mconfig, GDROM, "GDROM", tag, owner, clock) | |
| 32 | : scsihle_device(mconfig, GDROM, "GDROM", tag, owner, clock, "gdrom", __FILE__) | |
| 33 | 33 | { |
| 34 | 34 | } |
| 35 | 35 |
| r22095 | r22096 | |
|---|---|---|
| 3 | 3 | const device_type ZNDIP = &device_creator<zndip_device>; |
| 4 | 4 | |
| 5 | 5 | zndip_device::zndip_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 6 | psxsiodev_device(mconfig, ZNDIP, "ZNDIP", tag, owner, clock), | |
| 6 | psxsiodev_device(mconfig, ZNDIP, "ZNDIP", tag, owner, clock, "zndip", __FILE__), | |
| 7 | 7 | m_data_handler(*this) |
| 8 | 8 | { |
| 9 | 9 | } |
| r22095 | r22096 | |
|---|---|---|
| 290 | 290 | const device_type NAMCO_06XX = &device_creator<namco_06xx_device>; |
| 291 | 291 | |
| 292 | 292 | namco_06xx_device::namco_06xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 293 | : device_t(mconfig, NAMCO_06XX, "Namco 06xx", tag, owner, clock) | |
| 293 | : device_t(mconfig, NAMCO_06XX, "Namco 06xx", tag, owner, clock, "namco06xx", __FILE__) | |
| 294 | 294 | { |
| 295 | 295 | m_token = global_alloc_clear(namco_06xx_state); |
| 296 | 296 | } |
| 297 | 297 | |
| 298 | 298 | //------------------------------------------------- |
| 299 | // device_config_complete - perform any | |
| 300 | // operations now that the configuration is | |
| 301 | // complete | |
| 302 | //------------------------------------------------- | |
| 303 | ||
| 304 | void namco_06xx_device::device_config_complete() | |
| 305 | { | |
| 306 | m_shortname = "namco06xx"; | |
| 307 | } | |
| 308 | ||
| 309 | //------------------------------------------------- | |
| 310 | 299 | // device_start - device-specific startup |
| 311 | 300 | //------------------------------------------------- |
| 312 | 301 |
| r22095 | r22096 | |
|---|---|---|
| 1767 | 1767 | { |
| 1768 | 1768 | return ROM_NAME( 32x ); |
| 1769 | 1769 | } |
| 1770 | ||
| 1771 | void sega_32x_device::device_config_complete() | |
| 1772 | { | |
| 1773 | m_shortname = "32x"; | |
| 1774 | } | |
| 1775 | 1770 | #endif |
| 1776 | 1771 | |
| 1777 | 1772 |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | void *token() const { assert(m_token != NULL); return m_token; } |
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | virtual void device_config_complete(); | |
| 40 | 39 | virtual void device_start(); |
| 41 | 40 | virtual void device_reset(); |
| 42 | 41 | private: |
| r22095 | r22096 | |
|---|---|---|
| 294 | 294 | const device_type NAMCO_50XX = &device_creator<namco_50xx_device>; |
| 295 | 295 | |
| 296 | 296 | namco_50xx_device::namco_50xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 297 | : device_t(mconfig, NAMCO_50XX, "Namco 50xx", tag, owner, clock) | |
| 297 | : device_t(mconfig, NAMCO_50XX, "Namco 50xx", tag, owner, clock, "namco50", __FILE__) | |
| 298 | 298 | { |
| 299 | 299 | m_token = global_alloc_clear(namco_50xx_state); |
| 300 | 300 | } |
| 301 | 301 | |
| 302 | 302 | //------------------------------------------------- |
| 303 | // device_config_complete - perform any | |
| 304 | // operations now that the configuration is | |
| 305 | // complete | |
| 306 | //------------------------------------------------- | |
| 307 | ||
| 308 | void namco_50xx_device::device_config_complete() | |
| 309 | { | |
| 310 | m_shortname = "namco50"; | |
| 311 | } | |
| 312 | ||
| 313 | //------------------------------------------------- | |
| 314 | 303 | // device_start - device-specific startup |
| 315 | 304 | //------------------------------------------------- |
| 316 | 305 |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | void *token() const { assert(m_token != NULL); return m_token; } |
| 24 | 24 | protected: |
| 25 | 25 | // device-level overrides |
| 26 | virtual void device_config_complete(); | |
| 27 | 26 | virtual void device_start(); |
| 28 | 27 | virtual const rom_entry *device_rom_region() const; |
| 29 | 28 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | mie_device::mie_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 85 | : maple_device(mconfig, MIE, "MIE", tag, owner, clock) | |
| 85 | : maple_device(mconfig, MIE, "MIE", tag, owner, clock, "mie", __FILE__) | |
| 86 | 86 | { |
| 87 | m_shortname = "mie"; | |
| 88 | 87 | memset(gpio_name, 0, sizeof(gpio_name)); |
| 89 | 88 | jvs_name = 0; |
| 90 | 89 | cpu = 0; |
| r22095 | r22096 | |
|---|---|---|
| 7 | 7 | |
| 8 | 8 | |
| 9 | 9 | deco_222_device::deco_222_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 10 | m6502_device(mconfig, DECO_222, "DECO 222", tag, owner, clock) | |
| 10 | m6502_device(mconfig, DECO_222, "DECO 222", tag, owner, clock, "deco222", __FILE__) | |
| 11 | 11 | { |
| 12 | 12 | } |
| 13 | 13 | |
| r22095 | r22096 | |
| 31 | 31 | |
| 32 | 32 | |
| 33 | 33 | deco_c10707_device::deco_c10707_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 34 | m6502_device(mconfig, DECO_C10707, "DECO C10707", tag, owner, clock) | |
| 34 | m6502_device(mconfig, DECO_C10707, "DECO C10707", tag, owner, clock, "decoc10707", __FILE__) | |
| 35 | 35 | { |
| 36 | 36 | } |
| 37 | 37 |
| r22095 | r22096 | |
|---|---|---|
| 87 | 87 | const device_type ZNSEC = &device_creator<znsec_device>; |
| 88 | 88 | |
| 89 | 89 | znsec_device::znsec_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 90 | psxsiodev_device(mconfig, ZNSEC, "ZNSEC", tag, owner, clock) | |
| 90 | psxsiodev_device(mconfig, ZNSEC, "ZNSEC", tag, owner, clock, "znsec", __FILE__) | |
| 91 | 91 | { |
| 92 | 92 | } |
| 93 | 93 |
| r22095 | r22096 | |
|---|---|---|
| 442 | 442 | const device_type NAMCO_51XX = &device_creator<namco_51xx_device>; |
| 443 | 443 | |
| 444 | 444 | namco_51xx_device::namco_51xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 445 | : device_t(mconfig, NAMCO_51XX, "Namco 51xx", tag, owner, clock) | |
| 445 | : device_t(mconfig, NAMCO_51XX, "Namco 51xx", tag, owner, clock, "namco51", __FILE__) | |
| 446 | 446 | { |
| 447 | 447 | m_token = global_alloc_clear(namco_51xx_state); |
| 448 | 448 | } |
| 449 | 449 | |
| 450 | 450 | //------------------------------------------------- |
| 451 | // device_config_complete - perform any | |
| 452 | // operations now that the configuration is | |
| 453 | // complete | |
| 454 | //------------------------------------------------- | |
| 455 | ||
| 456 | void namco_51xx_device::device_config_complete() | |
| 457 | { | |
| 458 | m_shortname = "namco51"; | |
| 459 | } | |
| 460 | ||
| 461 | //------------------------------------------------- | |
| 462 | 451 | // device_start - device-specific startup |
| 463 | 452 | //------------------------------------------------- |
| 464 | 453 |
| r22095 | r22096 | |
|---|---|---|
| 30 | 30 | void *token() const { assert(m_token != NULL); return m_token; } |
| 31 | 31 | protected: |
| 32 | 32 | // device-level overrides |
| 33 | virtual void device_config_complete(); | |
| 34 | 33 | virtual void device_start(); |
| 35 | 34 | virtual void device_reset(); |
| 36 | 35 | virtual const rom_entry *device_rom_region() const; |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | dc_controller_device::dc_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | maple_device(mconfig, DC_CONTROLLER, "DC_CONTROLLER", tag, owner, clock) | |
| 31 | maple_device(mconfig, DC_CONTROLLER, "DC_CONTROLLER", tag, owner, clock, "dcctrl", __FILE__) | |
| 32 | 32 | { |
| 33 | 33 | memset(port_tag, 0, sizeof(port_tag)); |
| 34 | 34 |
| r22095 | r22096 | |
|---|---|---|
| 7 | 7 | #include "decocpu6.h" |
| 8 | 8 | |
| 9 | 9 | deco_cpu6_device::deco_cpu6_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 10 | m6502_device(mconfig, DECO_CPU6, "DECO CPU-6", tag, owner, clock) | |
| 10 | m6502_device(mconfig, DECO_CPU6, "DECO CPU-6", tag, owner, clock, "decocpu6", __FILE__) | |
| 11 | 11 | { |
| 12 | 12 | } |
| 13 | 13 |
| r22095 | r22096 | |
|---|---|---|
| 2 | 2 | #include "decocpu7.h" |
| 3 | 3 | |
| 4 | 4 | deco_cpu7_device::deco_cpu7_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 5 | m6502_device(mconfig, DECO_CPU7, "DECO CPU-7", tag, owner, clock) | |
| 5 | m6502_device(mconfig, DECO_CPU7, "DECO CPU-7", tag, owner, clock, "decocpu7", __FILE__) | |
| 6 | 6 | { |
| 7 | 7 | } |
| 8 | 8 |
| r22095 | r22096 | |
|---|---|---|
| 194 | 194 | const device_type NAMCO_53XX = &device_creator<namco_53xx_device>; |
| 195 | 195 | |
| 196 | 196 | namco_53xx_device::namco_53xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 197 | : device_t(mconfig, NAMCO_53XX, "Namco 53xx", tag, owner, clock) | |
| 197 | : device_t(mconfig, NAMCO_53XX, "Namco 53xx", tag, owner, clock, "namco53", __FILE__) | |
| 198 | 198 | { |
| 199 | 199 | m_token = global_alloc_clear(namco_53xx_state); |
| 200 | 200 | } |
| 201 | 201 | |
| 202 | 202 | //------------------------------------------------- |
| 203 | // device_config_complete - perform any | |
| 204 | // operations now that the configuration is | |
| 205 | // complete | |
| 206 | //------------------------------------------------- | |
| 207 | ||
| 208 | void namco_53xx_device::device_config_complete() | |
| 209 | { | |
| 210 | m_shortname = "namco53"; | |
| 211 | } | |
| 212 | ||
| 213 | //------------------------------------------------- | |
| 214 | 203 | // device_start - device-specific startup |
| 215 | 204 | //------------------------------------------------- |
| 216 | 205 |
| r22095 | r22096 | |
|---|---|---|
| 31 | 31 | void *token() const { assert(m_token != NULL); return m_token; } |
| 32 | 32 | protected: |
| 33 | 33 | // device-level overrides |
| 34 | virtual void device_config_complete(); | |
| 35 | 34 | virtual void device_start(); |
| 36 | 35 | virtual const rom_entry *device_rom_region() const; |
| 37 | 36 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 87 | 87 | const device_type NAMCO_62XX = &device_creator<namco_62xx_device>; |
| 88 | 88 | |
| 89 | 89 | namco_62xx_device::namco_62xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 90 | : device_t(mconfig, NAMCO_62XX, "Namco 62xx", tag, owner, clock) | |
| 90 | : device_t(mconfig, NAMCO_62XX, "Namco 62xx", tag, owner, clock, "namco62", __FILE__) | |
| 91 | 91 | { |
| 92 | 92 | m_token = global_alloc_clear(namco_62xx_state); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | //------------------------------------------------- |
| 96 | // device_config_complete - perform any | |
| 97 | // operations now that the configuration is | |
| 98 | // complete | |
| 99 | //------------------------------------------------- | |
| 100 | ||
| 101 | void namco_62xx_device::device_config_complete() | |
| 102 | { | |
| 103 | m_shortname = "namco62"; | |
| 104 | } | |
| 105 | ||
| 106 | //------------------------------------------------- | |
| 107 | 96 | // device_start - device-specific startup |
| 108 | 97 | //------------------------------------------------- |
| 109 | 98 |
| r22095 | r22096 | |
|---|---|---|
| 30 | 30 | void *token() const { assert(m_token != NULL); return m_token; } |
| 31 | 31 | protected: |
| 32 | 32 | // device-level overrides |
| 33 | virtual void device_config_complete(); | |
| 34 | 33 | virtual void device_start(); |
| 35 | 34 | virtual const rom_entry *device_rom_region() const; |
| 36 | 35 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 10 | 10 | } |
| 11 | 11 | |
| 12 | 12 | |
| 13 | maple_device::maple_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, type, name, tag, owner, clock) | |
| 13 | maple_device::maple_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : device_t(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 14 | 14 | { |
| 15 | 15 | host_tag = 0; |
| 16 | 16 | host_port = 0; |
| r22095 | r22096 | |
|---|---|---|
| 8 | 8 | class maple_device : public device_t |
| 9 | 9 | { |
| 10 | 10 | public: |
| 11 | maple_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 11 | maple_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); | |
| 12 | 12 | |
| 13 | 13 | static void static_set_host(device_t &device, const char *_host_tag, int _host_port); |
| 14 | 14 | virtual void maple_w(const UINT32 *data, UINT32 in_size) = 0; |
| r22095 | r22096 | |
|---|---|---|
| 2714 | 2714 | // device-level overrides |
| 2715 | 2715 | virtual void device_start(); |
| 2716 | 2716 | virtual void device_reset(); |
| 2717 | virtual void device_config_complete() { m_shortname = "ide_baseboard"; } | |
| 2718 | 2717 | }; |
| 2719 | 2718 | |
| 2720 | 2719 | //************************************************************************** |
| r22095 | r22096 | |
| 2729 | 2728 | //------------------------------------------------- |
| 2730 | 2729 | |
| 2731 | 2730 | ide_baseboard_device::ide_baseboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 2732 | : ide_hdd_device(mconfig, IDE_BASEBOARD, "IDE Baseboard", tag, owner, clock) | |
| 2731 | : ide_hdd_device(mconfig, IDE_BASEBOARD, "IDE Baseboard", tag, owner, clock, "ide_baseboard", __FILE__) | |
| 2733 | 2732 | { |
| 2734 | 2733 | } |
| 2735 | 2734 |
| r22095 | r22096 | |
|---|---|---|
| 226 | 226 | const device_type NAMCO_52XX = &device_creator<namco_52xx_device>; |
| 227 | 227 | |
| 228 | 228 | namco_52xx_device::namco_52xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 229 | : device_t(mconfig, NAMCO_52XX, "Namco 52xx", tag, owner, clock) | |
| 229 | : device_t(mconfig, NAMCO_52XX, "Namco 52xx", tag, owner, clock, "namco52", __FILE__) | |
| 230 | 230 | { |
| 231 | 231 | m_token = global_alloc_clear(namco_52xx_state); |
| 232 | 232 | } |
| 233 | 233 | |
| 234 | 234 | //------------------------------------------------- |
| 235 | // device_config_complete - perform any | |
| 236 | // operations now that the configuration is | |
| 237 | // complete | |
| 238 | //------------------------------------------------- | |
| 239 | ||
| 240 | void namco_52xx_device::device_config_complete() | |
| 241 | { | |
| 242 | m_shortname = "namco52"; | |
| 243 | } | |
| 244 | ||
| 245 | //------------------------------------------------- | |
| 246 | 235 | // device_start - device-specific startup |
| 247 | 236 | //------------------------------------------------- |
| 248 | 237 |
| r22095 | r22096 | |
|---|---|---|
| 34 | 34 | void *token() const { assert(m_token != NULL); return m_token; } |
| 35 | 35 | protected: |
| 36 | 36 | // device-level overrides |
| 37 | virtual void device_config_complete(); | |
| 38 | 37 | virtual void device_start(); |
| 39 | 38 | virtual const rom_entry *device_rom_region() const; |
| 40 | 39 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 99 | 99 | //------------------------------------------------- |
| 100 | 100 | |
| 101 | 101 | williams_cvsd_sound_device::williams_cvsd_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 102 | : device_t(mconfig, WILLIAMS_CVSD_SOUND, "Williams CVSD Sound Board", | |
| 102 | : device_t(mconfig, WILLIAMS_CVSD_SOUND, "Williams CVSD Sound Board", tag, owner, clock, "wmscvsd", __FILE__), | |
| 103 | 103 | device_mixer_interface(mconfig, *this), |
| 104 | 104 | m_cpu(*this, "cpu"), |
| 105 | 105 | m_pia(*this, "pia"), |
| r22095 | r22096 | |
| 349 | 349 | //------------------------------------------------- |
| 350 | 350 | |
| 351 | 351 | williams_narc_sound_device::williams_narc_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 352 | : device_t(mconfig, WILLIAMS_NARC_SOUND, "Williams NARC Sound Board", | |
| 352 | : device_t(mconfig, WILLIAMS_NARC_SOUND, "Williams NARC Sound Board", tag, owner, clock, "wmsnarc", __FILE__), | |
| 353 | 353 | device_mixer_interface(mconfig, *this), |
| 354 | 354 | m_cpu0(*this, "cpu0"), |
| 355 | 355 | m_cpu1(*this, "cpu1"), |
| r22095 | r22096 | |
| 722 | 722 | //------------------------------------------------- |
| 723 | 723 | |
| 724 | 724 | williams_adpcm_sound_device::williams_adpcm_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 725 | : device_t(mconfig, WILLIAMS_ADPCM_SOUND, "Williams ADPCM Sound Board", | |
| 725 | : device_t(mconfig, WILLIAMS_ADPCM_SOUND, "Williams ADPCM Sound Board", tag, owner, clock, "wmsadpcm", __FILE__), | |
| 726 | 726 | device_mixer_interface(mconfig, *this), |
| 727 | 727 | m_cpu(*this, "cpu"), |
| 728 | 728 | m_latch(0), |
| r22095 | r22096 | |
|---|---|---|
| 77 | 77 | //------------------------------------------------- |
| 78 | 78 | |
| 79 | 79 | midway_ssio_device::midway_ssio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 80 | : device_t(mconfig, MIDWAY_SSIO, "Midway SSIO Sound Board", | |
| 80 | : device_t(mconfig, MIDWAY_SSIO, "Midway SSIO Sound Board", tag, owner, clock, "midssio", __FILE__), | |
| 81 | 81 | device_mixer_interface(mconfig, *this, 2), |
| 82 | 82 | m_cpu(*this, "cpu"), |
| 83 | 83 | m_ay0(*this, "ay0"), |
| r22095 | r22096 | |
| 541 | 541 | //------------------------------------------------- |
| 542 | 542 | |
| 543 | 543 | midway_chip_squeak_deluxe_device::midway_chip_squeak_deluxe_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 544 | : device_t(mconfig, MIDWAY_CHIP_SQUEAK_DELUXE, "Midway Chip Squeak Deluxe Sound Board", | |
| 544 | : device_t(mconfig, MIDWAY_CHIP_SQUEAK_DELUXE, "Midway Chip Squeak Deluxe Sound Board", tag, owner, clock, "midcsd", __FILE__), | |
| 545 | 545 | device_mixer_interface(mconfig, *this), |
| 546 | 546 | m_cpu(*this, "cpu"), |
| 547 | 547 | m_pia(*this, "pia"), |
| r22095 | r22096 | |
| 756 | 756 | //------------------------------------------------- |
| 757 | 757 | |
| 758 | 758 | midway_sounds_good_device::midway_sounds_good_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 759 | : device_t(mconfig, MIDWAY_SOUNDS_GOOD, "Midway Sounds Good Sound Board", | |
| 759 | : device_t(mconfig, MIDWAY_SOUNDS_GOOD, "Midway Sounds Good Sound Board", tag, owner, clock, "midsg", __FILE__), | |
| 760 | 760 | device_mixer_interface(mconfig, *this), |
| 761 | 761 | m_cpu(*this, "cpu"), |
| 762 | 762 | m_pia(*this, "pia"), |
| r22095 | r22096 | |
| 943 | 943 | //------------------------------------------------- |
| 944 | 944 | |
| 945 | 945 | midway_turbo_chip_squeak_device::midway_turbo_chip_squeak_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 946 | : device_t(mconfig, MIDWAY_TURBO_CHIP_SQUEAK, "Midway Turbo Chip Squeak Sound Board", | |
| 946 | : device_t(mconfig, MIDWAY_TURBO_CHIP_SQUEAK, "Midway Turbo Chip Squeak Sound Board", tag, owner, clock, "midtcs", __FILE__), | |
| 947 | 947 | device_mixer_interface(mconfig, *this), |
| 948 | 948 | m_cpu(*this, "cpu"), |
| 949 | 949 | m_pia(*this, "pia"), |
| r22095 | r22096 | |
| 1123 | 1123 | //------------------------------------------------- |
| 1124 | 1124 | |
| 1125 | 1125 | midway_squawk_n_talk_device::midway_squawk_n_talk_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1126 | : device_t(mconfig, MIDWAY_SQUAWK_N_TALK, "Midway Squawk 'n' Talk Sound Board", | |
| 1126 | : device_t(mconfig, MIDWAY_SQUAWK_N_TALK, "Midway Squawk 'n' Talk Sound Board", tag, owner, clock, "midsnt", __FILE__), | |
| 1127 | 1127 | device_mixer_interface(mconfig, *this), |
| 1128 | 1128 | m_cpu(*this, "cpu"), |
| 1129 | 1129 | m_pia0(*this, "pia0"), |
| r22095 | r22096 | |
|---|---|---|
| 182 | 182 | const device_type NAMCO_54XX = &device_creator<namco_54xx_device>; |
| 183 | 183 | |
| 184 | 184 | namco_54xx_device::namco_54xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 185 | : device_t(mconfig, NAMCO_54XX, "Namco 54xx", tag, owner, clock) | |
| 185 | : device_t(mconfig, NAMCO_54XX, "Namco 54xx", tag, owner, clock, "namco54", __FILE__) | |
| 186 | 186 | { |
| 187 | 187 | m_token = global_alloc_clear(namco_54xx_state); |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | 190 | //------------------------------------------------- |
| 191 | // device_config_complete - perform any | |
| 192 | // operations now that the configuration is | |
| 193 | // complete | |
| 194 | //------------------------------------------------- | |
| 195 | ||
| 196 | void namco_54xx_device::device_config_complete() | |
| 197 | { | |
| 198 | m_shortname = "namco54"; | |
| 199 | } | |
| 200 | ||
| 201 | //------------------------------------------------- | |
| 202 | 191 | // device_start - device-specific startup |
| 203 | 192 | //------------------------------------------------- |
| 204 | 193 |
| r22095 | r22096 | |
|---|---|---|
| 30 | 30 | void *token() const { assert(m_token != NULL); return m_token; } |
| 31 | 31 | protected: |
| 32 | 32 | // device-level overrides |
| 33 | virtual void device_config_complete(); | |
| 34 | 33 | virtual void device_start(); |
| 35 | 34 | virtual const rom_entry *device_rom_region() const; |
| 36 | 35 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 337 | 337 | //------------------------------------------------- |
| 338 | 338 | |
| 339 | 339 | gottlieb_sound_r1_device::gottlieb_sound_r1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 340 | : device_t(mconfig, GOTTLIEB_SOUND_REV1, "Gottlieb Sound rev. 1", | |
| 340 | : device_t(mconfig, GOTTLIEB_SOUND_REV1, "Gottlieb Sound rev. 1", tag, owner, clock, "gotsndr1", __FILE__), | |
| 341 | 341 | device_mixer_interface(mconfig, *this), |
| 342 | 342 | m_audiocpu(*this, "audiocpu"), |
| 343 | 343 | m_riot(*this, "riot"), |
| r22095 | r22096 | |
| 355 | 355 | } |
| 356 | 356 | |
| 357 | 357 | gottlieb_sound_r1_device::gottlieb_sound_r1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock, bool populate_votrax) |
| 358 | : device_t(mconfig, GOTTLIEB_SOUND_REV1, "Gottlieb Sound rev. 1", | |
| 358 | : device_t(mconfig, GOTTLIEB_SOUND_REV1, "Gottlieb Sound rev. 1", tag, owner, clock, "gotsndr1", __FILE__), | |
| 359 | 359 | device_mixer_interface(mconfig, *this), |
| 360 | 360 | m_audiocpu(*this, "audiocpu"), |
| 361 | 361 | m_riot(*this, "riot"), |
| r22095 | r22096 | |
| 636 | 636 | //------------------------------------------------- |
| 637 | 637 | |
| 638 | 638 | gottlieb_sound_r2_device::gottlieb_sound_r2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 639 | : device_t(mconfig, GOTTLIEB_SOUND_REV2, "Gottlieb Sound rev. 2", | |
| 639 | : device_t(mconfig, GOTTLIEB_SOUND_REV2, "Gottlieb Sound rev. 2", tag, owner, clock, "gotsndr2", __FILE__), | |
| 640 | 640 | device_mixer_interface(mconfig, *this), |
| 641 | 641 | m_audiocpu(*this, "audiocpu"), |
| 642 | 642 | m_speechcpu(*this, "speechcpu"), |
| r22095 | r22096 | |
|---|---|---|
| 79 | 79 | public: |
| 80 | 80 | // construction/destruction |
| 81 | 81 | sony_ldp1450_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 82 | : laserdisc_device(mconfig, SONY_LDP1450, "Sony LDP-1450", | |
| 82 | : laserdisc_device(mconfig, SONY_LDP1450, "Sony LDP-1450", tag, owner, clock, "ldp1450", __FILE__) { } | |
| 83 | 83 | |
| 84 | 84 | // input/output |
| 85 | 85 | UINT8 data_available_r() { return CLEAR_LINE; } |
| r22095 | r22096 | |
| 101 | 101 | public: |
| 102 | 102 | // construction/destruction |
| 103 | 103 | pioneer_pr7820_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 104 | : laserdisc_device(mconfig, PIONEER_PR7820, "Pioneer PR-7820", | |
| 104 | : laserdisc_device(mconfig, PIONEER_PR7820, "Pioneer PR-7820", tag, owner, clock, "pr7820", __FILE__) { } | |
| 105 | 105 | |
| 106 | 106 | // input/output |
| 107 | 107 | UINT8 data_available_r() { return CLEAR_LINE; } |
| r22095 | r22096 | |
| 125 | 125 | public: |
| 126 | 126 | // construction/destruction |
| 127 | 127 | phillips_22vp932_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 128 | : laserdisc_device(mconfig, PHILLIPS_22VP932, "Phillips 22VP932", | |
| 128 | : laserdisc_device(mconfig, PHILLIPS_22VP932, "Phillips 22VP932", tag, owner, clock, "22vp932", __FILE__) { } | |
| 129 | 129 | |
| 130 | 130 | // input/output |
| 131 | 131 | UINT8 data_r() { return 0; } |
| r22095 | r22096 | |
|---|---|---|
| 209 | 209 | //------------------------------------------------- |
| 210 | 210 | |
| 211 | 211 | pioneer_pr8210_device::pioneer_pr8210_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 212 | : laserdisc_device(mconfig, PIONEER_PR8210, "Pioneer PR-8210", | |
| 212 | : laserdisc_device(mconfig, PIONEER_PR8210, "Pioneer PR-8210", tag, owner, clock, "pr8210", __FILE__), | |
| 213 | 213 | m_control(0), |
| 214 | 214 | m_lastcommand(0), |
| 215 | 215 | m_accumulator(0), |
| r22095 | r22096 | |
| 224 | 224 | { |
| 225 | 225 | } |
| 226 | 226 | |
| 227 | pioneer_pr8210_device::pioneer_pr8210_device(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, device_t *owner, UINT32 clock) | |
| 228 | : laserdisc_device(mconfig, type, name, shortname, tag, owner, clock), | |
| 227 | pioneer_pr8210_device::pioneer_pr8210_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) | |
| 228 | : laserdisc_device(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 229 | 229 | m_control(0), |
| 230 | 230 | m_lastcommand(0), |
| 231 | 231 | m_accumulator(0), |
| r22095 | r22096 | |
| 919 | 919 | //------------------------------------------------- |
| 920 | 920 | |
| 921 | 921 | simutrek_special_device::simutrek_special_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 922 | : pioneer_pr8210_device(mconfig, SIMUTREK_SPECIAL, "Simutrek Modified PR-8210", | |
| 922 | : pioneer_pr8210_device(mconfig, SIMUTREK_SPECIAL, "Simutrek Modified PR-8210", tag, owner, clock, "simutrek", __FILE__), | |
| 923 | 923 | m_i8748_cpu(*this, "simutrek"), |
| 924 | 924 | m_audio_squelch(0), |
| 925 | 925 | m_data(0), |
| r22095 | r22096 | |
|---|---|---|
| 94 | 94 | public: |
| 95 | 95 | // construction/destruction |
| 96 | 96 | pioneer_pr8210_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 97 | pioneer_pr8210_device(const machine_config &mconfig, device_type type, const char *name, const char * | |
| 97 | pioneer_pr8210_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); | |
| 98 | 98 | |
| 99 | 99 | // input and output |
| 100 | 100 | void control_w(UINT8 data); |
| r22095 | r22096 | |
|---|---|---|
| 4 | 4 | const device_type NSCSI_HARDDISK = &device_creator<nscsi_harddisk_device>; |
| 5 | 5 | |
| 6 | 6 | nscsi_harddisk_device::nscsi_harddisk_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 7 | nscsi_full_device(mconfig, NSCSI_HARDDISK, "SCSI HARDDISK", tag, owner, clock) | |
| 7 | nscsi_full_device(mconfig, NSCSI_HARDDISK, "SCSI HARDDISK", tag, owner, clock, "scsi_harddisk", __FILE__) | |
| 8 | 8 | { |
| 9 | 9 | } |
| 10 | 10 |
| r22095 | r22096 | |
|---|---|---|
| 15 | 15 | protected: |
| 16 | 16 | virtual void device_start(); |
| 17 | 17 | virtual void device_reset(); |
| 18 | virtual void device_config_complete() { m_shortname = "scsi_harddisk"; } | |
| 19 | 18 | |
| 20 | 19 | virtual void scsi_command(); |
| 21 | 20 | virtual UINT8 scsi_get_data(int id, int pos); |
| r22095 | r22096 | |
|---|---|---|
| 4 | 4 | const device_type NSCSI_CDROM = &device_creator<nscsi_cdrom_device>; |
| 5 | 5 | |
| 6 | 6 | nscsi_cdrom_device::nscsi_cdrom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 7 | nscsi_full_device(mconfig, NSCSI_CDROM, "SCSI CDROM", tag, owner, clock) | |
| 7 | nscsi_full_device(mconfig, NSCSI_CDROM, "SCSI CDROM", tag, owner, clock, "scsi_cdrom", __FILE__) | |
| 8 | 8 | { |
| 9 | 9 | } |
| 10 | 10 |
| r22095 | r22096 | |
|---|---|---|
| 15 | 15 | protected: |
| 16 | 16 | virtual void device_start(); |
| 17 | 17 | virtual void device_reset(); |
| 18 | virtual void device_config_complete() { m_shortname = "scsi_cdrom"; } | |
| 19 | 18 | |
| 20 | 19 | virtual void scsi_command(); |
| 21 | 20 | virtual UINT8 scsi_get_data(int id, int pos); |
| r22095 | r22096 | |
|---|---|---|
| 57 | 57 | //------------------------------------------------- |
| 58 | 58 | |
| 59 | 59 | ncr53c7xx_device::ncr53c7xx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 60 | : nscsi_device(mconfig, NCR53C7XX, "53C7xx SCSI", tag, owner, clock), | |
| 60 | : nscsi_device(mconfig, NCR53C7XX, "53C7xx SCSI", tag, owner, clock, "ncr537xx", __FILE__), | |
| 61 | 61 | device_execute_interface(mconfig, *this), |
| 62 | 62 | m_icount(0) |
| 63 | 63 | { |
| r22095 | r22096 | |
| 188 | 188 | else |
| 189 | 189 | { |
| 190 | 190 | memset(&m_out_irq_cb, 0, sizeof(m_out_irq_cb)); |
| 191 | } | |
| 192 | ||
| 193 | m_shortname = "ncr537xx"; | |
| 191 | } | |
| 194 | 192 | } |
| 195 | 193 | |
| 196 | 194 |
| r22095 | r22096 | |
|---|---|---|
| 11 | 11 | |
| 12 | 12 | #define LOG ( 0 ) |
| 13 | 13 | |
| 14 | scsidev_device::scsidev_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 15 | device_t(mconfig, type, name, tag, owner, clock) | |
| 14 | scsidev_device::scsidev_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) : | |
| 15 | device_t(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 16 | 16 | { |
| 17 | 17 | } |
| 18 | 18 |
| r22095 | r22096 | |
|---|---|---|
| 34 | 34 | |
| 35 | 35 | public: |
| 36 | 36 | // construction/destruction |
| 37 | scsidev_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 37 | scsidev_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); | |
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | scsicb_device::scsicb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 30 | : scsidev_device(mconfig, SCSICB, "SCSI callback", tag, owner, clock), | |
| 30 | : scsidev_device(mconfig, SCSICB, "SCSI callback", tag, owner, clock, "scsicb", __FILE__), | |
| 31 | 31 | m_bsy_handler(*this), |
| 32 | 32 | m_sel_handler(*this), |
| 33 | 33 | m_cd_handler(*this), |
| r22095 | r22096 | |
|---|---|---|
| 10 | 10 | const device_type CR589 = &device_creator<cr589_device>; |
| 11 | 11 | |
| 12 | 12 | cr589_device::cr589_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 13 | : scsicd_device(mconfig, CR589, "CR589", tag, owner, clock) | |
| 13 | : scsicd_device(mconfig, CR589, "CR589", tag, owner, clock, "cr589", __FILE__) | |
| 14 | 14 | { |
| 15 | 15 | } |
| 16 | 16 |
| r22095 | r22096 | |
|---|---|---|
| 63 | 63 | //************************************************************************** |
| 64 | 64 | |
| 65 | 65 | duartn68681_device::duartn68681_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 66 | : device_t(mconfig, DUARTN68681, "DUART 68681 (new)", tag, owner, clock), | |
| 66 | : device_t(mconfig, DUARTN68681, "DUART 68681 (new)", tag, owner, clock, "dun68681", __FILE__), | |
| 67 | 67 | m_chanA(*this, CHANA_TAG), |
| 68 | 68 | m_chanB(*this, CHANB_TAG) |
| 69 | 69 | { |
| r22095 | r22096 | |
| 120 | 120 | |
| 121 | 121 | void duartn68681_device::device_config_complete() |
| 122 | 122 | { |
| 123 | m_shortname = "dun68681"; | |
| 124 | ||
| 125 | 123 | // inherit a copy of the static data |
| 126 | 124 | const duartn68681_config *intf = reinterpret_cast<const duartn68681_config *>(static_config()); |
| 127 | 125 | if (intf != NULL) |
| r22095 | r22096 | |
|---|---|---|
| 8 | 8 | |
| 9 | 9 | #include "machine/scsihle.h" |
| 10 | 10 | |
| 11 | scsihle_device::scsihle_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 12 | scsidev_device(mconfig, type, name, tag, owner, clock) | |
| 11 | scsihle_device::scsihle_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : | |
| 12 | scsidev_device(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 13 | 13 | { |
| 14 | 14 | } |
| 15 | 15 |
| r22095 | r22096 | |
|---|---|---|
| 16 | 16 | { |
| 17 | 17 | public: |
| 18 | 18 | // construction/destruction |
| 19 | scsihle_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 19 | 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); | |
| 20 | 20 | |
| 21 | 21 | virtual void SetDevice( void *device ) = 0; |
| 22 | 22 | virtual void GetDevice( void **device ) = 0; |
| r22095 | r22096 | |
|---|---|---|
| 116 | 116 | //------------------------------------------------- |
| 117 | 117 | |
| 118 | 118 | phillips_22vp931_device::phillips_22vp931_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 119 | : laserdisc_device(mconfig, PHILLIPS_22VP931, "Phillips 22VP931", | |
| 119 | : laserdisc_device(mconfig, PHILLIPS_22VP931, "Phillips 22VP931", tag, owner, clock, "22vp931", __FILE__), | |
| 120 | 120 | m_i8049_cpu(*this, "vp931"), |
| 121 | 121 | m_tracktimer(NULL), |
| 122 | 122 | m_i8049_out0(0), |
| r22095 | r22096 | |
|---|---|---|
| 138 | 138 | //------------------------------------------------- |
| 139 | 139 | |
| 140 | 140 | centronics_printer_device::centronics_printer_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 141 | : device_t(mconfig, CENTRONICS_PRINTER, "Centronics Printer", tag, owner, clock), | |
| 141 | : device_t(mconfig, CENTRONICS_PRINTER, "Centronics Printer", tag, owner, clock, "centronics_printer", __FILE__), | |
| 142 | 142 | device_centronics_peripheral_interface( mconfig, *this ) |
| 143 | 143 | { |
| 144 | 144 | } |
| r22095 | r22096 | |
|---|---|---|
| 134 | 134 | // device-level overrides |
| 135 | 135 | virtual void device_start(); |
| 136 | 136 | virtual void device_reset(); |
| 137 | virtual void device_config_complete() { m_shortname = "centronics_printer"; } | |
| 138 | 137 | private: |
| 139 | 138 | printer_image_device *m_printer; |
| 140 | 139 | centronics_device *m_owner; |
| r22095 | r22096 | |
|---|---|---|
| 14 | 14 | const device_type SCSIHD = &device_creator<scsihd_device>; |
| 15 | 15 | |
| 16 | 16 | scsihd_device::scsihd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 17 | : scsihle_device(mconfig, SCSIHD, "SCSIHD", tag, owner, clock) | |
| 17 | : scsihle_device(mconfig, SCSIHD, "SCSIHD", tag, owner, clock, "scsihd", __FILE__) | |
| 18 | 18 | { |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | scsihd_device::scsihd_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 22 | scsihle_device(mconfig, type, name, tag, owner, clock) | |
| 21 | scsihd_device::scsihd_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) : | |
| 22 | scsihle_device(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 23 | 23 | { |
| 24 | 24 | } |
| 25 | 25 |
| r22095 | r22096 | |
|---|---|---|
| 15 | 15 | public: |
| 16 | 16 | // construction/destruction |
| 17 | 17 | scsihd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 18 | scsihd_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 18 | scsihd_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); | |
| 19 | 19 | virtual machine_config_constructor device_mconfig_additions() const; |
| 20 | 20 | |
| 21 | 21 | virtual void SetDevice( void *device ); |
| r22095 | r22096 | |
|---|---|---|
| 89 | 89 | |
| 90 | 90 | int upd765_family_device::rates[4] = { 500000, 300000, 250000, 1000000 }; |
| 91 | 91 | |
| 92 | upd765_family_device::upd765_family_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : pc_fdc_interface(mconfig, type, name, tag, owner, clock) | |
| 92 | upd765_family_device::upd765_family_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) : pc_fdc_interface(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 93 | 93 | { |
| 94 | 94 | ready_polled = true; |
| 95 | 95 | ready_connected = true; |
| r22095 | r22096 | |
| 2199 | 2199 | } |
| 2200 | 2200 | |
| 2201 | 2201 | |
| 2202 | upd765a_device::upd765a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, UPD765A, "UPD765A", tag, owner, clock) | |
| 2202 | upd765a_device::upd765a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, UPD765A, "UPD765A", tag, owner, clock, "upd765a", __FILE__) | |
| 2203 | 2203 | { |
| 2204 | m_shortname = "upd765a"; | |
| 2205 | 2204 | dor_reset = 0x0c; |
| 2206 | 2205 | } |
| 2207 | 2206 | |
| 2208 | upd765b_device::upd765b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, UPD765B, "UPD765B", tag, owner, clock) | |
| 2207 | upd765b_device::upd765b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, UPD765B, "UPD765B", tag, owner, clock, "upd765b", __FILE__) | |
| 2209 | 2208 | { |
| 2210 | m_shortname = "upd765b"; | |
| 2211 | 2209 | dor_reset = 0x0c; |
| 2212 | 2210 | } |
| 2213 | 2211 | |
| 2214 | i8272a_device::i8272a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, I8272A, "I8272A", tag, owner, clock) | |
| 2212 | i8272a_device::i8272a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, I8272A, "I8272A", tag, owner, clock, "i8272a", __FILE__) | |
| 2215 | 2213 | { |
| 2216 | m_shortname = "i8272a"; | |
| 2217 | 2214 | dor_reset = 0x0c; |
| 2218 | 2215 | } |
| 2219 | 2216 | |
| 2220 | upd72065_device::upd72065_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, UPD72065, "UPD72065", tag, owner, clock) | |
| 2217 | upd72065_device::upd72065_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, UPD72065, "UPD72065", tag, owner, clock, "upd72065", __FILE__) | |
| 2221 | 2218 | { |
| 2222 | m_shortname = "upd72065"; | |
| 2223 | 2219 | dor_reset = 0x0c; |
| 2224 | 2220 | } |
| 2225 | 2221 | |
| 2226 | smc37c78_device::smc37c78_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, SMC37C78, "SMC37C78", tag, owner, clock) | |
| 2222 | smc37c78_device::smc37c78_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, SMC37C78, "SMC37C78", tag, owner, clock, "smc37c78", __FILE__) | |
| 2227 | 2223 | { |
| 2228 | m_shortname = "smc37c78"; | |
| 2229 | 2224 | ready_connected = false; |
| 2230 | 2225 | select_connected = true; |
| 2231 | 2226 | } |
| 2232 | 2227 | |
| 2233 | n82077aa_device::n82077aa_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, N82077AA, "N82077AA", tag, owner, clock) | |
| 2228 | n82077aa_device::n82077aa_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, N82077AA, "N82077AA", tag, owner, clock, "n82077aa", __FILE__) | |
| 2234 | 2229 | { |
| 2235 | m_shortname = "n82077aa"; | |
| 2236 | 2230 | ready_connected = false; |
| 2237 | 2231 | select_connected = true; |
| 2238 | 2232 | } |
| 2239 | 2233 | |
| 2240 | pc_fdc_superio_device::pc_fdc_superio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, PC_FDC_SUPERIO, "PC FDC SUPERIO", tag, owner, clock) | |
| 2234 | pc_fdc_superio_device::pc_fdc_superio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, PC_FDC_SUPERIO, "PC FDC SUPERIO", tag, owner, clock, "pc_fdc_superio", __FILE__) | |
| 2241 | 2235 | { |
| 2242 | m_shortname = "pc_fdc_superio"; | |
| 2243 | 2236 | ready_polled = false; |
| 2244 | 2237 | ready_connected = false; |
| 2245 | 2238 | select_connected = true; |
| 2246 | 2239 | } |
| 2247 | 2240 | |
| 2248 | dp8473_device::dp8473_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, PC_FDC_SUPERIO, "PC FDC SUPERIO", tag, owner, clock) | |
| 2241 | dp8473_device::dp8473_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, PC_FDC_SUPERIO, "PC FDC SUPERIO", tag, owner, clock, "dp8473", __FILE__) | |
| 2249 | 2242 | { |
| 2250 | m_shortname = "dp8473"; | |
| 2251 | 2243 | ready_polled = false; |
| 2252 | 2244 | ready_connected = false; |
| 2253 | 2245 | select_connected = true; |
| 2254 | 2246 | } |
| 2255 | 2247 | |
| 2256 | pc8477a_device::pc8477a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, PC_FDC_SUPERIO, "PC FDC SUPERIO", tag, owner, clock) | |
| 2248 | pc8477a_device::pc8477a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, PC_FDC_SUPERIO, "PC FDC SUPERIO", tag, owner, clock, "pc8477a", __FILE__) | |
| 2257 | 2249 | { |
| 2258 | m_shortname = "pc8477a"; | |
| 2259 | 2250 | ready_polled = true; |
| 2260 | 2251 | ready_connected = false; |
| 2261 | 2252 | select_connected = true; |
| 2262 | 2253 | } |
| 2263 | 2254 | |
| 2264 | wd37c65c_device::wd37c65c_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, PC_FDC_SUPERIO, "PC FDC SUPERIO", tag, owner, clock) | |
| 2255 | wd37c65c_device::wd37c65c_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : upd765_family_device(mconfig, PC_FDC_SUPERIO, "PC FDC SUPERIO", tag, owner, clock, "wd37c65c", __FILE__) | |
| 2265 | 2256 | { |
| 2266 | m_shortname = "wd37c65c"; | |
| 2267 | 2257 | ready_polled = true; |
| 2268 | 2258 | ready_connected = false; |
| 2269 | 2259 | select_connected = true; |
| r22095 | r22096 | |
|---|---|---|
| 56 | 56 | typedef delegate<UINT8 ()> byte_read_cb; |
| 57 | 57 | typedef delegate<void (UINT8)> byte_write_cb; |
| 58 | 58 | |
| 59 | pc_fdc_interface(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : device_t(mconfig, type, name, tag, owner, clock) {} | |
| 59 | pc_fdc_interface(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : device_t(mconfig, type, name, tag, owner, clock, shortname, source) {} | |
| 60 | 60 | |
| 61 | 61 | virtual void setup_intrq_cb(line_cb cb) = 0; |
| 62 | 62 | virtual void setup_drq_cb(line_cb cb) = 0; |
| r22095 | r22096 | |
| 79 | 79 | public: |
| 80 | 80 | enum { MODE_AT, MODE_PS2, MODE_M30 }; |
| 81 | 81 | |
| 82 | upd765_family_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 82 | upd765_family_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); | |
| 83 | 83 | |
| 84 | 84 | void setup_intrq_cb(line_cb cb); |
| 85 | 85 | void setup_drq_cb(line_cb cb); |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | const device_type SCSICD = &device_creator<scsicd_device>; |
| 24 | 24 | |
| 25 | 25 | scsicd_device::scsicd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 26 | : scsihle_device(mconfig, SCSICD, "SCSICD", tag, owner, clock) | |
| 26 | : scsihle_device(mconfig, SCSICD, "SCSICD", tag, owner, clock, "scsicd", __FILE__) | |
| 27 | 27 | { |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | scsicd_device::scsicd_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 31 | scsihle_device(mconfig, type, name, tag, owner, clock) | |
| 30 | scsicd_device::scsicd_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 | scsihle_device(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 32 | 32 | { |
| 33 | 33 | } |
| 34 | 34 |
| r22095 | r22096 | |
|---|---|---|
| 15 | 15 | public: |
| 16 | 16 | // construction/destruction |
| 17 | 17 | scsicd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 18 | scsicd_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 18 | scsicd_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); | |
| 19 | 19 | virtual machine_config_constructor device_mconfig_additions() const; |
| 20 | 20 | |
| 21 | 21 | virtual void SetDevice( void *device ); |
| r22095 | r22096 | |
|---|---|---|
| 170 | 170 | //------------------------------------------------- |
| 171 | 171 | |
| 172 | 172 | pioneer_ldv1000_device::pioneer_ldv1000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 173 | : laserdisc_device(mconfig, PIONEER_LDV1000, "Pioneer LD-V1000", | |
| 173 | : laserdisc_device(mconfig, PIONEER_LDV1000, "Pioneer LD-V1000", tag, owner, clock, "ldv1000", __FILE__), | |
| 174 | 174 | m_z80_cpu(*this, "ldv1000"), |
| 175 | 175 | m_z80_ctc(*this, "ldvctc"), |
| 176 | 176 | m_multitimer(NULL), |
| r22095 | r22096 | |
|---|---|---|
| 86 | 86 | // laserdisc_device - constructor |
| 87 | 87 | //------------------------------------------------- |
| 88 | 88 | |
| 89 | laserdisc_device::laserdisc_device(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, device_t *owner, UINT32 clock) | |
| 90 | : device_t(mconfig, type, name, shortname, tag, owner, clock), | |
| 89 | laserdisc_device::laserdisc_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) | |
| 90 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 91 | 91 | device_sound_interface(mconfig, *this), |
| 92 | 92 | m_screen_name(NULL), |
| 93 | 93 | m_overwidth(0), |
| r22095 | r22096 | |
|---|---|---|
| 162 | 162 | { |
| 163 | 163 | protected: |
| 164 | 164 | // construction/destruction |
| 165 | laserdisc_device(const machine_config &mconfig, device_type type, const char *name, const char * | |
| 165 | laserdisc_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); | |
| 166 | 166 | virtual ~laserdisc_device(); |
| 167 | 167 | |
| 168 | 168 | public: |
| r22095 | r22096 | |
|---|---|---|
| 1926 | 1926 | //------------------------------------------------- |
| 1927 | 1927 | |
| 1928 | 1928 | ide_hdd_device::ide_hdd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1929 | : device_t(mconfig, IDE_HARDDISK, "IDE Hard Disk", tag, owner, clock), | |
| 1929 | : device_t(mconfig, IDE_HARDDISK, "IDE Hard Disk", tag, owner, clock, "hdd", __FILE__), | |
| 1930 | 1930 | ide_device_interface( mconfig, *this ) |
| 1931 | 1931 | { |
| 1932 | 1932 | } |
| 1933 | 1933 | |
| 1934 | ide_hdd_device::ide_hdd_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 1935 | device_t(mconfig, type, name, tag, owner, clock), | |
| 1934 | ide_hdd_device::ide_hdd_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) : | |
| 1935 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 1936 | 1936 | ide_device_interface(mconfig, *this) |
| 1937 | 1937 | { |
| 1938 | 1938 | } |
| r22095 | r22096 | |
| 1994 | 1994 | //------------------------------------------------- |
| 1995 | 1995 | |
| 1996 | 1996 | ide_hdd_image_device::ide_hdd_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1997 | : ide_hdd_device(mconfig, IDE_HARDDISK_IMAGE, "IDE Hard Disk Image", tag, owner, clock) | |
| 1997 | : ide_hdd_device(mconfig, IDE_HARDDISK_IMAGE, "IDE Hard Disk Image", tag, owner, clock, "hdd_image", __FILE__) | |
| 1998 | 1998 | { |
| 1999 | 1999 | } |
| 2000 | 2000 |
| r22095 | r22096 | |
|---|---|---|
| 142 | 142 | return dynamic_cast<nscsi_device *>(get_card_device()); |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | nscsi_device::nscsi_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 146 | device_t(mconfig, type, name, tag, owner, clock), | |
| 145 | nscsi_device::nscsi_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) : | |
| 146 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 147 | 147 | device_slot_card_interface(mconfig, *this) |
| 148 | 148 | { |
| 149 | 149 | scsi_id = scsi_refid = -1; |
| r22095 | r22096 | |
| 161 | 161 | { |
| 162 | 162 | } |
| 163 | 163 | |
| 164 | nscsi_full_device::nscsi_full_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 165 | nscsi_device(mconfig, type, name, tag, owner, clock) | |
| 164 | nscsi_full_device::nscsi_full_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) : | |
| 165 | nscsi_device(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 166 | 166 | { |
| 167 | 167 | } |
| 168 | 168 |
| r22095 | r22096 | |
|---|---|---|
| 88 | 88 | public: |
| 89 | 89 | // construction/destruction |
| 90 | 90 | ide_hdd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 91 | ide_hdd_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 91 | ide_hdd_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); | |
| 92 | 92 | |
| 93 | 93 | virtual int read_sector(UINT32 lba, void *buffer) { return hard_disk_read(m_disk, lba, buffer); } |
| 94 | 94 | virtual int write_sector(UINT32 lba, const void *buffer) { return hard_disk_write(m_disk, lba, buffer); } |
| r22095 | r22096 | |
| 97 | 97 | // device-level overrides |
| 98 | 98 | virtual void device_start(); |
| 99 | 99 | virtual void device_reset(); |
| 100 | virtual void device_config_complete() { m_shortname = "hdd"; } | |
| 101 | 100 | |
| 102 | 101 | void ide_build_features(); |
| 103 | 102 | virtual bool is_ready() { return (m_disk != NULL); } |
| r22095 | r22096 | |
| 119 | 118 | // device-level overrides |
| 120 | 119 | virtual void device_start(); |
| 121 | 120 | virtual void device_reset(); |
| 122 | virtual void device_config_complete() { m_shortname = "hdd_image"; } | |
| 123 | 121 | // optional information overrides |
| 124 | 122 | virtual machine_config_constructor device_mconfig_additions() const; |
| 125 | 123 | }; |
| r22095 | r22096 | |
|---|---|---|
| 84 | 84 | S_PHASE_MASK = S_MSG|S_CTL|S_INP, |
| 85 | 85 | }; |
| 86 | 86 | |
| 87 | nscsi_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 87 | nscsi_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 | 88 | |
| 89 | 89 | void connect_to_bus(nscsi_bus_device *bus, int refid, int default_scsi_id); |
| 90 | 90 | virtual void scsi_ctrl_changed(); |
| r22095 | r22096 | |
| 97 | 97 | class nscsi_full_device : public nscsi_device |
| 98 | 98 | { |
| 99 | 99 | public: |
| 100 | nscsi_full_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 100 | nscsi_full_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); | |
| 101 | 101 | |
| 102 | 102 | virtual void scsi_ctrl_changed(); |
| 103 | 103 | protected: |
| r22095 | r22096 | |
|---|---|---|
| 24 | 24 | { |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | snapshot_image_device::snapshot_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 28 | device_t(mconfig, type, name, tag, owner, clock), | |
| 27 | snapshot_image_device::snapshot_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) : | |
| 28 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 29 | 29 | device_image_interface(mconfig, *this), |
| 30 | 30 | m_interface(NULL), |
| 31 | 31 | m_delay_attoseconds(0) |
| r22095 | r22096 | |
| 97 | 97 | //------------------------------------------------- |
| 98 | 98 | |
| 99 | 99 | quickload_image_device::quickload_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 100 | : snapshot_image_device(mconfig, QUICKLOAD, "Quickload", tag, owner, clock) | |
| 100 | : snapshot_image_device(mconfig, QUICKLOAD, "Quickload", tag, owner, clock, "quickload", __FILE__) | |
| 101 | 101 | { |
| 102 | 102 | } |
| r22095 | r22096 | |
|---|---|---|
| 18 | 18 | public: |
| 19 | 19 | // construction/destruction |
| 20 | 20 | snapshot_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 21 | snapshot_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 21 | snapshot_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); | |
| 22 | 22 | virtual ~snapshot_image_device(); |
| 23 | 23 | |
| 24 | 24 | // image-level overrides |
| r22095 | r22096 | |
|---|---|---|
| 30 | 30 | { |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | cdrom_image_device::cdrom_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 33 | cdrom_image_device::cdrom_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) | |
| 34 | 34 | : device_t(mconfig, type, name, tag, owner, clock), |
| 35 | 35 | device_image_interface(mconfig, *this) |
| 36 | 36 | { |
| r22095 | r22096 | |
|---|---|---|
| 77 | 77 | // floppy_image_device - constructor |
| 78 | 78 | //------------------------------------------------- |
| 79 | 79 | |
| 80 | floppy_image_device::floppy_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 81 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 80 | floppy_image_device::floppy_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) | |
| 81 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 82 | 82 | device_image_interface(mconfig, *this), |
| 83 | 83 | device_slot_card_interface(mconfig, *this), |
| 84 | 84 | image(NULL) |
| r22095 | r22096 | |
| 895 | 895 | } |
| 896 | 896 | |
| 897 | 897 | floppy_3_ssdd::floppy_3_ssdd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 898 | floppy_image_device(mconfig, FLOPPY_3_SSDD, "3\" single sided floppy drive", tag, owner, clock) | |
| 898 | floppy_image_device(mconfig, FLOPPY_3_SSDD, "3\" single sided floppy drive", tag, owner, clock, "floppy_3_ssdd", __FILE__) | |
| 899 | 899 | { |
| 900 | 900 | } |
| 901 | 901 | |
| r22095 | r22096 | |
| 918 | 918 | } |
| 919 | 919 | |
| 920 | 920 | floppy_3_dsdd::floppy_3_dsdd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 921 | floppy_image_device(mconfig, FLOPPY_3_DSDD, "3\" double sided floppy drive", tag, owner, clock) | |
| 921 | floppy_image_device(mconfig, FLOPPY_3_DSDD, "3\" double sided floppy drive", tag, owner, clock, "floppy_3_dsdd", __FILE__) | |
| 922 | 922 | { |
| 923 | 923 | } |
| 924 | 924 | |
| r22095 | r22096 | |
| 942 | 942 | } |
| 943 | 943 | |
| 944 | 944 | floppy_35_dd::floppy_35_dd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 945 | floppy_image_device(mconfig, FLOPPY_35_DD, "3.5\" double density floppy drive", tag, owner, clock) | |
| 945 | floppy_image_device(mconfig, FLOPPY_35_DD, "3.5\" double density floppy drive", tag, owner, clock, "floppy_35_dd", __FILE__) | |
| 946 | 946 | { |
| 947 | 947 | } |
| 948 | 948 | |
| r22095 | r22096 | |
| 967 | 967 | } |
| 968 | 968 | |
| 969 | 969 | floppy_35_dd_nosd::floppy_35_dd_nosd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 970 | floppy_image_device(mconfig, FLOPPY_35_DD_NOSD, "3.5\" double density floppy drive", tag, owner, clock) | |
| 970 | floppy_image_device(mconfig, FLOPPY_35_DD_NOSD, "3.5\" double density floppy drive", tag, owner, clock, "floppy_35_dd_nosd", __FILE__) | |
| 971 | 971 | { |
| 972 | 972 | } |
| 973 | 973 | |
| r22095 | r22096 | |
| 991 | 991 | } |
| 992 | 992 | |
| 993 | 993 | floppy_35_hd::floppy_35_hd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 994 | floppy_image_device(mconfig, FLOPPY_35_HD, "3.5\" high density floppy drive", tag, owner, clock) | |
| 994 | floppy_image_device(mconfig, FLOPPY_35_HD, "3.5\" high density floppy drive", tag, owner, clock, "floppy_35_hd", __FILE__) | |
| 995 | 995 | { |
| 996 | 996 | } |
| 997 | 997 | |
| r22095 | r22096 | |
| 1017 | 1017 | } |
| 1018 | 1018 | |
| 1019 | 1019 | floppy_35_ed::floppy_35_ed(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1020 | floppy_image_device(mconfig, FLOPPY_35_ED, "3.5\" extended density floppy drive", tag, owner, clock) | |
| 1020 | floppy_image_device(mconfig, FLOPPY_35_ED, "3.5\" extended density floppy drive", tag, owner, clock, "floppy_35_ed", __FILE__) | |
| 1021 | 1021 | { |
| 1022 | 1022 | } |
| 1023 | 1023 | |
| r22095 | r22096 | |
| 1044 | 1044 | } |
| 1045 | 1045 | |
| 1046 | 1046 | floppy_525_sssd_35t::floppy_525_sssd_35t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1047 | floppy_image_device(mconfig, FLOPPY_525_SSSD_35T, "5.25\" single-sided single density 35-track floppy drive", tag, owner, clock) | |
| 1047 | floppy_image_device(mconfig, FLOPPY_525_SSSD_35T, "5.25\" single-sided single density 35-track floppy drive", tag, owner, clock, "floppy_525_sssd_35t", __FILE__) | |
| 1048 | 1048 | { |
| 1049 | 1049 | } |
| 1050 | 1050 | |
| r22095 | r22096 | |
| 1067 | 1067 | } |
| 1068 | 1068 | |
| 1069 | 1069 | floppy_525_sd_35t::floppy_525_sd_35t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1070 | floppy_image_device(mconfig, FLOPPY_525_SD_35T, "5.25\" single density 35-track floppy drive", tag, owner, clock) | |
| 1070 | floppy_image_device(mconfig, FLOPPY_525_SD_35T, "5.25\" single density 35-track floppy drive", tag, owner, clock, "floppy_525_sd_35t", __FILE__) | |
| 1071 | 1071 | { |
| 1072 | 1072 | } |
| 1073 | 1073 | |
| r22095 | r22096 | |
| 1090 | 1090 | } |
| 1091 | 1091 | |
| 1092 | 1092 | floppy_525_sssd::floppy_525_sssd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1093 | floppy_image_device(mconfig, FLOPPY_525_SSSD, "5.25\" single-sided single density floppy drive", tag, owner, clock) | |
| 1093 | floppy_image_device(mconfig, FLOPPY_525_SSSD, "5.25\" single-sided single density floppy drive", tag, owner, clock, "floppy_525_sssd", __FILE__) | |
| 1094 | 1094 | { |
| 1095 | 1095 | } |
| 1096 | 1096 | |
| r22095 | r22096 | |
| 1113 | 1113 | } |
| 1114 | 1114 | |
| 1115 | 1115 | floppy_525_sd::floppy_525_sd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1116 | floppy_image_device(mconfig, FLOPPY_525_SD, "5.25\" single density floppy drive", tag, owner, clock) | |
| 1116 | floppy_image_device(mconfig, FLOPPY_525_SD, "5.25\" single density floppy drive", tag, owner, clock, "floppy_525_sd", __FILE__) | |
| 1117 | 1117 | { |
| 1118 | 1118 | } |
| 1119 | 1119 | |
| r22095 | r22096 | |
| 1136 | 1136 | } |
| 1137 | 1137 | |
| 1138 | 1138 | floppy_525_ssdd::floppy_525_ssdd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1139 | floppy_image_device(mconfig, FLOPPY_525_SSDD, "5.25\" single-sided double density floppy drive", tag, owner, clock) | |
| 1139 | floppy_image_device(mconfig, FLOPPY_525_SSDD, "5.25\" single-sided double density floppy drive", tag, owner, clock, "floppy_525_ssdd", __FILE__) | |
| 1140 | 1140 | { |
| 1141 | 1141 | } |
| 1142 | 1142 | |
| r22095 | r22096 | |
| 1160 | 1160 | } |
| 1161 | 1161 | |
| 1162 | 1162 | floppy_525_dd::floppy_525_dd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1163 | floppy_image_device(mconfig, FLOPPY_525_DD, "5.25\" double density floppy drive", tag, owner, clock) | |
| 1163 | floppy_image_device(mconfig, FLOPPY_525_DD, "5.25\" double density floppy drive", tag, owner, clock, "floppy_525_dd", __FILE__) | |
| 1164 | 1164 | { |
| 1165 | 1165 | } |
| 1166 | 1166 | |
| r22095 | r22096 | |
| 1185 | 1185 | } |
| 1186 | 1186 | |
| 1187 | 1187 | floppy_525_qd::floppy_525_qd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1188 | floppy_image_device(mconfig, FLOPPY_525_QD, "5.25\" quad density floppy drive", tag, owner, clock) | |
| 1188 | floppy_image_device(mconfig, FLOPPY_525_QD, "5.25\" quad density floppy drive", tag, owner, clock, "floppy_525_qd", __FILE__) | |
| 1189 | 1189 | { |
| 1190 | 1190 | } |
| 1191 | 1191 | |
| r22095 | r22096 | |
| 1212 | 1212 | } |
| 1213 | 1213 | |
| 1214 | 1214 | floppy_525_hd::floppy_525_hd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1215 | floppy_image_device(mconfig, FLOPPY_525_HD, "5.25\" high density floppy drive", tag, owner, clock) | |
| 1215 | floppy_image_device(mconfig, FLOPPY_525_HD, "5.25\" high density floppy drive", tag, owner, clock, "floppy_525_hd", __FILE__) | |
| 1216 | 1216 | { |
| 1217 | 1217 | } |
| 1218 | 1218 | |
| r22095 | r22096 | |
| 1240 | 1240 | } |
| 1241 | 1241 | |
| 1242 | 1242 | floppy_8_sssd::floppy_8_sssd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1243 | floppy_image_device(mconfig, FLOPPY_8_SSSD, "8\" single density single sided floppy drive", tag, owner, clock) | |
| 1243 | floppy_image_device(mconfig, FLOPPY_8_SSSD, "8\" single density single sided floppy drive", tag, owner, clock, "floppy_8_sssd", __FILE__) | |
| 1244 | 1244 | { |
| 1245 | 1245 | } |
| 1246 | 1246 | |
| r22095 | r22096 | |
| 1264 | 1264 | } |
| 1265 | 1265 | |
| 1266 | 1266 | floppy_8_dssd::floppy_8_dssd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1267 | floppy_image_device(mconfig, FLOPPY_8_DSSD, "8\" single density double sided floppy drive", tag, owner, clock) | |
| 1267 | floppy_image_device(mconfig, FLOPPY_8_DSSD, "8\" single density double sided floppy drive", tag, owner, clock, "floppy_8_dssd", __FILE__) | |
| 1268 | 1268 | { |
| 1269 | 1269 | } |
| 1270 | 1270 | |
| r22095 | r22096 | |
| 1289 | 1289 | } |
| 1290 | 1290 | |
| 1291 | 1291 | floppy_8_ssdd::floppy_8_ssdd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1292 | floppy_image_device(mconfig, FLOPPY_8_DSDD, "8\" double density single sided floppy drive", tag, owner, clock) | |
| 1292 | floppy_image_device(mconfig, FLOPPY_8_DSDD, "8\" double density single sided floppy drive", tag, owner, clock, "floppy_8_ssdd", __FILE__) | |
| 1293 | 1293 | { |
| 1294 | 1294 | } |
| 1295 | 1295 | |
| r22095 | r22096 | |
| 1314 | 1314 | } |
| 1315 | 1315 | |
| 1316 | 1316 | floppy_8_dsdd::floppy_8_dsdd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1317 | floppy_image_device(mconfig, FLOPPY_8_DSDD, "8\" double density double sided floppy drive", tag, owner, clock) | |
| 1317 | floppy_image_device(mconfig, FLOPPY_8_DSDD, "8\" double density double sided floppy drive", tag, owner, clock, "floppy_8_dsdd", __FILE__) | |
| 1318 | 1318 | { |
| 1319 | 1319 | } |
| 1320 | 1320 |
| r22095 | r22096 | |
|---|---|---|
| 31 | 31 | public: |
| 32 | 32 | // construction/destruction |
| 33 | 33 | cdrom_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 34 | cdrom_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | cdrom_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); | |
| 35 | 35 | virtual ~cdrom_image_device(); |
| 36 | 36 | |
| 37 | 37 | // image-level overrides |
| r22095 | r22096 | |
|---|---|---|
| 855 | 855 | m_token = global_alloc_clear(floppy_drive); |
| 856 | 856 | } |
| 857 | 857 | |
| 858 | legacy_floppy_image_device::legacy_floppy_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 859 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 858 | legacy_floppy_image_device::legacy_floppy_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) | |
| 859 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 860 | 860 | device_image_interface(mconfig, *this), |
| 861 | 861 | m_token(NULL) |
| 862 | 862 | { |
| r22095 | r22096 | |
|---|---|---|
| 52 | 52 | typedef delegate<void (floppy_image_device *, int)> wpt_cb; |
| 53 | 53 | |
| 54 | 54 | // construction/destruction |
| 55 | floppy_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 55 | floppy_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); | |
| 56 | 56 | virtual ~floppy_image_device(); |
| 57 | 57 | |
| 58 | 58 | virtual void handled_variants(UINT32 *variants, int &var_count) const = 0; |
| r22095 | r22096 | |
| 201 | 201 | floppy_3_ssdd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 202 | 202 | virtual ~floppy_3_ssdd(); |
| 203 | 203 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 204 | virtual void device_config_complete() { m_shortname = "floppy_3_ssdd"; } | |
| 205 | 204 | virtual const char *image_interface() const { return "floppy_3"; } |
| 206 | 205 | protected: |
| 207 | 206 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 212 | 211 | floppy_3_dsdd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 213 | 212 | virtual ~floppy_3_dsdd(); |
| 214 | 213 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 215 | virtual void device_config_complete() { m_shortname = "floppy_3_dsdd"; } | |
| 216 | 214 | virtual const char *image_interface() const { return "floppy_3"; } |
| 217 | 215 | protected: |
| 218 | 216 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 223 | 221 | floppy_35_dd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 224 | 222 | virtual ~floppy_35_dd(); |
| 225 | 223 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 226 | virtual void device_config_complete() { m_shortname = "floppy_35_dd"; } | |
| 227 | 224 | virtual const char *image_interface() const { return "floppy_3_5"; } |
| 228 | 225 | protected: |
| 229 | 226 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 234 | 231 | floppy_35_dd_nosd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 235 | 232 | virtual ~floppy_35_dd_nosd(); |
| 236 | 233 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 237 | virtual void device_config_complete() { m_shortname = "floppy_35_dd_nosd"; } | |
| 238 | 234 | virtual const char *image_interface() const { return "floppy_3_5"; } |
| 239 | 235 | protected: |
| 240 | 236 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 245 | 241 | floppy_35_hd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 246 | 242 | virtual ~floppy_35_hd(); |
| 247 | 243 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 248 | virtual void device_config_complete() { m_shortname = "floppy_35_hd"; } | |
| 249 | 244 | virtual const char *image_interface() const { return "floppy_3_5"; } |
| 250 | 245 | protected: |
| 251 | 246 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 256 | 251 | floppy_35_ed(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 257 | 252 | virtual ~floppy_35_ed(); |
| 258 | 253 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 259 | virtual void device_config_complete() { m_shortname = "floppy_35_ed"; } | |
| 260 | 254 | virtual const char *image_interface() const { return "floppy_3_5"; } |
| 261 | 255 | protected: |
| 262 | 256 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 267 | 261 | floppy_525_sssd_35t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 268 | 262 | virtual ~floppy_525_sssd_35t(); |
| 269 | 263 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 270 | virtual void device_config_complete() { m_shortname = "floppy_525_sssd_35t"; } | |
| 271 | 264 | virtual const char *image_interface() const { return "floppy_5_25"; } |
| 272 | 265 | protected: |
| 273 | 266 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 278 | 271 | floppy_525_sd_35t(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 279 | 272 | virtual ~floppy_525_sd_35t(); |
| 280 | 273 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 281 | virtual void device_config_complete() { m_shortname = "floppy_525_sd_35t"; } | |
| 282 | 274 | virtual const char *image_interface() const { return "floppy_5_25"; } |
| 283 | 275 | protected: |
| 284 | 276 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 289 | 281 | floppy_525_sssd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 290 | 282 | virtual ~floppy_525_sssd(); |
| 291 | 283 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 292 | virtual void device_config_complete() { m_shortname = "floppy_525_sssd"; } | |
| 293 | 284 | virtual const char *image_interface() const { return "floppy_5_25"; } |
| 294 | 285 | protected: |
| 295 | 286 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 300 | 291 | floppy_525_sd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 301 | 292 | virtual ~floppy_525_sd(); |
| 302 | 293 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 303 | virtual void device_config_complete() { m_shortname = "floppy_525_sd"; } | |
| 304 | 294 | virtual const char *image_interface() const { return "floppy_5_25"; } |
| 305 | 295 | protected: |
| 306 | 296 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 311 | 301 | floppy_525_ssdd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 312 | 302 | virtual ~floppy_525_ssdd(); |
| 313 | 303 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 314 | virtual void device_config_complete() { m_shortname = "floppy_525_ssdd"; } | |
| 315 | 304 | virtual const char *image_interface() const { return "floppy_5_25"; } |
| 316 | 305 | protected: |
| 317 | 306 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 322 | 311 | floppy_525_dd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 323 | 312 | virtual ~floppy_525_dd(); |
| 324 | 313 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 325 | virtual void device_config_complete() { m_shortname = "floppy_525_dd"; } | |
| 326 | 314 | virtual const char *image_interface() const { return "floppy_5_25"; } |
| 327 | 315 | protected: |
| 328 | 316 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 333 | 321 | floppy_525_qd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 334 | 322 | virtual ~floppy_525_qd(); |
| 335 | 323 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 336 | virtual void device_config_complete() { m_shortname = "floppy_525_qd"; } | |
| 337 | 324 | virtual const char *image_interface() const { return "floppy_5_25"; } |
| 338 | 325 | protected: |
| 339 | 326 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 344 | 331 | floppy_525_hd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 345 | 332 | virtual ~floppy_525_hd(); |
| 346 | 333 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 347 | virtual void device_config_complete() { m_shortname = "floppy_525_hd"; } | |
| 348 | 334 | virtual const char *image_interface() const { return "floppy_5_25"; } |
| 349 | 335 | protected: |
| 350 | 336 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 355 | 341 | floppy_8_sssd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 356 | 342 | virtual ~floppy_8_sssd(); |
| 357 | 343 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 358 | virtual void device_config_complete() { m_shortname = "floppy_8_sssd"; } | |
| 359 | 344 | virtual const char *image_interface() const { return "floppy_8"; } |
| 360 | 345 | protected: |
| 361 | 346 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 366 | 351 | floppy_8_dssd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 367 | 352 | virtual ~floppy_8_dssd(); |
| 368 | 353 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 369 | virtual void device_config_complete() { m_shortname = "floppy_8_dssd"; } | |
| 370 | 354 | virtual const char *image_interface() const { return "floppy_8"; } |
| 371 | 355 | protected: |
| 372 | 356 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 377 | 361 | floppy_8_ssdd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 378 | 362 | virtual ~floppy_8_ssdd(); |
| 379 | 363 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 380 | virtual void device_config_complete() { m_shortname = "floppy_8_ssdd"; } | |
| 381 | 364 | virtual const char *image_interface() const { return "floppy_8"; } |
| 382 | 365 | protected: |
| 383 | 366 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
| 388 | 371 | floppy_8_dsdd(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 389 | 372 | virtual ~floppy_8_dsdd(); |
| 390 | 373 | virtual void handled_variants(UINT32 *variants, int &var_count) const; |
| 391 | virtual void device_config_complete() { m_shortname = "floppy_8_dsdd"; } | |
| 392 | 374 | virtual const char *image_interface() const { return "floppy_8"; } |
| 393 | 375 | protected: |
| 394 | 376 | virtual void setup_characteristics(); |
| r22095 | r22096 | |
|---|---|---|
| 184 | 184 | public: |
| 185 | 185 | // construction/destruction |
| 186 | 186 | legacy_floppy_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 187 | legacy_floppy_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 187 | legacy_floppy_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); | |
| 188 | 188 | ~legacy_floppy_image_device(); |
| 189 | 189 | |
| 190 | 190 | virtual bool call_load(); |
| r22095 | r22096 | |
|---|---|---|
| 280 | 280 | // tms3203x_device - constructor |
| 281 | 281 | //------------------------------------------------- |
| 282 | 282 | |
| 283 | tms3203x_device::tms3203x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 chiptype, address_map_constructor internal_map) | |
| 284 | : cpu_device(mconfig, type, name, tag, owner, clock), | |
| 283 | tms3203x_device::tms3203x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 chiptype, address_map_constructor internal_map, const char *shortname, const char *source) | |
| 284 | : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 285 | 285 | m_program_config("program", ENDIANNESS_LITTLE, 32, 24, -2, internal_map), |
| 286 | 286 | m_chip_type(chiptype), |
| 287 | 287 | m_pc(0), |
| r22095 | r22096 | |
| 312 | 312 | } |
| 313 | 313 | |
| 314 | 314 | tms32031_device::tms32031_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 315 | : tms3203x_device(mconfig, TMS32031, "TMS32031", tag, owner, clock, CHIP_TYPE_TMS32031, ADDRESS_MAP_NAME(internal_32031)) | |
| 315 | : tms3203x_device(mconfig, TMS32031, "TMS32031", tag, owner, clock, CHIP_TYPE_TMS32031, ADDRESS_MAP_NAME(internal_32031), "tms32031", __FILE__) | |
| 316 | 316 | { |
| 317 | m_shortname = "tms32031"; | |
| 318 | 317 | } |
| 319 | 318 | |
| 320 | 319 | tms32032_device::tms32032_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 321 | : tms3203x_device(mconfig, TMS32032, "TMS32032", tag, owner, clock, CHIP_TYPE_TMS32032, ADDRESS_MAP_NAME(internal_32032)) | |
| 320 | : tms3203x_device(mconfig, TMS32032, "TMS32032", tag, owner, clock, CHIP_TYPE_TMS32032, ADDRESS_MAP_NAME(internal_32032), "tms32032", __FILE__) | |
| 322 | 321 | { |
| 323 | m_shortname = "tms32032"; | |
| 324 | 322 | } |
| 325 | 323 | |
| 326 | 324 | |
| r22095 | r22096 | |
| 422 | 420 | m_direct = &m_program->direct(); |
| 423 | 421 | |
| 424 | 422 | // set up the internal boot loader ROM |
| 425 | m_bootrom = reinterpret_cast<UINT32*>(memregion( | |
| 423 | m_bootrom = reinterpret_cast<UINT32*>(memregion(shortname())->base()); | |
| 426 | 424 | m_direct->set_direct_update(direct_update_delegate(FUNC(tms3203x_device::direct_handler), this)); |
| 427 | 425 | |
| 428 | 426 | // save state |
| r22095 | r22096 | |
|---|---|---|
| 183 | 183 | }; |
| 184 | 184 | |
| 185 | 185 | // construction/destruction |
| 186 | tms3203x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 chiptype, address_map_constructor internal_map); | |
| 186 | tms3203x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 chiptype, address_map_constructor internal_map, const char *shortname, const char *source); | |
| 187 | 187 | virtual ~tms3203x_device(); |
| 188 | 188 | |
| 189 | 189 | public: |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | class i8xc196_device : public mcs96_device { |
| 46 | 46 | public: |
| 47 | i8xc196_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 47 | i8xc196_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 | 48 | |
| 49 | 49 | static const disasm_entry disasm_entries[0x100]; |
| 50 | 50 |
| r22095 | r22096 | |
|---|---|---|
| 40 | 40 | #include "emu.h" |
| 41 | 41 | #include "i8x9x.h" |
| 42 | 42 | |
| 43 | i8x9x_device::i8x9x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 43 | i8x9x_device::i8x9x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : | |
| 44 | 44 | mcs96_device(mconfig, type, name, tag, owner, clock, 8), |
| 45 | 45 | io_config("io", ENDIANNESS_LITTLE, 16, 16, -1) |
| 46 | 46 | { |
| r22095 | r22096 | |
| 387 | 387 | } |
| 388 | 388 | |
| 389 | 389 | c8095_device::c8095_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 390 | i8x9x_device(mconfig, C8095, "C8095", tag, owner, clock) | |
| 390 | i8x9x_device(mconfig, C8095, "C8095", tag, owner, clock, "c8095", __FILE__) | |
| 391 | 391 | { |
| 392 | 392 | } |
| 393 | 393 | |
| 394 | 394 | p8098_device::p8098_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 395 | i8x9x_device(mconfig, P8098, "P8098", tag, owner, clock) | |
| 395 | i8x9x_device(mconfig, P8098, "P8098", tag, owner, clock, "p8098", __FILE__) | |
| 396 | 396 | { |
| 397 | 397 | } |
| 398 | 398 |
| r22095 | r22096 | |
|---|---|---|
| 40 | 40 | #include "emu.h" |
| 41 | 41 | #include "i8xc196.h" |
| 42 | 42 | |
| 43 | i8xc196_device::i8xc196_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 43 | i8xc196_device::i8xc196_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 | 44 | mcs96_device(mconfig, type, name, tag, owner, clock, 16) |
| 45 | 45 | { |
| 46 | 46 | } |
| r22095 | r22096 | |
|---|---|---|
| 50 | 50 | P0, P1, P2 |
| 51 | 51 | }; |
| 52 | 52 | |
| 53 | i8x9x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 53 | i8x9x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); | |
| 54 | 54 | |
| 55 | 55 | void serial_w(UINT8 val); |
| 56 | 56 |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | const device_type M65SC02 = &device_creator<m65sc02_device>; |
| 44 | 44 | |
| 45 | 45 | m65sc02_device::m65sc02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 46 | r65c02_device(mconfig, M65SC02, "M65SC02", tag, owner, clock) | |
| 46 | r65c02_device(mconfig, M65SC02, "M65SC02", tag, owner, clock, "m65sc02", __FILE__) | |
| 47 | 47 | { |
| 48 | 48 | } |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | //------------------------------------------------- |
| 38 | 38 | // m5074x_device - constructor |
| 39 | 39 | //------------------------------------------------- |
| 40 | m5074x_device::m5074x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map) : | |
| 41 | m740_device(mconfig, type, name, tag, owner, clock), | |
| 40 | m5074x_device::m5074x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map, const char *shortname, const char *source) : | |
| 41 | m740_device(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 42 | 42 | m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0, internal_map), |
| 43 | 43 | read_p0(*this), |
| 44 | 44 | read_p1(*this), |
| r22095 | r22096 | |
| 51 | 51 | { |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | void m5074x_device::device_config_complete() | |
| 55 | { | |
| 56 | m_shortname = "m5074x"; | |
| 57 | } | |
| 58 | ||
| 59 | 54 | //------------------------------------------------- |
| 60 | 55 | // device_start - device-specific startup |
| 61 | 56 | //------------------------------------------------- |
| r22095 | r22096 | |
| 483 | 478 | ADDRESS_MAP_END |
| 484 | 479 | |
| 485 | 480 | m50740_device::m50740_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 486 | m5074x_device(mconfig, M50740, "Mitsubishi M50740", tag, owner, clock, ADDRESS_MAP_NAME(m50740_map)) | |
| 481 | m5074x_device(mconfig, M50740, "Mitsubishi M50740", tag, owner, clock, ADDRESS_MAP_NAME(m50740_map), "m50740", __FILE__) | |
| 487 | 482 | { |
| 488 | 483 | } |
| 489 | 484 | |
| 490 | m50740_device::m50740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 491 | m5074x_device(mconfig, type, name, tag, owner, clock, ADDRESS_MAP_NAME(m50740_map)) | |
| 485 | m50740_device::m50740_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) : | |
| 486 | m5074x_device(mconfig, type, name, tag, owner, clock, ADDRESS_MAP_NAME(m50740_map), shortname, source) | |
| 492 | 487 | { |
| 493 | 488 | } |
| 494 | 489 | |
| r22095 | r22096 | |
| 502 | 497 | ADDRESS_MAP_END |
| 503 | 498 | |
| 504 | 499 | m50741_device::m50741_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 505 | m5074x_device(mconfig, M50740, "Mitsubishi M50741", tag, owner, clock, ADDRESS_MAP_NAME(m50741_map)) | |
| 500 | m5074x_device(mconfig, M50740, "Mitsubishi M50741", tag, owner, clock, ADDRESS_MAP_NAME(m50741_map), "m50741", __FILE__) | |
| 506 | 501 | { |
| 507 | 502 | } |
| 508 | 503 | |
| 509 | m50741_device::m50741_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 510 | m5074x_device(mconfig, type, name, tag, owner, clock, ADDRESS_MAP_NAME(m50741_map)) | |
| 504 | m50741_device::m50741_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) : | |
| 505 | m5074x_device(mconfig, type, name, tag, owner, clock, ADDRESS_MAP_NAME(m50741_map), shortname, source) | |
| 511 | 506 | { |
| 512 | 507 | } |
| 513 | 508 |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | //------------------------------------------------- |
| 36 | 36 | // m3745x_device - constructor |
| 37 | 37 | //------------------------------------------------- |
| 38 | m3745x_device::m3745x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map) : | |
| 39 | m740_device(mconfig, type, name, tag, owner, clock), | |
| 38 | m3745x_device::m3745x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map, const char *shortname, const char *source) : | |
| 39 | m740_device(mconfig, type, name, tag, owner, clock, "m3745x", source), | |
| 40 | 40 | m_program_config("program", ENDIANNESS_LITTLE, 8, 16, 0, internal_map), |
| 41 | 41 | read_p3(*this), |
| 42 | 42 | read_p4(*this), |
| r22095 | r22096 | |
| 57 | 57 | { |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | void m3745x_device::device_config_complete() | |
| 61 | { | |
| 62 | m_shortname = "m3745x"; | |
| 63 | } | |
| 64 | ||
| 65 | 60 | //------------------------------------------------- |
| 66 | 61 | // device_start - device-specific startup |
| 67 | 62 | //------------------------------------------------- |
| r22095 | r22096 | |
| 496 | 491 | ADDRESS_MAP_END |
| 497 | 492 | |
| 498 | 493 | m37450_device::m37450_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 499 | m3745x_device(mconfig, M37450, "Mitsubishi M37450", tag, owner, clock, ADDRESS_MAP_NAME(m37450_map)) | |
| 494 | m3745x_device(mconfig, M37450, "Mitsubishi M37450", tag, owner, clock, ADDRESS_MAP_NAME(m37450_map), "m3745x", __FILE__) | |
| 500 | 495 | { |
| 501 | 496 | } |
| 502 | 497 | |
| 503 | m37450_device::m37450_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 504 | m3745x_device(mconfig, type, name, tag, owner, clock, ADDRESS_MAP_NAME(m37450_map)) | |
| 498 | m37450_device::m37450_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) : | |
| 499 | m3745x_device(mconfig, type, name, tag, owner, clock, ADDRESS_MAP_NAME(m37450_map), shortname, source) | |
| 505 | 500 | { |
| 506 | 501 | } |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | const device_type M6502 = &device_creator<m6502_device>; |
| 45 | 45 | |
| 46 | 46 | m6502_device::m6502_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 47 | cpu_device(mconfig, M6502, "M6502", tag, owner, clock), | |
| 47 | cpu_device(mconfig, M6502, "M6502", tag, owner, clock, "m6502", __FILE__), | |
| 48 | 48 | program_config("program", ENDIANNESS_LITTLE, 8, 16) |
| 49 | 49 | { |
| 50 | 50 | direct_disabled = false; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | m6502_device::m6502_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 54 | cpu_device(mconfig, type, name, tag, owner, clock), | |
| 53 | m6502_device::m6502_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : | |
| 54 | cpu_device(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 55 | 55 | program_config("program", ENDIANNESS_LITTLE, 8, 16) |
| 56 | 56 | { |
| 57 | 57 | direct_disabled = false; |
| r22095 | r22096 | |
|---|---|---|
| 50 | 50 | |
| 51 | 51 | public: |
| 52 | 52 | // construction/destruction |
| 53 | m5074x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map); | |
| 53 | m5074x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map, const char *shortname, const char *source); | |
| 54 | 54 | |
| 55 | 55 | const address_space_config m_program_config; |
| 56 | 56 | |
| r22095 | r22096 | |
| 117 | 117 | { |
| 118 | 118 | public: |
| 119 | 119 | m50740_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 120 | m50740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 120 | m50740_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); | |
| 121 | 121 | |
| 122 | 122 | protected: |
| 123 | 123 | |
| r22095 | r22096 | |
| 128 | 128 | { |
| 129 | 129 | public: |
| 130 | 130 | m50741_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 131 | m50741_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 131 | m50741_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); | |
| 132 | 132 | |
| 133 | 133 | protected: |
| 134 | 134 |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | const device_type M8502 = &device_creator<m8502_device>; |
| 44 | 44 | |
| 45 | 45 | m8502_device::m8502_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 46 | m6510_device(mconfig, M8502, "M8502", tag, owner, clock) | |
| 46 | m6510_device(mconfig, M8502, "M8502", tag, owner, clock, "m8502", __FILE__) | |
| 47 | 47 | { |
| 48 | 48 | } |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | const device_type M6504 = &device_creator<m6504_device>; |
| 44 | 44 | |
| 45 | 45 | m6504_device::m6504_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 46 | m6502_device(mconfig, M6504, "M6504", tag, owner, clock) | |
| 46 | m6502_device(mconfig, M6504, "M6504", tag, owner, clock, "m6504", __FILE__) | |
| 47 | 47 | { |
| 48 | 48 | program_config.m_addrbus_width = 13; |
| 49 | 49 | } |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | const device_type M65C02 = &device_creator<m65c02_device>; |
| 45 | 45 | |
| 46 | 46 | m65c02_device::m65c02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 47 | m6502_device(mconfig, M65C02, "M65C02", tag, owner, clock) | |
| 47 | m6502_device(mconfig, M65C02, "M65C02", tag, owner, clock, "mc65c02", __FILE__) | |
| 48 | 48 | { |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | m65c02_device::m65c02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 52 | m6502_device(mconfig, type, name, tag, owner, clock) | |
| 51 | m65c02_device::m65c02_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 | m6502_device(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 53 | 53 | { |
| 54 | 54 | } |
| 55 | 55 |
| r22095 | r22096 | |
|---|---|---|
| 59 | 59 | }; |
| 60 | 60 | |
| 61 | 61 | // construction/destruction |
| 62 | m3745x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map); | |
| 62 | m3745x_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, address_map_constructor internal_map, const char *shortname, const char *source); | |
| 63 | 63 | |
| 64 | 64 | const address_space_config m_program_config; |
| 65 | 65 | |
| r22095 | r22096 | |
| 122 | 122 | virtual void device_start(); |
| 123 | 123 | virtual void device_reset(); |
| 124 | 124 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 125 | virtual void device_config_complete(); | |
| 126 | 125 | virtual void execute_set_input(int inputnum, int state); |
| 127 | 126 | virtual const address_space_config *memory_space_config(address_spacenum spacenum) const { return (spacenum == AS_PROGRAM) ? &m_program_config : NULL; } |
| 128 | 127 | |
| r22095 | r22096 | |
| 144 | 143 | { |
| 145 | 144 | public: |
| 146 | 145 | m37450_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 147 | m37450_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 146 | m37450_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); | |
| 148 | 147 | |
| 149 | 148 | protected: |
| 150 | 149 |
| r22095 | r22096 | |
|---|---|---|
| 53 | 53 | }; |
| 54 | 54 | |
| 55 | 55 | m6502_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 56 | m6502_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 56 | m6502_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); | |
| 57 | 57 | |
| 58 | 58 | UINT64 get_cycle(); |
| 59 | 59 | bool get_sync() const { return sync; } |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | const device_type M6509 = &device_creator<m6509_device>; |
| 44 | 44 | |
| 45 | 45 | m6509_device::m6509_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 46 | m6502_device(mconfig, M6509, "M6509", tag, owner, clock) | |
| 46 | m6502_device(mconfig, M6509, "M6509", tag, owner, clock, "m6509", __FILE__) | |
| 47 | 47 | { |
| 48 | 48 | program_config.m_addrbus_width = 20; |
| 49 | 49 | program_config.m_logaddr_width = 20; |
| r22095 | r22096 | |
|---|---|---|
| 46 | 46 | class m65c02_device : public m6502_device { |
| 47 | 47 | public: |
| 48 | 48 | m65c02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 49 | m65c02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 49 | m65c02_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); | |
| 50 | 50 | |
| 51 | 51 | static const disasm_entry disasm_entries[0x100]; |
| 52 | 52 |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | const device_type M740 = &device_creator<m740_device>; |
| 44 | 44 | |
| 45 | 45 | m740_device::m740_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 46 | m6502_device(mconfig, M740, "M740", tag, owner, clock) | |
| 46 | m6502_device(mconfig, M740, "M740", tag, owner, clock, "m740", __FILE__) | |
| 47 | 47 | { |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | m740_device::m740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 51 | m6502_device(mconfig, type, name, tag, owner, clock) | |
| 50 | m740_device::m740_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) : | |
| 51 | m6502_device(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 52 | 52 | { |
| 53 | 53 | } |
| 54 | 54 |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | const device_type M6510T = &device_creator<m6510t_device>; |
| 44 | 44 | |
| 45 | 45 | m6510t_device::m6510t_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 46 | m6510_device(mconfig, M6510T, "M6510T", tag, owner, clock) | |
| 46 | m6510_device(mconfig, M6510T, "M6510T", tag, owner, clock, "m6510t", __FILE__) | |
| 47 | 47 | { |
| 48 | 48 | } |
| r22095 | r22096 | |
|---|---|---|
| 66 | 66 | }; |
| 67 | 67 | |
| 68 | 68 | m740_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 69 | m740_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 69 | m740_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 | 70 | |
| 71 | 71 | virtual void device_start(); |
| 72 | 72 | virtual void device_reset(); |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | const device_type M4510 = &device_creator<m4510_device>; |
| 44 | 44 | |
| 45 | 45 | m4510_device::m4510_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 46 | m65ce02_device(mconfig, M4510, "M4510", tag, owner, clock) | |
| 46 | m65ce02_device(mconfig, M4510, "M4510", tag, owner, clock, "m4510", __FILE__) | |
| 47 | 47 | { |
| 48 | 48 | program_config.m_addrbus_width = 20; |
| 49 | 49 | program_config.m_logaddr_width = 16; |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | const device_type M6510 = &device_creator<m6510_device>; |
| 44 | 44 | |
| 45 | 45 | m6510_device::m6510_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 46 | m6502_device(mconfig, M6510, "M6510", tag, owner, clock), | |
| 46 | m6502_device(mconfig, M6510, "M6510", tag, owner, clock, "m6510", __FILE__), | |
| 47 | 47 | read_port(*this), |
| 48 | 48 | write_port(*this) |
| 49 | 49 | { |
| r22095 | r22096 | |
| 51 | 51 | floating = 0x00; |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | m6510_device::m6510_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 55 | m6502_device(mconfig, type, name, tag, owner, clock), | |
| 54 | m6510_device::m6510_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) : | |
| 55 | m6502_device(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 56 | 56 | read_port(*this), |
| 57 | 57 | write_port(*this) |
| 58 | 58 | { |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | const device_type M7501 = &device_creator<m7501_device>; |
| 44 | 44 | |
| 45 | 45 | m7501_device::m7501_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 46 | m6510_device(mconfig, M7501, "M7501", tag, owner, clock) | |
| 46 | m6510_device(mconfig, M7501, "M7501", tag, owner, clock, "m7501", __FILE__) | |
| 47 | 47 | { |
| 48 | 48 | } |
| r22095 | r22096 | |
|---|---|---|
| 51 | 51 | class m6510_device : public m6502_device { |
| 52 | 52 | public: |
| 53 | 53 | m6510_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 54 | m6510_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 54 | m6510_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); | |
| 55 | 55 | |
| 56 | 56 | UINT8 get_port(); |
| 57 | 57 | void set_port(UINT8 val); |
| r22095 | r22096 | |
|---|---|---|
| 45 | 45 | const device_type DECO16 = &device_creator<deco16_device>; |
| 46 | 46 | |
| 47 | 47 | deco16_device::deco16_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 48 | m6502_device(mconfig, DECO16, "DECO16", tag, owner, clock), | |
| 48 | m6502_device(mconfig, DECO16, "DECO16", tag, owner, clock, "deco16", __FILE__), | |
| 49 | 49 | io_config("io", ENDIANNESS_LITTLE, 8, 16) |
| 50 | 50 | { |
| 51 | 51 | } |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | const device_type R65C02 = &device_creator<r65c02_device>; |
| 44 | 44 | |
| 45 | 45 | r65c02_device::r65c02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 46 | m65c02_device(mconfig, R65C02, "R65C02", tag, owner, clock) | |
| 46 | m65c02_device(mconfig, R65C02, "R65C02", tag, owner, clock, "r65c02", __FILE__) | |
| 47 | 47 | { |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | r65c02_device::r65c02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 51 | m65c02_device(mconfig, type, name, tag, owner, clock) | |
| 50 | r65c02_device::r65c02_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) : | |
| 51 | m65c02_device(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 52 | 52 | { |
| 53 | 53 | } |
| 54 | 54 |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | const device_type M65CE02 = &device_creator<m65ce02_device>; |
| 44 | 44 | |
| 45 | 45 | m65ce02_device::m65ce02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 46 | m65c02_device(mconfig, M65CE02, "M65CE02", tag, owner, clock) | |
| 46 | m65c02_device(mconfig, M65CE02, "M65CE02", tag, owner, clock, "m65ce02", __FILE__) | |
| 47 | 47 | { |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | m65ce02_device::m65ce02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 51 | m65c02_device(mconfig, type, name, tag, owner, clock) | |
| 50 | m65ce02_device::m65ce02_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) : | |
| 51 | m65c02_device(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 52 | 52 | { |
| 53 | 53 | } |
| 54 | 54 |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | const device_type N2A03 = &device_creator<n2a03_device>; |
| 44 | 44 | |
| 45 | 45 | n2a03_device::n2a03_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 46 | m6502_device(mconfig, N2A03, "N2A03", tag, owner, clock) | |
| 46 | m6502_device(mconfig, N2A03, "N2A03", tag, owner, clock, "n2a03", __FILE__) | |
| 47 | 47 | { |
| 48 | 48 | } |
| 49 | 49 |
| r22095 | r22096 | |
|---|---|---|
| 45 | 45 | class r65c02_device : public m65c02_device { |
| 46 | 46 | public: |
| 47 | 47 | r65c02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 48 | r65c02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 48 | r65c02_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); | |
| 49 | 49 | |
| 50 | 50 | static const disasm_entry disasm_entries[0x100]; |
| 51 | 51 |
| r22095 | r22096 | |
|---|---|---|
| 45 | 45 | class m65ce02_device : public m65c02_device { |
| 46 | 46 | public: |
| 47 | 47 | m65ce02_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 48 | m65ce02_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 48 | m65ce02_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); | |
| 49 | 49 | |
| 50 | 50 | static const disasm_entry disasm_entries[0x100]; |
| 51 | 51 |
| r22095 | r22096 | |
|---|---|---|
| 1 | 1 | #include "sio.h" |
| 2 | 2 | #include "siodev.h" |
| 3 | 3 | |
| 4 | psxsiodev_device::psxsiodev_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 5 | device_t(mconfig, type, name, tag, owner, clock), | |
| 4 | psxsiodev_device::psxsiodev_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) : | |
| 5 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 6 | 6 | m_dataout(0) |
| 7 | 7 | { |
| 8 | 8 | } |
| r22095 | r22096 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | public: |
| 23 | 23 | // construction/destruction |
| 24 | psxsiodev_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 24 | psxsiodev_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); | |
| 25 | 25 | |
| 26 | 26 | protected: |
| 27 | 27 | // device-level overrides |
| r22095 | r22096 | |
|---|---|---|
| 50 | 50 | |
| 51 | 51 | protected: |
| 52 | 52 | // device-level overrides |
| 53 | virtual void device_config_complete() { m_shortname = "msm6255"; } | |
| 54 | 53 | virtual void device_start(); |
| 55 | 54 | virtual void device_reset(); |
| 56 | 55 |
| r22095 | r22096 | |
|---|---|---|
| 26 | 26 | //------------------------------------------------- |
| 27 | 27 | |
| 28 | 28 | h63484_device::h63484_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 29 | : device_t(mconfig, H63484, "H63484", tag, owner, clock), | |
| 29 | : device_t(mconfig, H63484, "H63484", tag, owner, clock, "h63484", __FILE__), | |
| 30 | 30 | device_memory_interface(mconfig, *this), |
| 31 | 31 | m_ar(0), |
| 32 | 32 | m_sr(0), |
| r22095 | r22096 | |
| 43 | 43 | m_dcr(0), |
| 44 | 44 | m_space_config("videoram", ENDIANNESS_LITTLE, 8, 20, 0, NULL, *ADDRESS_MAP_NAME(h63484_vram)) |
| 45 | 45 | { |
| 46 | m_shortname = "h63484"; | |
| 47 | 46 | } |
| 48 | 47 | |
| 49 | 48 | enum |
| r22095 | r22096 | |
|---|---|---|
| 106 | 106 | //------------------------------------------------- |
| 107 | 107 | |
| 108 | 108 | hd61830_device::hd61830_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 109 | : device_t(mconfig, HD61830, "Hitachi HD61830", tag, owner, clock), | |
| 109 | : device_t(mconfig, HD61830, "Hitachi HD61830", tag, owner, clock, "hd61830", __FILE__), | |
| 110 | 110 | device_memory_interface(mconfig, *this), |
| 111 | 111 | m_bf(false), |
| 112 | 112 | m_cac(0), |
| r22095 | r22096 | |
| 115 | 115 | m_space_config("videoram", ENDIANNESS_LITTLE, 8, 16, 0, NULL, *ADDRESS_MAP_NAME(hd61830)), |
| 116 | 116 | m_region_hd61830(*this, "hd61830") |
| 117 | 117 | { |
| 118 | m_shortname = "hd61830"; | |
| 119 | 118 | } |
| 120 | 119 | |
| 121 | 120 |
| r22095 | r22096 | |
|---|---|---|
| 171 | 171 | //------------------------------------------------- |
| 172 | 172 | |
| 173 | 173 | m50458_device::m50458_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 174 | : device_t(mconfig, M50458, "m50458", tag, owner, clock), | |
| 174 | : device_t(mconfig, M50458, "m50458", tag, owner, clock, "m50458", __FILE__), | |
| 175 | 175 | device_memory_interface(mconfig, *this), |
| 176 | 176 | m_space_config("videoram", ENDIANNESS_LITTLE, 16, 16, 0, NULL, *ADDRESS_MAP_NAME(m50458_vram)) |
| 177 | 177 | { |
| 178 | m_shortname = "m50458"; | |
| 179 | 178 | } |
| 180 | 179 | |
| 181 | 180 |
| r22095 | r22096 | |
|---|---|---|
| 128 | 128 | // saa5050_device - constructor |
| 129 | 129 | //------------------------------------------------- |
| 130 | 130 | |
| 131 | saa5050_device::saa5050_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) | |
| 132 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 131 | saa5050_device::saa5050_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source) | |
| 132 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 133 | 133 | m_frame_count(0), |
| 134 | 134 | m_variant(variant) |
| 135 | 135 | { |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | saa5050_device::saa5050_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 139 | : device_t(mconfig, SAA5050, "SAA5050", tag, owner, clock), | |
| 139 | : device_t(mconfig, SAA5050, "SAA5050", tag, owner, clock, "saa5050", __FILE__), | |
| 140 | 140 | m_frame_count(0), |
| 141 | 141 | m_variant(TYPE_5050) |
| 142 | 142 | { |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | saa5052_device::saa5052_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 146 | : saa5050_device(mconfig, SAA5052, "SAA5052", tag, owner, clock, TYPE_5052) | |
| 146 | : saa5050_device(mconfig, SAA5052, "SAA5052", tag, owner, clock, TYPE_5052, "saa5052", __FILE__) | |
| 147 | 147 | { |
| 148 | 148 | } |
| 149 | 149 | |
| r22095 | r22096 | |
| 166 | 166 | { |
| 167 | 167 | memset(&m_in_d_cb, 0, sizeof(m_in_d_cb)); |
| 168 | 168 | } |
| 169 | ||
| 170 | switch (m_variant) | |
| 171 | { | |
| 172 | default: m_shortname = "saa5050"; break; | |
| 173 | case TYPE_5052: m_shortname = "saa5052"; break; | |
| 174 | } | |
| 175 | 169 | } |
| 176 | 170 | |
| 177 | 171 |
| r22095 | r22096 | |
|---|---|---|
| 140 | 140 | //------------------------------------------------- |
| 141 | 141 | |
| 142 | 142 | sed1330_device::sed1330_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 143 | : device_t(mconfig, SED1330, "SED1330", tag, owner, clock), | |
| 143 | : device_t(mconfig, SED1330, "SED1330", tag, owner, clock, "sed1330", __FILE__), | |
| 144 | 144 | device_memory_interface(mconfig, *this), |
| 145 | 145 | m_bf(0), |
| 146 | 146 | m_space_config("videoram", ENDIANNESS_LITTLE, 8, 16, 0, NULL, *ADDRESS_MAP_NAME(sed1330)) |
| r22095 | r22096 | |
|---|---|---|
| 74 | 74 | { |
| 75 | 75 | public: |
| 76 | 76 | // construction/destruction |
| 77 | saa5050_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); | |
| 77 | saa5050_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source); | |
| 78 | 78 | saa5050_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 79 | 79 | |
| 80 | 80 | // optional information overrides |
| r22095 | r22096 | |
|---|---|---|
| 56 | 56 | |
| 57 | 57 | protected: |
| 58 | 58 | // device-level overrides |
| 59 | virtual void device_config_complete() { m_shortname = "sed1330"; } | |
| 60 | 59 | virtual void device_start(); |
| 61 | 60 | virtual void device_reset(); |
| 62 | 61 |
| r22095 | r22096 | |
|---|---|---|
| 679 | 679 | //------------------------------------------------- |
| 680 | 680 | |
| 681 | 681 | upd7220_device::upd7220_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 682 | : device_t(mconfig, UPD7220, "uPD7220", tag, owner, clock), | |
| 682 | : device_t(mconfig, UPD7220, "uPD7220", tag, owner, clock, "upd7220", __FILE__), | |
| 683 | 683 | device_memory_interface(mconfig, *this), |
| 684 | 684 | m_mask(0), |
| 685 | 685 | m_pitch(0), |
| r22095 | r22096 | |
| 715 | 715 | m_bitmap_mod(0), |
| 716 | 716 | m_space_config("videoram", ENDIANNESS_LITTLE, 8, 18, 0, NULL, *ADDRESS_MAP_NAME(upd7220_vram)) |
| 717 | 717 | { |
| 718 | m_shortname = "upd7220"; | |
| 719 | 718 | for (int i = 0; i < 16; i++) |
| 720 | 719 | { |
| 721 | 720 | m_fifo[i] = 0; |
| r22095 | r22096 | |
|---|---|---|
| 84 | 84 | //------------------------------------------------- |
| 85 | 85 | |
| 86 | 86 | mb90082_device::mb90082_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 87 | : device_t(mconfig, MB90082, "mb90082", tag, owner, clock), | |
| 87 | : device_t(mconfig, MB90082, "mb90082", tag, owner, clock, "mb90082", __FILE__), | |
| 88 | 88 | device_memory_interface(mconfig, *this), |
| 89 | 89 | m_space_config("videoram", ENDIANNESS_LITTLE, 16, 16, 0, NULL, *ADDRESS_MAP_NAME(mb90082_vram)) |
| 90 | 90 | { |
| 91 | m_shortname = "mb90082"; | |
| 92 | ||
| 93 | 91 | } |
| 94 | 92 | |
| 95 | 93 |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | //------------------------------------------------- |
| 44 | 44 | |
| 45 | 45 | hd44780_device::hd44780_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 46 | device_t(mconfig, HD44780, "HD44780 A00", tag, owner, clock), | |
| 46 | device_t(mconfig, HD44780, "HD44780 A00", tag, owner, clock, "hd44780_a00", __FILE__), | |
| 47 | 47 | m_pixel_update_func(NULL) |
| 48 | 48 | { |
| 49 | m_shortname = "hd44780_a00"; | |
| 50 | 49 | set_charset_type(CHARSET_HD44780_A00); |
| 51 | 50 | } |
| 52 | 51 | |
| 53 | hd44780_device::hd44780_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 54 | device_t(mconfig, type, name, tag, owner, clock), | |
| 52 | hd44780_device::hd44780_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 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 55 | 54 | m_pixel_update_func(NULL) |
| 56 | 55 | { |
| 57 | 56 | } |
| 58 | 57 | |
| 59 | 58 | ks0066_f05_device::ks0066_f05_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 60 | hd44780_device(mconfig, KS0066_F05, "KS0066 F05", tag, owner, clock) | |
| 59 | hd44780_device(mconfig, KS0066_F05, "KS0066 F05", tag, owner, clock, "ks0066_f05", __FILE__) | |
| 61 | 60 | { |
| 62 | m_shortname = "ks0066_f05"; | |
| 63 | 61 | set_charset_type(CHARSET_KS0066_F05); |
| 64 | 62 | } |
| 65 | 63 |
| r22095 | r22096 | |
|---|---|---|
| 62 | 62 | const device_type V9958 = &device_creator<v9958_device>; |
| 63 | 63 | |
| 64 | 64 | v99x8_device::v99x8_device(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, device_t *owner, UINT32 clock) |
| 65 | : device_t(mconfig, type, name, | |
| 65 | : device_t(mconfig, type, name, tag, owner, clock, shortname, __FILE__), | |
| 66 | 66 | device_memory_interface(mconfig, *this), |
| 67 | 67 | m_space_config("vram", ENDIANNESS_BIG, 8, 18), |
| 68 | 68 | m_model(0), |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | public: |
| 38 | 38 | // construction/destruction |
| 39 | 39 | hd44780_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 40 | hd44780_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 40 | hd44780_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); | |
| 41 | 41 | |
| 42 | 42 | // static configuration helpers |
| 43 | 43 | static void static_set_lcd_size(device_t &device, int _lines, int _chars) { hd44780_device &dev=downcast<hd44780_device &>(device); dev.m_lines = _lines; dev.m_chars = _chars; } |
| r22095 | r22096 | |
|---|---|---|
| 113 | 113 | //------------------------------------------------- |
| 114 | 114 | |
| 115 | 115 | msm6255_device::msm6255_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 116 | : device_t(mconfig, MSM6255, "MSM6255", tag, owner, clock), | |
| 116 | : device_t(mconfig, MSM6255, "MSM6255", tag, owner, clock, "msm6255", __FILE__), | |
| 117 | 117 | device_memory_interface(mconfig, *this), |
| 118 | 118 | m_space_config("videoram", ENDIANNESS_LITTLE, 8, 20, 0, NULL, *ADDRESS_MAP_NAME(msm6255)), |
| 119 | 119 | m_cursor(0) |
| r22095 | r22096 | |
|---|---|---|
| 50 | 50 | // cpu_device - constructor |
| 51 | 51 | //------------------------------------------------- |
| 52 | 52 | |
| 53 | cpu_device::cpu_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 54 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 53 | cpu_device::cpu_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) | |
| 54 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 55 | 55 | device_execute_interface(mconfig, *this), |
| 56 | 56 | device_memory_interface(mconfig, *this), |
| 57 | 57 | device_state_interface(mconfig, *this), |
| r22095 | r22096 | |
| 74 | 74 | //------------------------------------------------- |
| 75 | 75 | |
| 76 | 76 | legacy_cpu_device::legacy_cpu_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, cpu_get_info_func get_info) |
| 77 | : cpu_device(mconfig, type, "CPU", tag, owner, clock), | |
| 77 | : cpu_device(mconfig, type, "CPU", tag, owner, clock, "", __FILE__), | |
| 78 | 78 | m_get_info(get_info), |
| 79 | 79 | m_token(NULL), |
| 80 | 80 | m_set_info(reinterpret_cast<cpu_set_info_func>(get_legacy_fct(CPUINFO_FCT_SET_INFO))), |
| r22095 | r22096 | |
|---|---|---|
| 378 | 378 | |
| 379 | 379 | protected: |
| 380 | 380 | // construction/destruction |
| 381 | cpu_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 381 | cpu_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 = __FILE__); | |
| 382 | 382 | virtual ~cpu_device(); |
| 383 | 383 | }; |
| 384 | 384 |
| r22095 | r22096 | |
|---|---|---|
| 96 | 96 | // from the provided config |
| 97 | 97 | //------------------------------------------------- |
| 98 | 98 | |
| 99 | device_t::device_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 99 | device_t::device_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) | |
| 100 | 100 | : m_type(type), |
| 101 | 101 | m_name(name), |
| 102 | m_owner(owner), | |
| 103 | m_next(NULL), | |
| 104 | ||
| 105 | m_interface_list(NULL), | |
| 106 | m_execute(NULL), | |
| 107 | m_memory(NULL), | |
| 108 | m_state(NULL), | |
| 109 | ||
| 110 | m_configured_clock(clock), | |
| 111 | m_unscaled_clock(clock), | |
| 112 | m_clock(clock), | |
| 113 | m_clock_scale(1.0), | |
| 114 | m_attoseconds_per_clock((clock == 0) ? 0 : HZ_TO_ATTOSECONDS(clock)), | |
| 115 | ||
| 116 | m_debug(NULL), | |
| 117 | m_region(NULL), | |
| 118 | m_machine_config(mconfig), | |
| 119 | m_static_config(NULL), | |
| 120 | m_input_defaults(NULL), | |
| 121 | ||
| 122 | m_machine(NULL), | |
| 123 | m_save(NULL), | |
| 124 | m_basetag(tag), | |
| 125 | m_config_complete(false), | |
| 126 | m_started(false), | |
| 127 | m_auto_finder_list(NULL) | |
| 128 | { | |
| 129 | if (owner != NULL) | |
| 130 | m_tag.cpy((owner->owner() == NULL) ? "" : owner->tag()).cat(":").cat(tag); | |
| 131 | else | |
| 132 | m_tag.cpy(":"); | |
| 133 | static_set_clock(*this, clock); | |
| 134 | } | |
| 135 | ||
| 136 | ||
| 137 | device_t::device_t(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, device_t *owner, UINT32 clock) | |
| 138 | : m_type(type), | |
| 139 | m_name(name), | |
| 140 | 102 | m_shortname(shortname), |
| 141 | 103 | m_searchpath(shortname), |
| 142 | 104 | m_owner(owner), |
| r22095 | r22096 | |
|---|---|---|
| 145 | 145 | |
| 146 | 146 | protected: |
| 147 | 147 | // construction/destruction |
| 148 | device_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 149 | device_t(const machine_config &mconfig, device_type type, const char *name, const char *shortname, const char *tag, device_t *owner, UINT32 clock); | |
| 148 | device_t(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock,const char *shortname = "", const char *source = __FILE__); | |
| 150 | 149 | virtual ~device_t(); |
| 151 | 150 | |
| 152 | 151 | public: |
| r22095 | r22096 | |
|---|---|---|
| 124 | 124 | //------------------------------------------------- |
| 125 | 125 | |
| 126 | 126 | votrax_sc01_device::votrax_sc01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 127 | : device_t(mconfig, VOTRAX_SC01, "Votrax SC-01", | |
| 127 | : device_t(mconfig, VOTRAX_SC01, "Votrax SC-01", tag, owner, clock, "votrax", __FILE__), | |
| 128 | 128 | device_sound_interface(mconfig, *this), |
| 129 | 129 | m_stream(NULL), |
| 130 | 130 | m_phoneme_timer(NULL) |
| r22095 | r22096 | |
|---|---|---|
| 54 | 54 | //------------------------------------------------- |
| 55 | 55 | |
| 56 | 56 | dac_device::dac_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 57 | : device_t(mconfig, DAC, "DAC", | |
| 57 | : device_t(mconfig, DAC, "DAC", tag, owner, clock, "dac", __FILE__), | |
| 58 | 58 | device_sound_interface(mconfig, *this), |
| 59 | 59 | m_stream(NULL), |
| 60 | 60 | m_output(0) |
| r22095 | r22096 | |
|---|---|---|
| 183 | 183 | // qs1000_device - constructor |
| 184 | 184 | //------------------------------------------------- |
| 185 | 185 | qs1000_device::qs1000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 186 | : device_t(mconfig, QS1000, "QS1000", | |
| 186 | : device_t(mconfig, QS1000, "QS1000", tag, owner, clock, "qs1000", __FILE__), | |
| 187 | 187 | device_sound_interface(mconfig, *this), |
| 188 | 188 | device_memory_interface(mconfig, *this), |
| 189 | 189 | m_space_config("samples", ENDIANNESS_LITTLE, 8, 24, 0, NULL), |
| r22095 | r22096 | |
| 191 | 191 | m_direct(NULL), |
| 192 | 192 | m_cpu(*this, "cpu") |
| 193 | 193 | { |
| 194 | m_shortname = "qs1000"; | |
| 195 | 194 | m_address_map[0] = *ADDRESS_MAP_NAME(qs1000); |
| 196 | 195 | } |
| 197 | 196 |
| r22095 | r22096 | |
|---|---|---|
| 15 | 15 | //------------------------------------------------- |
| 16 | 16 | |
| 17 | 17 | segapcm_device::segapcm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 18 | : device_t(mconfig, SEGAPCM, "Sega PCM", | |
| 18 | : device_t(mconfig, SEGAPCM, "Sega PCM", tag, owner, clock, "segapcm", __FILE__), | |
| 19 | 19 | device_sound_interface(mconfig, *this), |
| 20 | 20 | m_ram(NULL), |
| 21 | 21 | m_rom(NULL), |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | #define LOG(x) do { if (VERBOSE) logerror x; } while (0) |
| 28 | 28 | |
| 29 | 29 | k054539_device::k054539_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 30 | : device_t(mconfig, K054539, "K054539", | |
| 30 | : device_t(mconfig, K054539, "K054539", tag, owner, clock, "k054539", __FILE__), | |
| 31 | 31 | device_sound_interface(mconfig, *this) |
| 32 | 32 | { |
| 33 | 33 | } |
| r22095 | r22096 | |
|---|---|---|
| 106 | 106 | //------------------------------------------------- |
| 107 | 107 | |
| 108 | 108 | bsmt2000_device::bsmt2000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 109 | : device_t(mconfig, BSMT2000, "BSMT2000", | |
| 109 | : device_t(mconfig, BSMT2000, "BSMT2000", tag, owner, clock, "bsmt2000", __FILE__), | |
| 110 | 110 | device_sound_interface(mconfig, *this), |
| 111 | 111 | device_memory_interface(mconfig, *this), |
| 112 | 112 | m_space_config("samples", ENDIANNESS_LITTLE, 8, 32, 0, NULL), |
| r22095 | r22096 | |
| 122 | 122 | m_right_data(0), |
| 123 | 123 | m_write_pending(false) |
| 124 | 124 | { |
| 125 | m_shortname = "bsmt2000"; | |
| 126 | 125 | m_address_map[0] = *ADDRESS_MAP_NAME(bsmt2000); |
| 127 | 126 | } |
| 128 | 127 |
| r22095 | r22096 | |
|---|---|---|
| 61 | 61 | //------------------------------------------------- |
| 62 | 62 | |
| 63 | 63 | driver_device::driver_device(const machine_config &mconfig, device_type type, const char *tag) |
| 64 | : device_t(mconfig, type, "Driver Device", tag, NULL, 0), | |
| 64 | : device_t(mconfig, type, "Driver Device", tag, NULL, 0, "", __FILE__), | |
| 65 | 65 | device_memory_interface(mconfig, *this), |
| 66 | 66 | m_generic_paletteram_8(*this, "paletteram"), |
| 67 | 67 | m_generic_paletteram2_8(*this, "paletteram2"), |
| r22095 | r22096 | |
|---|---|---|
| 509 | 509 | m_token = global_alloc_clear(lynx_sound_state); |
| 510 | 510 | } |
| 511 | 511 | |
| 512 | lynx_sound_device::lynx_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 513 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 512 | lynx_sound_device::lynx_sound_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) | |
| 513 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 514 | 514 | device_sound_interface(mconfig, *this) |
| 515 | 515 | { |
| 516 | 516 | m_token = global_alloc_clear(lynx_sound_state); |
| r22095 | r22096 | |
| 558 | 558 | const device_type LYNX2 = &device_creator<lynx2_sound_device>; |
| 559 | 559 | |
| 560 | 560 | lynx2_sound_device::lynx2_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 561 | : lynx_sound_device(mconfig, LYNX2, "Mikey (Lynx II)", tag, owner, clock) | |
| 561 | : lynx_sound_device(mconfig, LYNX2, "Mikey (Lynx II)", tag, owner, clock, "lynx2_sound", __FILE__) | |
| 562 | 562 | { |
| 563 | 563 | } |
| 564 | 564 |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | |
| 36 | 36 | protected: |
| 37 | 37 | // device-level overrides |
| 38 | virtual void device_config_complete() { m_shortname = "vp585"; } | |
| 39 | 38 | virtual void device_start(); |
| 40 | 39 | |
| 41 | 40 | // device_vip_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 133 | 133 | }; |
| 134 | 134 | |
| 135 | 135 | teleprinter_device::teleprinter_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 136 | : generic_terminal_device(mconfig, TELEPRINTER, "Teleprinter", tag, owner, clock) | |
| 136 | : generic_terminal_device(mconfig, TELEPRINTER, "Teleprinter", tag, owner, clock, "teleprinter", __FILE__) | |
| 137 | 137 | { |
| 138 | 138 | } |
| 139 | 139 |
| r22095 | r22096 | |
|---|---|---|
| 95 | 95 | //------------------------------------------------- |
| 96 | 96 | |
| 97 | 97 | isa16_ide_device::isa16_ide_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 98 | : device_t(mconfig, ISA16_IDE, "IDE Fixed Drive Adapter", tag, owner, clock), | |
| 98 | : device_t(mconfig, ISA16_IDE, "IDE Fixed Drive Adapter", tag, owner, clock, "isa_ide", __FILE__), | |
| 99 | 99 | device_isa16_card_interface( mconfig, *this ), |
| 100 | 100 | m_is_primary(true), |
| 101 | 101 | m_ide(*this, "ide") |
| r22095 | r22096 | |
|---|---|---|
| 139 | 139 | //------------------------------------------------- |
| 140 | 140 | |
| 141 | 141 | abc_sio_device::abc_sio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 142 | : device_t(mconfig, ABC_SIO, "ABC SIO", tag, owner, clock), | |
| 142 | : device_t(mconfig, ABC_SIO, "ABC SIO", tag, owner, clock, "abcsio", __FILE__), | |
| 143 | 143 | device_abcbus_card_interface(mconfig, *this), |
| 144 | 144 | m_ctc(*this, Z80CTC_TAG), |
| 145 | 145 | m_sio(*this, Z80SIO_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c128_comal80_cartridge_device::c128_comal80_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C128_COMAL80, "C128 COMAL 80 cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C128_COMAL80, "C128 COMAL 80 cartridge", tag, owner, clock, "c128_comal80", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this), |
| 33 | 33 | m_bank(0) |
| 34 | 34 | { |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | // device-level overrides |
| 37 | 37 | virtual void device_start(); |
| 38 | 38 | virtual void device_reset(); |
| 39 | virtual void device_config_complete() { m_shortname = "isa_ide"; } | |
| 40 | 39 | |
| 41 | 40 | private: |
| 42 | 41 | // internal state |
| r22095 | r22096 | |
|---|---|---|
| 73 | 73 | //------------------------------------------------- |
| 74 | 74 | |
| 75 | 75 | lk201_device::lk201_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 76 | : device_t(mconfig, LK201, "DEC LK201 keyboard", tag, owner, clock), | |
| 76 | : device_t(mconfig, LK201, "DEC LK201 keyboard", tag, owner, clock, "lk201", __FILE__), | |
| 77 | 77 | m_maincpu(*this, LK201_CPU_TAG) |
| 78 | 78 | { |
| 79 | 79 | } |
| r22095 | r22096 | |
| 95 | 95 | { |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | void lk201_device::device_config_complete() | |
| 99 | { | |
| 100 | m_shortname = "lk201"; | |
| 101 | } | |
| 102 | ||
| 103 | 98 | READ8_MEMBER( lk201_device::ddr_r ) |
| 104 | 99 | { |
| 105 | 100 | return ddrs[offset]; |
| r22095 | r22096 | |
|---|---|---|
| 32 | 32 | // device-level overrides |
| 33 | 33 | virtual void device_start(); |
| 34 | 34 | virtual void device_reset(); |
| 35 | virtual void device_config_complete() { m_shortname = "abcsio"; } | |
| 36 | 35 | |
| 37 | 36 | // device_abcbus_interface overrides |
| 38 | 37 | virtual void abcbus_cs(UINT8 data); |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | // device-level overrides |
| 36 | 36 | virtual void device_start(); |
| 37 | 37 | virtual void device_reset(); |
| 38 | virtual void device_config_complete() { m_shortname = "c128_comal80"; } | |
| 39 | 38 | |
| 40 | 39 | // device_c64_expansion_card_interface overrides |
| 41 | 40 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, UINT8 data, int sphi2, int ba, int roml, int romh, int io1, int io2); |
| r22095 | r22096 | |
|---|---|---|
| 120 | 120 | //------------------------------------------------- |
| 121 | 121 | |
| 122 | 122 | c64_final_chesscard_device::c64_final_chesscard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 123 | device_t(mconfig, C64_FCC, "Final ChessCard", tag, owner, clock), | |
| 123 | device_t(mconfig, C64_FCC, "Final ChessCard", tag, owner, clock, "c64_fcc", __FILE__), | |
| 124 | 124 | device_c64_expansion_card_interface(mconfig, *this), |
| 125 | 125 | device_nvram_interface(mconfig, *this), |
| 126 | 126 | m_maincpu(*this, G65SC02P4_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 24 | 24 | // esqpanel_device - constructor |
| 25 | 25 | //------------------------------------------------- |
| 26 | 26 | |
| 27 | esqpanel_device::esqpanel_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 28 | device_t(mconfig, type, name, tag, owner, clock), | |
| 27 | esqpanel_device::esqpanel_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 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 29 | 29 | device_serial_interface(mconfig, *this) |
| 30 | 30 | { |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | void esqpanel_device::device_config_complete() |
| 34 | 34 | { |
| 35 | m_shortname = "esqpanel"; | |
| 36 | ||
| 37 | 35 | // inherit a copy of the static data |
| 38 | 36 | const esqpanel_interface *intf = reinterpret_cast<const esqpanel_interface *>(static_config()); |
| 39 | 37 | if (intf != NULL) |
| r22095 | r22096 | |
| 179 | 177 | } |
| 180 | 178 | |
| 181 | 179 | esqpanel1x22_device::esqpanel1x22_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 182 | esqpanel_device(mconfig, ESQPANEL1x22, "Ensoniq front panel with 1x22 VFD", tag, owner, clock), | |
| 180 | esqpanel_device(mconfig, ESQPANEL1x22, "Ensoniq front panel with 1x22 VFD", tag, owner, clock, "esqpanel122", __FILE__), | |
| 183 | 181 | m_vfd(*this, "vfd") |
| 184 | 182 | { |
| 185 | 183 | m_eps_mode = true; |
| r22095 | r22096 | |
| 197 | 195 | } |
| 198 | 196 | |
| 199 | 197 | esqpanel2x40_device::esqpanel2x40_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 200 | esqpanel_device(mconfig, ESQPANEL2x40, "Ensoniq front panel with 2x40 VFD", tag, owner, clock), | |
| 198 | esqpanel_device(mconfig, ESQPANEL2x40, "Ensoniq front panel with 2x40 VFD", tag, owner, clock, "esqpanel240", __FILE__), | |
| 201 | 199 | m_vfd(*this, "vfd") |
| 202 | 200 | { |
| 203 | 201 | m_eps_mode = false; |
| r22095 | r22096 | |
| 215 | 213 | } |
| 216 | 214 | |
| 217 | 215 | esqpanel2x40_sq1_device::esqpanel2x40_sq1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 218 | esqpanel_device(mconfig, ESQPANEL2x40, "Ensoniq front panel with 2x16 LCD", tag, owner, clock), | |
| 216 | esqpanel_device(mconfig, ESQPANEL2x40, "Ensoniq front panel with 2x16 LCD", tag, owner, clock, "esqpanel240_sq1", __FILE__), | |
| 219 | 217 | m_vfd(*this, "vfd") |
| 220 | 218 | { |
| 221 | 219 | m_eps_mode = false; |
| r22095 | r22096 | |
|---|---|---|
| 49 | 49 | // device-level overrides |
| 50 | 50 | virtual void device_start(); |
| 51 | 51 | virtual void device_reset(); |
| 52 | virtual void device_config_complete(); | |
| 53 | 52 | virtual machine_config_constructor device_mconfig_additions() const; |
| 54 | 53 | virtual const rom_entry *device_rom_region() const; |
| 55 | 54 |
| r22095 | r22096 | |
|---|---|---|
| 42 | 42 | |
| 43 | 43 | protected: |
| 44 | 44 | // device-level overrides |
| 45 | virtual void device_config_complete() { m_shortname = "c64_fcc"; } | |
| 46 | 45 | virtual void device_start(); |
| 47 | 46 | virtual void device_reset(); |
| 48 | 47 |
| r22095 | r22096 | |
|---|---|---|
| 39 | 39 | // iq151_rom_device - constructor |
| 40 | 40 | //------------------------------------------------- |
| 41 | 41 | |
| 42 | iq151_rom_device::iq151_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 43 | device_t(mconfig, type, name, tag, owner, clock), | |
| 42 | iq151_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) : | |
| 43 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 44 | 44 | device_iq151cart_interface(mconfig, *this) |
| 45 | 45 | { |
| 46 | 46 | } |
| r22095 | r22096 | |
| 82 | 82 | //------------------------------------------------- |
| 83 | 83 | |
| 84 | 84 | iq151_basic6_device::iq151_basic6_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 85 | : iq151_rom_device(mconfig, IQ151_BASIC6, "IQ151 BASIC6", tag, owner, clock) | |
| 85 | : iq151_rom_device(mconfig, IQ151_BASIC6, "IQ151 BASIC6", tag, owner, clock, "iq151_basic6", __FILE__) | |
| 86 | 86 | { |
| 87 | 87 | } |
| 88 | 88 | |
| r22095 | r22096 | |
| 107 | 107 | //------------------------------------------------- |
| 108 | 108 | |
| 109 | 109 | iq151_basicg_device::iq151_basicg_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 110 | : iq151_rom_device(mconfig, IQ151_BASICG, "IQ151 BASICG", tag, owner, clock) | |
| 110 | : iq151_rom_device(mconfig, IQ151_BASICG, "IQ151 BASICG", tag, owner, clock, "iq151_basicg", __FILE__) | |
| 111 | 111 | { |
| 112 | 112 | } |
| 113 | 113 | |
| r22095 | r22096 | |
| 133 | 133 | //------------------------------------------------- |
| 134 | 134 | |
| 135 | 135 | iq151_amos1_device::iq151_amos1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 136 | : iq151_rom_device(mconfig, IQ151_AMOS1, "IQ151 AMOS cart 1", tag, owner, clock), | |
| 136 | : iq151_rom_device(mconfig, IQ151_AMOS1, "IQ151 AMOS cart 1", tag, owner, clock, "iq151_amos1", __FILE__), | |
| 137 | 137 | m_active(true) |
| 138 | 138 | { |
| 139 | 139 | } |
| r22095 | r22096 | |
| 167 | 167 | //------------------------------------------------- |
| 168 | 168 | |
| 169 | 169 | iq151_amos2_device::iq151_amos2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 170 | : iq151_rom_device(mconfig, IQ151_AMOS2, "IQ151 AMOS cart 2", tag, owner, clock), | |
| 170 | : iq151_rom_device(mconfig, IQ151_AMOS2, "IQ151 AMOS cart 2", tag, owner, clock, "iq151_amos2", __FILE__), | |
| 171 | 171 | m_active(false) |
| 172 | 172 | { |
| 173 | 173 | } |
| r22095 | r22096 | |
| 201 | 201 | //------------------------------------------------- |
| 202 | 202 | |
| 203 | 203 | iq151_amos3_device::iq151_amos3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 204 | : iq151_rom_device(mconfig, IQ151_AMOS3, "IQ151 AMOS cart 3", tag, owner, clock), | |
| 204 | : iq151_rom_device(mconfig, IQ151_AMOS3, "IQ151 AMOS cart 3", tag, owner, clock, "iq151_amos3", __FILE__), | |
| 205 | 205 | m_active(true) |
| 206 | 206 | { |
| 207 | 207 | } |
| r22095 | r22096 | |
|---|---|---|
| 58 | 58 | { |
| 59 | 59 | public: |
| 60 | 60 | // construction/destruction |
| 61 | esqpanel_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 61 | esqpanel_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); | |
| 62 | 62 | |
| 63 | 63 | DECLARE_WRITE_LINE_MEMBER( rx_w ) { check_for_start(state); } |
| 64 | 64 |
| r22095 | r22096 | |
|---|---|---|
| 104 | 104 | //------------------------------------------------- |
| 105 | 105 | |
| 106 | 106 | cbm2_graphic_cartridge_device::cbm2_graphic_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 107 | device_t(mconfig, CBM2_GRAPHIC, "CBM 500/600/700 High Resolution Graphics", tag, owner, clock), | |
| 107 | device_t(mconfig, CBM2_GRAPHIC, "CBM 500/600/700 High Resolution Graphics", tag, owner, clock, "cbm2_graphic", __FILE__), | |
| 108 | 108 | device_cbm2_expansion_card_interface(mconfig, *this), |
| 109 | 109 | //m_gdc(*this, EF9365_TAG), |
| 110 | 110 | m_variant(TYPE_A) |
| r22095 | r22096 | |
|---|---|---|
| 173 | 173 | //------------------------------------------------- |
| 174 | 174 | |
| 175 | 175 | abc_fd2_device::abc_fd2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 176 | : device_t(mconfig, ABC_FD2, "ABC FD2", tag, owner, clock), | |
| 176 | : device_t(mconfig, ABC_FD2, "ABC FD2", tag, owner, clock, "abc_fd2", __FILE__), | |
| 177 | 177 | device_abcbus_card_interface(mconfig, *this), |
| 178 | 178 | m_maincpu(*this, Z80_TAG), |
| 179 | 179 | m_pio(*this, Z80PIO_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | { |
| 20 | 20 | public: |
| 21 | 21 | // construction/destruction |
| 22 | iq151_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual const rom_entry *device_rom_region() const; |
| r22095 | r22096 | |
| 45 | 45 | iq151_basic6_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 46 | 46 | |
| 47 | 47 | protected: |
| 48 | // device-level overrides | |
| 49 | virtual void device_config_complete() { m_shortname = "iq151_basic6"; } | |
| 50 | ||
| 51 | 48 | // iq151cart_interface overrides |
| 52 | 49 | virtual void read(offs_t offset, UINT8 &data); |
| 53 | 50 | }; |
| r22095 | r22096 | |
| 62 | 59 | iq151_basicg_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 63 | 60 | |
| 64 | 61 | protected: |
| 65 | // device-level overrides | |
| 66 | virtual void device_config_complete() { m_shortname = "iq151_basicg"; } | |
| 67 | ||
| 68 | 62 | // iq151cart_interface overrides |
| 69 | 63 | virtual void read(offs_t offset, UINT8 &data); |
| 70 | 64 | }; |
| r22095 | r22096 | |
| 80 | 74 | iq151_amos1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 81 | 75 | |
| 82 | 76 | protected: |
| 83 | // device-level overrides | |
| 84 | virtual void device_config_complete() { m_shortname = "iq151_amos1"; } | |
| 85 | ||
| 86 | 77 | // iq151cart_interface overrides |
| 87 | 78 | virtual void read(offs_t offset, UINT8 &data); |
| 88 | 79 | virtual void io_write(offs_t offset, UINT8 data); |
| r22095 | r22096 | |
| 101 | 92 | iq151_amos2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 102 | 93 | |
| 103 | 94 | protected: |
| 104 | // device-level overrides | |
| 105 | virtual void device_config_complete() { m_shortname = "iq151_amos2"; } | |
| 106 | ||
| 107 | 95 | // iq151cart_interface overrides |
| 108 | 96 | virtual void read(offs_t offset, UINT8 &data); |
| 109 | 97 | virtual void io_write(offs_t offset, UINT8 data); |
| r22095 | r22096 | |
| 122 | 110 | iq151_amos3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 123 | 111 | |
| 124 | 112 | protected: |
| 125 | // device-level overrides | |
| 126 | virtual void device_config_complete() { m_shortname = "iq151_amos3"; } | |
| 127 | ||
| 128 | 113 | // iq151cart_interface overrides |
| 129 | 114 | virtual void read(offs_t offset, UINT8 &data); |
| 130 | 115 | virtual void io_write(offs_t offset, UINT8 data); |
| r22095 | r22096 | |
|---|---|---|
| 187 | 187 | //------------------------------------------------- |
| 188 | 188 | |
| 189 | 189 | wangpc_lvc_device::wangpc_lvc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 190 | device_t(mconfig, WANGPC_LVC, "Wang PC Low Resolution Video Card", tag, owner, clock), | |
| 190 | device_t(mconfig, WANGPC_LVC, "Wang PC Low Resolution Video Card", tag, owner, clock, "wangpc_lvc", __FILE__), | |
| 191 | 191 | device_wangpcbus_card_interface(mconfig, *this), |
| 192 | 192 | m_crtc(*this, MC6845_TAG), |
| 193 | 193 | m_video_ram(*this, "video_ram"), |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | }; |
| 44 | 44 | |
| 45 | 45 | // device-level overrides |
| 46 | virtual void device_config_complete() { m_shortname = "cbm2_graphic"; } | |
| 47 | 46 | virtual void device_start(); |
| 48 | 47 | virtual void device_reset(); |
| 49 | 48 |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | vic1111_device::vic1111_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 31 | : device_t(mconfig, VIC1111, "VIC1111", tag, owner, clock), | |
| 31 | : device_t(mconfig, VIC1111, "VIC1111", tag, owner, clock, "vic1111", __FILE__), | |
| 32 | 32 | device_vic20_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | // device-level overrides |
| 44 | 44 | virtual void device_start(); |
| 45 | 45 | virtual void device_reset(); |
| 46 | virtual void device_config_complete() { m_shortname = "abc_fd2"; } | |
| 47 | 46 | |
| 48 | 47 | // device_abcbus_interface overrides |
| 49 | 48 | virtual void abcbus_cs(UINT8 data); |
| r22095 | r22096 | |
|---|---|---|
| 68 | 68 | //------------------------------------------------- |
| 69 | 69 | |
| 70 | 70 | comx_joy_device::comx_joy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 71 | device_t(mconfig, COMX_JOY, "COMX JoyCard", tag, owner, clock), | |
| 71 | device_t(mconfig, COMX_JOY, "COMX JoyCard", tag, owner, clock, "comx_joy", __FILE__), | |
| 72 | 72 | device_comx_expansion_card_interface(mconfig, *this), |
| 73 | 73 | m_joy1(*this, "JOY1"), |
| 74 | 74 | m_joy2(*this, "JOY2") |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | // device-level overrides |
| 44 | 44 | virtual void device_start(); |
| 45 | 45 | virtual void device_reset(); |
| 46 | virtual void device_config_complete() { m_shortname = "wangpc_lvc"; } | |
| 47 | 46 | |
| 48 | 47 | // device_wangpcbus_card_interface overrides |
| 49 | 48 | virtual UINT16 wangpcbus_mrdc_r(address_space &space, offs_t offset, UINT16 mem_mask); |
| r22095 | r22096 | |
|---|---|---|
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | 36 | virtual void device_start(); |
| 37 | virtual void device_config_complete() { m_shortname = "vic1111"; } | |
| 38 | 37 | |
| 39 | 38 | // device_vic20_expansion_card_interface overrides |
| 40 | 39 | virtual UINT8 vic20_cd_r(address_space &space, offs_t offset, UINT8 data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3); |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | // device-level overrides |
| 39 | 39 | virtual void device_start(); |
| 40 | 40 | virtual void device_reset(); |
| 41 | virtual void device_config_complete() { m_shortname = "comx_joy"; } | |
| 42 | 41 | |
| 43 | 42 | // device_comx_expansion_card_interface overrides |
| 44 | 43 | virtual UINT8 comx_io_r(address_space &space, offs_t offset); |
| r22095 | r22096 | |
|---|---|---|
| 177 | 177 | //------------------------------------------------- |
| 178 | 178 | |
| 179 | 179 | nubus_image_device::nubus_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 180 | device_t(mconfig, NUBUS_IMAGE, "Disk Image Pseudo-Card", tag, owner, clock), | |
| 180 | device_t(mconfig, NUBUS_IMAGE, "Disk Image Pseudo-Card", tag, owner, clock, "nb_image", __FILE__), | |
| 181 | 181 | device_nubus_card_interface(mconfig, *this) |
| 182 | 182 | { |
| 183 | m_shortname = "nb_image"; | |
| 184 | 183 | } |
| 185 | 184 | |
| 186 | nubus_image_device::nubus_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 187 | device_t(mconfig, type, name, tag, owner, clock), | |
| 185 | nubus_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) : | |
| 186 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 188 | 187 | device_nubus_card_interface(mconfig, *this) |
| 189 | 188 | { |
| 190 | m_shortname = "nb_image"; | |
| 191 | 189 | } |
| 192 | 190 | |
| 193 | 191 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 95 | 95 | // LIVE DEVICE |
| 96 | 96 | //************************************************************************** |
| 97 | 97 | |
| 98 | a2bus_floppy_device::a2bus_floppy_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 99 | device_t(mconfig, type, name, tag, owner, clock), | |
| 98 | a2bus_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) : | |
| 99 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 100 | 100 | device_a2bus_card_interface(mconfig, *this), |
| 101 | 101 | m_fdc(*this, FDC_TAG) |
| 102 | 102 | { |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | a2bus_diskii_device::a2bus_diskii_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 106 | a2bus_floppy_device(mconfig, A2BUS_DISKII, "Apple Disk II controller", tag, owner, clock) | |
| 106 | a2bus_floppy_device(mconfig, A2BUS_DISKII, "Apple Disk II controller", tag, owner, clock, "a2diskii", __FILE__) | |
| 107 | 107 | { |
| 108 | m_shortname = "a2diskii"; | |
| 109 | 108 | } |
| 110 | 109 | |
| 111 | 110 | a2bus_iwmflop_device::a2bus_iwmflop_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 112 | a2bus_floppy_device(mconfig, A2BUS_IWM_FDC, "Apple IWM floppy card", tag, owner, clock) | |
| 111 | a2bus_floppy_device(mconfig, A2BUS_IWM_FDC, "Apple IWM floppy card", tag, owner, clock, "a2diskii", __FILE__) | |
| 113 | 112 | { |
| 114 | m_shortname = "a2diskii"; | |
| 115 | 113 | } |
| 116 | 114 | |
| 117 | 115 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | //************************************************************************** |
| 45 | 45 | |
| 46 | 46 | a2bus_swyft_device::a2bus_swyft_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 47 | device_t(mconfig, A2BUS_SWYFT, "IAI SwyftCard", tag, owner, clock), | |
| 47 | device_t(mconfig, A2BUS_SWYFT, "IAI SwyftCard", tag, owner, clock, "a2swyft", __FILE__), | |
| 48 | 48 | device_a2bus_card_interface(mconfig, *this) |
| 49 | 49 | { |
| 50 | m_shortname = "a2swyft"; | |
| 51 | 50 | } |
| 52 | 51 | |
| 53 | a2bus_swyft_device::a2bus_swyft_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 54 | device_t(mconfig, type, name, tag, owner, clock), | |
| 52 | a2bus_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) : | |
| 53 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 55 | 54 | device_a2bus_card_interface(mconfig, *this) |
| 56 | 55 | { |
| 57 | m_shortname = "a2swyft"; | |
| 58 | 56 | } |
| 59 | 57 | |
| 60 | 58 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 131 | 131 | //------------------------------------------------- |
| 132 | 132 | |
| 133 | 133 | turbo_kontroller_device::turbo_kontroller_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 134 | : device_t(mconfig, TURBO_KONTROLLER, "Turbo-Kontroller", tag, owner, clock), | |
| 134 | : device_t(mconfig, TURBO_KONTROLLER, "Turbo-Kontroller", tag, owner, clock, "unidisk", __FILE__), | |
| 135 | 135 | device_abcbus_card_interface(mconfig, *this), |
| 136 | 136 | m_maincpu(*this, Z80_TAG), |
| 137 | 137 | m_image0(*this, FLOPPY_0), |
| r22095 | r22096 | |
|---|---|---|
| 214 | 214 | //------------------------------------------------- |
| 215 | 215 | |
| 216 | 216 | k7659_keyboard_device::k7659_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 217 | : device_t(mconfig, K7659_KEYBOARD, "K7659 Keyboard", tag, owner, clock) | |
| 217 | : device_t(mconfig, K7659_KEYBOARD, "K7659 Keyboard", tag, owner, clock, "k7659kb", __FILE__) | |
| 218 | 218 | {} |
| 219 | 219 | |
| 220 | 220 |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | cbm2_24k_cartridge_device::cbm2_24k_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, CBM2_24K, "24K RAM/ROM cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, CBM2_24K, "24K RAM/ROM cartridge", tag, owner, clock, "cbm2_24k", __FILE__), | |
| 32 | 32 | device_cbm2_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 29 | 29 | public: |
| 30 | 30 | // construction/destruction |
| 31 | 31 | nubus_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 32 | nubus_image_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 32 | 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); | |
| 33 | 33 | |
| 34 | 34 | // optional information overrides |
| 35 | 35 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 39 | 39 | //------------------------------------------------- |
| 40 | 40 | |
| 41 | 41 | abc_slutprov_device::abc_slutprov_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 42 | : device_t(mconfig, ABC_SLUTPROV, "Slutprov", tag, owner, clock), | |
| 42 | : device_t(mconfig, ABC_SLUTPROV, "Slutprov", tag, owner, clock, "slutprov", __FILE__), | |
| 43 | 43 | device_abcbus_card_interface(mconfig, *this) |
| 44 | 44 | { |
| 45 | 45 | } |
| r22095 | r22096 | |
|---|---|---|
| 22 | 22 | { |
| 23 | 23 | public: |
| 24 | 24 | // construction/destruction |
| 25 | a2bus_floppy_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 25 | 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); | |
| 26 | 26 | |
| 27 | 27 | // optional information overrides |
| 28 | 28 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | public: |
| 24 | 24 | // construction/destruction |
| 25 | 25 | a2bus_swyft_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 26 | a2bus_swyft_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 26 | 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); | |
| 27 | 27 | |
| 28 | 28 | virtual const rom_entry *device_rom_region() const; |
| 29 | 29 |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | // device-level overrides |
| 44 | 44 | virtual void device_start(); |
| 45 | 45 | virtual void device_reset(); |
| 46 | virtual void device_config_complete() { m_shortname = "unidisk"; } | |
| 47 | 46 | |
| 48 | 47 | // device_abcbus_interface overrides |
| 49 | 48 | virtual void abcbus_cs(UINT8 data); |
| r22095 | r22096 | |
|---|---|---|
| 94 | 94 | //------------------------------------------------- |
| 95 | 95 | |
| 96 | 96 | plus4_sid_cartridge_device::plus4_sid_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 97 | device_t(mconfig, PLUS4_SID, "Plus/4 SID cartridge", tag, owner, clock), | |
| 97 | device_t(mconfig, PLUS4_SID, "Plus/4 SID cartridge", tag, owner, clock, "plus4_sid", __FILE__), | |
| 98 | 98 | device_plus4_expansion_card_interface(mconfig, *this), |
| 99 | 99 | m_sid(*this, MOS8580_TAG), |
| 100 | 100 | m_joy(*this, CONTROL1_TAG) |
| r22095 | r22096 | |
|---|---|---|
| 11 | 11 | // GLOBAL VARIABLES |
| 12 | 12 | //************************************************************************** |
| 13 | 13 | |
| 14 | northbridge_device::northbridge_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 15 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 14 | northbridge_device::northbridge_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) | |
| 15 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 16 | 16 | m_maincpu(*this, ":maincpu"), |
| 17 | 17 | m_ram(*this, ":" RAM_TAG) |
| 18 | 18 | { |
| r22095 | r22096 | |
|---|---|---|
| 58 | 58 | virtual void device_start(); |
| 59 | 59 | virtual void device_reset(); |
| 60 | 60 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 61 | virtual void device_config_complete() { m_shortname = "k7659kb"; } | |
| 62 | 61 | emu_timer *m_timer; |
| 63 | 62 | |
| 64 | 63 | private: |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "cbm2_24k"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | |
| 39 | 38 | // device_cbm2_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 29 | 29 | // device-level overrides |
| 30 | 30 | virtual void device_start(); |
| 31 | 31 | virtual void device_reset(); |
| 32 | virtual void device_config_complete() { m_shortname = "slutprov"; } | |
| 33 | 32 | |
| 34 | 33 | // device_abcbus_interface overrides |
| 35 | 34 | virtual void abcbus_cs(UINT8 data); |
| r22095 | r22096 | |
|---|---|---|
| 50 | 50 | ROM_LOAD( "msm6222b-01.bin", 0x0000, 0x1000, CRC(8ffa8521) SHA1(e108b520e6d20459a7bbd5958bbfa1d551a690bd) ) |
| 51 | 51 | ROM_END |
| 52 | 52 | |
| 53 | msm6222b_device::msm6222b_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 54 | device_t(mconfig, type, name, tag, owner, clock) | |
| 53 | msm6222b_device::msm6222b_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) : | |
| 54 | device_t(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 55 | 55 | { |
| 56 | m_shortname = "msm6222b"; | |
| 57 | 56 | } |
| 58 | 57 | |
| 59 | 58 | msm6222b_device::msm6222b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 60 | device_t(mconfig, MSM6222B, "msm6222b-xx", tag, owner, clock) | |
| 59 | device_t(mconfig, MSM6222B, "msm6222b-xx", tag, owner, clock, "msm6222b", __FILE__) | |
| 61 | 60 | { |
| 62 | m_shortname = "msm6222b"; | |
| 63 | 61 | } |
| 64 | 62 | |
| 65 | 63 | msm6222b_01_device::msm6222b_01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 66 | msm6222b_device(mconfig, MSM6222B_01, "msm6222b-01", tag, owner, clock) | |
| 64 | msm6222b_device(mconfig, MSM6222B_01, "msm6222b-01", tag, owner, clock, "msm6222b", __FILE__) | |
| 67 | 65 | { |
| 68 | 66 | } |
| 69 | 67 |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_rex_cartridge_device::c64_rex_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_REX, "C64 Rex cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_REX, "C64 Rex cartridge", tag, owner, clock, "c64_rex", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 41 | 41 | |
| 42 | 42 | protected: |
| 43 | 43 | // device-level overrides |
| 44 | virtual void device_config_complete() { m_shortname = "plus4_sid"; } | |
| 45 | 44 | virtual void device_start(); |
| 46 | 45 | virtual void device_reset(); |
| 47 | 46 |
| r22095 | r22096 | |
|---|---|---|
| 58 | 58 | //------------------------------------------------- |
| 59 | 59 | |
| 60 | 60 | comx_epr_device::comx_epr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 61 | device_t(mconfig, COMX_EPR, "COMX-35 F&M EPROM Switchboard", tag, owner, clock), | |
| 61 | device_t(mconfig, COMX_EPR, "COMX-35 F&M EPROM Switchboard", tag, owner, clock, "comx_epr", __FILE__), | |
| 62 | 62 | device_comx_expansion_card_interface(mconfig, *this), |
| 63 | 63 | m_rom(*this, "f800"), |
| 64 | 64 | m_eprom(*this, "eprom"), |
| r22095 | r22096 | |
|---|---|---|
| 18 | 18 | { |
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | northbridge_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 21 | northbridge_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); | |
| 22 | 22 | protected: |
| 23 | 23 | // device-level overrides |
| 24 | 24 | virtual void device_start(); |
| r22095 | r22096 | |
|---|---|---|
| 173 | 173 | //------------------------------------------------- |
| 174 | 174 | |
| 175 | 175 | adam_fdc_device::adam_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 176 | : device_t(mconfig, ADAM_FDC, "Adam FDC", tag, owner, clock), | |
| 176 | : device_t(mconfig, ADAM_FDC, "Adam FDC", tag, owner, clock, "adam_fdc", __FILE__), | |
| 177 | 177 | device_adamnet_card_interface(mconfig, *this), |
| 178 | 178 | m_maincpu(*this, M6801_TAG), |
| 179 | 179 | m_fdc(*this, WD2793_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 11 | 11 | const device_type MIDIIN_PORT = &device_creator<midiin_port_device>; |
| 12 | 12 | |
| 13 | 13 | midiin_port_device::midiin_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 14 | : device_t(mconfig, MIDIIN_PORT, "MIDI In port", tag, owner, clock), | |
| 14 | : device_t(mconfig, MIDIIN_PORT, "MIDI In port", tag, owner, clock, "midiin_port", __FILE__), | |
| 15 | 15 | device_serial_port_interface(mconfig, *this), |
| 16 | 16 | m_midiin(*this, "midiinimg") |
| 17 | 17 | { |
| r22095 | r22096 | |
|---|---|---|
| 51 | 51 | class msm6222b_device : public device_t { |
| 52 | 52 | public: |
| 53 | 53 | msm6222b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 54 | msm6222b_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 54 | msm6222b_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); | |
| 55 | 55 | |
| 56 | 56 | void control_w(UINT8 data); |
| 57 | 57 | UINT8 control_r(); |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_rex"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | // device-level overrides |
| 39 | 39 | virtual void device_start(); |
| 40 | 40 | virtual void device_reset(); |
| 41 | virtual void device_config_complete() { m_shortname = "comx_epr"; } | |
| 42 | 41 | |
| 43 | 42 | // device_comx_expansion_card_interface overrides |
| 44 | 43 | virtual UINT8 comx_mrd_r(address_space &space, offs_t offset, int *extrom); |
| r22095 | r22096 | |
|---|---|---|
| 165 | 165 | //------------------------------------------------- |
| 166 | 166 | |
| 167 | 167 | wangpc_tig_device::wangpc_tig_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 168 | device_t(mconfig, WANGPC_TIG, "Wang PC TIG Controller", tag, owner, clock), | |
| 168 | device_t(mconfig, WANGPC_TIG, "Wang PC TIG Controller", tag, owner, clock, "wangpc_tig", __FILE__), | |
| 169 | 169 | device_wangpcbus_card_interface(mconfig, *this), |
| 170 | 170 | m_hgdc0(*this, UPD7720_0_TAG), |
| 171 | 171 | m_hgdc1(*this, UPD7720_1_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 89 | 89 | //------------------------------------------------- |
| 90 | 90 | |
| 91 | 91 | kc_d002_device::kc_d002_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 92 | : device_t(mconfig, KC_D002, "D002 Bus Driver", tag, owner, clock), | |
| 92 | : device_t(mconfig, KC_D002, "D002 Bus Driver", tag, owner, clock, "kc_d002", __FILE__), | |
| 93 | 93 | device_kcexp_interface( mconfig, *this ) |
| 94 | 94 | { |
| 95 | 95 | } |
| r22095 | r22096 | |
|---|---|---|
| 50 | 50 | |
| 51 | 51 | protected: |
| 52 | 52 | // device-level overrides |
| 53 | virtual void device_config_complete() { m_shortname = "adam_fdc"; } | |
| 54 | 53 | virtual void device_start(); |
| 55 | 54 | |
| 56 | 55 | // device_adamnet_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 25 | 25 | protected: |
| 26 | 26 | virtual void device_start() { m_owner = dynamic_cast<serial_port_device *>(owner()); } |
| 27 | 27 | virtual void device_reset() { } |
| 28 | virtual void device_config_complete() { m_shortname = "midiin_port"; } | |
| 29 | 28 | private: |
| 30 | 29 | serial_port_device *m_owner; |
| 31 | 30 | required_device<midiin_device> m_midiin; |
| r22095 | r22096 | |
|---|---|---|
| 41 | 41 | // device-level overrides |
| 42 | 42 | virtual void device_start(); |
| 43 | 43 | virtual void device_reset(); |
| 44 | virtual void device_config_complete() { m_shortname = "wangpc_tig"; } | |
| 45 | 44 | |
| 46 | 45 | // device_wangpcbus_card_interface overrides |
| 47 | 46 | virtual UINT16 wangpcbus_iorc_r(address_space &space, offs_t offset, UINT16 mem_mask); |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | // device-level overrides |
| 37 | 37 | virtual void device_start(); |
| 38 | 38 | virtual void device_reset(); |
| 39 | virtual void device_config_complete() { m_shortname = "kc_d002"; } | |
| 40 | 39 | |
| 41 | 40 | // kcexp_interface overrides |
| 42 | 41 | virtual void read(offs_t offset, UINT8 &data); |
| r22095 | r22096 | |
|---|---|---|
| 49 | 49 | // LIVE DEVICE |
| 50 | 50 | //************************************************************************** |
| 51 | 51 | |
| 52 | a2bus_softcard_device::a2bus_softcard_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 53 | device_t(mconfig, type, name, tag, owner, clock), | |
| 52 | a2bus_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) : | |
| 53 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 54 | 54 | device_a2bus_card_interface(mconfig, *this), |
| 55 | 55 | m_z80(*this, Z80_TAG), |
| 56 | 56 | m_6502space(NULL) |
| 57 | 57 | { |
| 58 | m_shortname = "a2softcard"; | |
| 59 | 58 | } |
| 60 | 59 | |
| 61 | 60 | a2bus_softcard_device::a2bus_softcard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 62 | device_t(mconfig, A2BUS_SOFTCARD, "Microsoft SoftCard", tag, owner, clock), | |
| 61 | device_t(mconfig, A2BUS_SOFTCARD, "Microsoft SoftCard", tag, owner, clock, "a2softcard", __FILE__), | |
| 63 | 62 | device_a2bus_card_interface(mconfig, *this), |
| 64 | 63 | m_z80(*this, Z80_TAG), |
| 65 | 64 | m_6502space(NULL) |
| 66 | 65 | { |
| 67 | m_shortname = "a2softcard"; | |
| 68 | 66 | } |
| 69 | 67 | |
| 70 | 68 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | diag264_serial_loopback_device::diag264_serial_loopback_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 31 | : device_t(mconfig, DIAG264_SERIAL_LOOPBACK, "Diag264 Serial Loopback", tag, owner, clock), | |
| 31 | : device_t(mconfig, DIAG264_SERIAL_LOOPBACK, "Diag264 Serial Loopback", tag, owner, clock, "diag264_serial_loopback", __FILE__), | |
| 32 | 32 | device_cbm_iec_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 22 | 22 | { |
| 23 | 23 | public: |
| 24 | 24 | // construction/destruction |
| 25 | a2bus_softcard_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 25 | 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); | |
| 26 | 26 | a2bus_softcard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 27 | 27 | |
| 28 | 28 | // optional information overrides |
| r22095 | r22096 | |
|---|---|---|
| 64 | 64 | //------------------------------------------------- |
| 65 | 65 | |
| 66 | 66 | isa8_gblaster_device::isa8_gblaster_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 67 | device_t(mconfig, ISA8_GAME_BLASTER, "Game Blaster Sound Card", tag, owner, clock), | |
| 67 | device_t(mconfig, ISA8_GAME_BLASTER, "Game Blaster Sound Card", tag, owner, clock, "isa_gblaster", __FILE__), | |
| 68 | 68 | device_isa8_card_interface(mconfig, *this) |
| 69 | 69 | { |
| 70 | 70 | } |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "diag264_serial_loopback"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | |
| 39 | 38 | // device_cbm_iec_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 26 | 26 | // device-level overrides |
| 27 | 27 | virtual void device_start(); |
| 28 | 28 | virtual void device_reset(); |
| 29 | virtual void device_config_complete() { m_shortname = "isa_gblaster"; } | |
| 30 | 29 | private: |
| 31 | 30 | // internal state |
| 32 | 31 | }; |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | { |
| 45 | 45 | memset(&m_out_txd_cb, 0, sizeof(m_out_txd_cb)); |
| 46 | 46 | } |
| 47 | ||
| 48 | m_shortname = "aprikb"; | |
| 49 | 47 | } |
| 50 | 48 | |
| 51 | 49 | |
| r22095 | r22096 | |
| 269 | 267 | //------------------------------------------------- |
| 270 | 268 | |
| 271 | 269 | apricot_keyboard_device::apricot_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 272 | : device_t(mconfig, APRICOT_KEYBOARD, "Apricot Keyboard", tag, owner, clock), | |
| 270 | : device_t(mconfig, APRICOT_KEYBOARD, "Apricot Keyboard", tag, owner, clock, "aprikb", __FILE__), | |
| 273 | 271 | m_y0(*this, "Y0"), |
| 274 | 272 | m_y1(*this, "Y1"), |
| 275 | 273 | m_y2(*this, "Y2"), |
| r22095 | r22096 | |
|---|---|---|
| 71 | 71 | //------------------------------------------------- |
| 72 | 72 | |
| 73 | 73 | c64_dela_ep64_cartridge_device::c64_dela_ep64_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 74 | device_t(mconfig, C64_DELA_EP64, "C64 Rex 64KB EPROM cartridge", tag, owner, clock), | |
| 74 | device_t(mconfig, C64_DELA_EP64, "C64 Rex 64KB EPROM cartridge", tag, owner, clock, "c64_dela_ep64", __FILE__), | |
| 75 | 75 | device_c64_expansion_card_interface(mconfig, *this), |
| 76 | 76 | m_eprom(*this, "eprom") |
| 77 | 77 | { |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | plus4_standard_cartridge_device::plus4_standard_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, PLUS4_STD, "Plus/4 standard cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, PLUS4_STD, "Plus/4 standard cartridge", tag, owner, clock, "plus4_standard", __FILE__), | |
| 32 | 32 | device_plus4_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_structured_basic_cartridge_device::c64_structured_basic_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_STRUCTURED_BASIC, "C64 Structured Basic cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_STRUCTURED_BASIC, "C64 Structured Basic cartridge", tag, owner, clock, "c64_structured_basic", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | videobrain_standard_cartridge_device::videobrain_standard_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, VB_STD, "VideoBrain standard cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, VB_STD, "VideoBrain standard cartridge", tag, owner, clock, "vb_std", __FILE__), | |
| 32 | 32 | device_videobrain_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 90 | 90 | //------------------------------------------------- |
| 91 | 91 | |
| 92 | 92 | isa8_finalchs_device::isa8_finalchs_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 93 | : device_t(mconfig, ISA8_FINALCHS, "Final Chess Card", tag, owner, clock), | |
| 93 | : device_t(mconfig, ISA8_FINALCHS, "Final Chess Card", tag, owner, clock, "finalchs", __FILE__), | |
| 94 | 94 | device_isa8_card_interface( mconfig, *this ) |
| 95 | 95 | { |
| 96 | m_shortname = "finalchs"; | |
| 97 | 96 | } |
| 98 | 97 | |
| 99 | 98 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| 41 | virtual void device_config_complete() { m_shortname = "c64_dela_ep64"; } | |
| 42 | 41 | virtual void device_start(); |
| 43 | 42 | virtual void device_reset(); |
| 44 | 43 |
| r22095 | r22096 | |
|---|---|---|
| 29 | 29 | //------------------------------------------------- |
| 30 | 30 | |
| 31 | 31 | vic1210_device::vic1210_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 32 | : device_t(mconfig, VIC1210, "VIC1210", tag, owner, clock), | |
| 32 | : device_t(mconfig, VIC1210, "VIC1210", tag, owner, clock, "vic1210", __FILE__), | |
| 33 | 33 | device_vic20_expansion_card_interface(mconfig, *this) |
| 34 | 34 | { |
| 35 | 35 | } |
| r22095 | r22096 | |
|---|---|---|
| 34 | 34 | |
| 35 | 35 | protected: |
| 36 | 36 | // device-level overrides |
| 37 | virtual void device_config_complete() { m_shortname = "plus4_standard"; } | |
| 38 | 37 | virtual void device_start(); |
| 39 | 38 | |
| 40 | 39 | // device_plus4_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 34 | 34 | |
| 35 | 35 | protected: |
| 36 | 36 | // device-level overrides |
| 37 | virtual void device_config_complete() { m_shortname = "c64_structured_basic"; } | |
| 38 | 37 | virtual void device_start(); |
| 39 | 38 | virtual void device_reset(); |
| 40 | 39 |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "vb_std"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | |
| 39 | 38 | // device_videobrain_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 173 | 173 | //------------------------------------------------- |
| 174 | 174 | |
| 175 | 175 | vic1112_device::vic1112_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 176 | : device_t(mconfig, VIC1112, "VIC1112", tag, owner, clock), | |
| 176 | : device_t(mconfig, VIC1112, "VIC1112", tag, owner, clock, "vic1112", __FILE__), | |
| 177 | 177 | device_vic20_expansion_card_interface(mconfig, *this), |
| 178 | 178 | m_via0(*this, M6522_0_TAG), |
| 179 | 179 | m_via1(*this, M6522_1_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 60 | 60 | //------------------------------------------------- |
| 61 | 61 | |
| 62 | 62 | vp595_device::vp595_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 63 | device_t(mconfig, VP595, "VP595", tag, owner, clock), | |
| 63 | device_t(mconfig, VP595, "VP595", tag, owner, clock, "vp595", __FILE__), | |
| 64 | 64 | device_vip_expansion_card_interface(mconfig, *this), |
| 65 | 65 | m_pfg(*this, CDP1863_TAG) |
| 66 | 66 | { |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | protected: |
| 36 | 36 | // device-level overrides |
| 37 | 37 | virtual void device_start(); |
| 38 | virtual void device_config_complete() { m_shortname = "vic1210"; } | |
| 39 | 38 | |
| 40 | 39 | // device_vic20_expansion_card_interface overrides |
| 41 | 40 | virtual UINT8 vic20_cd_r(address_space &space, offs_t offset, UINT8 data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3); |
| r22095 | r22096 | |
|---|---|---|
| 129 | 129 | //------------------------------------------------- |
| 130 | 130 | |
| 131 | 131 | c64_namesoft_midi_cartridge_device::c64_namesoft_midi_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 132 | device_t(mconfig, C64_MIDI_NAMESOFT, "C64 Namesoft MIDI", tag, owner, clock), | |
| 132 | device_t(mconfig, C64_MIDI_NAMESOFT, "C64 Namesoft MIDI", tag, owner, clock, "c64_midins", __FILE__), | |
| 133 | 133 | device_c64_expansion_card_interface(mconfig, *this), |
| 134 | 134 | m_acia(*this, MC6850_TAG), |
| 135 | 135 | m_mdout(*this, "mdout"), |
| r22095 | r22096 | |
|---|---|---|
| 50 | 50 | // device-level overrides |
| 51 | 51 | virtual void device_start(); |
| 52 | 52 | virtual void device_reset(); |
| 53 | virtual void device_config_complete() { m_shortname = "vic1112"; } | |
| 54 | 53 | |
| 55 | 54 | // device_vic20_expansion_card_interface overrides |
| 56 | 55 | virtual UINT8 vic20_cd_r(address_space &space, offs_t offset, UINT8 data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3); |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | virtual void device_config_complete() { m_shortname = "vp595"; } | |
| 40 | 39 | virtual void device_start(); |
| 41 | 40 | |
| 42 | 41 | // device_vip_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | protected: |
| 46 | 46 | // device-level overrides |
| 47 | virtual void device_config_complete() { m_shortname = "c64_midins"; } | |
| 48 | 47 | virtual void device_start(); |
| 49 | 48 | virtual void device_reset(); |
| 50 | 49 |
| r22095 | r22096 | |
|---|---|---|
| 10 | 10 | const device_type ACB4070 = &device_creator<acb4070_device>; |
| 11 | 11 | |
| 12 | 12 | acb4070_device::acb4070_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 13 | : scsihd_device(mconfig, ACB4070, "ACB4070", tag, owner, clock) | |
| 13 | : scsihd_device(mconfig, ACB4070, "ACB4070", tag, owner, clock, "acb4070", __FILE__) | |
| 14 | 14 | { |
| 15 | 15 | } |
| 16 | 16 |
| r22095 | r22096 | |
|---|---|---|
| 193 | 193 | //------------------------------------------------- |
| 194 | 194 | |
| 195 | 195 | comx_clm_device::comx_clm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 196 | device_t(mconfig, COMX_CLM, "COMX 80 Column Card", tag, owner, clock), | |
| 196 | device_t(mconfig, COMX_CLM, "COMX 80 Column Card", tag, owner, clock, "comx_clm", __FILE__), | |
| 197 | 197 | device_comx_expansion_card_interface(mconfig, *this), |
| 198 | 198 | m_crtc(*this, MC6845_TAG), |
| 199 | 199 | m_rom(*this, "c000"), |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_ross_cartridge_device::c64_ross_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_ROSS, "C64 Ross cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_ROSS, "C64 Ross cartridge", tag, owner, clock, "c64_ross", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 20 | 20 | ADDRESS_MAP_END |
| 21 | 21 | |
| 22 | 22 | ncr5390_device::ncr5390_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 23 | : nscsi_device(mconfig, NCR5390, "5390 SCSI", tag, owner, clock) | |
| 23 | : nscsi_device(mconfig, NCR5390, "5390 SCSI", tag, owner, clock, "ncr5390", __FILE__) | |
| 24 | 24 | { |
| 25 | 25 | } |
| 26 | 26 | |
| r22095 | r22096 | |
| 83 | 83 | memset(&m_irq_cb, 0, sizeof(m_irq_cb)); |
| 84 | 84 | memset(&m_drq_cb, 0, sizeof(m_drq_cb)); |
| 85 | 85 | } |
| 86 | m_shortname = "ncr5390"; | |
| 87 | 86 | } |
| 88 | 87 | |
| 89 | 88 | void ncr5390_device::reset_soft() |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | // device-level overrides |
| 44 | 44 | virtual void device_start(); |
| 45 | 45 | virtual void device_reset(); |
| 46 | virtual void device_config_complete() { m_shortname = "comx_clm"; } | |
| 47 | 46 | |
| 48 | 47 | // device_comx_expansion_card_interface overrides |
| 49 | 48 | virtual int comx_ef4_r(); |
| r22095 | r22096 | |
|---|---|---|
| 34 | 34 | |
| 35 | 35 | protected: |
| 36 | 36 | // device-level overrides |
| 37 | virtual void device_config_complete() { m_shortname = "c64_ross"; } | |
| 38 | 37 | virtual void device_start(); |
| 39 | 38 | virtual void device_reset(); |
| 40 | 39 |
| r22095 | r22096 | |
|---|---|---|
| 129 | 129 | //------------------------------------------------- |
| 130 | 130 | |
| 131 | 131 | c64_siel_midi_cartridge_device::c64_siel_midi_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 132 | device_t(mconfig, C64_MIDI_SIEL, "C64 Siel MIDI", tag, owner, clock), | |
| 132 | device_t(mconfig, C64_MIDI_SIEL, "C64 Siel MIDI", tag, owner, clock, "c64_midisiel", __FILE__), | |
| 133 | 133 | device_c64_expansion_card_interface(mconfig, *this), |
| 134 | 134 | m_acia(*this, MC6850_TAG), |
| 135 | 135 | m_mdout(*this, "mdout"), |
| r22095 | r22096 | |
|---|---|---|
| 160 | 160 | //------------------------------------------------- |
| 161 | 161 | |
| 162 | 162 | comx_pl80_device::comx_pl80_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 163 | : device_t(mconfig, COMX_PL80, "COMX PL-80", tag, owner, clock), | |
| 163 | : device_t(mconfig, COMX_PL80, "COMX PL-80", tag, owner, clock, "comx_pl80", __FILE__), | |
| 164 | 164 | device_centronics_peripheral_interface(mconfig, *this), |
| 165 | 165 | m_plotter(*this, "PLOTTER"), |
| 166 | 166 | m_font(*this, "FONT"), |
| r22095 | r22096 | |
|---|---|---|
| 103 | 103 | // ctor |
| 104 | 104 | //------------------------------------------------- |
| 105 | 105 | |
| 106 | applefdc_base_device::applefdc_base_device(applefdc_base_device::applefdc_t fdc_type, const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 107 | : device_t(mconfig, type, name, tag, owner, clock) | |
| 106 | applefdc_base_device::applefdc_base_device(applefdc_base_device::applefdc_t fdc_type, const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) | |
| 107 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 108 | 108 | { |
| 109 | 109 | m_type = fdc_type; |
| 110 | 110 | } |
| r22095 | r22096 | |
| 566 | 566 | const device_type APPLEFDC = &device_creator<applefdc_device>; |
| 567 | 567 | |
| 568 | 568 | applefdc_device::applefdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 569 | : applefdc_base_device(APPLEFDC_APPLE2, mconfig, APPLEFDC, "Apple FDC", tag, owner, clock) | |
| 569 | : applefdc_base_device(APPLEFDC_APPLE2, mconfig, APPLEFDC, "Apple FDC", tag, owner, clock, "apple_fdc", __FILE__) | |
| 570 | 570 | { |
| 571 | 571 | } |
| 572 | 572 | |
| r22095 | r22096 | |
| 579 | 579 | const device_type IWM = &device_creator<iwm_device>; |
| 580 | 580 | |
| 581 | 581 | iwm_device::iwm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 582 | : applefdc_base_device(APPLEFDC_IWM, mconfig, IWM, "Apple IWM (Integrated Woz Machine)", tag, owner, clock) | |
| 582 | : applefdc_base_device(APPLEFDC_IWM, mconfig, IWM, "Apple IWM (Integrated Woz Machine)", tag, owner, clock, "iwm", __FILE__) | |
| 583 | 583 | { |
| 584 | 584 | } |
| r22095 | r22096 | |
|---|---|---|
| 224 | 224 | //------------------------------------------------- |
| 225 | 225 | |
| 226 | 226 | adam_keyboard_device::adam_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 227 | : device_t(mconfig, ADAM_KB, "Adam keyboard", tag, owner, clock), | |
| 227 | : device_t(mconfig, ADAM_KB, "Adam keyboard", tag, owner, clock, "adam_kb", __FILE__), | |
| 228 | 228 | device_adamnet_card_interface(mconfig, *this), |
| 229 | 229 | m_maincpu(*this, M6801_TAG), |
| 230 | 230 | m_y0(*this, "Y0"), |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | protected: |
| 46 | 46 | // device-level overrides |
| 47 | virtual void device_config_complete() { m_shortname = "c64_midisiel"; } | |
| 48 | 47 | virtual void device_start(); |
| 49 | 48 | virtual void device_reset(); |
| 50 | 49 |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | protected: |
| 46 | 46 | // device-level overrides |
| 47 | virtual void device_config_complete() { m_shortname = "comx_pl80"; } | |
| 48 | 47 | virtual void device_start(); |
| 49 | 48 | virtual void device_reset(); |
| 50 | 49 |
| r22095 | r22096 | |
|---|---|---|
| 79 | 79 | }; |
| 80 | 80 | |
| 81 | 81 | // constructor |
| 82 | applefdc_base_device(applefdc_t fdc_type, const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 82 | applefdc_base_device(applefdc_t fdc_type, const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); | |
| 83 | 83 | |
| 84 | 84 | // device-level overrides |
| 85 | 85 | virtual void device_start(); |
| r22095 | r22096 | |
|---|---|---|
| 47 | 47 | |
| 48 | 48 | protected: |
| 49 | 49 | // device-level overrides |
| 50 | virtual void device_config_complete() { m_shortname = "adam_kb"; } | |
| 51 | 50 | virtual void device_start(); |
| 52 | 51 | |
| 53 | 52 | // device_adamnet_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 90 | 90 | //------------------------------------------------- |
| 91 | 91 | |
| 92 | 92 | c64_rex_ep256_cartridge_device::c64_rex_ep256_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 93 | device_t(mconfig, C64_REX_EP256, "C64 Rex 256KB EPROM cartridge", tag, owner, clock), | |
| 93 | device_t(mconfig, C64_REX_EP256, "C64 Rex 256KB EPROM cartridge", tag, owner, clock, "rexep256", __FILE__), | |
| 94 | 94 | device_c64_expansion_card_interface(mconfig, *this), |
| 95 | 95 | m_eprom(*this, "eprom") |
| 96 | 96 | { |
| r22095 | r22096 | |
|---|---|---|
| 383 | 383 | //------------------------------------------------- |
| 384 | 384 | |
| 385 | 385 | wangpc_keyboard_device::wangpc_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 386 | : device_t(mconfig, WANGPC_KEYBOARD, "Wang PC Keyboard", tag, owner, clock), | |
| 386 | : device_t(mconfig, WANGPC_KEYBOARD, "Wang PC Keyboard", tag, owner, clock, "wangpckb", __FILE__), | |
| 387 | 387 | device_serial_interface(mconfig, *this), |
| 388 | 388 | m_maincpu(*this, I8051_TAG), |
| 389 | 389 | m_y0(*this, "Y0"), |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_neoram_cartridge_device::c64_neoram_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_NEORAM, "C64 NeoRAM cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_NEORAM, "C64 NeoRAM cartridge", tag, owner, clock, "c64_neoram", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this), |
| 33 | 33 | device_nvram_interface(mconfig, *this) |
| 34 | 34 | { |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| 41 | virtual void device_config_complete() { m_shortname = "rexep256"; } | |
| 42 | 41 | virtual void device_start(); |
| 43 | 42 | virtual void device_reset(); |
| 44 | 43 |
| r22095 | r22096 | |
|---|---|---|
| 1 | /********************************************************************** | |
| 1 | /********************************************************************** | |
| 2 | 2 | |
| 3 | 3 | Wang PC keyboard emulation |
| 4 | 4 | |
| r22095 | r22096 | |
| 65 | 65 | |
| 66 | 66 | protected: |
| 67 | 67 | // device-level overrides |
| 68 | virtual void device_config_complete() { m_shortname = "wangpckb"; } | |
| 69 | 68 | virtual void device_start(); |
| 70 | 69 | virtual void device_reset(); |
| 71 | 70 |
| r22095 | r22096 | |
|---|---|---|
| 34 | 34 | |
| 35 | 35 | protected: |
| 36 | 36 | // device-level overrides |
| 37 | virtual void device_config_complete() { m_shortname = "c64_neoram"; } | |
| 38 | 37 | virtual void device_start(); |
| 39 | 38 | virtual void device_reset(); |
| 40 | 39 |
| r22095 | r22096 | |
|---|---|---|
| 64 | 64 | //------------------------------------------------- |
| 65 | 65 | |
| 66 | 66 | c64_final_cartridge_device::c64_final_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 67 | device_t(mconfig, C64_FINAL, "C64 Final cartridge", tag, owner, clock), | |
| 67 | device_t(mconfig, C64_FINAL, "C64 Final cartridge", tag, owner, clock, "c64_final", __FILE__), | |
| 68 | 68 | device_c64_expansion_card_interface(mconfig, *this) |
| 69 | 69 | { |
| 70 | 70 | } |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| 41 | virtual void device_config_complete() { m_shortname = "c64_final"; } | |
| 42 | 41 | virtual void device_start(); |
| 43 | 42 | virtual void device_reset(); |
| 44 | 43 |
| r22095 | r22096 | |
|---|---|---|
| 296 | 296 | //------------------------------------------------- |
| 297 | 297 | |
| 298 | 298 | apple525_floppy_image_device::apple525_floppy_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 299 | : legacy_floppy_image_device(mconfig, FLOPPY_APPLE, "Apple Disk II", tag, owner, clock) | |
| 299 | : legacy_floppy_image_device(mconfig, FLOPPY_APPLE, "Apple Disk II", tag, owner, clock, "floppy_apple", __FILE__) | |
| 300 | 300 | { |
| 301 | 301 | } |
| 302 | 302 |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_system3_cartridge_device::c64_system3_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_SYSTEM3, "C64 System 3 cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_SYSTEM3, "C64 System 3 cartridge", tag, owner, clock, "c64_system3", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 207 | 207 | //------------------------------------------------- |
| 208 | 208 | |
| 209 | 209 | wangpc_mvc_device::wangpc_mvc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 210 | device_t(mconfig, WANGPC_MVC, "Wang PC Medium Resolution Video Card", tag, owner, clock), | |
| 210 | device_t(mconfig, WANGPC_MVC, "Wang PC Medium Resolution Video Card", tag, owner, clock, "wangpc_mvc", __FILE__), | |
| 211 | 211 | device_wangpcbus_card_interface(mconfig, *this), |
| 212 | 212 | m_crtc(*this, MC6845_TAG), |
| 213 | 213 | m_video_ram(*this, "video_ram"), |
| r22095 | r22096 | |
|---|---|---|
| 78 | 78 | // nubus_mac8390_device - constructor |
| 79 | 79 | //------------------------------------------------- |
| 80 | 80 | |
| 81 | nubus_mac8390_device::nubus_mac8390_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 82 | device_t(mconfig, NUBUS_ASNTMC3NB, name, tag, owner, clock), | |
| 81 | nubus_mac8390_device::nubus_mac8390_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) : | |
| 82 | device_t(mconfig, NUBUS_ASNTMC3NB, name, tag, owner, clock, shortname, source), | |
| 83 | 83 | device_nubus_card_interface(mconfig, *this), |
| 84 | 84 | m_dp83902(*this, MAC8390_839X) |
| 85 | 85 | { |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | nubus_asntmc3nb_device::nubus_asntmc3nb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 89 | nubus_mac8390_device(mconfig, NUBUS_ASNTMC3NB, "Asante MC3NB Ethernet card", tag, owner, clock) | |
| 89 | nubus_mac8390_device(mconfig, NUBUS_ASNTMC3NB, "Asante MC3NB Ethernet card", tag, owner, clock, "nb_amc3b", __FILE__) | |
| 90 | 90 | { |
| 91 | m_shortname = "nb_amc3b"; | |
| 92 | 91 | } |
| 93 | 92 | |
| 94 | 93 | nubus_appleenet_device::nubus_appleenet_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 95 | nubus_mac8390_device(mconfig, NUBUS_APPLEENET, "Apple NuBus Ethernet card", tag, owner, clock) | |
| 94 | nubus_mac8390_device(mconfig, NUBUS_APPLEENET, "Apple NuBus Ethernet card", tag, owner, clock, "nb_aenet", __FILE__) | |
| 96 | 95 | { |
| 97 | m_shortname = "nb_aenet"; | |
| 98 | 96 | } |
| 99 | 97 | |
| 100 | 98 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 96 | 96 | //------------------------------------------------- |
| 97 | 97 | |
| 98 | 98 | c64_ide64_cartridge_device::c64_ide64_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 99 | device_t(mconfig, C64_IDE64, "C64 IDE64 cartridge", tag, owner, clock), | |
| 99 | device_t(mconfig, C64_IDE64, "C64 IDE64 cartridge", tag, owner, clock, "c64_ide64", __FILE__), | |
| 100 | 100 | device_c64_expansion_card_interface(mconfig, *this), |
| 101 | 101 | m_flash_rom(*this, AT29C010A_TAG), |
| 102 | 102 | m_rtc(*this, DS1302_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_system3"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | // device-level overrides |
| 44 | 44 | virtual void device_start(); |
| 45 | 45 | virtual void device_reset(); |
| 46 | virtual void device_config_complete() { m_shortname = "wangpc_mvc"; } | |
| 47 | 46 | |
| 48 | 47 | // device_wangpcbus_card_interface overrides |
| 49 | 48 | virtual UINT16 wangpcbus_mrdc_r(address_space &space, offs_t offset, UINT16 mem_mask); |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | { |
| 20 | 20 | public: |
| 21 | 21 | // construction/destruction |
| 22 | nubus_mac8390_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | nubus_mac8390_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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 41 | 41 | |
| 42 | 42 | protected: |
| 43 | 43 | // device-level overrides |
| 44 | virtual void device_config_complete() { m_shortname = "c64_ide64"; } | |
| 45 | 44 | virtual void device_start(); |
| 46 | 45 | virtual void device_reset(); |
| 47 | 46 |
| r22095 | r22096 | |
|---|---|---|
| 62 | 62 | |
| 63 | 63 | |
| 64 | 64 | //------------------------------------------------- |
| 65 | // device_config_complete - perform any | |
| 66 | // operations now that the configuration is | |
| 67 | // complete | |
| 68 | //------------------------------------------------- | |
| 69 | ||
| 70 | void c1571_device::device_config_complete() | |
| 71 | { | |
| 72 | switch (m_variant) | |
| 73 | { | |
| 74 | case TYPE_1570: | |
| 75 | m_shortname = "c1570"; | |
| 76 | break; | |
| 77 | ||
| 78 | default: | |
| 79 | case TYPE_1571: | |
| 80 | m_shortname = "c1571"; | |
| 81 | break; | |
| 82 | ||
| 83 | case TYPE_1571CR: | |
| 84 | m_shortname = "c1571cr"; | |
| 85 | break; | |
| 86 | ||
| 87 | case TYPE_MINI_CHIEF: | |
| 88 | m_shortname = "minichif"; | |
| 89 | break; | |
| 90 | } | |
| 91 | } | |
| 92 | ||
| 93 | ||
| 94 | //------------------------------------------------- | |
| 95 | 65 | // ROM( c1570 ) |
| 96 | 66 | //------------------------------------------------- |
| 97 | 67 | |
| r22095 | r22096 | |
| 885 | 855 | // c1571_device - constructor |
| 886 | 856 | //------------------------------------------------- |
| 887 | 857 | |
| 888 | c1571_device::c1571_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) | |
| 889 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 858 | c1571_device::c1571_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source) | |
| 859 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 890 | 860 | device_cbm_iec_interface(mconfig, *this), |
| 891 | 861 | device_c64_floppy_parallel_interface(mconfig, *this), |
| 892 | 862 | m_maincpu(*this, M6502_TAG), |
| r22095 | r22096 | |
| 909 | 879 | } |
| 910 | 880 | |
| 911 | 881 | c1571_device::c1571_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 912 | : device_t(mconfig, C1571, "C1571", tag, owner, clock), | |
| 882 | : device_t(mconfig, C1571, "C1571", tag, owner, clock, "c1571", __FILE__), | |
| 913 | 883 | device_cbm_iec_interface(mconfig, *this), |
| 914 | 884 | device_c64_floppy_parallel_interface(mconfig, *this), |
| 915 | 885 | m_maincpu(*this, M6502_TAG), |
| r22095 | r22096 | |
| 938 | 908 | //------------------------------------------------- |
| 939 | 909 | |
| 940 | 910 | c1570_device::c1570_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 941 | : c1571_device(mconfig, C1570, "C1570", tag, owner, clock, TYPE_1570) | |
| 911 | : c1571_device(mconfig, C1570, "C1570", tag, owner, clock, TYPE_1570, "c1570", __FILE__) | |
| 942 | 912 | //m_floppy(*this, WD1770_TAG":0:525ssdd") |
| 943 | 913 | { |
| 944 | 914 | } |
| r22095 | r22096 | |
| 949 | 919 | //------------------------------------------------- |
| 950 | 920 | |
| 951 | 921 | c1571cr_device::c1571cr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 952 | : c1571_device(mconfig, C1571CR, "C1571CR", tag, owner, clock, TYPE_1571CR) | |
| 922 | : c1571_device(mconfig, C1571CR, "C1571CR", tag, owner, clock, TYPE_1571CR, "c1571cr", __FILE__) | |
| 953 | 923 | //m_floppy(*this, WD1770_TAG":0:525dd") |
| 954 | 924 | { |
| 955 | 925 | } |
| r22095 | r22096 | |
| 960 | 930 | //------------------------------------------------- |
| 961 | 931 | |
| 962 | 932 | mini_chief_device::mini_chief_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 963 | : c1571_device(mconfig, MINI_CHIEF, "ICT Mini Chief", tag, owner, clock, TYPE_MINI_CHIEF) | |
| 933 | : c1571_device(mconfig, MINI_CHIEF, "ICT Mini Chief", tag, owner, clock, TYPE_MINI_CHIEF, "minichif", __FILE__) | |
| 964 | 934 | //m_floppy(*this, WD1770_TAG":0:525dd") |
| 965 | 935 | { |
| 966 | 936 | } |
| r22095 | r22096 | |
|---|---|---|
| 84 | 84 | //************************************************************************** |
| 85 | 85 | |
| 86 | 86 | a2bus_midi_device::a2bus_midi_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 87 | device_t(mconfig, A2BUS_MIDI, "6850 MIDI card", tag, owner, clock), | |
| 87 | device_t(mconfig, A2BUS_MIDI, "6850 MIDI card", tag, owner, clock, "a2midi", __FILE__), | |
| 88 | 88 | device_a2bus_card_interface(mconfig, *this), |
| 89 | 89 | m_ptm(*this, MIDI_PTM_TAG), |
| 90 | 90 | m_acia(*this, MIDI_ACIA_TAG), |
| 91 | 91 | m_mdout(*this, "mdout") |
| 92 | 92 | { |
| 93 | m_shortname = "a2midi"; | |
| 94 | 93 | } |
| 95 | 94 | |
| 96 | a2bus_midi_device::a2bus_midi_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 97 | device_t(mconfig, type, name, tag, owner, clock), | |
| 95 | a2bus_midi_device::a2bus_midi_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) : | |
| 96 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 98 | 97 | device_a2bus_card_interface(mconfig, *this), |
| 99 | 98 | m_ptm(*this, MIDI_PTM_TAG), |
| 100 | 99 | m_acia(*this, MIDI_ACIA_TAG), |
| 101 | 100 | m_mdout(*this, "mdout") |
| 102 | 101 | { |
| 103 | m_shortname = "a2midi"; | |
| 104 | 102 | } |
| 105 | 103 | |
| 106 | 104 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 55 | 55 | }; |
| 56 | 56 | |
| 57 | 57 | // construction/destruction |
| 58 | c1571_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); | |
| 58 | c1571_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source); | |
| 59 | 59 | c1571_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 60 | 60 | |
| 61 | 61 | // optional information overrides |
| r22095 | r22096 | |
| 89 | 89 | |
| 90 | 90 | protected: |
| 91 | 91 | // device-level overrides |
| 92 | virtual void device_config_complete(); | |
| 93 | 92 | virtual void device_start(); |
| 94 | 93 | virtual void device_reset(); |
| 95 | 94 |
| r22095 | r22096 | |
|---|---|---|
| 58 | 58 | const device_type MD_EEPROM_BLARA = &device_creator<md_eeprom_blara_device>; |
| 59 | 59 | |
| 60 | 60 | |
| 61 | md_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) | |
| 62 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 61 | md_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) | |
| 62 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 63 | 63 | device_md_cart_interface( mconfig, *this ), |
| 64 | 64 | m_i2cmem(*this, "i2cmem") |
| 65 | 65 | { |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | md_std_eeprom_device::md_std_eeprom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 69 | : device_t(mconfig, MD_STD_EEPROM, "MD Standard cart + EEPROM", tag, owner, clock), | |
| 69 | : device_t(mconfig, MD_STD_EEPROM, "MD Standard cart + EEPROM", tag, owner, clock, "md_std_eeprom", __FILE__), | |
| 70 | 70 | device_md_cart_interface( mconfig, *this ), |
| 71 | 71 | m_i2cmem(*this, "i2cmem") |
| 72 | 72 | { |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | md_eeprom_nbajam_device::md_eeprom_nbajam_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 76 | : md_std_eeprom_device(mconfig, MD_EEPROM_NBAJAM, "MD NBA Jam", tag, owner, clock) | |
| 76 | : md_std_eeprom_device(mconfig, MD_EEPROM_NBAJAM, "MD NBA Jam", tag, owner, clock, "md_eeprom_nbajam", __FILE__) | |
| 77 | 77 | { |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | md_eeprom_nbajamte_device::md_eeprom_nbajamte_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 81 | : md_std_eeprom_device(mconfig, MD_EEPROM_NBAJAMTE, "MD NBA Jam TE (and a few more)", tag, owner, clock) | |
| 81 | : md_std_eeprom_device(mconfig, MD_EEPROM_NBAJAMTE, "MD NBA Jam TE (and a few more)", tag, owner, clock, "md_eeprom_nbajamte", __FILE__) | |
| 82 | 82 | { |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | md_eeprom_cslam_device::md_eeprom_cslam_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 86 | : md_std_eeprom_device(mconfig, MD_EEPROM_CSLAM, "MD College Slam", tag, owner, clock) | |
| 86 | : md_std_eeprom_device(mconfig, MD_EEPROM_CSLAM, "MD College Slam", tag, owner, clock, "md_eeprom_cslam", __FILE__) | |
| 87 | 87 | { |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | md_eeprom_nflqb_device::md_eeprom_nflqb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 91 | : md_std_eeprom_device(mconfig, MD_EEPROM_NFLQB, "MD NFL Quarterback 96", tag, owner, clock) | |
| 91 | : md_std_eeprom_device(mconfig, MD_EEPROM_NFLQB, "MD NFL Quarterback 96", tag, owner, clock, "md_eeprom_nflqb", __FILE__) | |
| 92 | 92 | { |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | md_eeprom_nhlpa_device::md_eeprom_nhlpa_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 96 | : md_std_eeprom_device(mconfig, MD_EEPROM_NHLPA, "MD NHLPA 93", tag, owner, clock) | |
| 96 | : md_std_eeprom_device(mconfig, MD_EEPROM_NHLPA, "MD NHLPA 93", tag, owner, clock, "md_eeprom_nhlpa", __FILE__) | |
| 97 | 97 | { |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | md_eeprom_blara_device::md_eeprom_blara_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 101 | : md_std_eeprom_device(mconfig, MD_EEPROM_BLARA, "MD Brian Lara", tag, owner, clock) | |
| 101 | : md_std_eeprom_device(mconfig, MD_EEPROM_BLARA, "MD Brian Lara", tag, owner, clock, "md_eeprom_blara", __FILE__) | |
| 102 | 102 | { |
| 103 | 103 | } |
| 104 | 104 |
| r22095 | r22096 | |
|---|---|---|
| 73 | 73 | //------------------------------------------------- |
| 74 | 74 | |
| 75 | 75 | c64_switchable_8k_cartridge_device::c64_switchable_8k_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 76 | device_t(mconfig, C64_SW8K, "C64 Switchable 8K cartridge", tag, owner, clock), | |
| 76 | device_t(mconfig, C64_SW8K, "C64 Switchable 8K cartridge", tag, owner, clock, "c64_sw8k", __FILE__), | |
| 77 | 77 | device_c64_expansion_card_interface(mconfig, *this), |
| 78 | 78 | m_sw(*this, "SW") |
| 79 | 79 | { |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | public: |
| 29 | 29 | // construction/destruction |
| 30 | 30 | a2bus_midi_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 31 | a2bus_midi_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 31 | a2bus_midi_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); | |
| 32 | 32 | |
| 33 | 33 | // optional information overrides |
| 34 | 34 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 16 | 16 | { |
| 17 | 17 | public: |
| 18 | 18 | // construction/destruction |
| 19 | md_std_eeprom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 19 | 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); | |
| 20 | 20 | md_std_eeprom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 21 | 21 | |
| 22 | 22 | // device-level overrides |
| 23 | 23 | virtual void device_start(); |
| 24 | 24 | virtual void device_reset(); |
| 25 | virtual void device_config_complete() { m_shortname = "md_std_eeprom"; } | |
| 26 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| 27 | 26 | |
| 28 | 27 | // reading and writing |
| r22095 | r22096 | |
| 42 | 41 | md_eeprom_nbajam_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 43 | 42 | |
| 44 | 43 | // device-level overrides |
| 45 | virtual void device_config_complete() { m_shortname = "md_eeprom_nbajam"; } | |
| 46 | 44 | virtual machine_config_constructor device_mconfig_additions() const; |
| 47 | 45 | |
| 48 | 46 | // reading and writing |
| r22095 | r22096 | |
| 59 | 57 | md_eeprom_nbajamte_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 60 | 58 | |
| 61 | 59 | // device-level overrides |
| 62 | virtual void device_config_complete() { m_shortname = "md_eeprom_nbajamte"; } | |
| 63 | 60 | virtual machine_config_constructor device_mconfig_additions() const; |
| 64 | 61 | |
| 65 | 62 | // reading and writing |
| r22095 | r22096 | |
| 76 | 73 | md_eeprom_cslam_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 77 | 74 | |
| 78 | 75 | // device-level overrides |
| 79 | virtual void device_config_complete() { m_shortname = "md_eeprom_cslam"; } | |
| 80 | 76 | virtual machine_config_constructor device_mconfig_additions() const; |
| 81 | 77 | |
| 82 | 78 | // reading and writing |
| r22095 | r22096 | |
| 93 | 89 | md_eeprom_nflqb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 94 | 90 | |
| 95 | 91 | // device-level overrides |
| 96 | virtual void device_config_complete() { m_shortname = "md_eeprom_nflqb"; } | |
| 97 | 92 | virtual machine_config_constructor device_mconfig_additions() const; |
| 98 | 93 | |
| 99 | 94 | // reading and writing |
| r22095 | r22096 | |
| 110 | 105 | md_eeprom_nhlpa_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 111 | 106 | |
| 112 | 107 | // device-level overrides |
| 113 | virtual void device_config_complete() { m_shortname = "md_eeprom_nhlpa"; } | |
| 114 | 108 | virtual machine_config_constructor device_mconfig_additions() const; |
| 115 | 109 | |
| 116 | 110 | // reading and writing |
| r22095 | r22096 | |
| 127 | 121 | md_eeprom_blara_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 128 | 122 | |
| 129 | 123 | // device-level overrides |
| 130 | virtual void device_config_complete() { m_shortname = "md_eeprom_blara"; } | |
| 131 | 124 | virtual machine_config_constructor device_mconfig_additions() const; |
| 132 | 125 | |
| 133 | 126 | // reading and writing |
| r22095 | r22096 | |
|---|---|---|
| 47 | 47 | //------------------------------------------------- |
| 48 | 48 | |
| 49 | 49 | vp700_device::vp700_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 50 | device_t(mconfig, VP700, "VP700", tag, owner, clock), | |
| 50 | device_t(mconfig, VP700, "VP700", tag, owner, clock, "vp700", __FILE__), | |
| 51 | 51 | device_vip_expansion_card_interface(mconfig, *this), |
| 52 | 52 | m_rom(*this, "vp700") |
| 53 | 53 | { |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | virtual void device_config_complete() { m_shortname = "c64_sw8k"; } | |
| 40 | 39 | virtual void device_start(); |
| 41 | 40 | virtual void device_reset(); |
| 42 | 41 |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | virtual void device_config_complete() { m_shortname = "vp700"; } | |
| 40 | 39 | virtual void device_start(); |
| 41 | 40 | |
| 42 | 41 | // device_vip_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 130 | 130 | //------------------------------------------------- |
| 131 | 131 | |
| 132 | 132 | kc_d004_device::kc_d004_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 133 | : device_t(mconfig, KC_D004, "D004 Floppy Disk Interface", tag, owner, clock), | |
| 133 | : device_t(mconfig, KC_D004, "D004 Floppy Disk Interface", tag, owner, clock, "kc_d004", __FILE__), | |
| 134 | 134 | device_kcexp_interface( mconfig, *this ), |
| 135 | 135 | m_cpu(*this, Z80_TAG), |
| 136 | 136 | m_fdc(*this, UPD765_TAG), |
| r22095 | r22096 | |
| 138 | 138 | { |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | kc_d004_device::kc_d004_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 142 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 141 | kc_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) | |
| 142 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 143 | 143 | device_kcexp_interface( mconfig, *this ), |
| 144 | 144 | m_cpu(*this, Z80_TAG), |
| 145 | 145 | m_fdc(*this, UPD765_TAG), |
| r22095 | r22096 | |
| 389 | 389 | //------------------------------------------------- |
| 390 | 390 | |
| 391 | 391 | kc_d004_gide_device::kc_d004_gide_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 392 | : kc_d004_device(mconfig, KC_D004, "D004 Floppy Disk + GIDE Interface", tag, owner, clock), | |
| 392 | : kc_d004_device(mconfig, KC_D004, "D004 Floppy Disk + GIDE Interface", tag, owner, clock, "kc_d004gide", __FILE__), | |
| 393 | 393 | m_ide(*this, IDE_TAG) |
| 394 | 394 | { |
| 395 | 395 | } |
| r22095 | r22096 | |
|---|---|---|
| 108 | 108 | //------------------------------------------------- |
| 109 | 109 | |
| 110 | 110 | c64_swiftlink_cartridge_device::c64_swiftlink_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 111 | device_t(mconfig, C64_SWIFTLINK, "C64 SwiftLink cartridge", tag, owner, clock), | |
| 111 | device_t(mconfig, C64_SWIFTLINK, "C64 SwiftLink cartridge", tag, owner, clock, "c64_swiftlink", __FILE__), | |
| 112 | 112 | device_c64_expansion_card_interface(mconfig, *this), |
| 113 | 113 | m_acia(*this, MOS6551_TAG), |
| 114 | 114 | m_io_cs(*this, "CS"), |
| r22095 | r22096 | |
|---|---|---|
| 65 | 65 | //------------------------------------------------- |
| 66 | 66 | |
| 67 | 67 | c64_final3_cartridge_device::c64_final3_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 68 | device_t(mconfig, C64_FINAL3, "C64 Final Cartridge III", tag, owner, clock), | |
| 68 | device_t(mconfig, C64_FINAL3, "C64 Final Cartridge III", tag, owner, clock, "c64_final3", __FILE__), | |
| 69 | 69 | device_c64_expansion_card_interface(mconfig, *this) |
| 70 | 70 | { |
| 71 | 71 | } |
| r22095 | r22096 | |
|---|---|---|
| 26 | 26 | public: |
| 27 | 27 | // construction/destruction |
| 28 | 28 | kc_d004_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 29 | kc_d004_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 29 | 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); | |
| 30 | 30 | |
| 31 | 31 | // optional information overrides |
| 32 | 32 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
| 39 | 39 | virtual void device_start(); |
| 40 | 40 | virtual void device_reset(); |
| 41 | 41 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 42 | virtual void device_config_complete() { m_shortname = "kc_d004"; } | |
| 43 | 42 | |
| 44 | 43 | // kcexp_interface overrides |
| 45 | 44 | virtual UINT8 module_id_r() { return 0xa7; } |
| r22095 | r22096 | |
| 95 | 94 | protected: |
| 96 | 95 | // device-level overrides |
| 97 | 96 | virtual void device_reset(); |
| 98 | virtual void device_config_complete() { m_shortname = "kc_d004gide"; } | |
| 99 | 97 | |
| 100 | 98 | public: |
| 101 | 99 | DECLARE_READ8_MEMBER(gide_r); |
| r22095 | r22096 | |
|---|---|---|
| 42 | 42 | |
| 43 | 43 | protected: |
| 44 | 44 | // device-level overrides |
| 45 | virtual void device_config_complete() { m_shortname = "c64_swiftlink"; } | |
| 46 | 45 | virtual void device_start(); |
| 47 | 46 | virtual void device_reset(); |
| 48 | 47 |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| 41 | virtual void device_config_complete() { m_shortname = "c64_final3"; } | |
| 42 | 41 | virtual void device_start(); |
| 43 | 42 | virtual void device_reset(); |
| 44 | 43 |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | vic10_standard_cartridge_device::vic10_standard_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 31 | : device_t(mconfig, VIC10_STD, "VIC-10 Standard Cartridge", tag, owner, clock), | |
| 31 | : device_t(mconfig, VIC10_STD, "VIC-10 Standard Cartridge", tag, owner, clock, "vic10_standard", __FILE__), | |
| 32 | 32 | device_vic10_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 186 | 186 | //------------------------------------------------- |
| 187 | 187 | // coco_fdc_device - constructor |
| 188 | 188 | //------------------------------------------------- |
| 189 | coco_fdc_device::coco_fdc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 190 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 189 | coco_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) | |
| 190 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 191 | 191 | device_cococart_interface( mconfig, *this ) |
| 192 | 192 | { |
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | coco_fdc_device::coco_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 196 | : device_t(mconfig, COCO_FDC, "CoCo FDC", tag, owner, clock), | |
| 196 | : device_t(mconfig, COCO_FDC, "CoCo FDC", tag, owner, clock, "coco_fdc", __FILE__), | |
| 197 | 197 | device_cococart_interface( mconfig, *this ) |
| 198 | 198 | { |
| 199 | 199 | } |
| r22095 | r22096 | |
| 215 | 215 | } |
| 216 | 216 | |
| 217 | 217 | //------------------------------------------------- |
| 218 | // device_config_complete - perform any | |
| 219 | // operations now that the configuration is | |
| 220 | // complete | |
| 221 | //------------------------------------------------- | |
| 222 | ||
| 223 | void coco_fdc_device::device_config_complete() | |
| 224 | { | |
| 225 | m_shortname = "coco_fdc"; | |
| 226 | } | |
| 227 | //------------------------------------------------- | |
| 228 | 218 | // machine_config_additions - device-specific |
| 229 | 219 | // machine configurations |
| 230 | 220 | //------------------------------------------------- |
| r22095 | r22096 | |
| 449 | 439 | //------------------------------------------------- |
| 450 | 440 | // dragon_fdc_device - constructor |
| 451 | 441 | //------------------------------------------------- |
| 452 | dragon_fdc_device::dragon_fdc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 453 | : coco_fdc_device(mconfig, type, name, tag, owner, clock) | |
| 442 | dragon_fdc_device::dragon_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) | |
| 443 | : coco_fdc_device(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 454 | 444 | { |
| 455 | 445 | } |
| 456 | 446 | dragon_fdc_device::dragon_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 457 | : coco_fdc_device(mconfig, DRAGON_FDC, "Dragon FDC", tag, owner, clock) | |
| 447 | : coco_fdc_device(mconfig, DRAGON_FDC, "Dragon FDC", tag, owner, clock, "dragon_fdc", __FILE__) | |
| 458 | 448 | { |
| 459 | 449 | } |
| 460 | 450 | |
| r22095 | r22096 | |
| 473 | 463 | } |
| 474 | 464 | |
| 475 | 465 | //------------------------------------------------- |
| 476 | // device_config_complete - perform any | |
| 477 | // operations now that the configuration is | |
| 478 | // complete | |
| 479 | //------------------------------------------------- | |
| 480 | ||
| 481 | void dragon_fdc_device::device_config_complete() | |
| 482 | { | |
| 483 | m_shortname = "dragon_fdc"; | |
| 484 | } | |
| 485 | //------------------------------------------------- | |
| 486 | 466 | // machine_config_additions - device-specific |
| 487 | 467 | // machine configurations |
| 488 | 468 | //------------------------------------------------- |
| r22095 | r22096 | |
| 625 | 605 | //------------------------------------------------- |
| 626 | 606 | |
| 627 | 607 | sdtandy_fdc_device::sdtandy_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 628 | : dragon_fdc_device(mconfig, SDTANDY_FDC, "SDTANDY FDC", tag, owner, clock) | |
| 608 | : dragon_fdc_device(mconfig, SDTANDY_FDC, "SDTANDY FDC", tag, owner, clock, "sdtandy_fdc", __FILE__) | |
| 629 | 609 | { |
| 630 | 610 | } |
| 631 | 611 | |
| 632 | 612 | //------------------------------------------------- |
| 633 | // device_config_complete - perform any | |
| 634 | // operations now that the configuration is | |
| 635 | // complete | |
| 636 | //------------------------------------------------- | |
| 637 | ||
| 638 | void sdtandy_fdc_device::device_config_complete() | |
| 639 | { | |
| 640 | m_shortname = "sdtandy_fdc"; | |
| 641 | } | |
| 642 | ||
| 643 | //------------------------------------------------- | |
| 644 | 613 | // rom_region - device-specific ROM region |
| 645 | 614 | //------------------------------------------------- |
| 646 | 615 | |
| r22095 | r22096 | |
| 668 | 637 | //------------------------------------------------- |
| 669 | 638 | |
| 670 | 639 | coco_fdc_v11_device::coco_fdc_v11_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 671 | : coco_fdc_device(mconfig, COCO_FDC_V11, "CoCo FDC v1.1", tag, owner, clock) | |
| 640 | : coco_fdc_device(mconfig, COCO_FDC_V11, "CoCo FDC v1.1", tag, owner, clock, "coco_fdc_v11", __FILE__) | |
| 672 | 641 | { |
| 673 | 642 | } |
| 674 | 643 | |
| 675 | 644 | //------------------------------------------------- |
| 676 | // device_config_complete - perform any | |
| 677 | // operations now that the configuration is | |
| 678 | // complete | |
| 679 | //------------------------------------------------- | |
| 680 | ||
| 681 | void coco_fdc_v11_device::device_config_complete() | |
| 682 | { | |
| 683 | m_shortname = "coco_fdc_v11"; | |
| 684 | } | |
| 685 | ||
| 686 | //------------------------------------------------- | |
| 687 | 645 | // rom_region - device-specific ROM region |
| 688 | 646 | //------------------------------------------------- |
| 689 | 647 | |
| r22095 | r22096 | |
| 708 | 666 | //------------------------------------------------- |
| 709 | 667 | |
| 710 | 668 | cp400_fdc_device::cp400_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 711 | : coco_fdc_device(mconfig, CP400_FDC, "CP400 FDC", tag, owner, clock) | |
| 669 | : coco_fdc_device(mconfig, CP400_FDC, "CP400 FDC", tag, owner, clock, "cp400_fdc", __FILE__) | |
| 712 | 670 | { |
| 713 | 671 | } |
| 714 | 672 | |
| 715 | 673 | //------------------------------------------------- |
| 716 | // device_config_complete - perform any | |
| 717 | // operations now that the configuration is | |
| 718 | // complete | |
| 719 | //------------------------------------------------- | |
| 720 | ||
| 721 | void cp400_fdc_device::device_config_complete() | |
| 722 | { | |
| 723 | m_shortname = "cp400_fdc"; | |
| 724 | } | |
| 725 | ||
| 726 | //------------------------------------------------- | |
| 727 | 674 | // rom_region - device-specific ROM region |
| 728 | 675 | //------------------------------------------------- |
| 729 | 676 |
| r22095 | r22096 | |
|---|---|---|
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | 36 | virtual void device_start(); |
| 37 | virtual void device_config_complete() { m_shortname = "vic10_standard"; } | |
| 38 | 37 | |
| 39 | 38 | // device_vic10_expansion_card_interface overrides |
| 40 | 39 | virtual UINT8 vic10_cd_r(address_space &space, offs_t offset, UINT8 data, int lorom, int uprom, int exram); |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_magic_desk_cartridge_device::c64_magic_desk_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_MAGIC_DESK, "C64 Magic Desk cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_MAGIC_DESK, "C64 Magic Desk cartridge", tag, owner, clock, "c64_magic_desk", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 30 | 30 | public: |
| 31 | 31 | // construction/destruction |
| 32 | 32 | coco_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 33 | coco_fdc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 33 | 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); | |
| 34 | 34 | |
| 35 | 35 | // optional information overrides |
| 36 | 36 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
| 46 | 46 | protected: |
| 47 | 47 | // device-level overrides |
| 48 | 48 | virtual void device_start(); |
| 49 | virtual void device_config_complete(); | |
| 50 | 49 | virtual DECLARE_READ8_MEMBER(read); |
| 51 | 50 | virtual DECLARE_WRITE8_MEMBER(write); |
| 52 | 51 | |
| r22095 | r22096 | |
| 82 | 81 | |
| 83 | 82 | // optional information overrides |
| 84 | 83 | virtual const rom_entry *device_rom_region() const; |
| 85 | protected: | |
| 86 | // device-level overrides | |
| 87 | virtual void device_config_complete(); | |
| 88 | 84 | }; |
| 89 | 85 | |
| 90 | 86 | |
| r22095 | r22096 | |
| 102 | 98 | |
| 103 | 99 | // optional information overrides |
| 104 | 100 | virtual const rom_entry *device_rom_region() const; |
| 105 | protected: | |
| 106 | // device-level overrides | |
| 107 | virtual void device_config_complete(); | |
| 108 | 101 | }; |
| 109 | 102 | |
| 110 | 103 | |
| r22095 | r22096 | |
| 119 | 112 | public: |
| 120 | 113 | // construction/destruction |
| 121 | 114 | dragon_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 122 | dragon_fdc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 115 | dragon_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); | |
| 123 | 116 | |
| 124 | 117 | // optional information overrides |
| 125 | 118 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
| 129 | 122 | protected: |
| 130 | 123 | // device-level overrides |
| 131 | 124 | virtual void device_start(); |
| 132 | virtual void device_config_complete(); | |
| 133 | 125 | virtual DECLARE_READ8_MEMBER(read); |
| 134 | 126 | virtual DECLARE_WRITE8_MEMBER(write); |
| 135 | 127 | private: |
| r22095 | r22096 | |
| 150 | 142 | |
| 151 | 143 | // optional information overrides |
| 152 | 144 | virtual const rom_entry *device_rom_region() const; |
| 153 | protected: | |
| 154 | // device-level overrides | |
| 155 | virtual void device_config_complete(); | |
| 156 | 145 | }; |
| 157 | 146 | |
| 158 | 147 |
| r22095 | r22096 | |
|---|---|---|
| 50 | 50 | //------------------------------------------------- |
| 51 | 51 | |
| 52 | 52 | c64_pagefox_cartridge_device::c64_pagefox_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 53 | device_t(mconfig, C64_PAGEFOX, "C64 Pagefox cartridge", tag, owner, clock), | |
| 53 | device_t(mconfig, C64_PAGEFOX, "C64 Pagefox cartridge", tag, owner, clock, "c64_pagefox", __FILE__), | |
| 54 | 54 | device_c64_expansion_card_interface(mconfig, *this) |
| 55 | 55 | { |
| 56 | 56 | } |
| r22095 | r22096 | |
|---|---|---|
| 40 | 40 | //------------------------------------------------- |
| 41 | 41 | |
| 42 | 42 | z88_1024k_flash_device::z88_1024k_flash_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 43 | : device_t(mconfig, Z88_1024K_FLASH, "Z88 1024KB Flash", tag, owner, clock), | |
| 43 | : device_t(mconfig, Z88_1024K_FLASH, "Z88 1024KB Flash", tag, owner, clock, "z88_1024k_flash", __FILE__), | |
| 44 | 44 | device_z88cart_interface( mconfig, *this ), |
| 45 | 45 | m_flash(*this, FLASH_TAG) |
| 46 | 46 | { |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_magic_desk"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_pagefox"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 |
| r22095 | r22096 | |
|---|---|---|
| 58 | 58 | //------------------------------------------------- |
| 59 | 59 | |
| 60 | 60 | vcs_joystick_booster_device::vcs_joystick_booster_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 61 | device_t(mconfig, VCS_JOYSTICK_BOOSTER, "Digital joystick with Boostergrip", tag, owner, clock), | |
| 61 | device_t(mconfig, VCS_JOYSTICK_BOOSTER, "Digital joystick with Boostergrip", tag, owner, clock, "vcs_joystick_booster", __FILE__), | |
| 62 | 62 | device_vcs_control_port_interface(mconfig, *this), |
| 63 | 63 | m_joy(*this, "JOY"), |
| 64 | 64 | m_potx(*this, "POTX"), |
| r22095 | r22096 | |
|---|---|---|
| 26 | 26 | protected: |
| 27 | 27 | // device-level overrides |
| 28 | 28 | virtual void device_start(); |
| 29 | virtual void device_config_complete() { m_shortname = "z88_1024k_flash"; } | |
| 30 | 29 | |
| 31 | 30 | // z88cart_interface overrides |
| 32 | 31 | virtual DECLARE_READ8_MEMBER(read); |
| r22095 | r22096 | |
|---|---|---|
| 100 | 100 | //------------------------------------------------- |
| 101 | 101 | |
| 102 | 102 | adam_spi_device::adam_spi_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 103 | : device_t(mconfig, ADAM_SPI, "Adam SPI", tag, owner, clock), | |
| 103 | : device_t(mconfig, ADAM_SPI, "Adam SPI", tag, owner, clock, "adam_spi", __FILE__), | |
| 104 | 104 | device_adamnet_card_interface(mconfig, *this), |
| 105 | 105 | m_maincpu(*this, M6801_TAG) |
| 106 | 106 | { |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | |
| 38 | 38 | protected: |
| 39 | 39 | // device-level overrides |
| 40 | virtual void device_config_complete() { m_shortname = "vcs_joystick_booster"; } | |
| 41 | 40 | virtual void device_start(); |
| 42 | 41 | |
| 43 | 42 | // device_vcs_control_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | const device_type SNS_HIROM_SPC7110_RTC = &device_creator<sns_rom_spc7110rtc_device>; |
| 29 | 29 | |
| 30 | 30 | |
| 31 | sns_rom_spc7110_device::sns_rom_spc7110_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 32 | : sns_rom21_device(mconfig, type, name, tag, owner, clock) | |
| 31 | sns_rom_spc7110_device::sns_rom_spc7110_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) | |
| 32 | : sns_rom21_device(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 33 | 33 | { |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | sns_rom_spc7110_device::sns_rom_spc7110_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 37 | : sns_rom21_device(mconfig, SNS_HIROM_SPC7110, "SNES Cart + SPC-7110", tag, owner, clock) | |
| 37 | : sns_rom21_device(mconfig, SNS_HIROM_SPC7110, "SNES Cart + SPC-7110", tag, owner, clock, "sns_rom_spc7110", __FILE__) | |
| 38 | 38 | { |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | sns_rom_spc7110rtc_device::sns_rom_spc7110rtc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 42 | : sns_rom_spc7110_device(mconfig, SNS_HIROM_SPC7110_RTC, "SNES Cart + SPC-7110 + RTC", tag, owner, clock) | |
| 42 | : sns_rom_spc7110_device(mconfig, SNS_HIROM_SPC7110_RTC, "SNES Cart + SPC-7110 + RTC", tag, owner, clock, "sns_rom_spc7110rtc", __FILE__) | |
| 43 | 43 | { |
| 44 | 44 | } |
| 45 | 45 |
| r22095 | r22096 | |
|---|---|---|
| 41 | 41 | |
| 42 | 42 | protected: |
| 43 | 43 | // device-level overrides |
| 44 | virtual void device_config_complete() { m_shortname = "adam_spi"; } | |
| 45 | 44 | virtual void device_start(); |
| 46 | 45 | |
| 47 | 46 | // device_adamnet_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 72 | 72 | { |
| 73 | 73 | public: |
| 74 | 74 | // construction/destruction |
| 75 | sns_rom_spc7110_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 75 | 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); | |
| 76 | 76 | sns_rom_spc7110_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 77 | 77 | |
| 78 | 78 | // device-level overrides |
| 79 | 79 | virtual void device_start(); |
| 80 | virtual void device_config_complete() { m_shortname = "sns_rom_spc7110"; } | |
| 81 | 80 | |
| 82 | 81 | // reading and writing |
| 83 | 82 | virtual DECLARE_READ8_MEMBER(read_l); |
| r22095 | r22096 | |
| 194 | 193 | |
| 195 | 194 | // device-level overrides |
| 196 | 195 | virtual void device_start(); |
| 197 | virtual void device_config_complete() { m_shortname = "sns_rom_spc7110rtc"; } | |
| 198 | 196 | |
| 199 | 197 | // reading and writing |
| 200 | 198 |
| r22095 | r22096 | |
|---|---|---|
| 304 | 304 | //------------------------------------------------- |
| 305 | 305 | |
| 306 | 306 | v1050_keyboard_device::v1050_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 307 | : device_t(mconfig, V1050_KEYBOARD, "Visual 1050 Keyboard", tag, owner, clock), | |
| 307 | : device_t(mconfig, V1050_KEYBOARD, "Visual 1050 Keyboard", tag, owner, clock, "v1050kb", __FILE__), | |
| 308 | 308 | m_maincpu(*this, I8049_TAG), |
| 309 | 309 | m_discrete(*this, DISCRETE_TAG), |
| 310 | 310 | m_y0(*this, "Y0"), |
| r22095 | r22096 | |
|---|---|---|
| 131 | 131 | //------------------------------------------------- |
| 132 | 132 | |
| 133 | 133 | coco_multipak_device::coco_multipak_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 134 | : device_t(mconfig, COCO_MULTIPAK, "CoCo Multi-Pak Interface", tag, owner, clock), | |
| 134 | : device_t(mconfig, COCO_MULTIPAK, "CoCo Multi-Pak Interface", tag, owner, clock, "coco_multipak", __FILE__), | |
| 135 | 135 | device_cococart_interface( mconfig, *this ) |
| 136 | 136 | { |
| 137 | 137 | } |
| r22095 | r22096 | |
|---|---|---|
| 69 | 69 | // device-level overrides |
| 70 | 70 | virtual void device_start(); |
| 71 | 71 | virtual void device_reset(); |
| 72 | virtual void device_config_complete() { m_shortname = "v1050kb"; } | |
| 73 | 72 | |
| 74 | 73 | private: |
| 75 | 74 | required_device<cpu_device> m_maincpu; |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_kingsoft_cartridge_device::c64_kingsoft_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_KINGSOFT, "C64 Kingsoft cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_KINGSOFT, "C64 Kingsoft cartridge", tag, owner, clock, "c64_kingsoft", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 39 | 39 | // device-level overrides |
| 40 | 40 | virtual void device_start(); |
| 41 | 41 | virtual void device_reset(); |
| 42 | virtual void device_config_complete() { m_shortname = "coco_multipak"; } | |
| 43 | 42 | virtual DECLARE_READ8_MEMBER(read); |
| 44 | 43 | virtual DECLARE_WRITE8_MEMBER(write); |
| 45 | 44 |
| r22095 | r22096 | |
|---|---|---|
| 45 | 45 | //------------------------------------------------- |
| 46 | 46 | |
| 47 | 47 | wangpc_emb_device::wangpc_emb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 48 | device_t(mconfig, WANGPC_EMB, "Wang PC-PM031-B", tag, owner, clock), | |
| 48 | device_t(mconfig, WANGPC_EMB, "Wang PC-PM031-B", tag, owner, clock, "wangpc_emb", __FILE__), | |
| 49 | 49 | device_wangpcbus_card_interface(mconfig, *this), |
| 50 | 50 | m_ram(*this, "ram") |
| 51 | 51 | { |
| r22095 | r22096 | |
|---|---|---|
| 90 | 90 | //------------------------------------------------- |
| 91 | 91 | |
| 92 | 92 | c64_dela_ep256_cartridge_device::c64_dela_ep256_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 93 | device_t(mconfig, C64_DELA_EP256, "C64 Dela 256KB EPROM cartridge", tag, owner, clock), | |
| 93 | device_t(mconfig, C64_DELA_EP256, "C64 Dela 256KB EPROM cartridge", tag, owner, clock, "delep256", __FILE__), | |
| 94 | 94 | device_c64_expansion_card_interface(mconfig, *this), |
| 95 | 95 | m_eprom(*this, "eprom") |
| 96 | 96 | { |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_kingsoft"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 |
| r22095 | r22096 | |
|---|---|---|
| 63 | 63 | //------------------------------------------------- |
| 64 | 64 | |
| 65 | 65 | c64_4tba_device::c64_4tba_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 66 | device_t(mconfig, C64_4TBA, "C64 Tie Break Adapter", tag, owner, clock), | |
| 66 | device_t(mconfig, C64_4TBA, "C64 Tie Break Adapter", tag, owner, clock, "c64_4tba", __FILE__), | |
| 67 | 67 | device_c64_user_port_interface(mconfig, *this), |
| 68 | 68 | m_pb(*this, "PB"), |
| 69 | 69 | m_pa2(*this, "PA2") |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | //------------------------------------------------- |
| 38 | 38 | |
| 39 | 39 | coco_orch90_device::coco_orch90_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 40 | : device_t(mconfig, COCO_ORCH90, "CoCo Orch-90 PAK", tag, owner, clock), | |
| 40 | : device_t(mconfig, COCO_ORCH90, "CoCo Orch-90 PAK", tag, owner, clock, "coco_orch90", __FILE__), | |
| 41 | 41 | device_cococart_interface( mconfig, *this ) |
| 42 | 42 | { |
| 43 | 43 | } |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | // device-level overrides |
| 36 | 36 | virtual void device_start(); |
| 37 | 37 | virtual void device_reset(); |
| 38 | virtual void device_config_complete() { m_shortname = "wangpc_emb"; } | |
| 39 | 38 | |
| 40 | 39 | // device_wangpcbus_card_interface overrides |
| 41 | 40 | virtual UINT16 wangpcbus_mrdc_r(address_space &space, offs_t offset, UINT16 mem_mask); |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| 41 | virtual void device_config_complete() { m_shortname = "delep256"; } | |
| 42 | 41 | virtual void device_start(); |
| 43 | 42 | virtual void device_reset(); |
| 44 | 43 |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | virtual void device_config_complete() { m_shortname = "c64_4tba"; } | |
| 40 | 39 | virtual void device_start(); |
| 41 | 40 | |
| 42 | 41 | // device_c64_user_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 26 | 26 | protected: |
| 27 | 27 | // device-level overrides |
| 28 | 28 | virtual void device_start(); |
| 29 | virtual void device_config_complete() { m_shortname = "coco_orch90"; } | |
| 30 | 29 | virtual DECLARE_WRITE8_MEMBER(write); |
| 31 | 30 | private: |
| 32 | 31 | // internal state |
| r22095 | r22096 | |
|---|---|---|
| 68 | 68 | //------------------------------------------------- |
| 69 | 69 | |
| 70 | 70 | vp620_device::vp620_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 71 | device_t(mconfig, VP620, "VP620", tag, owner, clock), | |
| 71 | device_t(mconfig, VP620, "VP620", tag, owner, clock, "vp620", __FILE__), | |
| 72 | 72 | device_vip_byteio_port_interface(mconfig, *this), |
| 73 | 73 | m_keydata(0), |
| 74 | 74 | m_keystb(CLEAR_LINE) |
| r22095 | r22096 | |
|---|---|---|
| 39 | 39 | |
| 40 | 40 | protected: |
| 41 | 41 | // device-level overrides |
| 42 | virtual void device_config_complete() { m_shortname = "vp620"; } | |
| 43 | 42 | virtual void device_start(); |
| 44 | 43 | |
| 45 | 44 | // device_vip_byteio_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 160 | 160 | //------------------------------------------------- |
| 161 | 161 | |
| 162 | 162 | softbox_device::softbox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 163 | : device_t(mconfig, SOFTBOX, "SoftBox", tag, owner, clock), | |
| 163 | : device_t(mconfig, SOFTBOX, "SoftBox", tag, owner, clock, "softbox", __FILE__), | |
| 164 | 164 | device_ieee488_interface(mconfig, *this), |
| 165 | 165 | m_maincpu(*this, Z80_TAG) |
| 166 | 166 | { |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | const device_type SATURN_BRAM_32MB = &device_creator<saturn_bram32mb_device>; |
| 20 | 20 | |
| 21 | 21 | |
| 22 | saturn_bram_device::saturn_bram_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 size) | |
| 23 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 22 | saturn_bram_device::saturn_bram_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 size, const char *shortname, const char *source) | |
| 23 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 24 | 24 | device_sat_cart_interface( mconfig, *this ), |
| 25 | 25 | device_nvram_interface(mconfig, *this), |
| 26 | 26 | m_size(size) |
| r22095 | r22096 | |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | saturn_bram4mb_device::saturn_bram4mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 31 | : saturn_bram_device(mconfig, SATURN_BRAM_4MB, "Saturn Battery RAM 4Mbit Cart", tag, owner, clock, 0x80000) | |
| 31 | : saturn_bram_device(mconfig, SATURN_BRAM_4MB, "Saturn Battery RAM 4Mbit Cart", tag, owner, clock, 0x80000, "sat_bram_4mb", __FILE__) | |
| 32 | 32 | { |
| 33 | 33 | m_cart_type = 0x21; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | saturn_bram8mb_device::saturn_bram8mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 37 | : saturn_bram_device(mconfig, SATURN_BRAM_8MB, "Saturn Battery RAM 8Mbit Cart", tag, owner, clock, 0x100000) | |
| 37 | : saturn_bram_device(mconfig, SATURN_BRAM_8MB, "Saturn Battery RAM 8Mbit Cart", tag, owner, clock, 0x100000, "sat_bram_8mb", __FILE__) | |
| 38 | 38 | { |
| 39 | 39 | m_cart_type = 0x22; |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | saturn_bram16mb_device::saturn_bram16mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 43 | : saturn_bram_device(mconfig, SATURN_BRAM_16MB, "Saturn Battery RAM 16Mbit Cart", tag, owner, clock, 0x200000) | |
| 43 | : saturn_bram_device(mconfig, SATURN_BRAM_16MB, "Saturn Battery RAM 16Mbit Cart", tag, owner, clock, 0x200000, "sat_bram_16mb", __FILE__) | |
| 44 | 44 | { |
| 45 | 45 | m_cart_type = 0x23; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | saturn_bram32mb_device::saturn_bram32mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 49 | : saturn_bram_device(mconfig, SATURN_BRAM_32MB, "Saturn Battery RAM 32Mbit Cart", tag, owner, clock, 0x400000) | |
| 49 | : saturn_bram_device(mconfig, SATURN_BRAM_32MB, "Saturn Battery RAM 32Mbit Cart", tag, owner, clock, 0x400000, "sat_bram_32mb", __FILE__) | |
| 50 | 50 | { |
| 51 | 51 | m_cart_type = 0x24; |
| 52 | 52 | } |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | // device-level overrides |
| 44 | 44 | virtual void device_start(); |
| 45 | 45 | virtual void device_reset(); |
| 46 | virtual void device_config_complete() { m_shortname = "softbox"; } | |
| 47 | 46 | |
| 48 | 47 | // device_ieee488_interface overrides |
| 49 | 48 | void ieee488_atn(int state); |
| r22095 | r22096 | |
|---|---|---|
| 1289 | 1289 | |
| 1290 | 1290 | |
| 1291 | 1291 | isa16_gus_device::isa16_gus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1292 | : device_t(mconfig, ISA16_GUS, "Gravis Ultrasound", tag, owner, clock), | |
| 1292 | : device_t(mconfig, ISA16_GUS, "Gravis Ultrasound", tag, owner, clock, "isa_gus", __FILE__), | |
| 1293 | 1293 | device_isa16_card_interface( mconfig, *this ) |
| 1294 | 1294 | { |
| 1295 | 1295 | } |
| r22095 | r22096 | |
|---|---|---|
| 12 | 12 | { |
| 13 | 13 | public: |
| 14 | 14 | // construction/destruction |
| 15 | saturn_bram_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 size); | |
| 15 | saturn_bram_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 size, const char *shortname, const char *source); | |
| 16 | 16 | |
| 17 | 17 | // device-level overrides |
| 18 | 18 | virtual void device_start(); |
| 19 | 19 | virtual void device_reset(); |
| 20 | virtual void device_config_complete() { m_shortname = "sat_bram"; } | |
| 21 | 20 | |
| 22 | 21 | // device_nvram_interface overrides |
| 23 | 22 | virtual void nvram_default() { } |
| r22095 | r22096 | |
| 36 | 35 | public: |
| 37 | 36 | // construction/destruction |
| 38 | 37 | saturn_bram4mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 39 | ||
| 40 | // device-level overrides | |
| 41 | virtual void device_config_complete() { m_shortname = "sat_bram_4mb"; } | |
| 42 | 38 | }; |
| 43 | 39 | |
| 44 | 40 | class saturn_bram8mb_device : public saturn_bram_device |
| r22095 | r22096 | |
| 46 | 42 | public: |
| 47 | 43 | // construction/destruction |
| 48 | 44 | saturn_bram8mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 49 | ||
| 50 | // device-level overrides | |
| 51 | virtual void device_config_complete() { m_shortname = "sat_bram_8mb"; } | |
| 52 | 45 | }; |
| 53 | 46 | |
| 54 | 47 | class saturn_bram16mb_device : public saturn_bram_device |
| r22095 | r22096 | |
| 56 | 49 | public: |
| 57 | 50 | // construction/destruction |
| 58 | 51 | saturn_bram16mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 59 | ||
| 60 | // device-level overrides | |
| 61 | virtual void device_config_complete() { m_shortname = "sat_bram_16mb"; } | |
| 62 | 52 | }; |
| 63 | 53 | |
| 64 | 54 | class saturn_bram32mb_device : public saturn_bram_device |
| r22095 | r22096 | |
| 66 | 56 | public: |
| 67 | 57 | // construction/destruction |
| 68 | 58 | saturn_bram32mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 69 | ||
| 70 | // device-level overrides | |
| 71 | virtual void device_config_complete() { m_shortname = "sat_bram_32mb"; } | |
| 72 | 59 | }; |
| 73 | 60 | |
| 74 | 61 |
| r22095 | r22096 | |
|---|---|---|
| 271 | 271 | virtual void device_start(); |
| 272 | 272 | virtual void device_reset(); |
| 273 | 273 | virtual void device_stop(); |
| 274 | virtual void device_config_complete() { m_shortname = "isa_gus"; } | |
| 275 | 274 | private: |
| 276 | 275 | gf1_device* m_gf1; |
| 277 | 276 | acia6850_device* m_midi; |
| r22095 | r22096 | |
|---|---|---|
| 47 | 47 | |
| 48 | 48 | |
| 49 | 49 | //------------------------------------------------- |
| 50 | // device_config_complete - perform any | |
| 51 | // operations now that the configuration is | |
| 52 | // complete | |
| 53 | //------------------------------------------------- | |
| 54 | ||
| 55 | void c1581_device::device_config_complete() | |
| 56 | { | |
| 57 | switch (m_variant) | |
| 58 | { | |
| 59 | default: | |
| 60 | case TYPE_1581: | |
| 61 | m_shortname = "c1581"; | |
| 62 | break; | |
| 63 | ||
| 64 | case TYPE_1563: | |
| 65 | m_shortname = "c1563"; | |
| 66 | break; | |
| 67 | } | |
| 68 | } | |
| 69 | ||
| 70 | ||
| 71 | //------------------------------------------------- | |
| 72 | 50 | // ROM( c1581 ) |
| 73 | 51 | //------------------------------------------------- |
| 74 | 52 | |
| r22095 | r22096 | |
| 329 | 307 | // c1581_device - constructor |
| 330 | 308 | //------------------------------------------------- |
| 331 | 309 | |
| 332 | c1581_device::c1581_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) | |
| 333 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 310 | c1581_device::c1581_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source) | |
| 311 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 334 | 312 | device_cbm_iec_interface(mconfig, *this), |
| 335 | 313 | m_maincpu(*this, M6502_TAG), |
| 336 | 314 | m_cia(*this, M8520_TAG), |
| r22095 | r22096 | |
| 346 | 324 | } |
| 347 | 325 | |
| 348 | 326 | c1581_device::c1581_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 349 | : device_t(mconfig, C1581, "C1581", tag, owner, clock), | |
| 327 | : device_t(mconfig, C1581, "C1581", tag, owner, clock, "c1581", __FILE__), | |
| 350 | 328 | device_cbm_iec_interface(mconfig, *this), |
| 351 | 329 | m_maincpu(*this, M6502_TAG), |
| 352 | 330 | m_cia(*this, M8520_TAG), |
| r22095 | r22096 | |
| 367 | 345 | //------------------------------------------------- |
| 368 | 346 | |
| 369 | 347 | c1563_device::c1563_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 370 | : c1581_device(mconfig, C1563, "C1563", tag, owner, clock, TYPE_1563) { } | |
| 348 | : c1581_device(mconfig, C1563, "C1563", tag, owner, clock, TYPE_1563, "c1563", __FILE__) { } | |
| 371 | 349 | |
| 372 | 350 | |
| 373 | 351 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 41 | 41 | { |
| 42 | 42 | public: |
| 43 | 43 | // construction/destruction |
| 44 | c1581_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); | |
| 44 | c1581_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source); | |
| 45 | 45 | c1581_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 46 | 46 | |
| 47 | 47 | enum |
| r22095 | r22096 | |
| 66 | 66 | |
| 67 | 67 | protected: |
| 68 | 68 | // device-level overrides |
| 69 | virtual void device_config_complete(); | |
| 70 | 69 | virtual void device_start(); |
| 71 | 70 | virtual void device_reset(); |
| 72 | 71 |
| r22095 | r22096 | |
|---|---|---|
| 30 | 30 | //------------------------------------------------- |
| 31 | 31 | |
| 32 | 32 | z88_32k_rom_device::z88_32k_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 33 | : device_t(mconfig, Z88_32K_ROM, "Z88 32KB ROM", tag, owner, clock), | |
| 33 | : device_t(mconfig, Z88_32K_ROM, "Z88 32KB ROM", tag, owner, clock, "z88_32k_rom", __FILE__), | |
| 34 | 34 | device_z88cart_interface( mconfig, *this ) |
| 35 | 35 | { |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | z88_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) | |
| 39 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 38 | z88_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) | |
| 39 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 40 | 40 | device_z88cart_interface( mconfig, *this ) |
| 41 | 41 | { |
| 42 | 42 | } |
| r22095 | r22096 | |
| 46 | 46 | //------------------------------------------------- |
| 47 | 47 | |
| 48 | 48 | z88_128k_rom_device::z88_128k_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 49 | : z88_32k_rom_device(mconfig, Z88_128K_ROM, "Z88 128KB ROM", tag, owner, clock) | |
| 49 | : z88_32k_rom_device(mconfig, Z88_128K_ROM, "Z88 128KB ROM", tag, owner, clock, "z88_128k_rom", __FILE__) | |
| 50 | 50 | { |
| 51 | 51 | } |
| 52 | 52 | |
| r22095 | r22096 | |
| 55 | 55 | //------------------------------------------------- |
| 56 | 56 | |
| 57 | 57 | z88_256k_rom_device::z88_256k_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 58 | : z88_32k_rom_device(mconfig, Z88_256K_ROM, "Z88 256KB ROM", tag, owner, clock) | |
| 58 | : z88_32k_rom_device(mconfig, Z88_256K_ROM, "Z88 256KB ROM", tag, owner, clock, "z88_256k_rom", __FILE__) | |
| 59 | 59 | { |
| 60 | 60 | } |
| 61 | 61 |
| r22095 | r22096 | |
|---|---|---|
| 31 | 31 | const device_type GB_ROM_SM3SP = &device_creator<gb_rom_sm3sp_device>; |
| 32 | 32 | |
| 33 | 33 | |
| 34 | gb_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) | |
| 35 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 34 | gb_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) | |
| 35 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 36 | 36 | device_gb_cart_interface( mconfig, *this ) |
| 37 | 37 | { |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | gb_rom_mbc1_device::gb_rom_mbc1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 41 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC1, "GB MBC1 Carts", tag, owner, clock) | |
| 41 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC1, "GB MBC1 Carts", tag, owner, clock, "gb_rom_mbc1", __FILE__) | |
| 42 | 42 | { |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | gb_rom_mbc1col_device::gb_rom_mbc1col_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 46 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC1_COL, "GB MBC1 Collection Carts", tag, owner, clock) | |
| 46 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC1_COL, "GB MBC1 Collection Carts", tag, owner, clock, "gb_rom_mbc1col", __FILE__) | |
| 47 | 47 | { |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | gb_rom_mbc2_device::gb_rom_mbc2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 51 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC2, "GB MBC2 Carts", tag, owner, clock) | |
| 51 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC2, "GB MBC2 Carts", tag, owner, clock, "gb_rom_mbc2", __FILE__) | |
| 52 | 52 | { |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | gb_rom_mbc3_device::gb_rom_mbc3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 56 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC3, "GB MBC3 Carts", tag, owner, clock) | |
| 56 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC3, "GB MBC3 Carts", tag, owner, clock, "gb_rom_mbc3", __FILE__) | |
| 57 | 57 | { |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | gb_rom_mbc5_device::gb_rom_mbc5_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 61 | : gb_rom_mbc_device(mconfig, type, name, tag, owner, clock) | |
| 60 | gb_rom_mbc5_device::gb_rom_mbc5_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) | |
| 61 | : gb_rom_mbc_device(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 62 | 62 | { |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | gb_rom_mbc5_device::gb_rom_mbc5_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 66 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC5, "GB MBC5 Carts", tag, owner, clock) | |
| 66 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC5, "GB MBC5 Carts", tag, owner, clock, "gb_rom_mbc5", __FILE__) | |
| 67 | 67 | { |
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | gb_rom_mbc6_device::gb_rom_mbc6_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 71 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC6, "GB MBC6 Carts", tag, owner, clock) | |
| 71 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC6, "GB MBC6 Carts", tag, owner, clock, "gb_rom_mbc6", __FILE__) | |
| 72 | 72 | { |
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | gb_rom_mbc7_device::gb_rom_mbc7_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 76 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC7, "GB MBC7 Carts", tag, owner, clock) | |
| 76 | : gb_rom_mbc_device(mconfig, GB_ROM_MBC7, "GB MBC7 Carts", tag, owner, clock, "gb_rom_mbc7", __FILE__) | |
| 77 | 77 | { |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | gb_rom_mmm01_device::gb_rom_mmm01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 81 | : gb_rom_mbc_device(mconfig, GB_ROM_MMM01, "GB MMM01 Carts", tag, owner, clock) | |
| 81 | : gb_rom_mbc_device(mconfig, GB_ROM_MMM01, "GB MMM01 Carts", tag, owner, clock, "gb_rom_mmm01", __FILE__) | |
| 82 | 82 | { |
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | gb_rom_sintax_device::gb_rom_sintax_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 86 | : gb_rom_mbc_device(mconfig, GB_ROM_SINTAX, "GB MBC5 Sintax Carts", tag, owner, clock) | |
| 86 | : gb_rom_mbc_device(mconfig, GB_ROM_SINTAX, "GB MBC5 Sintax Carts", tag, owner, clock, "gb_rom_sintax", __FILE__) | |
| 87 | 87 | { |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | gb_rom_chongwu_device::gb_rom_chongwu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 91 | : gb_rom_mbc5_device(mconfig, GB_ROM_CHONGWU, "GB Chong Wu Xiao Jing Ling", tag, owner, clock) | |
| 91 | : gb_rom_mbc5_device(mconfig, GB_ROM_CHONGWU, "GB Chong Wu Xiao Jing Ling", tag, owner, clock, "gb_rom_chongwu", __FILE__) | |
| 92 | 92 | { |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | gb_rom_digimon_device::gb_rom_digimon_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 96 | : gb_rom_mbc5_device(mconfig, GB_ROM_DIGIMON, "GB Digimon", tag, owner, clock) | |
| 96 | : gb_rom_mbc5_device(mconfig, GB_ROM_DIGIMON, "GB Digimon", tag, owner, clock, "gb_rom_digimon", __FILE__) | |
| 97 | 97 | { |
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | gb_rom_rockman8_device::gb_rom_rockman8_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 101 | : gb_rom_mbc_device(mconfig, GB_ROM_ROCKMAN8, "GB MBC1 Rockman 8", tag, owner, clock) | |
| 101 | : gb_rom_mbc_device(mconfig, GB_ROM_ROCKMAN8, "GB MBC1 Rockman 8", tag, owner, clock, "gb_rom_rockman8", __FILE__) | |
| 102 | 102 | { |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | gb_rom_sm3sp_device::gb_rom_sm3sp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 106 | : gb_rom_mbc_device(mconfig, GB_ROM_SM3SP, "GB MBC1 Super Mario 3 Special", tag, owner, clock) | |
| 106 | : gb_rom_mbc_device(mconfig, GB_ROM_SM3SP, "GB MBC1 Super Mario 3 Special", tag, owner, clock, "gb_rom_sm3sp", __FILE__) | |
| 107 | 107 | { |
| 108 | 108 | } |
| 109 | 109 |
| r22095 | r22096 | |
|---|---|---|
| 212 | 212 | //------------------------------------------------- |
| 213 | 213 | |
| 214 | 214 | wdxt_gen_device::wdxt_gen_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 215 | : device_t(mconfig, WDXT_GEN, "Western Digital WDXT-GEN (Amstrad PC1512/1640)", tag, owner, clock), | |
| 215 | : device_t(mconfig, WDXT_GEN, "Western Digital WDXT-GEN (Amstrad PC1512/1640)", tag, owner, clock, "wdxt_gen", __FILE__), | |
| 216 | 216 | device_isa8_card_interface(mconfig, *this), |
| 217 | 217 | m_maincpu(*this, WD1015_TAG), |
| 218 | 218 | m_host(*this, WD11C00_17_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 18 | 18 | public: |
| 19 | 19 | // construction/destruction |
| 20 | 20 | z88_32k_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 21 | z88_32k_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 21 | 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); | |
| 22 | 22 | |
| 23 | 23 | protected: |
| 24 | 24 | // device-level overrides |
| 25 | 25 | virtual void device_start(); |
| 26 | virtual void device_config_complete() { m_shortname = "z88_32k_rom"; } | |
| 27 | 26 | |
| 28 | 27 | // z88cart_interface overrides |
| 29 | 28 | virtual DECLARE_READ8_MEMBER(read); |
| r22095 | r22096 | |
| 44 | 43 | z88_128k_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 45 | 44 | |
| 46 | 45 | protected: |
| 47 | // device-level overrides | |
| 48 | virtual void device_config_complete() { m_shortname = "z88_128k_rom"; } | |
| 49 | ||
| 50 | 46 | // z88cart_interface overrides |
| 51 | 47 | virtual UINT32 get_cart_size() { return 0x20000; } |
| 52 | 48 | }; |
| r22095 | r22096 | |
| 60 | 56 | z88_256k_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 61 | 57 | |
| 62 | 58 | protected: |
| 63 | // device-level overrides | |
| 64 | virtual void device_config_complete() { m_shortname = "z88_256k_rom"; } | |
| 65 | ||
| 66 | 59 | // z88cart_interface overrides |
| 67 | 60 | virtual UINT32 get_cart_size() { return 0x200000; } |
| 68 | 61 | }; |
| r22095 | r22096 | |
|---|---|---|
| 136 | 136 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 |
| 137 | 137 | }; |
| 138 | 138 | |
| 139 | generic_terminal_device::generic_terminal_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 140 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 139 | generic_terminal_device::generic_terminal_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) | |
| 140 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 141 | 141 | m_io_term_frame(*this, "TERM_FRAME"), |
| 142 | 142 | m_io_term_conf(*this, "TERM_CONF") |
| 143 | 143 | { |
| r22095 | r22096 | |
| 447 | 447 | } |
| 448 | 448 | |
| 449 | 449 | serial_terminal_device::serial_terminal_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 450 | : generic_terminal_device(mconfig, SERIAL_TERMINAL, "Serial Terminal", tag, owner, clock), | |
| 450 | : generic_terminal_device(mconfig, SERIAL_TERMINAL, "Serial Terminal", tag, owner, clock, "serial_terminal", __FILE__), | |
| 451 | 451 | device_serial_interface(mconfig, *this), |
| 452 | 452 | device_serial_port_interface(mconfig, *this) |
| 453 | 453 | { |
| r22095 | r22096 | |
| 464 | 464 | { |
| 465 | 465 | memset(&m_out_tx_cb, 0, sizeof(m_out_tx_cb)); |
| 466 | 466 | } |
| 467 | m_shortname = "serial_terminal"; | |
| 468 | 467 | } |
| 469 | 468 | |
| 470 | 469 | static int rates[] = {150, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 115200}; |
| r22095 | r22096 | |
|---|---|---|
| 11 | 11 | { |
| 12 | 12 | public: |
| 13 | 13 | // construction/destruction |
| 14 | gb_rom_mbc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 14 | 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); | |
| 15 | 15 | |
| 16 | 16 | // device-level overrides |
| 17 | 17 | virtual void device_start() { shared_start(); }; |
| 18 | 18 | virtual void device_reset() { shared_reset(); }; |
| 19 | virtual void device_config_complete() { m_shortname = "gb_rom_mbc_base"; } | |
| 20 | 19 | |
| 21 | 20 | void shared_start(); |
| 22 | 21 | void shared_reset(); |
| r22095 | r22096 | |
| 41 | 40 | // device-level overrides |
| 42 | 41 | virtual void device_start() { shared_start(); }; |
| 43 | 42 | virtual void device_reset() { shared_reset(); }; |
| 44 | virtual void device_config_complete() { m_shortname = "gb_rom_mbc1"; } | |
| 45 | 43 | |
| 46 | 44 | virtual DECLARE_READ8_MEMBER(read_rom); |
| 47 | 45 | virtual DECLARE_WRITE8_MEMBER(write_bank); |
| r22095 | r22096 | |
| 60 | 58 | // device-level overrides |
| 61 | 59 | virtual void device_start() { shared_start(); }; |
| 62 | 60 | virtual void device_reset() { shared_reset(); }; |
| 63 | virtual void device_config_complete() { m_shortname = "gb_rom_mbc1col"; } | |
| 64 | 61 | |
| 65 | 62 | virtual DECLARE_READ8_MEMBER(read_rom); |
| 66 | 63 | virtual DECLARE_WRITE8_MEMBER(write_bank); |
| r22095 | r22096 | |
| 79 | 76 | // device-level overrides |
| 80 | 77 | virtual void device_start() { shared_start(); }; |
| 81 | 78 | virtual void device_reset() { shared_reset(); }; |
| 82 | virtual void device_config_complete() { m_shortname = "gb_rom_mbc2"; } | |
| 83 | 79 | |
| 84 | 80 | virtual DECLARE_READ8_MEMBER(read_rom); |
| 85 | 81 | virtual DECLARE_WRITE8_MEMBER(write_bank); |
| r22095 | r22096 | |
| 98 | 94 | // device-level overrides |
| 99 | 95 | virtual void device_start(); |
| 100 | 96 | virtual void device_reset(); |
| 101 | virtual void device_config_complete() { m_shortname = "gb_rom_mbc3"; } | |
| 102 | 97 | |
| 103 | 98 | virtual DECLARE_READ8_MEMBER(read_rom); |
| 104 | 99 | virtual DECLARE_WRITE8_MEMBER(write_bank); |
| r22095 | r22096 | |
| 113 | 108 | { |
| 114 | 109 | public: |
| 115 | 110 | // construction/destruction |
| 116 | gb_rom_mbc5_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 111 | gb_rom_mbc5_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); | |
| 117 | 112 | gb_rom_mbc5_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 118 | 113 | |
| 119 | 114 | // device-level overrides |
| 120 | 115 | virtual void device_start() { shared_start(); }; |
| 121 | 116 | virtual void device_reset() { shared_reset(); }; |
| 122 | virtual void device_config_complete() { m_shortname = "gb_rom_mbc5"; } | |
| 123 | 117 | |
| 124 | 118 | virtual DECLARE_READ8_MEMBER(read_rom); |
| 125 | 119 | virtual DECLARE_WRITE8_MEMBER(write_bank); |
| r22095 | r22096 | |
| 138 | 132 | // device-level overrides |
| 139 | 133 | virtual void device_start(); |
| 140 | 134 | virtual void device_reset(); |
| 141 | virtual void device_config_complete() { m_shortname = "gb_rom_mbc6"; } | |
| 142 | 135 | |
| 143 | 136 | virtual DECLARE_READ8_MEMBER(read_rom); |
| 144 | 137 | virtual DECLARE_WRITE8_MEMBER(write_bank); |
| r22095 | r22096 | |
| 159 | 152 | // device-level overrides |
| 160 | 153 | virtual void device_start() { shared_start(); }; |
| 161 | 154 | virtual void device_reset() { shared_reset(); }; |
| 162 | virtual void device_config_complete() { m_shortname = "gb_rom_mbc7"; } | |
| 163 | 155 | |
| 164 | 156 | virtual DECLARE_READ8_MEMBER(read_rom); |
| 165 | 157 | virtual DECLARE_WRITE8_MEMBER(write_bank); |
| r22095 | r22096 | |
| 177 | 169 | // device-level overrides |
| 178 | 170 | virtual void device_start(); |
| 179 | 171 | virtual void device_reset(); |
| 180 | virtual void device_config_complete() { m_shortname = "gb_rom_mmm01"; } | |
| 181 | 172 | |
| 182 | 173 | // reading and writing |
| 183 | 174 | virtual DECLARE_READ8_MEMBER(read_rom); |
| r22095 | r22096 | |
| 195 | 186 | // device-level overrides |
| 196 | 187 | virtual void device_start(); |
| 197 | 188 | virtual void device_reset(); |
| 198 | virtual void device_config_complete() { m_shortname = "gb_rom_sintax"; } | |
| 199 | 189 | void set_xor_for_bank(UINT8 bank); |
| 200 | 190 | |
| 201 | 191 | // reading and writing |
| r22095 | r22096 | |
| 219 | 209 | // device-level overrides |
| 220 | 210 | virtual void device_start(); |
| 221 | 211 | virtual void device_reset(); |
| 222 | virtual void device_config_complete() { m_shortname = "gb_rom_chongwu"; } | |
| 223 | 212 | |
| 224 | 213 | virtual DECLARE_READ8_MEMBER(read_rom); |
| 225 | 214 | UINT8 m_protection_checked; |
| r22095 | r22096 | |
| 236 | 225 | // device-level overrides |
| 237 | 226 | virtual void device_start() { shared_start(); }; |
| 238 | 227 | virtual void device_reset() { shared_reset(); }; |
| 239 | virtual void device_config_complete() { m_shortname = "gb_rom_digimon"; } | |
| 240 | 228 | |
| 241 | 229 | virtual DECLARE_READ8_MEMBER(read_rom); |
| 242 | 230 | virtual DECLARE_WRITE8_MEMBER(write_bank); |
| r22095 | r22096 | |
| 254 | 242 | // device-level overrides |
| 255 | 243 | virtual void device_start() { shared_start(); }; |
| 256 | 244 | virtual void device_reset() { shared_reset(); }; |
| 257 | virtual void device_config_complete() { m_shortname = "gb_rom_rockman8"; } | |
| 258 | 245 | |
| 259 | 246 | // reading and writing |
| 260 | 247 | virtual DECLARE_READ8_MEMBER(read_rom); |
| r22095 | r22096 | |
| 274 | 261 | // device-level overrides |
| 275 | 262 | virtual void device_start() { shared_start(); }; |
| 276 | 263 | virtual void device_reset() { shared_reset(); }; |
| 277 | virtual void device_config_complete() { m_shortname = "gb_rom_sm3sp"; } | |
| 278 | 264 | |
| 279 | 265 | // reading and writing |
| 280 | 266 | virtual DECLARE_READ8_MEMBER(read_rom); |
| r22095 | r22096 | |
|---|---|---|
| 64 | 64 | // device-level overrides |
| 65 | 65 | virtual void device_start(); |
| 66 | 66 | virtual void device_reset(); |
| 67 | virtual void device_config_complete() { m_shortname = "wdxt_gen"; } | |
| 68 | 67 | |
| 69 | 68 | // device_isa8_card_interface |
| 70 | 69 | virtual UINT8 dack_r(int line); |
| r22095 | r22096 | |
|---|---|---|
| 51 | 51 | public terminal_interface |
| 52 | 52 | { |
| 53 | 53 | public: |
| 54 | generic_terminal_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 54 | generic_terminal_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source); | |
| 55 | 55 | generic_terminal_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 56 | 56 | DECLARE_WRITE8_MEMBER(write) { term_write(data); } |
| 57 | 57 | DECLARE_WRITE8_MEMBER(kbd_put); |
| r22095 | r22096 | |
|---|---|---|
| 68 | 68 | // LIVE DEVICE |
| 69 | 69 | //************************************************************************** |
| 70 | 70 | |
| 71 | a2bus_themill_device::a2bus_themill_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 72 | device_t(mconfig, type, name, tag, owner, clock), | |
| 71 | a2bus_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) : | |
| 72 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 73 | 73 | device_a2bus_card_interface(mconfig, *this), |
| 74 | 74 | m_6809(*this, M6809_TAG), |
| 75 | 75 | m_6502space(NULL) |
| 76 | 76 | { |
| 77 | m_shortname = "a2themill"; | |
| 78 | 77 | } |
| 79 | 78 | |
| 80 | 79 | a2bus_themill_device::a2bus_themill_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 81 | device_t(mconfig, A2BUS_THEMILL, "Stellation Two The Mill", tag, owner, clock), | |
| 80 | device_t(mconfig, A2BUS_THEMILL, "Stellation Two The Mill", tag, owner, clock, "a2themill", __FILE__), | |
| 82 | 81 | device_a2bus_card_interface(mconfig, *this), |
| 83 | 82 | m_6809(*this, M6809_TAG), |
| 84 | 83 | m_6502space(NULL) |
| 85 | 84 | { |
| 86 | m_shortname = "a2themill"; | |
| 87 | 85 | } |
| 88 | 86 | |
| 89 | 87 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 82 | 82 | //------------------------------------------------- |
| 83 | 83 | |
| 84 | 84 | c64_magic_voice_cartridge_device::c64_magic_voice_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 85 | device_t(mconfig, C64_MAGIC_VOICE, "C64 Magic Voice cartridge", tag, owner, clock), | |
| 85 | device_t(mconfig, C64_MAGIC_VOICE, "C64 Magic Voice cartridge", tag, owner, clock, "c64_magic_voice", __FILE__), | |
| 86 | 86 | device_c64_expansion_card_interface(mconfig, *this), |
| 87 | 87 | m_vslsi(*this, T6721A_TAG), |
| 88 | 88 | m_tpi(*this, MOS6525_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 22 | 22 | { |
| 23 | 23 | public: |
| 24 | 24 | // construction/destruction |
| 25 | a2bus_themill_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 25 | 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); | |
| 26 | 26 | a2bus_themill_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 27 | 27 | |
| 28 | 28 | // optional information overrides |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| 41 | virtual void device_config_complete() { m_shortname = "c64_magic_voice"; } | |
| 42 | 41 | virtual void device_start(); |
| 43 | 42 | virtual void device_reset(); |
| 44 | 43 |
| r22095 | r22096 | |
|---|---|---|
| 30 | 30 | { |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | a2eauxslot_slot_device::a2eauxslot_slot_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 34 | device_t(mconfig, type, name, tag, owner, clock), | |
| 33 | a2eauxslot_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) : | |
| 34 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 35 | 35 | device_slot_interface(mconfig, *this) |
| 36 | 36 | { |
| 37 | 37 | } |
| r22095 | r22096 | |
| 102 | 102 | { |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | a2eauxslot_device::a2eauxslot_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 106 | device_t(mconfig, type, name, tag, owner, clock) | |
| 105 | a2eauxslot_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) : | |
| 106 | device_t(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 107 | 107 | { |
| 108 | 108 | } |
| 109 | 109 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 169 | 169 | //------------------------------------------------- |
| 170 | 170 | |
| 171 | 171 | c64_currah_speech_cartridge_device::c64_currah_speech_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 172 | device_t(mconfig, C64_CURRAH_SPEECH, "C64 Currah Speech", tag, owner, clock), | |
| 172 | device_t(mconfig, C64_CURRAH_SPEECH, "C64 Currah Speech", tag, owner, clock, "c64_cs", __FILE__), | |
| 173 | 173 | device_c64_expansion_card_interface(mconfig, *this), |
| 174 | 174 | m_nsp(*this, SP0256_TAG) |
| 175 | 175 | { |
| r22095 | r22096 | |
|---|---|---|
| 95 | 95 | //------------------------------------------------- |
| 96 | 96 | |
| 97 | 97 | serial_box_device::serial_box_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 98 | : device_t(mconfig, SERIAL_BOX, "Serial Box", tag, owner, clock), | |
| 98 | : device_t(mconfig, SERIAL_BOX, "Serial Box", tag, owner, clock, "serbox", __FILE__), | |
| 99 | 99 | device_cbm_iec_interface(mconfig, *this), |
| 100 | 100 | m_maincpu(*this, M6502_TAG) |
| 101 | 101 | { |
| r22095 | r22096 | |
|---|---|---|
| 153 | 153 | //------------------------------------------------- |
| 154 | 154 | |
| 155 | 155 | c64_passport_midi_cartridge_device::c64_passport_midi_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 156 | device_t(mconfig, C64_MIDI_PASSPORT, "C64 Passport MIDI", tag, owner, clock), | |
| 156 | device_t(mconfig, C64_MIDI_PASSPORT, "C64 Passport MIDI", tag, owner, clock, "c64_midipp", __FILE__), | |
| 157 | 157 | device_c64_expansion_card_interface(mconfig, *this), |
| 158 | 158 | m_acia(*this, MC6850_TAG), |
| 159 | 159 | m_ptm(*this, MC6840_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | public: |
| 45 | 45 | // construction/destruction |
| 46 | 46 | a2eauxslot_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 47 | a2eauxslot_slot_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 47 | 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); | |
| 48 | 48 | |
| 49 | 49 | // device-level overrides |
| 50 | 50 | virtual void device_start(); |
| r22095 | r22096 | |
| 75 | 75 | public: |
| 76 | 76 | // construction/destruction |
| 77 | 77 | a2eauxslot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 78 | a2eauxslot_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 78 | 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); | |
| 79 | 79 | // inline configuration |
| 80 | 80 | static void static_set_cputag(device_t &device, const char *tag); |
| 81 | 81 |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| 41 | virtual void device_config_complete() { m_shortname = "c64_cs"; } | |
| 42 | 41 | virtual void device_start(); |
| 43 | 42 | virtual void device_reset(); |
| 44 | 43 |
| r22095 | r22096 | |
|---|---|---|
| 48 | 48 | // device-level overrides |
| 49 | 49 | virtual void device_start(); |
| 50 | 50 | virtual void device_reset(); |
| 51 | virtual void device_config_complete() { m_shortname = "serbox"; } | |
| 52 | 51 | |
| 53 | 52 | // device_cbm_iec_interface overrides |
| 54 | 53 | void cbm_iec_atn(int state); |
| r22095 | r22096 | |
|---|---|---|
| 46 | 46 | |
| 47 | 47 | protected: |
| 48 | 48 | // device-level overrides |
| 49 | virtual void device_config_complete() { m_shortname = "c64_midipp"; } | |
| 50 | 49 | virtual void device_start(); |
| 51 | 50 | virtual void device_reset(); |
| 52 | 51 |
| r22095 | r22096 | |
|---|---|---|
| 127 | 127 | //------------------------------------------------- |
| 128 | 128 | |
| 129 | 129 | pc9801_118_device::pc9801_118_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 130 | : device_t(mconfig, PC9801_118, "pc9801_118", tag, owner, clock), | |
| 130 | : device_t(mconfig, PC9801_118, "pc9801_118", tag, owner, clock, "pc9801_118", __FILE__), | |
| 131 | 131 | // m_maincpu(*owner, "maincpu"), |
| 132 | 132 | m_opn3(*this, "opn3") |
| 133 | 133 | { |
| r22095 | r22096 | |
|---|---|---|
| 45 | 45 | virtual void device_validity_check(validity_checker &valid) const; |
| 46 | 46 | virtual void device_start(); |
| 47 | 47 | virtual void device_reset(); |
| 48 | virtual void device_config_complete() { m_shortname = "pc9801_118"; } | |
| 49 | 48 | void install_device(offs_t start, offs_t end, offs_t mask, offs_t mirror, read8_delegate rhandler, write8_delegate whandler); |
| 50 | 49 | |
| 51 | 50 | private: |
| r22095 | r22096 | |
|---|---|---|
| 48 | 48 | //------------------------------------------------- |
| 49 | 49 | |
| 50 | 50 | bw2_ramcard_device::bw2_ramcard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 51 | : device_t(mconfig, BW2_RAMCARD, "RAMCARD", tag, owner, clock), | |
| 51 | : device_t(mconfig, BW2_RAMCARD, "RAMCARD", tag, owner, clock, "bw2_ramcard", __FILE__), | |
| 52 | 52 | device_bw2_expansion_slot_interface(mconfig, *this), |
| 53 | 53 | m_rom(*this, "ramcard"), |
| 54 | 54 | m_ram(*this, "ram"), |
| r22095 | r22096 | |
|---|---|---|
| 1212 | 1212 | const device_type NES_ROM = &device_creator<nes_rom_device>; |
| 1213 | 1213 | |
| 1214 | 1214 | nes_rom_device::nes_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1215 | : device_t(mconfig, NES_ROM, "NES ROM", tag, owner, clock), | |
| 1215 | : device_t(mconfig, NES_ROM, "NES ROM", tag, owner, clock, "nes_rom", __FILE__), | |
| 1216 | 1216 | device_nes_cart_interface( mconfig, *this ) |
| 1217 | 1217 | { |
| 1218 | 1218 | } |
| 1219 | 1219 | |
| 1220 | nes_rom_device::nes_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 1221 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 1220 | nes_rom_device::nes_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) | |
| 1221 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 1222 | 1222 | device_nes_cart_interface( mconfig, *this ) |
| 1223 | 1223 | { |
| 1224 | 1224 | } |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | |
| 36 | 36 | protected: |
| 37 | 37 | // device-level overrides |
| 38 | virtual void device_config_complete() { m_shortname = "bw2_ramcard"; } | |
| 39 | 38 | virtual void device_start(); |
| 40 | 39 | virtual void device_reset(); |
| 41 | 40 |
| r22095 | r22096 | |
|---|---|---|
| 407 | 407 | //------------------------------------------------- |
| 408 | 408 | |
| 409 | 409 | c2031_device::c2031_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 410 | : device_t(mconfig, C2031, "C2031", tag, owner, clock), | |
| 410 | : device_t(mconfig, C2031, "C2031", tag, owner, clock, "c2031", __FILE__), | |
| 411 | 411 | device_ieee488_interface(mconfig, *this), |
| 412 | 412 | m_maincpu(*this, M6502_TAG), |
| 413 | 413 | m_via0(*this, M6522_0_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_fun_play_cartridge_device::c64_fun_play_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_FUN_PLAY, "C64 Fun Play cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_FUN_PLAY, "C64 Fun Play cartridge", tag, owner, clock, "c64_fun_play", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 189 | 189 | public: |
| 190 | 190 | // construction/destruction |
| 191 | 191 | nes_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 192 | nes_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 192 | nes_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); | |
| 193 | 193 | |
| 194 | 194 | //protected: |
| 195 | 195 | // device-level overrides |
| 196 | 196 | virtual void device_start(); |
| 197 | virtual void device_config_complete() { m_shortname = "nes_rom"; } | |
| 198 | 197 | |
| 199 | 198 | // nescart_interface overrides |
| 200 | 199 | // virtual DECLARE_READ8_MEMBER(read_l); |
| r22095 | r22096 | |
|---|---|---|
| 55 | 55 | |
| 56 | 56 | protected: |
| 57 | 57 | // device-level overrides |
| 58 | virtual void device_config_complete() { m_shortname = "c2031"; } | |
| 59 | 58 | virtual void device_start(); |
| 60 | 59 | virtual void device_reset(); |
| 61 | 60 |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_fun_play"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 |
| r22095 | r22096 | |
|---|---|---|
| 161 | 161 | const device_type MD_EEPROM_STM95 = &device_creator<md_eeprom_stm95_device>; |
| 162 | 162 | |
| 163 | 163 | |
| 164 | md_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) | |
| 165 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 164 | md_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) | |
| 165 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 166 | 166 | device_md_cart_interface( mconfig, *this ) |
| 167 | 167 | { |
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | md_eeprom_stm95_device::md_eeprom_stm95_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 171 | : device_t(mconfig, MD_EEPROM_STM95, "MD Cart + EEPROM STM95", tag, owner, clock), | |
| 171 | : device_t(mconfig, MD_EEPROM_STM95, "MD Cart + EEPROM STM95", tag, owner, clock, "md_eeprom_stm95", __FILE__), | |
| 172 | 172 | device_md_cart_interface( mconfig, *this ) |
| 173 | 173 | { |
| 174 | 174 | } |
| r22095 | r22096 | |
|---|---|---|
| 58 | 58 | { |
| 59 | 59 | public: |
| 60 | 60 | // construction/destruction |
| 61 | md_eeprom_stm95_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 61 | 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); | |
| 62 | 62 | md_eeprom_stm95_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 63 | 63 | |
| 64 | 64 | // device-level overrides |
| 65 | 65 | virtual void device_start(); |
| 66 | 66 | virtual void device_reset(); |
| 67 | virtual void device_config_complete() { m_shortname = "md_eeprom_stm95"; } | |
| 68 | 67 | |
| 69 | 68 | // reading and writing |
| 70 | 69 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
|---|---|---|
| 333 | 333 | //------------------------------------------------- |
| 334 | 334 | |
| 335 | 335 | egret_device::egret_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 336 | : device_t(mconfig, EGRET, "Apple Egret", tag, owner, clock), | |
| 336 | : device_t(mconfig, EGRET, "Apple Egret", tag, owner, clock, "egret", __FILE__), | |
| 337 | 337 | device_nvram_interface(mconfig, *this), |
| 338 | 338 | m_maincpu(*this, EGRET_CPU_TAG) |
| 339 | 339 | { |
| r22095 | r22096 | |
| 352 | 352 | |
| 353 | 353 | void egret_device::device_config_complete() |
| 354 | 354 | { |
| 355 | m_shortname = "egret"; | |
| 356 | ||
| 357 | 355 | // inherit a copy of the static data |
| 358 | 356 | const egret_interface *intf = reinterpret_cast<const egret_interface *>(static_config()); |
| 359 | 357 | if (intf != NULL) |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_standard_cartridge_device::c64_standard_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_STD, "C64 standard cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_STD, "C64 standard cartridge", tag, owner, clock, "c64_standard", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | videobrain_timeshare_cartridge_device::videobrain_timeshare_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, VB_TIMESHARE, "VideoBrain Timeshare cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, VB_TIMESHARE, "VideoBrain Timeshare cartridge", tag, owner, clock, "vb_timeshare", __FILE__), | |
| 32 | 32 | device_videobrain_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 34 | 34 | |
| 35 | 35 | protected: |
| 36 | 36 | // device-level overrides |
| 37 | virtual void device_config_complete() { m_shortname = "c64_standard"; } | |
| 38 | 37 | virtual void device_start(); |
| 39 | 38 | |
| 40 | 39 | // device_c64_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 86 | 86 | //------------------------------------------------- |
| 87 | 87 | |
| 88 | 88 | c64_dela_ep7x8_cartridge_device::c64_dela_ep7x8_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 89 | device_t(mconfig, C64_DELA_EP7X8, "C64 Dela 7x8KB EPROM cartridge", tag, owner, clock), | |
| 89 | device_t(mconfig, C64_DELA_EP7X8, "C64 Dela 7x8KB EPROM cartridge", tag, owner, clock, "ep7x8", __FILE__), | |
| 90 | 90 | device_c64_expansion_card_interface(mconfig, *this), |
| 91 | 91 | m_eprom(*this, "eprom") |
| 92 | 92 | { |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "vb_timeshare"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | |
| 39 | 38 | // device_videobrain_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 102 | 102 | //------------------------------------------------- |
| 103 | 103 | |
| 104 | 104 | adam_printer_device::adam_printer_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 105 | : device_t(mconfig, ADAM_PRN, "Adam printer", tag, owner, clock), | |
| 105 | : device_t(mconfig, ADAM_PRN, "Adam printer", tag, owner, clock, "adam_prn", __FILE__), | |
| 106 | 106 | device_adamnet_card_interface(mconfig, *this), |
| 107 | 107 | m_maincpu(*this, M6801_TAG) |
| 108 | 108 | { |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| 41 | virtual void device_config_complete() { m_shortname = "ep7x8"; } | |
| 42 | 41 | virtual void device_start(); |
| 43 | 42 | virtual void device_reset(); |
| 44 | 43 |
| r22095 | r22096 | |
|---|---|---|
| 58 | 58 | //------------------------------------------------- |
| 59 | 59 | |
| 60 | 60 | vcs_lightpen_device::vcs_lightpen_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 61 | device_t(mconfig, VCS_LIGHTPEN, "Light Pen", tag, owner, clock), | |
| 61 | device_t(mconfig, VCS_LIGHTPEN, "Light Pen", tag, owner, clock, "vcs_lightpen", __FILE__), | |
| 62 | 62 | device_vcs_control_port_interface(mconfig, *this), |
| 63 | 63 | m_joy(*this, "JOY"), |
| 64 | 64 | m_lightx(*this, "LIGHTX"), |
| r22095 | r22096 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | protected: |
| 47 | 47 | // device-level overrides |
| 48 | virtual void device_config_complete() { m_shortname = "adam_prn"; } | |
| 49 | 48 | virtual void device_start(); |
| 50 | 49 | |
| 51 | 50 | // device_adamnet_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 78 | 78 | |
| 79 | 79 | |
| 80 | 80 | //------------------------------------------------- |
| 81 | // device_config_complete - perform any | |
| 82 | // operations now that the configuration is | |
| 83 | // complete | |
| 84 | //------------------------------------------------- | |
| 85 | ||
| 86 | void c2040_device::device_config_complete() | |
| 87 | { | |
| 88 | switch (m_variant) | |
| 89 | { | |
| 90 | default: | |
| 91 | case TYPE_2040: | |
| 92 | m_shortname = "c2040"; | |
| 93 | break; | |
| 94 | ||
| 95 | case TYPE_3040: | |
| 96 | m_shortname = "c3040"; | |
| 97 | break; | |
| 98 | ||
| 99 | case TYPE_4040: | |
| 100 | m_shortname = "c4040"; | |
| 101 | break; | |
| 102 | ||
| 103 | case TYPE_8050: | |
| 104 | m_shortname = "c8050"; | |
| 105 | break; | |
| 106 | ||
| 107 | case TYPE_8250: | |
| 108 | m_shortname = "c8250"; | |
| 109 | break; | |
| 110 | ||
| 111 | case TYPE_8250LP: | |
| 112 | m_shortname = "c8250lp"; | |
| 113 | break; | |
| 114 | ||
| 115 | case TYPE_SFD1001: | |
| 116 | m_shortname = "sfd1001"; | |
| 117 | break; | |
| 118 | } | |
| 119 | } | |
| 120 | ||
| 121 | ||
| 122 | //------------------------------------------------- | |
| 123 | 81 | // ROM( c2040 ) |
| 124 | 82 | //------------------------------------------------- |
| 125 | 83 | |
| r22095 | r22096 | |
| 1460 | 1418 | // c2040_device - constructor |
| 1461 | 1419 | //------------------------------------------------- |
| 1462 | 1420 | |
| 1463 | c2040_device::c2040_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) | |
| 1464 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 1421 | c2040_device::c2040_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source) | |
| 1422 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 1465 | 1423 | device_ieee488_interface(mconfig, *this), |
| 1466 | 1424 | m_maincpu(*this, M6502_TAG), |
| 1467 | 1425 | m_fdccpu(*this, M6504_TAG), |
| r22095 | r22096 | |
| 1499 | 1457 | } |
| 1500 | 1458 | |
| 1501 | 1459 | c2040_device::c2040_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1502 | : device_t(mconfig, C2040, "C2040", tag, owner, clock), | |
| 1460 | : device_t(mconfig, C2040, "C2040", tag, owner, clock, "c2040", __FILE__), | |
| 1503 | 1461 | device_ieee488_interface(mconfig, *this), |
| 1504 | 1462 | m_maincpu(*this, M6502_TAG), |
| 1505 | 1463 | m_fdccpu(*this, M6504_TAG), |
| r22095 | r22096 | |
| 1541 | 1499 | //------------------------------------------------- |
| 1542 | 1500 | |
| 1543 | 1501 | c3040_device::c3040_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1544 | : c2040_device(mconfig, C3040, "C3040", tag, owner, clock, TYPE_3040) { } | |
| 1502 | : c2040_device(mconfig, C3040, "C3040", tag, owner, clock, TYPE_3040, "c3040", __FILE__) { } | |
| 1545 | 1503 | |
| 1546 | 1504 | |
| 1547 | 1505 | //------------------------------------------------- |
| r22095 | r22096 | |
| 1549 | 1507 | //------------------------------------------------- |
| 1550 | 1508 | |
| 1551 | 1509 | c4040_device::c4040_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1552 | : c2040_device(mconfig, C4040, "C4040", tag, owner, clock, TYPE_4040) { } | |
| 1510 | : c2040_device(mconfig, C4040, "C4040", tag, owner, clock, TYPE_4040, "c4040", __FILE__) { } | |
| 1553 | 1511 | |
| 1554 | 1512 | |
| 1555 | 1513 | //------------------------------------------------- |
| 1556 | 1514 | // c8050_device - constructor |
| 1557 | 1515 | //------------------------------------------------- |
| 1558 | 1516 | |
| 1559 | c8050_device::c8050_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) | |
| 1560 | : c2040_device(mconfig, type, name, tag, owner, clock, variant) { } | |
| 1517 | c8050_device::c8050_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source) | |
| 1518 | : c2040_device(mconfig, type, name, tag, owner, clock, variant, shortname, source) { } | |
| 1561 | 1519 | |
| 1562 | 1520 | c8050_device::c8050_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1563 | : c2040_device(mconfig, C8050, "C8050", tag, owner, clock, TYPE_8050) { } | |
| 1521 | : c2040_device(mconfig, C8050, "C8050", tag, owner, clock, TYPE_8050, "c8050", __FILE__) { } | |
| 1564 | 1522 | |
| 1565 | 1523 | |
| 1566 | 1524 | //------------------------------------------------- |
| r22095 | r22096 | |
| 1568 | 1526 | //------------------------------------------------- |
| 1569 | 1527 | |
| 1570 | 1528 | c8250_device::c8250_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1571 | : c8050_device(mconfig, C8250, "C8250", tag, owner, clock, TYPE_8250) { } | |
| 1529 | : c8050_device(mconfig, C8250, "C8250", tag, owner, clock, TYPE_8250, "c8250", __FILE__) { } | |
| 1572 | 1530 | |
| 1573 | 1531 | |
| 1574 | 1532 | //------------------------------------------------- |
| r22095 | r22096 | |
| 1576 | 1534 | //------------------------------------------------- |
| 1577 | 1535 | |
| 1578 | 1536 | c8250lp_device::c8250lp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1579 | : c8050_device(mconfig, C8250LP, "C8250LP", tag, owner, clock, TYPE_8250LP) { } | |
| 1537 | : c8050_device(mconfig, C8250LP, "C8250LP", tag, owner, clock, TYPE_8250LP, "c8250lp", __FILE__) { } | |
| 1580 | 1538 | |
| 1581 | 1539 | |
| 1582 | 1540 | //------------------------------------------------- |
| r22095 | r22096 | |
| 1584 | 1542 | //------------------------------------------------- |
| 1585 | 1543 | |
| 1586 | 1544 | sfd1001_device::sfd1001_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1587 | : c8050_device(mconfig, SFD1001, "SFD1001", tag, owner, clock, TYPE_SFD1001) { } | |
| 1545 | : c8050_device(mconfig, SFD1001, "SFD1001", tag, owner, clock, TYPE_SFD1001, "sfd1001", __FILE__) { } | |
| 1588 | 1546 | |
| 1589 | 1547 | |
| 1590 | 1548 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| 41 | virtual void device_config_complete() { m_shortname = "vcs_lightpen"; } | |
| 42 | 41 | virtual void device_start(); |
| 43 | 42 | |
| 44 | 43 | // device_vcs_control_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 129 | 129 | //------------------------------------------------- |
| 130 | 130 | |
| 131 | 131 | c64_sequential_midi_cartridge_device::c64_sequential_midi_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 132 | device_t(mconfig, C64_MIDI_SCI, "C64 Sequential Circuits MIDI", tag, owner, clock), | |
| 132 | device_t(mconfig, C64_MIDI_SCI, "C64 Sequential Circuits MIDI", tag, owner, clock, "c64_midisci", __FILE__), | |
| 133 | 133 | device_c64_expansion_card_interface(mconfig, *this), |
| 134 | 134 | m_acia(*this, MC6850_TAG), |
| 135 | 135 | m_mdout(*this, "mdout"), |
| r22095 | r22096 | |
|---|---|---|
| 48 | 48 | }; |
| 49 | 49 | |
| 50 | 50 | // construction/destruction |
| 51 | c2040_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); | |
| 51 | c2040_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source); | |
| 52 | 52 | c2040_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 53 | 53 | |
| 54 | 54 | // not really public |
| r22095 | r22096 | |
| 78 | 78 | |
| 79 | 79 | protected: |
| 80 | 80 | // device-level overrides |
| 81 | virtual void device_config_complete(); | |
| 82 | 81 | virtual void device_start(); |
| 83 | 82 | virtual void device_reset(); |
| 84 | 83 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| r22095 | r22096 | |
| 175 | 174 | public: |
| 176 | 175 | // construction/destruction |
| 177 | 176 | c8050_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 178 | c8050_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); | |
| 177 | c8050_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source); | |
| 179 | 178 | |
| 180 | 179 | DECLARE_READ8_MEMBER( via_pb_r ); |
| 181 | 180 | DECLARE_WRITE8_MEMBER( via_pb_w ); |
| r22095 | r22096 | |
|---|---|---|
| 70 | 70 | //------------------------------------------------- |
| 71 | 71 | |
| 72 | 72 | c64_vic1011_device::c64_vic1011_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 73 | : device_t(mconfig, C64_VIC1011, "C64 VIC1011", tag, owner, clock), | |
| 73 | : device_t(mconfig, C64_VIC1011, "C64 VIC1011", tag, owner, clock, "c64_vic1011", __FILE__), | |
| 74 | 74 | device_c64_user_port_interface(mconfig, *this), |
| 75 | 75 | m_rs232(*this, RS232_TAG) |
| 76 | 76 | { |
| r22095 | r22096 | |
|---|---|---|
| 156 | 156 | //------------------------------------------------- |
| 157 | 157 | |
| 158 | 158 | wangpc_mcc_device::wangpc_mcc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 159 | device_t(mconfig, WANGPC_MCC, "Wang PC-PM043", tag, owner, clock), | |
| 159 | device_t(mconfig, WANGPC_MCC, "Wang PC-PM043", tag, owner, clock, "wangpc_mcc", __FILE__), | |
| 160 | 160 | device_wangpcbus_card_interface(mconfig, *this), |
| 161 | 161 | m_sio(*this, Z80SIO2_TAG), |
| 162 | 162 | m_dart(*this, Z80DART_TAG) |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | protected: |
| 46 | 46 | // device-level overrides |
| 47 | virtual void device_config_complete() { m_shortname = "c64_midisci"; } | |
| 48 | 47 | virtual void device_start(); |
| 49 | 48 | virtual void device_reset(); |
| 50 | 49 |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| 41 | virtual void device_config_complete() { m_shortname = "c64_vic1011"; } | |
| 42 | 41 | virtual void device_start(); |
| 43 | 42 | |
| 44 | 43 | // device_c64_user_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 39 | 39 | // device-level overrides |
| 40 | 40 | virtual void device_start(); |
| 41 | 41 | virtual void device_reset(); |
| 42 | virtual void device_config_complete() { m_shortname = "wangpc_mcc"; } | |
| 43 | 42 | |
| 44 | 43 | // device_wangpcbus_card_interface overrides |
| 45 | 44 | virtual UINT16 wangpcbus_iorc_r(address_space &space, offs_t offset, UINT16 mem_mask); |
| r22095 | r22096 | |
|---|---|---|
| 264 | 264 | //------------------------------------------------- |
| 265 | 265 | |
| 266 | 266 | s100_wunderbus_device::s100_wunderbus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 267 | device_t(mconfig, S100_WUNDERBUS, "Wunderbus I/O", tag, owner, clock), | |
| 267 | device_t(mconfig, S100_WUNDERBUS, "Wunderbus I/O", tag, owner, clock, "s100_wunderbus", __FILE__), | |
| 268 | 268 | device_s100_card_interface(mconfig, *this), |
| 269 | 269 | m_pic(*this, I8259A_TAG), |
| 270 | 270 | m_ace1(*this, INS8250_1_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 134 | 134 | // LIVE DEVICE |
| 135 | 135 | //************************************************************************** |
| 136 | 136 | |
| 137 | a2bus_ayboard_device::a2bus_ayboard_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 138 | device_t(mconfig, type, name, tag, owner, clock), | |
| 137 | a2bus_ayboard_device::a2bus_ayboard_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) : | |
| 138 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 139 | 139 | device_a2bus_card_interface(mconfig, *this), |
| 140 | 140 | m_via1(*this, VIA1_TAG), |
| 141 | 141 | m_via2(*this, VIA2_TAG), |
| r22095 | r22096 | |
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | a2bus_mockingboard_device::a2bus_mockingboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 150 | a2bus_ayboard_device(mconfig, A2BUS_MOCKINGBOARD, "Sweet Micro Systems Mockingboard", tag, owner, clock) | |
| 150 | a2bus_ayboard_device(mconfig, A2BUS_MOCKINGBOARD, "Sweet Micro Systems Mockingboard", tag, owner, clock, "a2mockbd", __FILE__) | |
| 151 | 151 | { |
| 152 | m_shortname = "a2mockbd"; | |
| 153 | 152 | m_isPhasor = false; |
| 154 | 153 | m_PhasorNative = false; |
| 155 | 154 | } |
| 156 | 155 | |
| 157 | 156 | a2bus_phasor_device::a2bus_phasor_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 158 | a2bus_ayboard_device(mconfig, A2BUS_PHASOR, "Applied Engineering Phasor", tag, owner, clock) | |
| 157 | a2bus_ayboard_device(mconfig, A2BUS_PHASOR, "Applied Engineering Phasor", tag, owner, clock, "a2phasor", __FILE__) | |
| 159 | 158 | { |
| 160 | m_shortname = "a2phasor"; | |
| 161 | 159 | m_isPhasor = true; |
| 162 | 160 | m_PhasorNative = false; |
| 163 | 161 | } |
| 164 | 162 | |
| 165 | 163 | a2bus_echoplus_device::a2bus_echoplus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 166 | a2bus_ayboard_device(mconfig, A2BUS_ECHOPLUS, "Street Electronics Echo Plus", tag, owner, clock), | |
| 164 | a2bus_ayboard_device(mconfig, A2BUS_ECHOPLUS, "Street Electronics Echo Plus", tag, owner, clock, "a2echop", __FILE__), | |
| 167 | 165 | m_tms(*this, E2P_TMS_TAG) |
| 168 | 166 | { |
| 169 | m_shortname = "a2echop"; | |
| 170 | 167 | m_isPhasor = false; |
| 171 | 168 | m_PhasorNative = false; |
| 172 | 169 | } |
| r22095 | r22096 | |
|---|---|---|
| 32 | 32 | //------------------------------------------------- |
| 33 | 33 | |
| 34 | 34 | centronics_covox_device::centronics_covox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 35 | : device_t(mconfig, CENTRONICS_COVOX, "Covox Speech Thing", tag, owner, clock), | |
| 35 | : device_t(mconfig, CENTRONICS_COVOX, "Covox Speech Thing", tag, owner, clock, "covox", __FILE__), | |
| 36 | 36 | device_centronics_peripheral_interface( mconfig, *this ) |
| 37 | 37 | { |
| 38 | 38 | } |
| r22095 | r22096 | |
| 84 | 84 | //------------------------------------------------- |
| 85 | 85 | |
| 86 | 86 | centronics_covox_stereo_device::centronics_covox_stereo_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 87 | : device_t(mconfig, CENTRONICS_COVOX_STEREO, "Covox (Stereo-in-1)", tag, owner, clock), | |
| 87 | : device_t(mconfig, CENTRONICS_COVOX_STEREO, "Covox (Stereo-in-1)", tag, owner, clock, "covox_stereo", __FILE__), | |
| 88 | 88 | device_centronics_peripheral_interface( mconfig, *this ) |
| 89 | 89 | { |
| 90 | 90 | } |
| r22095 | r22096 | |
|---|---|---|
| 90 | 90 | //------------------------------------------------- |
| 91 | 91 | |
| 92 | 92 | comx_prn_device::comx_prn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 93 | device_t(mconfig, COMX_PRN, "COMX-35 Printer Card", tag, owner, clock), | |
| 93 | device_t(mconfig, COMX_PRN, "COMX-35 Printer Card", tag, owner, clock, "comx_prn", __FILE__), | |
| 94 | 94 | device_comx_expansion_card_interface(mconfig, *this), |
| 95 | 95 | m_centronics(*this, CENTRONICS_TAG), |
| 96 | 96 | m_rom(*this, "c000") |
| r22095 | r22096 | |
|---|---|---|
| 45 | 45 | // device-level overrides |
| 46 | 46 | virtual void device_start(); |
| 47 | 47 | virtual void device_reset(); |
| 48 | virtual void device_config_complete() { m_shortname = "s100_wunderbus"; } | |
| 49 | 48 | |
| 50 | 49 | // device_s100_card_interface overrides |
| 51 | 50 | virtual void s100_vi0_w(int state); |
| r22095 | r22096 | |
|---|---|---|
| 183 | 183 | //------------------------------------------------- |
| 184 | 184 | |
| 185 | 185 | c64_ieee488_device::c64_ieee488_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 186 | device_t(mconfig, C64_IEEE488, "IEEE-488", tag, owner, clock), | |
| 186 | device_t(mconfig, C64_IEEE488, "IEEE-488", tag, owner, clock, "c64_ieee488", __FILE__), | |
| 187 | 187 | device_c64_expansion_card_interface(mconfig, *this), |
| 188 | 188 | m_tpi(*this, MOS6525_TAG), |
| 189 | 189 | m_bus(*this, IEEE488_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 52 | 52 | //------------------------------------------------- |
| 53 | 53 | |
| 54 | 54 | vcs_paddles_device::vcs_paddles_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 55 | device_t(mconfig, VCS_PADDLES, "Digital paddles", tag, owner, clock), | |
| 55 | device_t(mconfig, VCS_PADDLES, "Digital paddles", tag, owner, clock, "vcs_paddles", __FILE__), | |
| 56 | 56 | device_vcs_control_port_interface(mconfig, *this), |
| 57 | 57 | m_joy(*this, "JOY"), |
| 58 | 58 | m_potx(*this, "POTX"), |
| r22095 | r22096 | |
|---|---|---|
| 25 | 25 | { |
| 26 | 26 | public: |
| 27 | 27 | // construction/destruction |
| 28 | a2bus_ayboard_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 28 | a2bus_ayboard_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); | |
| 29 | 29 | |
| 30 | 30 | // optional information overrides |
| 31 | 31 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | protected: |
| 28 | 28 | // device-level overrides |
| 29 | 29 | virtual void device_start(); |
| 30 | virtual void device_config_complete() { m_shortname = "covox"; } | |
| 31 | 30 | private: |
| 32 | 31 | dac_device *m_dac; |
| 33 | 32 | }; |
| r22095 | r22096 | |
| 51 | 50 | protected: |
| 52 | 51 | // device-level overrides |
| 53 | 52 | virtual void device_start(); |
| 54 | virtual void device_config_complete() { m_shortname = "covox_stereo"; } | |
| 55 | 53 | private: |
| 56 | 54 | dac_device *m_dac_left; |
| 57 | 55 | dac_device *m_dac_right; |
| r22095 | r22096 | |
|---|---|---|
| 398 | 398 | |
| 399 | 399 | |
| 400 | 400 | pc_kbd_keytronic_pc3270_device::pc_kbd_keytronic_pc3270_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 401 | device_t(mconfig, PC_KBD_KEYTRONIC_PC3270, "Keytronic PC3270", tag, owner, clock ), | |
| 401 | device_t(mconfig, PC_KBD_KEYTRONIC_PC3270, "Keytronic PC3270", tag, owner, clock, "keytronic_pc3270", __FILE__), | |
| 402 | 402 | device_pc_kbd_interface(mconfig, *this), |
| 403 | 403 | m_cpu(*this, "kb_keytr") |
| 404 | 404 | { |
| 405 | m_shortname = "keytronic_pc3270"; | |
| 406 | 405 | } |
| 407 | 406 | |
| 408 | 407 |
| r22095 | r22096 | |
|---|---|---|
| 41 | 41 | // device-level overrides |
| 42 | 42 | virtual void device_start(); |
| 43 | 43 | virtual void device_reset(); |
| 44 | virtual void device_config_complete() { m_shortname = "comx_prn"; } | |
| 45 | 44 | |
| 46 | 45 | // device_comx_expansion_card_interface overrides |
| 47 | 46 | virtual UINT8 comx_mrd_r(address_space &space, offs_t offset, int *extrom); |
| r22095 | r22096 | |
|---|---|---|
| 46 | 46 | |
| 47 | 47 | protected: |
| 48 | 48 | // device-level overrides |
| 49 | virtual void device_config_complete() { m_shortname = "c64_ieee488"; } | |
| 50 | 49 | virtual void device_start(); |
| 51 | 50 | virtual void device_reset(); |
| 52 | 51 |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | virtual void device_config_complete() { m_shortname = "vcs_paddles"; } | |
| 40 | 39 | virtual void device_start(); |
| 41 | 40 | |
| 42 | 41 | // device_vcs_control_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | ssi2001_device::ssi2001_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 20 | device_t(mconfig, ISA8_SSI2001, "Innovation SSI-2001 Audio Adapter", tag, owner, clock), | |
| 20 | device_t(mconfig, ISA8_SSI2001, "Innovation SSI-2001 Audio Adapter", tag, owner, clock, "ssi2001", __FILE__), | |
| 21 | 21 | device_isa8_card_interface(mconfig, *this), |
| 22 | 22 | m_joy(*this, "joy"), |
| 23 | 23 | m_sid(*this, "sid6581") |
| 24 | 24 | { |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | void ssi2001_device::device_config_complete() | |
| 28 | { | |
| 29 | m_shortname = "ssi2001"; | |
| 30 | } | |
| 31 | ||
| 32 | 27 | void ssi2001_device::device_start() |
| 33 | 28 | { |
| 34 | 29 | set_isa_device(); |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | vic20_standard_cartridge_device::vic20_standard_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 31 | : device_t(mconfig, VIC20_STD, "VIC-20 Standard Cartridge", tag, owner, clock), | |
| 31 | : device_t(mconfig, VIC20_STD, "VIC-20 Standard Cartridge", tag, owner, clock, "vic20_standard", __FILE__), | |
| 32 | 32 | device_vic20_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 108 | 108 | //------------------------------------------------- |
| 109 | 109 | |
| 110 | 110 | c64_turbo232_cartridge_device::c64_turbo232_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 111 | device_t(mconfig, C64_TURBO232, "C64 Turbo232 cartridge", tag, owner, clock), | |
| 111 | device_t(mconfig, C64_TURBO232, "C64 Turbo232 cartridge", tag, owner, clock, "c64_turbo232", __FILE__), | |
| 112 | 112 | device_c64_expansion_card_interface(mconfig, *this), |
| 113 | 113 | m_acia(*this, MOS6551_TAG), |
| 114 | 114 | m_rs232(*this, RS232_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 12 | 12 | const device_type MSFT_SERIAL_MOUSE = &device_creator<microsoft_mouse_device>; |
| 13 | 13 | const device_type MSYSTEM_SERIAL_MOUSE = &device_creator<mouse_systems_mouse_device>; |
| 14 | 14 | |
| 15 | serial_mouse_device::serial_mouse_device(const machine_config &mconfig, device_type type, const char* name, const char *tag, device_t *owner, UINT32 clock) | |
| 16 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 15 | serial_mouse_device::serial_mouse_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) | |
| 16 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 17 | 17 | device_rs232_port_interface(mconfig, *this), |
| 18 | 18 | device_serial_interface(mconfig, *this), |
| 19 | 19 | m_x(*this, "ser_mouse_x"), |
| r22095 | r22096 | |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | microsoft_mouse_device::microsoft_mouse_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 26 | : serial_mouse_device(mconfig, MSFT_SERIAL_MOUSE, "Microsoft Serial Mouse", tag, owner, clock) | |
| 26 | : serial_mouse_device(mconfig, MSFT_SERIAL_MOUSE, "Microsoft Serial Mouse", tag, owner, clock, "microsoft_mouse", __FILE__) | |
| 27 | 27 | { |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | mouse_systems_mouse_device::mouse_systems_mouse_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 31 | : serial_mouse_device(mconfig, MSYSTEM_SERIAL_MOUSE, "Mouse Systems Serial Mouse", tag, owner, clock) | |
| 31 | : serial_mouse_device(mconfig, MSYSTEM_SERIAL_MOUSE, "Mouse Systems Serial Mouse", tag, owner, clock, "mouse_systems_mouse", __FILE__) | |
| 32 | 32 | { |
| 33 | 33 | } |
| 34 | 34 |
| r22095 | r22096 | |
|---|---|---|
| 29 | 29 | // device-level overrides |
| 30 | 30 | virtual void device_start(); |
| 31 | 31 | virtual void device_reset(); |
| 32 | virtual void device_config_complete(); | |
| 33 | 32 | }; |
| 34 | 33 | |
| 35 | 34 | // device type definition |
| r22095 | r22096 | |
|---|---|---|
| 439 | 439 | //------------------------------------------------- |
| 440 | 440 | |
| 441 | 441 | isa16_ide_cd_device::isa16_ide_cd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 442 | : device_t(mconfig, ISA16_IDE_CD, "IDE CD Drive Adapter", tag, owner, clock), | |
| 442 | : device_t(mconfig, ISA16_IDE_CD, "IDE CD Drive Adapter", tag, owner, clock, "isa_ide_cd", __FILE__), | |
| 443 | 443 | device_isa16_card_interface( mconfig, *this ), |
| 444 | 444 | m_is_primary(true), |
| 445 | 445 | m_inserted_cdrom(NULL) |
| r22095 | r22096 | |
|---|---|---|
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | 36 | virtual void device_start(); |
| 37 | virtual void device_config_complete() { m_shortname = "vic20_standard"; } | |
| 38 | 37 | |
| 39 | 38 | // device_vic20_expansion_card_interface overrides |
| 40 | 39 | virtual UINT8 vic20_cd_r(address_space &space, offs_t offset, UINT8 data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3); |
| r22095 | r22096 | |
|---|---|---|
| 121 | 121 | //------------------------------------------------- |
| 122 | 122 | |
| 123 | 123 | abc_hdc_device::abc_hdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 124 | : device_t(mconfig, ABC_HDC, "ABC HDC", tag, owner, clock), | |
| 124 | : device_t(mconfig, ABC_HDC, "ABC HDC", tag, owner, clock, "abc_hdc", __FILE__), | |
| 125 | 125 | device_abcbus_card_interface(mconfig, *this), |
| 126 | 126 | m_maincpu(*this, Z80_TAG), |
| 127 | 127 | m_sasibus(*this, SASIBUS_TAG) |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | |
| 44 | 44 | protected: |
| 45 | 45 | // device-level overrides |
| 46 | virtual void device_config_complete() { m_shortname = "c64_turbo232"; } | |
| 47 | 46 | virtual void device_start(); |
| 48 | 47 | virtual void device_reset(); |
| 49 | 48 |
| r22095 | r22096 | |
|---|---|---|
| 16 | 16 | public device_serial_interface |
| 17 | 17 | { |
| 18 | 18 | public: |
| 19 | serial_mouse_device(const machine_config &mconfig, device_type type, const char | |
| 19 | serial_mouse_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); | |
| 20 | 20 | |
| 21 | 21 | virtual ioport_constructor device_input_ports() const; |
| 22 | 22 | |
| r22095 | r22096 | |
| 55 | 55 | virtual void set_frame() { set_data_frame(7, 2, SERIAL_PARITY_NONE); } |
| 56 | 56 | virtual void mouse_trans(int dx, int dy, int nb, int mbc); |
| 57 | 57 | virtual void device_reset() {m_old_rts = 0; serial_mouse_device::device_reset();} |
| 58 | virtual void device_config_complete() { m_shortname = "microsoft_mouse"; } | |
| 59 | 58 | private: |
| 60 | 59 | void check_state(); |
| 61 | 60 | UINT8 m_old_rts; |
| r22095 | r22096 | |
| 71 | 70 | protected: |
| 72 | 71 | virtual void set_frame() { set_data_frame(8, 2, SERIAL_PARITY_NONE); } |
| 73 | 72 | virtual void mouse_trans(int dx, int dy, int nb, int mbc); |
| 74 | virtual void device_config_complete() { m_shortname = "mouse_systems_mouse"; } | |
| 75 | 73 | private: |
| 76 | 74 | void check_state() { set_mouse_enable((m_dtr && m_rts)?true:false); } |
| 77 | 75 | }; |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | { |
| 45 | 45 | memset(&m_out_int_cb, 0, sizeof(m_out_int_cb)); |
| 46 | 46 | } |
| 47 | ||
| 48 | m_shortname = "compiskb"; | |
| 49 | 47 | } |
| 50 | 48 | |
| 51 | 49 | |
| r22095 | r22096 | |
| 289 | 287 | //------------------------------------------------- |
| 290 | 288 | |
| 291 | 289 | compis_keyboard_device::compis_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 292 | : device_t(mconfig, COMPIS_KEYBOARD, "Compis Keyboard", tag, owner, clock), | |
| 290 | : device_t(mconfig, COMPIS_KEYBOARD, "Compis Keyboard", tag, owner, clock, "compiskb", __FILE__), | |
| 293 | 291 | m_maincpu(*this, I8748_TAG), |
| 294 | 292 | m_so(1) |
| 295 | 293 | { |
| r22095 | r22096 | |
|---|---|---|
| 66 | 66 | // device-level overrides |
| 67 | 67 | virtual void device_start(); |
| 68 | 68 | virtual void device_reset(); |
| 69 | virtual void device_config_complete() { m_shortname = "isa_ide_cd"; } | |
| 70 | 69 | private: |
| 71 | 70 | // internal state |
| 72 | 71 | bool m_is_primary; |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | // device-level overrides |
| 45 | 45 | virtual void device_start(); |
| 46 | 46 | virtual void device_reset(); |
| 47 | virtual void device_config_complete() { m_shortname = "abc_hdc"; } | |
| 48 | 47 | |
| 49 | 48 | // device_abcbus_interface overrides |
| 50 | 49 | virtual void abcbus_cs(UINT8 data); |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | const device_type SNS_LOROM_SETA11 = &device_creator<sns_rom_seta11dsp_device>; |
| 34 | 34 | |
| 35 | 35 | |
| 36 | sns_rom20_necdsp_device::sns_rom20_necdsp_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 37 | : sns_rom_device(mconfig, type, name, tag, owner, clock), | |
| 36 | sns_rom20_necdsp_device::sns_rom20_necdsp_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) | |
| 37 | : sns_rom_device(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 38 | 38 | m_upd7725(*this, "dsp") |
| 39 | 39 | { |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | sns_rom20_necdsp_device::sns_rom20_necdsp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 43 | : sns_rom_device(mconfig, SNS_LOROM_NECDSP, "SNES Cart (LoROM) + NEC DSP", tag, owner, clock), | |
| 43 | : sns_rom_device(mconfig, SNS_LOROM_NECDSP, "SNES Cart (LoROM) + NEC DSP", tag, owner, clock, "sns_rom_necdsp", __FILE__), | |
| 44 | 44 | m_upd7725(*this, "dsp") |
| 45 | 45 | { |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | sns_rom21_necdsp_device::sns_rom21_necdsp_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 49 | : sns_rom21_device(mconfig, type, name, tag, owner, clock), | |
| 48 | sns_rom21_necdsp_device::sns_rom21_necdsp_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) | |
| 49 | : sns_rom21_device(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 50 | 50 | m_upd7725(*this, "dsp") |
| 51 | 51 | { |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | sns_rom21_necdsp_device::sns_rom21_necdsp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 55 | : sns_rom21_device(mconfig, SNS_HIROM_NECDSP, "SNES Cart (HiROM) + NEC DSP", tag, owner, clock), | |
| 55 | : sns_rom21_device(mconfig, SNS_HIROM_NECDSP, "SNES Cart (HiROM) + NEC DSP", tag, owner, clock, "sns_rom21_necdsp", __FILE__), | |
| 56 | 56 | m_upd7725(*this, "dsp") |
| 57 | 57 | { |
| 58 | 58 | } |
| 59 | 59 | |
| 60 | sns_rom_setadsp_device::sns_rom_setadsp_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 61 | : sns_rom_device(mconfig, type, name, tag, owner, clock), | |
| 60 | sns_rom_setadsp_device::sns_rom_setadsp_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) | |
| 61 | : sns_rom_device(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 62 | 62 | m_upd96050(*this, "dsp") |
| 63 | 63 | { |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | sns_rom_seta10dsp_device::sns_rom_seta10dsp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 67 | : sns_rom_setadsp_device(mconfig, SNS_LOROM_SETA10, "SNES Cart (LoROM) + Seta ST010 DSP", tag, owner, clock) | |
| 67 | : sns_rom_setadsp_device(mconfig, SNS_LOROM_SETA10, "SNES Cart (LoROM) + Seta ST010 DSP", tag, owner, clock, "sns_rom_seta10", __FILE__) | |
| 68 | 68 | { |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | sns_rom_seta11dsp_device::sns_rom_seta11dsp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 72 | : sns_rom_setadsp_device(mconfig, SNS_LOROM_SETA11, "SNES Cart (LoROM) + Seta ST011 DSP", tag, owner, clock) | |
| 72 | : sns_rom_setadsp_device(mconfig, SNS_LOROM_SETA11, "SNES Cart (LoROM) + Seta ST011 DSP", tag, owner, clock, "sns_rom_seta11", __FILE__) | |
| 73 | 73 | { |
| 74 | 74 | } |
| 75 | 75 | |
| r22095 | r22096 | |
| 410 | 410 | |
| 411 | 411 | |
| 412 | 412 | sns_rom20_necdsp1_legacy_device::sns_rom20_necdsp1_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 413 | : sns_rom20_necdsp_device(mconfig, SNS_LOROM_NECDSP1_LEG, "SNES Cart (LoROM) + NEC DSP1 Legacy", tag, owner, clock) | |
| 413 | : sns_rom20_necdsp_device(mconfig, SNS_LOROM_NECDSP1_LEG, "SNES Cart (LoROM) + NEC DSP1 Legacy", tag, owner, clock, "dsp1leg", __FILE__) | |
| 414 | 414 | { |
| 415 | 415 | } |
| 416 | 416 | |
| 417 | 417 | sns_rom20_necdsp1b_legacy_device::sns_rom20_necdsp1b_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 418 | : sns_rom20_necdsp_device(mconfig, SNS_LOROM_NECDSP1B_LEG, "SNES Cart (LoROM) + NEC DSP1B Legacy", tag, owner, clock) | |
| 418 | : sns_rom20_necdsp_device(mconfig, SNS_LOROM_NECDSP1B_LEG, "SNES Cart (LoROM) + NEC DSP1B Legacy", tag, owner, clock, "dsp1bleg", __FILE__) | |
| 419 | 419 | { |
| 420 | 420 | } |
| 421 | 421 | |
| 422 | 422 | sns_rom20_necdsp2_legacy_device::sns_rom20_necdsp2_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 423 | : sns_rom20_necdsp_device(mconfig, SNS_LOROM_NECDSP2_LEG, "SNES Cart (LoROM) + NEC DSP2 Legacy", tag, owner, clock) | |
| 423 | : sns_rom20_necdsp_device(mconfig, SNS_LOROM_NECDSP2_LEG, "SNES Cart (LoROM) + NEC DSP2 Legacy", tag, owner, clock, "dsp2leg", __FILE__) | |
| 424 | 424 | { |
| 425 | 425 | } |
| 426 | 426 | |
| 427 | 427 | sns_rom20_necdsp3_legacy_device::sns_rom20_necdsp3_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 428 | : sns_rom20_necdsp_device(mconfig, SNS_LOROM_NECDSP3_LEG, "SNES Cart (LoROM) + NEC DSP3 Legacy", tag, owner, clock) | |
| 428 | : sns_rom20_necdsp_device(mconfig, SNS_LOROM_NECDSP3_LEG, "SNES Cart (LoROM) + NEC DSP3 Legacy", tag, owner, clock, "dsp3leg", __FILE__) | |
| 429 | 429 | { |
| 430 | 430 | } |
| 431 | 431 | |
| 432 | 432 | sns_rom20_necdsp4_legacy_device::sns_rom20_necdsp4_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 433 | : sns_rom20_necdsp_device(mconfig, SNS_LOROM_NECDSP4_LEG, "SNES Cart (LoROM) + NEC DSP4 Legacy", tag, owner, clock) | |
| 433 | : sns_rom20_necdsp_device(mconfig, SNS_LOROM_NECDSP4_LEG, "SNES Cart (LoROM) + NEC DSP4 Legacy", tag, owner, clock, "dsp4leg", __FILE__) | |
| 434 | 434 | { |
| 435 | 435 | } |
| 436 | 436 | |
| 437 | 437 | sns_rom21_necdsp1_legacy_device::sns_rom21_necdsp1_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 438 | : sns_rom21_necdsp_device(mconfig, SNS_HIROM_NECDSP1_LEG, "SNES Cart (HiROM) + NEC DSP1 Legacy", tag, owner, clock) | |
| 438 | : sns_rom21_necdsp_device(mconfig, SNS_HIROM_NECDSP1_LEG, "SNES Cart (HiROM) + NEC DSP1 Legacy", tag, owner, clock, "dsp1leg_hi", __FILE__) | |
| 439 | 439 | { |
| 440 | 440 | } |
| 441 | 441 | |
| 442 | 442 | sns_rom_seta10dsp_legacy_device::sns_rom_seta10dsp_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 443 | : sns_rom_setadsp_device(mconfig, SNS_LOROM_SETA10_LEG, "SNES Cart (LoROM) + Seta ST010 DSP Legacy", tag, owner, clock) | |
| 443 | : sns_rom_setadsp_device(mconfig, SNS_LOROM_SETA10_LEG, "SNES Cart (LoROM) + Seta ST010 DSP Legacy", tag, owner, clock, "seta10leg", __FILE__) | |
| 444 | 444 | { |
| 445 | 445 | } |
| 446 | 446 | |
| 447 | 447 | sns_rom_seta11dsp_legacy_device::sns_rom_seta11dsp_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 448 | : sns_rom_setadsp_device(mconfig, SNS_LOROM_SETA11_LEG, "SNES Cart (LoROM) + Seta ST011 DSP Legacy", tag, owner, clock) | |
| 448 | : sns_rom_setadsp_device(mconfig, SNS_LOROM_SETA11_LEG, "SNES Cart (LoROM) + Seta ST011 DSP Legacy", tag, owner, clock, "seta11leg", __FILE__) | |
| 449 | 449 | { |
| 450 | 450 | } |
| 451 | 451 |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | }; |
| 38 | 38 | |
| 39 | 39 | ti_fdc_device::ti_fdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 40 | : ti_expansion_card_device(mconfig, TI99_FDC, "TI-99 Standard DSSD Floppy Controller", tag, owner, clock) | |
| 40 | : ti_expansion_card_device(mconfig, TI99_FDC, "TI-99 Standard DSSD Floppy Controller", tag, owner, clock, "ti99_fdc", __FILE__) | |
| 41 | 41 | { |
| 42 | m_shortname = "ti99_fdc"; | |
| 43 | 42 | } |
| 44 | 43 | |
| 45 | 44 | /* |
| r22095 | r22096 | |
|---|---|---|
| 94 | 94 | #define VERBOSE 1 |
| 95 | 95 | |
| 96 | 96 | ti_pcode_card_device::ti_pcode_card_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 97 | : ti_expansion_card_device(mconfig, TI99_P_CODE, "TI-99 P-Code Card", tag, owner, clock) | |
| 97 | : ti_expansion_card_device(mconfig, TI99_P_CODE, "TI-99 P-Code Card", tag, owner, clock, "ti99_pcode", __FILE__) | |
| 98 | 98 | { |
| 99 | m_shortname = "ti99_pcode"; | |
| 100 | 99 | } |
| 101 | 100 | |
| 102 | 101 | READ8Z_MEMBER( ti_pcode_card_device::readz ) |
| r22095 | r22096 | |
|---|---|---|
| 51 | 51 | }; |
| 52 | 52 | |
| 53 | 53 | nouspikel_usb_smartmedia_device::nouspikel_usb_smartmedia_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 54 | : ti_expansion_card_device(mconfig, TI99_USBSM, "Nouspikel USB/Smartmedia card", tag, owner, clock) | |
| 54 | : ti_expansion_card_device(mconfig, TI99_USBSM, "Nouspikel USB/Smartmedia card", tag, owner, clock, "ti99_usbsm", __FILE__) | |
| 55 | 55 | { |
| 56 | m_shortname = "ti99_usbsm"; | |
| 57 | 56 | } |
| 58 | 57 | |
| 59 | 58 | /* |
| r22095 | r22096 | |
|---|---|---|
| 30 | 30 | #define RAMREGION "ram" |
| 31 | 31 | |
| 32 | 32 | ti_32k_expcard_device::ti_32k_expcard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 33 | : ti_expansion_card_device(mconfig, TI_32KMEM, "TI-99 32KiB memory expansion card", tag, owner, clock) | |
| 33 | : ti_expansion_card_device(mconfig, TI_32KMEM, "TI-99 32KiB memory expansion card", tag, owner, clock, "ti99_32k", __FILE__) | |
| 34 | 34 | { |
| 35 | m_shortname = "ti99_32k"; | |
| 36 | 35 | } |
| 37 | 36 | |
| 38 | 37 | READ8Z_MEMBER(ti_32k_expcard_device::readz) |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | #define NOVRAM_SIZE 256 |
| 24 | 24 | |
| 25 | 25 | snug_enhanced_video_device::snug_enhanced_video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 26 | : ti_expansion_card_device(mconfig, TI99_EVPC, "SNUG Enhanced Video Processor Card", tag, owner, clock), | |
| 26 | : ti_expansion_card_device(mconfig, TI99_EVPC, "SNUG Enhanced Video Processor Card", tag, owner, clock, "ti99_evpc", __FILE__), | |
| 27 | 27 | device_nvram_interface(mconfig, *this) |
| 28 | 28 | { |
| 29 | m_shortname = "ti99_evpc"; | |
| 30 | 29 | } |
| 31 | 30 | |
| 32 | 31 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 30 | 30 | /****************************************************************************/ |
| 31 | 31 | |
| 32 | 32 | ti998_spsyn_device::ti998_spsyn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 33 | : bus8z_device(mconfig, TI99_SPEECH8, "TI-99/8 Speech synthesizer (onboard)", tag, owner, clock) | |
| 33 | : bus8z_device(mconfig, TI99_SPEECH8, "TI-99/8 Speech synthesizer (onboard)", tag, owner, clock, "ti99_speech8", __FILE__) | |
| 34 | 34 | , m_load_pointer(0) |
| 35 | 35 | { |
| 36 | m_shortname = "ti99_speech8"; | |
| 37 | 36 | } |
| 38 | 37 | |
| 39 | 38 | /* |
| r22095 | r22096 | |
|---|---|---|
| 25 | 25 | /* |
| 26 | 26 | Constructors |
| 27 | 27 | */ |
| 28 | ti_video_device::ti_video_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 29 | : bus8z_device(mconfig, type, name, tag, owner, clock) | |
| 28 | ti_video_device::ti_video_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) | |
| 29 | : bus8z_device(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 30 | 30 | { |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | ti_std_video_device::ti_std_video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 34 | : ti_video_device(mconfig, TI99VIDEO, "Video subsystem", tag, owner, clock) | |
| 34 | : ti_video_device(mconfig, TI99VIDEO, "Video subsystem", tag, owner, clock, "ti99_video", __FILE__) | |
| 35 | 35 | { |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | ti_exp_video_device::ti_exp_video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 39 | : ti_video_device(mconfig, V9938VIDEO, "Video subsystem", tag, owner, clock) | |
| 39 | : ti_video_device(mconfig, V9938VIDEO, "Video subsystem", tag, owner, clock, "v9938_video", __FILE__) | |
| 40 | 40 | { |
| 41 | 41 | } |
| 42 | 42 |
| r22095 | r22096 | |
|---|---|---|
| 24 | 24 | #define LOG logerror |
| 25 | 25 | |
| 26 | 26 | sams_memory_expansion_device::sams_memory_expansion_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 27 | : ti_expansion_card_device(mconfig, TI99_SAMSMEM, "SuperAMS memory expansion card", tag, owner, clock) | |
| 27 | : ti_expansion_card_device(mconfig, TI99_SAMSMEM, "SuperAMS memory expansion card", tag, owner, clock, "ti99_sams", __FILE__) | |
| 28 | 28 | { |
| 29 | m_shortname = "ti99_sams"; | |
| 30 | 29 | } |
| 31 | 30 | |
| 32 | 31 | /* |
| r22095 | r22096 | |
|---|---|---|
| 49 | 49 | }; |
| 50 | 50 | |
| 51 | 51 | nouspikel_ide_interface_device::nouspikel_ide_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 52 | : ti_expansion_card_device(mconfig, TI99_IDE, "Nouspikel IDE interface card", tag, owner, clock) | |
| 52 | : ti_expansion_card_device(mconfig, TI99_IDE, "Nouspikel IDE interface card", tag, owner, clock, "ti99_ide", __FILE__) | |
| 53 | 53 | { |
| 54 | m_shortname = "ti99_ide"; | |
| 55 | 54 | } |
| 56 | 55 | |
| 57 | 56 | /* |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | tms9928a_device *m_tms9928a; |
| 28 | 28 | |
| 29 | 29 | /* Constructor */ |
| 30 | ti_video_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 30 | 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 | 31 | virtual void device_start(void); |
| 32 | 32 | virtual void device_reset(void); |
| 33 | 33 | virtual DECLARE_READ8Z_MEMBER(readz) { }; |
| r22095 | r22096 | |
| 89 | 89 | { |
| 90 | 90 | public: |
| 91 | 91 | ti_sound_system_device(const machine_config &mconfig, device_type type, const char *tag, const char *name, device_t *owner, UINT32 clock) |
| 92 | : bus8z_device(mconfig, type, name, tag, owner, clock) { }; | |
| 92 | : bus8z_device(mconfig, type, name, tag, owner, clock, "ti99_ss", __FILE__) { }; | |
| 93 | 93 | |
| 94 | 94 | // Cannot read from sound; just ignore silently |
| 95 | 95 | DECLARE_READ8Z_MEMBER(readz) { }; |
| r22095 | r22096 | |
|---|---|---|
| 39 | 39 | #define LOG logerror |
| 40 | 40 | |
| 41 | 41 | myarc_hfdc_device::myarc_hfdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 42 | : ti_expansion_card_device(mconfig, TI99_HFDC, "Myarc Hard and Floppy Disk Controller", tag, owner, clock) | |
| 42 | : ti_expansion_card_device(mconfig, TI99_HFDC, "Myarc Hard and Floppy Disk Controller", tag, owner, clock, "ti99_hfdc", __FILE__) | |
| 43 | 43 | { |
| 44 | m_shortname = "ti99_hfdc"; | |
| 45 | 44 | } |
| 46 | 45 | |
| 47 | 46 | /* |
| r22095 | r22096 | |
|---|---|---|
| 61 | 61 | class bus8z_device : public device_t |
| 62 | 62 | { |
| 63 | 63 | public: |
| 64 | bus8z_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 65 | : device_t(mconfig, type, name, tag, owner, clock) { } | |
| 64 | bus8z_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) | |
| 65 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source) { } | |
| 66 | 66 | virtual DECLARE_READ8Z_MEMBER(readz) =0; |
| 67 | 67 | virtual DECLARE_WRITE8_MEMBER(write) =0; |
| 68 | 68 | }; |
| r22095 | r22096 | |
|---|---|---|
| 115 | 115 | #define ESC 0x1b |
| 116 | 116 | |
| 117 | 117 | ti_rs232_pio_device::ti_rs232_pio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 118 | : ti_expansion_card_device(mconfig, TI99_RS232, "TI-99 RS232/PIO interface", tag, owner, clock) | |
| 118 | : ti_expansion_card_device(mconfig, TI99_RS232, "TI-99 RS232/PIO interface", tag, owner, clock, "ti99_rs232", __FILE__) | |
| 119 | 119 | { |
| 120 | m_shortname = "ti99_rs232"; | |
| 121 | 120 | } |
| 122 | 121 | |
| 123 | 122 |
| r22095 | r22096 | |
|---|---|---|
| 222 | 222 | }; |
| 223 | 223 | |
| 224 | 224 | peribox_device::peribox_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 225 | : bus8z_device(mconfig, PERIBOX, "Peripheral expansion box", tag, owner, clock) | |
| 225 | : bus8z_device(mconfig, PERIBOX, "Peripheral expansion box", tag, owner, clock, "peribox", __FILE__) | |
| 226 | 226 | { |
| 227 | 227 | for (int i=2; i <= 8; i++) m_slot[i] = NULL; |
| 228 | 228 | } |
| r22095 | r22096 | |
| 559 | 559 | } |
| 560 | 560 | |
| 561 | 561 | peribox_slot_device::peribox_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 562 | : bus8z_device(mconfig, PERIBOX_SLOT, "TI P-Box slot", tag, owner, clock), device_slot_interface(mconfig, *this) | |
| 562 | : bus8z_device(mconfig, PERIBOX_SLOT, "TI P-Box slot", tag, owner, clock, "peribox_slot", __FILE__), device_slot_interface(mconfig, *this) | |
| 563 | 563 | { |
| 564 | 564 | } |
| 565 | 565 |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | }; |
| 44 | 44 | |
| 45 | 45 | myarc_memory_expansion_device::myarc_memory_expansion_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 46 | : ti_expansion_card_device(mconfig, TI99_MYARCMEM, "Myarc Memory expansion card MEXP-1", tag, owner, clock) | |
| 46 | : ti_expansion_card_device(mconfig, TI99_MYARCMEM, "Myarc Memory expansion card MEXP-1", tag, owner, clock, "ti99_myarcmem", __FILE__) | |
| 47 | 47 | { |
| 48 | m_shortname = "ti99_myarcmem"; | |
| 49 | 48 | } |
| 50 | 49 | |
| 51 | 50 | int myarc_memory_expansion_device::get_base(int offset) |
| r22095 | r22096 | |
|---|---|---|
| 31 | 31 | }; |
| 32 | 32 | |
| 33 | 33 | geneve_memex_device::geneve_memex_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 34 | : ti_expansion_card_device(mconfig, TI99_MEMEX, "Geneve memory expansion card", tag, owner, clock) | |
| 34 | : ti_expansion_card_device(mconfig, TI99_MEMEX, "Geneve memory expansion card", tag, owner, clock, "ti99_memex", __FILE__) | |
| 35 | 35 | { |
| 36 | m_shortname = "ti99_memex"; | |
| 37 | 36 | } |
| 38 | 37 | |
| 39 | 38 | bool geneve_memex_device::access_enabled(offs_t offset) |
| r22095 | r22096 | |
|---|---|---|
| 55 | 55 | #define MAP8_INTS (void*)6L |
| 56 | 56 | |
| 57 | 57 | ti998_mapper_device::ti998_mapper_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 58 | : bus8z_device(mconfig, MAPPER8, "TI-99/8 Memory mapper", tag, owner, clock) | |
| 58 | : bus8z_device(mconfig, MAPPER8, "TI-99/8 Memory mapper", tag, owner, clock, "ti99_mapper8", __FILE__) | |
| 59 | 59 | { |
| 60 | 60 | } |
| 61 | 61 |
| r22095 | r22096 | |
|---|---|---|
| 178 | 178 | friend class peribox_slot_device; |
| 179 | 179 | |
| 180 | 180 | public: |
| 181 | ti_expansion_card_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 182 | : bus8z_device(mconfig, type, name, tag, owner, clock), | |
| 181 | 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) | |
| 182 | : bus8z_device(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 183 | 183 | device_slot_card_interface(mconfig, *this) |
| 184 | 184 | { |
| 185 | 185 | m_slot = static_cast<peribox_slot_device*>(owner); |
| r22095 | r22096 | |
|---|---|---|
| 51 | 51 | #define POLL_TIMER 1 |
| 52 | 52 | |
| 53 | 53 | mecmouse_device::mecmouse_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 54 | : joyport_attached_device(mconfig, MECMOUSE, "Mechatronics Mouse", tag, owner, clock) | |
| 54 | : joyport_attached_device(mconfig, MECMOUSE, "Mechatronics Mouse", tag, owner, clock, "mecmouse", __FILE__) | |
| 55 | 55 | { |
| 56 | m_shortname = "mecmouse"; | |
| 57 | 56 | } |
| 58 | 57 | |
| 59 | 58 |
| r22095 | r22096 | |
|---|---|---|
| 45 | 45 | #define BUFFER "ram" |
| 46 | 46 | |
| 47 | 47 | snug_bwg_device::snug_bwg_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 48 | : ti_expansion_card_device(mconfig, TI99_BWG, "SNUG BwG Floppy Controller", tag, owner, clock) | |
| 48 | : ti_expansion_card_device(mconfig, TI99_BWG, "SNUG BwG Floppy Controller", tag, owner, clock, "ti99_bwg", __FILE__) | |
| 49 | 49 | { |
| 50 | m_shortname = "ti99_bwg"; | |
| 51 | 50 | } |
| 52 | 51 | |
| 53 | 52 | /* |
| r22095 | r22096 | |
|---|---|---|
| 49 | 49 | static const char *const keynames[] = { "KP0", "KP1", "KP2", "KP3", "KP4" }; |
| 50 | 50 | |
| 51 | 51 | ti99_handset_device::ti99_handset_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 52 | : joyport_attached_device(mconfig, HANDSET, "TI-99/4 IR handset", tag, owner, clock) | |
| 52 | : joyport_attached_device(mconfig, HANDSET, "TI-99/4 IR handset", tag, owner, clock, "handset", __FILE__) | |
| 53 | 53 | { |
| 54 | m_shortname = "handset"; | |
| 55 | 54 | } |
| 56 | 55 | |
| 57 | 56 | #define POLL_TIMER 1 |
| r22095 | r22096 | |
| 494 | 493 | INPUT_PORTS_END |
| 495 | 494 | |
| 496 | 495 | ti99_twin_joystick::ti99_twin_joystick(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 497 | : joyport_attached_device(mconfig, HANDSET, "TI-99/4(A) Twin Joystick", tag, owner, clock) | |
| 496 | : joyport_attached_device(mconfig, HANDSET, "TI-99/4(A) Twin Joystick", tag, owner, clock, "twinjoy", __FILE__) | |
| 498 | 497 | { |
| 499 | m_shortname = "twinjoy"; | |
| 500 | 498 | } |
| 501 | 499 | |
| 502 | 500 | void ti99_twin_joystick::device_start(void) |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | /****************************************************************************/ |
| 34 | 34 | |
| 35 | 35 | ti_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) | |
| 36 | : ti_expansion_card_device(mconfig, TI99_SPEECH, "TI-99 Speech synthesizer (on adapter card)", tag, owner, clock, "ti99_speech", __FILE__) | |
| 37 | 37 | { |
| 38 | m_shortname = "ti99_speech"; | |
| 39 | 38 | } |
| 40 | 39 | |
| 41 | 40 | /* |
| r22095 | r22096 | |
|---|---|---|
| 64 | 64 | #define LOG logerror |
| 65 | 65 | |
| 66 | 66 | horizon_ramdisk_device::horizon_ramdisk_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 67 | : ti_expansion_card_device(mconfig, TI99_HORIZON, "Horizon 4000 Ramdisk", tag, owner, clock) ,device_nvram_interface(mconfig, *this) | |
| 67 | : ti_expansion_card_device(mconfig, TI99_HORIZON, "Horizon 4000 Ramdisk", tag, owner, clock,"ti99_horizon",__FILE__), | |
| 68 | device_nvram_interface(mconfig, *this) | |
| 68 | 69 | { |
| 69 | m_shortname = "ti99_horizon"; | |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 92 | 92 | Constructor. |
| 93 | 93 | */ |
| 94 | 94 | ti99_grom_device::ti99_grom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 95 | : bus8z_device(mconfig, GROM, "TI-99 GROM device", tag, owner, clock) | |
| 95 | : bus8z_device(mconfig, GROM, "TI-99 GROM device", tag, owner, clock, "ti99_grom", __FILE__) | |
| 96 | 96 | { |
| 97 | 97 | } |
| 98 | 98 |
| r22095 | r22096 | |
|---|---|---|
| 129 | 129 | #define GKRACKER_NVRAM_TAG "gkracker_nvram" |
| 130 | 130 | |
| 131 | 131 | gromport_device::gromport_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 132 | : bus8z_device(mconfig, GROMPORT, "Cartridge port", tag, owner, clock), | |
| 132 | : bus8z_device(mconfig, GROMPORT, "Cartridge port", tag, owner, clock, "gromport", __FILE__), | |
| 133 | 133 | device_slot_interface(mconfig, *this), |
| 134 | 134 | m_connector(NULL), |
| 135 | 135 | m_reset_on_insert(true) |
| r22095 | r22096 | |
| 236 | 236 | const device_type GROMPORT_MULTI = &device_creator<multi_conn_device>; |
| 237 | 237 | const device_type GROMPORT_GK = &device_creator<gkracker_device>; |
| 238 | 238 | |
| 239 | ti99_cartridge_connector_device::ti99_cartridge_connector_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 240 | : bus8z_device(mconfig, type, name, tag, owner, clock), | |
| 239 | ti99_cartridge_connector_device::ti99_cartridge_connector_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) | |
| 240 | : bus8z_device(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 241 | 241 | m_gromport(NULL) |
| 242 | 242 | { |
| 243 | 243 | } |
| r22095 | r22096 | |
| 248 | 248 | } |
| 249 | 249 | |
| 250 | 250 | single_conn_device::single_conn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 251 | : ti99_cartridge_connector_device(mconfig, GROMPORT_SINGLE, "Standard cartridge connector", tag, owner, clock), | |
| 251 | : ti99_cartridge_connector_device(mconfig, GROMPORT_SINGLE, "Standard cartridge connector", tag, owner, clock, "single", __FILE__), | |
| 252 | 252 | m_cartridge(NULL) |
| 253 | 253 | { |
| 254 | m_shortname = "single"; | |
| 255 | 254 | } |
| 256 | 255 | |
| 257 | 256 | READ8Z_MEMBER(single_conn_device::readz) |
| r22095 | r22096 | |
| 343 | 342 | #define AUTO -1 |
| 344 | 343 | |
| 345 | 344 | multi_conn_device::multi_conn_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 346 | : ti99_cartridge_connector_device(mconfig, GROMPORT_MULTI, "Multi-cartridge extender", tag, owner, clock), | |
| 345 | : ti99_cartridge_connector_device(mconfig, GROMPORT_MULTI, "Multi-cartridge extender", tag, owner, clock, "multi", __FILE__), | |
| 347 | 346 | m_active_slot(0), |
| 348 | 347 | m_fixed_slot(0), |
| 349 | 348 | m_next_free_slot(0) |
| 350 | 349 | { |
| 351 | m_shortname = "multi"; | |
| 352 | 350 | } |
| 353 | 351 | |
| 354 | 352 | /* |
| r22095 | r22096 | |
| 671 | 669 | #define GKSWITCH5_TAG "GKSWITCH5" |
| 672 | 670 | |
| 673 | 671 | gkracker_device::gkracker_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 674 | : ti99_cartridge_connector_device(mconfig, GROMPORT_GK, "GRAMKracker", tag, owner, clock), | |
| 672 | : ti99_cartridge_connector_device(mconfig, GROMPORT_GK, "GRAMKracker", tag, owner, clock, "ti99_gkracker", __FILE__), | |
| 675 | 673 | device_nvram_interface(mconfig, *this), |
| 676 | 674 | m_ram_page(0), |
| 677 | 675 | m_grom_address(0), |
| r22095 | r22096 | |
| 680 | 678 | m_waddr_LSB(false), |
| 681 | 679 | m_cartridge(NULL) |
| 682 | 680 | { |
| 683 | m_shortname = "ti99_gkracker"; | |
| 684 | 681 | } |
| 685 | 682 | |
| 686 | 683 | READ8Z_MEMBER(gkracker_device::readz) |
| r22095 | r22096 | |
| 1094 | 1091 | }; |
| 1095 | 1092 | |
| 1096 | 1093 | ti99_cartridge_device::ti99_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1097 | : bus8z_device(mconfig, TI99CART, "TI-99 cartridge", tag, owner, clock), | |
| 1094 | : bus8z_device(mconfig, TI99CART, "TI-99 cartridge", tag, owner, clock, "cartridge", __FILE__), | |
| 1098 | 1095 | device_image_interface(mconfig, *this), |
| 1099 | 1096 | m_softlist(false), |
| 1100 | 1097 | m_pcbtype(0), |
| r22095 | r22096 | |
| 1103 | 1100 | m_connector(NULL), |
| 1104 | 1101 | m_rpk(NULL) |
| 1105 | 1102 | { |
| 1106 | m_shortname = "cartridge"; | |
| 1107 | 1103 | } |
| 1108 | 1104 | |
| 1109 | 1105 | void ti99_cartridge_device::prepare_cartridge() |
| r22095 | r22096 | |
|---|---|---|
| 40 | 40 | { |
| 41 | 41 | friend class joyport_device; |
| 42 | 42 | public: |
| 43 | joyport_attached_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 44 | : device_t(mconfig, type, name, tag, owner, clock) { } | |
| 43 | 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) | |
| 44 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source) { } | |
| 45 | 45 | |
| 46 | 46 | protected: |
| 47 | 47 | virtual void device_config_complete(); |
| r22095 | r22096 | |
|---|---|---|
| 129 | 129 | #define ROM6_EEPROM "u6_rom6" |
| 130 | 130 | |
| 131 | 131 | snug_high_speed_gpl_device::snug_high_speed_gpl_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 132 | : ti_expansion_card_device(mconfig, TI99_HSGPL, "SNUG High-speed GPL card", tag, owner, clock) | |
| 132 | : ti_expansion_card_device(mconfig, TI99_HSGPL, "SNUG High-speed GPL card", tag, owner, clock, "ti99_hsgpl", __FILE__) | |
| 133 | 133 | { |
| 134 | m_shortname = "ti99_hsgpl"; | |
| 135 | 134 | } |
| 136 | 135 | |
| 137 | 136 | /* |
| r22095 | r22096 | |
|---|---|---|
| 132 | 132 | virtual void remove(int index) { }; |
| 133 | 133 | |
| 134 | 134 | protected: |
| 135 | ti99_cartridge_connector_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 135 | ti99_cartridge_connector_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); | |
| 136 | 136 | gromport_device* m_gromport; |
| 137 | 137 | }; |
| 138 | 138 |
| r22095 | r22096 | |
|---|---|---|
| 50 | 50 | //------------------------------------------------- |
| 51 | 51 | |
| 52 | 52 | iq151_staper_device::iq151_staper_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 53 | : device_t(mconfig, IQ151_STAPER, "IQ151 STAPER", tag, owner, clock), | |
| 53 | : device_t(mconfig, IQ151_STAPER, "IQ151 STAPER", tag, owner, clock, "iq151_staper", __FILE__), | |
| 54 | 54 | device_iq151cart_interface( mconfig, *this ), |
| 55 | 55 | m_ppi(*this, "ppi8255"), |
| 56 | 56 | m_printer(*this, "printer") |
| r22095 | r22096 | |
|---|---|---|
| 174 | 174 | //------------------------------------------------- |
| 175 | 175 | |
| 176 | 176 | cmd_hd_device::cmd_hd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 177 | : device_t(mconfig, CMD_HD, "HD", tag, owner, clock), | |
| 177 | : device_t(mconfig, CMD_HD, "HD", tag, owner, clock, "cmdhd", __FILE__), | |
| 178 | 178 | device_cbm_iec_interface(mconfig, *this), |
| 179 | 179 | m_maincpu(*this, M6502_TAG), |
| 180 | 180 | m_scsibus(*this, SCSIBUS_TAG":host") |
| r22095 | r22096 | |
|---|---|---|
| 80 | 80 | //------------------------------------------------- |
| 81 | 81 | |
| 82 | 82 | vp550_device::vp550_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 83 | device_t(mconfig, VP550, "VP550", tag, owner, clock), | |
| 83 | device_t(mconfig, VP550, "VP550", tag, owner, clock, "vp550", __FILE__), | |
| 84 | 84 | device_vip_expansion_card_interface(mconfig, *this), |
| 85 | 85 | m_pfg_a(*this, CDP1863_A_TAG), |
| 86 | 86 | m_pfg_b(*this, CDP1863_B_TAG) |
| r22095 | r22096 | |
|---|---|---|
| 12 | 12 | { |
| 13 | 13 | public: |
| 14 | 14 | // construction/destruction |
| 15 | sns_rom20_necdsp_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 15 | sns_rom20_necdsp_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); | |
| 16 | 16 | sns_rom20_necdsp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 17 | 17 | |
| 18 | 18 | // device-level overrides |
| 19 | 19 | virtual void device_start(); |
| 20 | virtual void device_config_complete() { m_shortname = "sns_rom_necdsp"; } | |
| 21 | 20 | virtual machine_config_constructor device_mconfig_additions() const; |
| 22 | 21 | virtual void speedup_addon_bios_access(); |
| 23 | 22 | |
| r22095 | r22096 | |
| 40 | 39 | { |
| 41 | 40 | public: |
| 42 | 41 | // construction/destruction |
| 43 | sns_rom21_necdsp_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 42 | sns_rom21_necdsp_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 | 43 | sns_rom21_necdsp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 45 | 44 | |
| 46 | 45 | // device-level overrides |
| 47 | 46 | virtual void device_start(); |
| 48 | virtual void device_config_complete() { m_shortname = "sns_rom21_necdsp"; } | |
| 49 | 47 | virtual machine_config_constructor device_mconfig_additions() const; |
| 50 | 48 | virtual void speedup_addon_bios_access(); |
| 51 | 49 | |
| r22095 | r22096 | |
| 68 | 66 | { |
| 69 | 67 | public: |
| 70 | 68 | // construction/destruction |
| 71 | sns_rom_setadsp_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 69 | sns_rom_setadsp_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); | |
| 72 | 70 | |
| 73 | 71 | // device-level overrides |
| 74 | 72 | virtual void device_start(); |
| 75 | virtual void device_config_complete() { m_shortname = "sns_rom_setadsp"; } | |
| 76 | 73 | virtual void speedup_addon_bios_access(); |
| 77 | 74 | |
| 78 | 75 | required_device<upd96050_device> m_upd96050; |
| r22095 | r22096 | |
| 97 | 94 | sns_rom_seta10dsp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 98 | 95 | |
| 99 | 96 | // device-level overrides |
| 100 | virtual void device_config_complete() { m_shortname = "sns_rom_seta10"; } | |
| 101 | 97 | virtual machine_config_constructor device_mconfig_additions() const; |
| 102 | 98 | }; |
| 103 | 99 | |
| r22095 | r22096 | |
| 110 | 106 | sns_rom_seta11dsp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 111 | 107 | |
| 112 | 108 | // device-level overrides |
| 113 | virtual void device_config_complete() { m_shortname = "sns_rom_seta11"; } | |
| 114 | 109 | virtual machine_config_constructor device_mconfig_additions() const; |
| 115 | 110 | }; |
| 116 | 111 | |
| r22095 | r22096 | |
| 133 | 128 | sns_rom20_necdsp1_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 134 | 129 | |
| 135 | 130 | // device-level overrides |
| 136 | virtual void device_config_complete() { m_shortname = "dsp1leg"; } | |
| 137 | 131 | virtual machine_config_constructor device_mconfig_additions() const; |
| 138 | 132 | virtual const rom_entry *device_rom_region() const; |
| 139 | 133 | }; |
| r22095 | r22096 | |
| 145 | 139 | sns_rom20_necdsp1b_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 146 | 140 | |
| 147 | 141 | // device-level overrides |
| 148 | virtual void device_config_complete() { m_shortname = "dsp1bleg"; } | |
| 149 | 142 | virtual machine_config_constructor device_mconfig_additions() const; |
| 150 | 143 | virtual const rom_entry *device_rom_region() const; |
| 151 | 144 | }; |
| r22095 | r22096 | |
| 157 | 150 | sns_rom20_necdsp2_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 158 | 151 | |
| 159 | 152 | // device-level overrides |
| 160 | virtual void device_config_complete() { m_shortname = "dsp2leg"; } | |
| 161 | 153 | virtual machine_config_constructor device_mconfig_additions() const; |
| 162 | 154 | virtual const rom_entry *device_rom_region() const; |
| 163 | 155 | }; |
| r22095 | r22096 | |
| 169 | 161 | sns_rom20_necdsp3_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 170 | 162 | |
| 171 | 163 | // device-level overrides |
| 172 | virtual void device_config_complete() { m_shortname = "dsp3leg"; } | |
| 173 | 164 | virtual machine_config_constructor device_mconfig_additions() const; |
| 174 | 165 | virtual const rom_entry *device_rom_region() const; |
| 175 | 166 | }; |
| r22095 | r22096 | |
| 181 | 172 | sns_rom20_necdsp4_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 182 | 173 | |
| 183 | 174 | // device-level overrides |
| 184 | virtual void device_config_complete() { m_shortname = "dsp4leg"; } | |
| 185 | 175 | virtual machine_config_constructor device_mconfig_additions() const; |
| 186 | 176 | virtual const rom_entry *device_rom_region() const; |
| 187 | 177 | }; |
| r22095 | r22096 | |
| 193 | 183 | sns_rom21_necdsp1_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 194 | 184 | |
| 195 | 185 | // device-level overrides |
| 196 | virtual void device_config_complete() { m_shortname = "dsp1leg_hi"; } | |
| 197 | 186 | virtual machine_config_constructor device_mconfig_additions() const; |
| 198 | 187 | virtual const rom_entry *device_rom_region() const; |
| 199 | 188 | }; |
| r22095 | r22096 | |
| 205 | 194 | sns_rom_seta10dsp_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 206 | 195 | |
| 207 | 196 | // device-level overrides |
| 208 | virtual void device_config_complete() { m_shortname = "seta10leg"; } | |
| 209 | 197 | virtual machine_config_constructor device_mconfig_additions() const; |
| 210 | 198 | virtual const rom_entry *device_rom_region() const; |
| 211 | 199 | }; |
| r22095 | r22096 | |
| 217 | 205 | sns_rom_seta11dsp_legacy_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 218 | 206 | |
| 219 | 207 | // device-level overrides |
| 220 | virtual void device_config_complete() { m_shortname = "seta11leg"; } | |
| 221 | 208 | virtual machine_config_constructor device_mconfig_additions() const; |
| 222 | 209 | virtual const rom_entry *device_rom_region() const; |
| 223 | 210 | }; |
| r22095 | r22096 | |
|---|---|---|
| 48 | 48 | //------------------------------------------------- |
| 49 | 49 | |
| 50 | 50 | at_keyboard_controller_device::at_keyboard_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 51 | : device_t(mconfig, AT_KEYBOARD_CONTROLLER, "AT Keyboard Controller", tag, owner, clock), | |
| 51 | : device_t(mconfig, AT_KEYBOARD_CONTROLLER, "AT Keyboard Controller", tag, owner, clock, "at_keybc", __FILE__), | |
| 52 | 52 | m_cpu(NULL) |
| 53 | 53 | { |
| 54 | m_shortname = "at_keybc"; | |
| 55 | 54 | } |
| 56 | 55 | |
| 57 | 56 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | i82371sb_device::i82371sb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 29 | : southbridge_device(mconfig, I82371SB, "Intel 82371SB", tag, owner, clock), | |
| 29 | : southbridge_device(mconfig, I82371SB, "Intel 82371SB", tag, owner, clock, "i82371sb", __FILE__), | |
| 30 | 30 | pci_device_interface( mconfig, *this ) |
| 31 | 31 | { |
| 32 | 32 | } |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | protected: |
| 34 | 34 | // device-level overrides |
| 35 | 35 | virtual void device_start(); |
| 36 | virtual void device_config_complete() { m_shortname = "iq151_staper"; } | |
| 37 | 36 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 38 | 37 | |
| 39 | 38 | // iq151cart_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 42 | 42 | |
| 43 | 43 | protected: |
| 44 | 44 | // device-level overrides |
| 45 | virtual void device_config_complete() { m_shortname = "vp550"; } | |
| 46 | 45 | virtual void device_start(); |
| 47 | 46 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 48 | 47 |
| r22095 | r22096 | |
|---|---|---|
| 53 | 53 | |
| 54 | 54 | protected: |
| 55 | 55 | // device-level overrides |
| 56 | virtual void device_config_complete() { m_shortname = "cmdhd"; } | |
| 57 | 56 | virtual void device_start(); |
| 58 | 57 | virtual void device_reset(); |
| 59 | 58 |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | // device-level overrides |
| 29 | 29 | virtual void device_start(); |
| 30 | 30 | virtual void device_reset(); |
| 31 | virtual void device_config_complete() { m_shortname = "i82371sb"; } | |
| 32 | 31 | |
| 33 | 32 | UINT32 pci_isa_r(device_t *busdevice, int offset, UINT32 mem_mask); |
| 34 | 33 | void pci_isa_w(device_t *busdevice, int offset, UINT32 data, UINT32 mem_mask); |
| r22095 | r22096 | |
|---|---|---|
| 257 | 257 | //------------------------------------------------- |
| 258 | 258 | |
| 259 | 259 | s100_dj2db_device::s100_dj2db_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 260 | device_t(mconfig, S100_DJ2DB, "DJ2DB", tag, owner, clock), | |
| 260 | device_t(mconfig, S100_DJ2DB, "DJ2DB", tag, owner, clock, "dj2db", __FILE__), | |
| 261 | 261 | device_s100_card_interface(mconfig, *this), |
| 262 | 262 | m_fdc(*this, MB8866_TAG), |
| 263 | 263 | m_dbrg(*this, BR1941_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 26 | 26 | //************************************************************************** |
| 27 | 27 | |
| 28 | 28 | a2eaux_std80col_device::a2eaux_std80col_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 29 | device_t(mconfig, A2EAUX_STD80COL, "Apple IIe Standard 80-Column Card", tag, owner, clock), | |
| 29 | device_t(mconfig, A2EAUX_STD80COL, "Apple IIe Standard 80-Column Card", tag, owner, clock, "a2estd80", __FILE__), | |
| 30 | 30 | device_a2eauxslot_card_interface(mconfig, *this) |
| 31 | 31 | { |
| 32 | m_shortname = "a2estd80"; | |
| 33 | 32 | } |
| 34 | 33 | |
| 35 | a2eaux_std80col_device::a2eaux_std80col_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 36 | device_t(mconfig, type, name, tag, owner, clock), | |
| 34 | a2eaux_std80col_device::a2eaux_std80col_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) : | |
| 35 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 37 | 36 | device_a2eauxslot_card_interface(mconfig, *this) |
| 38 | 37 | { |
| 39 | m_shortname = "a2estd80"; | |
| 40 | 38 | } |
| 41 | 39 | |
| 42 | 40 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 107 | 107 | memset(&m_out_clock_cb, 0, sizeof(m_out_clock_cb)); |
| 108 | 108 | memset(&m_out_keydown_cb, 0, sizeof(m_out_keydown_cb)); |
| 109 | 109 | } |
| 110 | ||
| 111 | m_shortname = "abc800kb"; | |
| 112 | 110 | } |
| 113 | 111 | |
| 114 | 112 | |
| r22095 | r22096 | |
| 356 | 354 | //------------------------------------------------- |
| 357 | 355 | |
| 358 | 356 | abc800_keyboard_device::abc800_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 359 | : device_t(mconfig, ABC800_KEYBOARD, "ABC-800 Keyboard", tag, owner, clock), | |
| 357 | : device_t(mconfig, ABC800_KEYBOARD, "ABC-800 Keyboard", tag, owner, clock, "abc800kb", __FILE__), | |
| 360 | 358 | m_maincpu(*this, I8048_TAG), |
| 361 | 359 | m_x0(*this, "X0"), |
| 362 | 360 | m_x1(*this, "X1"), |
| r22095 | r22096 | |
|---|---|---|
| 46 | 46 | // device-level overrides |
| 47 | 47 | virtual void device_start(); |
| 48 | 48 | virtual void device_reset(); |
| 49 | virtual void device_config_complete() { m_shortname = "dj2db"; } | |
| 50 | 49 | |
| 51 | 50 | // device_s100_card_interface overrides |
| 52 | 51 | virtual UINT8 s100_smemr_r(address_space &space, offs_t offset); |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | public: |
| 24 | 24 | // construction/destruction |
| 25 | 25 | a2eaux_std80col_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 26 | a2eaux_std80col_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 26 | a2eaux_std80col_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); | |
| 27 | 27 | |
| 28 | 28 | protected: |
| 29 | 29 | virtual void device_start(); |
| r22095 | r22096 | |
|---|---|---|
| 61 | 61 | //------------------------------------------------- |
| 62 | 62 | |
| 63 | 63 | c64_silverrock_cartridge_device::c64_silverrock_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 64 | device_t(mconfig, C64_SILVERROCK, "C64 SilverRock cartridge", tag, owner, clock), | |
| 64 | device_t(mconfig, C64_SILVERROCK, "C64 SilverRock cartridge", tag, owner, clock, "c64_silverrock", __FILE__), | |
| 65 | 65 | device_c64_expansion_card_interface(mconfig, *this) |
| 66 | 66 | { |
| 67 | 67 | } |
| r22095 | r22096 | |
|---|---|---|
| 127 | 127 | //------------------------------------------------- |
| 128 | 128 | |
| 129 | 129 | pc9801_86_device::pc9801_86_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 130 | : device_t(mconfig, PC9801_86, "pc9801_86", tag, owner, clock), | |
| 130 | : device_t(mconfig, PC9801_86, "pc9801_86", tag, owner, clock, "pc9801_86", __FILE__), | |
| 131 | 131 | // m_maincpu(*owner, "maincpu"), |
| 132 | 132 | m_opna(*this, "opna") |
| 133 | 133 | { |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_silverrock"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | virtual void device_validity_check(validity_checker &valid) const; |
| 45 | 45 | virtual void device_start(); |
| 46 | 46 | virtual void device_reset(); |
| 47 | virtual void device_config_complete() { m_shortname = "pc9801_86"; } | |
| 48 | 47 | void install_device(offs_t start, offs_t end, offs_t mask, offs_t mirror, read8_delegate rhandler, write8_delegate whandler); |
| 49 | 48 | |
| 50 | 49 | private: |
| r22095 | r22096 | |
|---|---|---|
| 26 | 26 | |
| 27 | 27 | |
| 28 | 28 | sns_rom_sufami_device::sns_rom_sufami_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 29 | : sns_rom_device(mconfig, SNS_LOROM_SUFAMI, "SNES Sufami Turbo Cart", tag, owner, clock), | |
| 29 | : sns_rom_device(mconfig, SNS_LOROM_SUFAMI, "SNES Sufami Turbo Cart", tag, owner, clock, "sns_rom_sufami", __FILE__), | |
| 30 | 30 | m_slot1(*this, "st_slot1"), |
| 31 | 31 | m_slot2(*this, "st_slot2") |
| 32 | 32 | { |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | sns_rom_strom_device::sns_rom_strom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 36 | : sns_rom_device(mconfig, SNS_STROM, "SNES Sufami Turbo Minicart", tag, owner, clock) | |
| 36 | : sns_rom_device(mconfig, SNS_STROM, "SNES Sufami Turbo Minicart", tag, owner, clock, "sns_strom", __FILE__) | |
| 37 | 37 | { |
| 38 | 38 | } |
| 39 | 39 |
| r22095 | r22096 | |
|---|---|---|
| 106 | 106 | const device_type S1410 = &device_creator<s1410_device>; |
| 107 | 107 | |
| 108 | 108 | //------------------------------------------------- |
| 109 | // device_config_complete - perform any | |
| 110 | // operations now that the configuration is | |
| 111 | // complete | |
| 112 | //------------------------------------------------- | |
| 113 | ||
| 114 | void s1410_device::device_config_complete() | |
| 115 | { | |
| 116 | m_shortname = "s1410"; | |
| 117 | } | |
| 118 | ||
| 119 | ||
| 120 | //------------------------------------------------- | |
| 121 | 109 | // ROM( s1410 ) |
| 122 | 110 | //------------------------------------------------- |
| 123 | 111 | |
| r22095 | r22096 | |
| 204 | 192 | //------------------------------------------------- |
| 205 | 193 | |
| 206 | 194 | s1410_device::s1410_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 207 | : scsihd_device(mconfig, S1410, "Xebec S1410", tag, owner, clock) | |
| 195 | : scsihd_device(mconfig, S1410, "Xebec S1410", tag, owner, clock, "s1410", __FILE__) | |
| 208 | 196 | { |
| 209 | 197 | } |
| 210 | 198 |
| r22095 | r22096 | |
|---|---|---|
| 15 | 15 | |
| 16 | 16 | // device-level overrides |
| 17 | 17 | virtual void device_start(); |
| 18 | virtual void device_config_complete() { m_shortname = "sns_rom_sufami"; } | |
| 19 | 18 | virtual machine_config_constructor device_mconfig_additions() const; |
| 20 | 19 | |
| 21 | 20 | // additional reading and writing |
| r22095 | r22096 | |
| 39 | 38 | |
| 40 | 39 | // device-level overrides |
| 41 | 40 | virtual void device_start(); |
| 42 | virtual void device_config_complete() { m_shortname = "sns_strom"; } | |
| 43 | ||
| 41 | ||
| 44 | 42 | // additional reading and writing |
| 45 | 43 | virtual DECLARE_READ8_MEMBER(read_l); |
| 46 | 44 | }; |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | |
| 28 | 28 | virtual void ExecCommand( int *transferLength ); |
| 29 | 29 | virtual void WriteData( UINT8 *data, int dataLength ); |
| 30 | ||
| 31 | protected: | |
| 32 | // device-level overrides | |
| 33 | virtual void device_config_complete(); | |
| 34 | 30 | }; |
| 35 | 31 | |
| 36 | 32 |
| r22095 | r22096 | |
|---|---|---|
| 71 | 71 | // LIVE DEVICE |
| 72 | 72 | //************************************************************************** |
| 73 | 73 | |
| 74 | a2bus_memexp_device::a2bus_memexp_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 75 | device_t(mconfig, type, name, tag, owner, clock), | |
| 74 | a2bus_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) : | |
| 75 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 76 | 76 | device_a2bus_card_interface(mconfig, *this) |
| 77 | 77 | { |
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | a2bus_memexpapple_device::a2bus_memexpapple_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 81 | a2bus_memexp_device(mconfig, A2BUS_MEMEXP, "Apple II Memory Expansion Card", tag, owner, clock) | |
| 81 | a2bus_memexp_device(mconfig, A2BUS_MEMEXP, "Apple II Memory Expansion Card", tag, owner, clock, "a2memexp", __FILE__) | |
| 82 | 82 | { |
| 83 | m_shortname = "a2memexp"; | |
| 84 | 83 | m_isramfactor = false; |
| 85 | 84 | m_bankhior = 0xf0; |
| 86 | 85 | m_addrmask = 0xfffff; |
| 87 | 86 | } |
| 88 | 87 | |
| 89 | 88 | a2bus_ramfactor_device::a2bus_ramfactor_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 90 | a2bus_memexp_device(mconfig, A2BUS_RAMFACTOR, "Applied Engineering RamFactor", tag, owner, clock) | |
| 89 | a2bus_memexp_device(mconfig, A2BUS_RAMFACTOR, "Applied Engineering RamFactor", tag, owner, clock, "a2ramfac", __FILE__) | |
| 91 | 90 | { |
| 92 | m_shortname = "a2ramfac"; | |
| 93 | 91 | m_isramfactor = true; |
| 94 | 92 | m_bankhior = 0x00; |
| 95 | 93 | m_addrmask = 0x7fffff; |
| r22095 | r22096 | |
|---|---|---|
| 21 | 21 | { |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | serial_port_device::serial_port_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 25 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 24 | serial_port_device::serial_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) | |
| 25 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 26 | 26 | device_slot_interface(mconfig, *this), |
| 27 | 27 | m_dev(NULL) |
| 28 | 28 | { |
| r22095 | r22096 | |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | rs232_port_device::rs232_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 72 | : serial_port_device(mconfig, RS232_PORT, "RS232 Port", tag, owner, clock) | |
| 72 | : serial_port_device(mconfig, RS232_PORT, "RS232 Port", tag, owner, clock, "rs232", __FILE__) | |
| 73 | 73 | { |
| 74 | 74 | } |
| 75 | 75 |
| r22095 | r22096 | |
|---|---|---|
| 29 | 29 | const device_type PSXCONTROLLERPORTS = &device_creator<psxcontrollerports_device>; |
| 30 | 30 | |
| 31 | 31 | psxcontrollerports_device::psxcontrollerports_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 32 | psxsiodev_device(mconfig, PSXCONTROLLERPORTS, "PSXCONTROLLERPORTS", tag, owner, clock) | |
| 32 | psxsiodev_device(mconfig, PSXCONTROLLERPORTS, "PSXCONTROLLERPORTS", tag, owner, clock, "psxcontrollerports", __FILE__) | |
| 33 | 33 | { |
| 34 | 34 | } |
| 35 | 35 | |
| r22095 | r22096 | |
| 142 | 142 | const device_type PSX_STANDARD_CONTROLLER = &device_creator<psx_standard_controller_device>; |
| 143 | 143 | |
| 144 | 144 | psx_standard_controller_device::psx_standard_controller_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 145 | device_t(mconfig, PSX_STANDARD_CONTROLLER, "Playstation Standard Controller", tag, owner, clock), | |
| 145 | device_t(mconfig, PSX_STANDARD_CONTROLLER, "Playstation Standard Controller", tag, owner, clock, "psx_standard_controller", __FILE__), | |
| 146 | 146 | device_psx_controller_interface(mconfig, *this), |
| 147 | 147 | m_pad0(*this,"PSXPAD0"), |
| 148 | 148 | m_pad1(*this,"PSXPAD1") |
| r22095 | r22096 | |
|---|---|---|
| 22 | 22 | { |
| 23 | 23 | public: |
| 24 | 24 | // construction/destruction |
| 25 | a2bus_memexp_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 25 | 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); | |
| 26 | 26 | |
| 27 | 27 | // optional information overrides |
| 28 | 28 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | { |
| 38 | 38 | public: |
| 39 | 39 | serial_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 40 | serial_port_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 40 | serial_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); | |
| 41 | 41 | virtual ~serial_port_device(); |
| 42 | 42 | |
| 43 | 43 | DECLARE_WRITE_LINE_MEMBER( tx ) { if(m_dev) m_dev->tx(state); } |
| r22095 | r22096 | |
|---|---|---|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | x68k_neptune_device::x68k_neptune_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 35 | : device_t(mconfig, X68K_NEPTUNEX, "Neptune-X", tag, owner, clock), | |
| 35 | : device_t(mconfig, X68K_NEPTUNEX, "Neptune-X", tag, owner, clock, "x68k_neptunex", __FILE__), | |
| 36 | 36 | device_x68k_expansion_card_interface(mconfig, *this), |
| 37 | 37 | m_dp8390(*this, "dp8390d") |
| 38 | 38 | { |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_super_games_cartridge_device::c64_super_games_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_SUPER_GAMES, "C64 Super Games cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_SUPER_GAMES, "C64 Super Games cartridge", tag, owner, clock, "c64_super_games", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 70 | 70 | |
| 71 | 71 | protected: |
| 72 | 72 | virtual void device_start() { } |
| 73 | virtual void device_config_complete() { m_shortname = "psx_standard_controller"; } | |
| 74 | 73 | private: |
| 75 | 74 | virtual bool get_pad(int count, UINT8 *odata, UINT8 idata); |
| 76 | 75 |
| r22095 | r22096 | |
|---|---|---|
| 34 | 34 | |
| 35 | 35 | const device_type MD_ROM_SVP = &device_creator<md_rom_svp_device>; |
| 36 | 36 | |
| 37 | md_rom_svp_device::md_rom_svp_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 38 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 37 | md_rom_svp_device::md_rom_svp_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) | |
| 38 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 39 | 39 | device_md_cart_interface( mconfig, *this ), |
| 40 | 40 | m_svp(*this, "svp"), |
| 41 | 41 | m_test_ipt(*this, "MEMORY_TEST") |
| r22095 | r22096 | |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | md_rom_svp_device::md_rom_svp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 46 | : device_t(mconfig, MD_ROM_SVP, "MD Virtua Racing", tag, owner, clock), | |
| 46 | : device_t(mconfig, MD_ROM_SVP, "MD Virtua Racing", tag, owner, clock, "md_rom_svp", __FILE__), | |
| 47 | 47 | device_md_cart_interface( mconfig, *this ), |
| 48 | 48 | m_svp(*this, "svp"), |
| 49 | 49 | m_test_ipt(*this, "MEMORY_TEST") |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | // device-level overrides |
| 38 | 38 | virtual void device_start(); |
| 39 | 39 | virtual void device_reset(); |
| 40 | virtual void device_config_complete() { m_shortname = "x68k_neptunex"; } | |
| 41 | 40 | |
| 42 | 41 | private: |
| 43 | 42 | x68k_expansion_slot_device *m_slot; |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_super_games"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 |
| r22095 | r22096 | |
|---|---|---|
| 15 | 15 | { |
| 16 | 16 | public: |
| 17 | 17 | // construction/destruction |
| 18 | md_rom_svp_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 18 | md_rom_svp_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); | |
| 19 | 19 | md_rom_svp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 20 | 20 | |
| 21 | 21 | //protected: |
| 22 | 22 | // device-level overrides |
| 23 | 23 | virtual void device_start(); |
| 24 | virtual void device_config_complete() { m_shortname = "md_rom_svp"; } | |
| 25 | 24 | virtual machine_config_constructor device_mconfig_additions() const; |
| 26 | 25 | virtual ioport_constructor device_input_ports() const; |
| 27 | 26 | virtual void set_bank_to_rom(const char *banktag, UINT32 offset); |
| r22095 | r22096 | |
|---|---|---|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | el2_3c503_device::el2_3c503_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 24 | : device_t(mconfig, EL2_3C503, "3C503 Network Adapter", tag, owner, clock), | |
| 24 | : device_t(mconfig, EL2_3C503, "3C503 Network Adapter", tag, owner, clock, "el2_3c503", __FILE__), | |
| 25 | 25 | device_isa8_card_interface(mconfig, *this), |
| 26 | 26 | m_dp8390(*this, "dp8390d") { |
| 27 | 27 | } |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | protected: |
| 28 | 28 | virtual void device_start(); |
| 29 | 29 | virtual void device_reset(); |
| 30 | virtual void device_config_complete() { m_shortname = "el2_3c503"; } | |
| 31 | 30 | private: |
| 32 | 31 | required_device<dp8390d_device> m_dp8390; |
| 33 | 32 | UINT8 m_board_ram[8*1024]; |
| r22095 | r22096 | |
|---|---|---|
| 1117 | 1117 | // LIVE DEVICE |
| 1118 | 1118 | //************************************************************************** |
| 1119 | 1119 | |
| 1120 | sb_device::sb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *name) : | |
| 1121 | device_t(mconfig, type, name, tag, owner, clock), | |
| 1120 | sb_device::sb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *name, const char *shortname, const char *source) : | |
| 1121 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 1122 | 1122 | device_serial_interface(mconfig, *this), |
| 1123 | 1123 | m_dacl(*this, "sbdacl"), |
| 1124 | 1124 | m_dacr(*this, "sbdacr"), |
| r22095 | r22096 | |
| 1127 | 1127 | { |
| 1128 | 1128 | } |
| 1129 | 1129 | |
| 1130 | sb8_device::sb8_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *name) : | |
| 1131 | sb_device(mconfig, type, tag, owner, clock, name), | |
| 1130 | sb8_device::sb8_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *name, const char *shortname, const char *source) : | |
| 1131 | sb_device(mconfig, type, tag, owner, clock, name, shortname, source), | |
| 1132 | 1132 | device_isa8_card_interface(mconfig, *this) |
| 1133 | 1133 | { |
| 1134 | 1134 | } |
| 1135 | 1135 | |
| 1136 | sb16_device::sb16_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *name) : | |
| 1137 | sb_device(mconfig, type, tag, owner, clock, name), | |
| 1136 | sb16_device::sb16_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *name, const char *shortname, const char *source) : | |
| 1137 | sb_device(mconfig, type, tag, owner, clock, name, shortname, source), | |
| 1138 | 1138 | device_isa16_card_interface(mconfig, *this) |
| 1139 | 1139 | { |
| 1140 | 1140 | } |
| r22095 | r22096 | |
| 1144 | 1144 | //------------------------------------------------- |
| 1145 | 1145 | |
| 1146 | 1146 | isa8_sblaster1_0_device::isa8_sblaster1_0_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1147 | sb8_device(mconfig, ISA8_SOUND_BLASTER_1_0, tag, owner, clock, "Sound Blaster 1.0") | |
| 1147 | sb8_device(mconfig, ISA8_SOUND_BLASTER_1_0, tag, owner, clock, "Sound Blaster 1.0", "isa_sblaster1_0", __FILE__) | |
| 1148 | 1148 | { |
| 1149 | 1149 | } |
| 1150 | 1150 | |
| 1151 | 1151 | isa8_sblaster1_5_device::isa8_sblaster1_5_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1152 | sb8_device(mconfig, ISA8_SOUND_BLASTER_1_5, tag, owner, clock, "Sound Blaster 1.5") | |
| 1152 | sb8_device(mconfig, ISA8_SOUND_BLASTER_1_5, tag, owner, clock, "Sound Blaster 1.5", "isa_sblaster1_5", __FILE__) | |
| 1153 | 1153 | { |
| 1154 | 1154 | } |
| 1155 | 1155 | |
| 1156 | 1156 | isa16_sblaster16_device::isa16_sblaster16_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1157 | sb16_device(mconfig, ISA16_SOUND_BLASTER_16, tag, owner, clock, "Sound Blaster 16") | |
| 1157 | sb16_device(mconfig, ISA16_SOUND_BLASTER_16, tag, owner, clock, "Sound Blaster 16", "isa_sblaster_16", __FILE__) | |
| 1158 | 1158 | { |
| 1159 | 1159 | } |
| 1160 | 1160 |
| r22095 | r22096 | |
|---|---|---|
| 200 | 200 | //------------------------------------------------- |
| 201 | 201 | |
| 202 | 202 | comx_eb_device::comx_eb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 203 | device_t(mconfig, COMX_EB, "COMX-35E Expansion Box", tag, owner, clock), | |
| 203 | device_t(mconfig, COMX_EB, "COMX-35E Expansion Box", tag, owner, clock, "comx_eb", __FILE__), | |
| 204 | 204 | device_comx_expansion_card_interface(mconfig, *this), |
| 205 | 205 | m_rom(*this, "e000"), |
| 206 | 206 | m_select(0) |
| r22095 | r22096 | |
|---|---|---|
| 56 | 56 | const device_type MD_ROM_WUKONG = &device_creator<md_rom_wukong_device>; |
| 57 | 57 | |
| 58 | 58 | |
| 59 | md_std_rom_device::md_std_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 60 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 59 | md_std_rom_device::md_std_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) | |
| 60 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 61 | 61 | device_md_cart_interface( mconfig, *this ) |
| 62 | 62 | { |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | md_std_rom_device::md_std_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 66 | : device_t(mconfig, MD_STD_ROM, "MD Standard cart", tag, owner, clock), | |
| 66 | : device_t(mconfig, MD_STD_ROM, "MD Standard cart", tag, owner, clock, "md_std_rom", __FILE__), | |
| 67 | 67 | device_md_cart_interface( mconfig, *this ) |
| 68 | 68 | { |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | md_rom_sram_device::md_rom_sram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 72 | : md_std_rom_device(mconfig, MD_ROM_SRAM, "MD Standard cart + SRAM", tag, owner, clock) | |
| 72 | : md_std_rom_device(mconfig, MD_ROM_SRAM, "MD Standard cart + SRAM", tag, owner, clock, "md_rom_sram", __FILE__) | |
| 73 | 73 | { |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | md_rom_fram_device::md_rom_fram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 77 | : md_std_rom_device(mconfig, MD_ROM_FRAM, "MD Standard cart + FRAM", tag, owner, clock) | |
| 77 | : md_std_rom_device(mconfig, MD_ROM_FRAM, "MD Standard cart + FRAM", tag, owner, clock, "md_rom_fram", __FILE__) | |
| 78 | 78 | { |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | md_rom_ssf2_device::md_rom_ssf2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 82 | : md_std_rom_device(mconfig, MD_ROM_SSF2, "MD Super SF2", tag, owner, clock) | |
| 82 | : md_std_rom_device(mconfig, MD_ROM_SSF2, "MD Super SF2", tag, owner, clock, "md_rom_ssf2", __FILE__) | |
| 83 | 83 | { |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | md_rom_cm2in1_device::md_rom_cm2in1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 87 | : md_std_rom_device(mconfig, MD_ROM_CM2IN1, "MD Codemasters 2in1", tag, owner, clock) | |
| 87 | : md_std_rom_device(mconfig, MD_ROM_CM2IN1, "MD Codemasters 2in1", tag, owner, clock, "md_rom_cm2in1", __FILE__) | |
| 88 | 88 | { |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | md_rom_mcpirate_device::md_rom_mcpirate_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 92 | : md_std_rom_device(mconfig, MD_ROM_MCPIR, "MD Pirate Multicarts (Various)", tag, owner, clock) | |
| 92 | : md_std_rom_device(mconfig, MD_ROM_MCPIR, "MD Pirate Multicarts (Various)", tag, owner, clock, "md_rom_mcpirate", __FILE__) | |
| 93 | 93 | { |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | md_rom_bugslife_device::md_rom_bugslife_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 97 | : md_std_rom_device(mconfig, MD_ROM_BUGSLIFE, "MD A Bug's Life", tag, owner, clock) | |
| 97 | : md_std_rom_device(mconfig, MD_ROM_BUGSLIFE, "MD A Bug's Life", tag, owner, clock, "md_rom_bugslife", __FILE__) | |
| 98 | 98 | { |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | 101 | md_rom_smouse_device::md_rom_smouse_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 102 | : md_std_rom_device(mconfig, MD_ROM_SMOUSE, "MD Huan Le Tao Qi Shu / Smart Mouse", tag, owner, clock) | |
| 102 | : md_std_rom_device(mconfig, MD_ROM_SMOUSE, "MD Huan Le Tao Qi Shu / Smart Mouse", tag, owner, clock, "md_rom_smouse", __FILE__) | |
| 103 | 103 | { |
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | md_rom_smb_device::md_rom_smb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 107 | : md_std_rom_device(mconfig, MD_ROM_SMB, "MD Super Mario Bros.", tag, owner, clock) | |
| 107 | : md_std_rom_device(mconfig, MD_ROM_SMB, "MD Super Mario Bros.", tag, owner, clock, "md_rom_smb", __FILE__) | |
| 108 | 108 | { |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | md_rom_smb2_device::md_rom_smb2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 112 | : md_std_rom_device(mconfig, MD_ROM_SMB2, "MD Super Mario Bros. 2", tag, owner, clock) | |
| 112 | : md_std_rom_device(mconfig, MD_ROM_SMB2, "MD Super Mario Bros. 2", tag, owner, clock, "md_rom_smb2", __FILE__) | |
| 113 | 113 | { |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | md_rom_smw64_device::md_rom_smw64_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 117 | : md_std_rom_device(mconfig, MD_ROM_SMW64, "MD Super Mario World 64", tag, owner, clock) | |
| 117 | : md_std_rom_device(mconfig, MD_ROM_SMW64, "MD Super Mario World 64", tag, owner, clock, "md_rom_smw64", __FILE__) | |
| 118 | 118 | { |
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | md_rom_sbubl_device::md_rom_sbubl_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 122 | : md_std_rom_device(mconfig, MD_ROM_SBUBL, "MD Super Bubble Bobble", tag, owner, clock) | |
| 122 | : md_std_rom_device(mconfig, MD_ROM_SBUBL, "MD Super Bubble Bobble", tag, owner, clock, "md_rom_sbubl", __FILE__) | |
| 123 | 123 | { |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | md_rom_rx3_device::md_rom_rx3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 127 | : md_std_rom_device(mconfig, MD_ROM_RX3, "MD Rockman X3", tag, owner, clock) | |
| 127 | : md_std_rom_device(mconfig, MD_ROM_RX3, "MD Rockman X3", tag, owner, clock, "md_rom_rx3", __FILE__) | |
| 128 | 128 | { |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | md_rom_mjlov_device::md_rom_mjlov_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 132 | : md_std_rom_device(mconfig, MD_ROM_MJLOV, "MD Ma Jiang Qing Ren / Mahjong Lover", tag, owner, clock) | |
| 132 | : md_std_rom_device(mconfig, MD_ROM_MJLOV, "MD Ma Jiang Qing Ren / Mahjong Lover", tag, owner, clock, "md_rom_mjlov", __FILE__) | |
| 133 | 133 | { |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | md_rom_kof98_device::md_rom_kof98_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 137 | : md_std_rom_device(mconfig, MD_ROM_KOF98, "MD KOF 98", tag, owner, clock) | |
| 137 | : md_std_rom_device(mconfig, MD_ROM_KOF98, "MD KOF 98", tag, owner, clock, "md_rom_kof98", __FILE__) | |
| 138 | 138 | { |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | md_rom_kof99_device::md_rom_kof99_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 142 | : md_std_rom_device(mconfig, MD_ROM_KOF99, "MD KOF 99 (and others)", tag, owner, clock) | |
| 142 | : md_std_rom_device(mconfig, MD_ROM_KOF99, "MD KOF 99 (and others)", tag, owner, clock, "md_rom_kof99", __FILE__) | |
| 143 | 143 | { |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | md_rom_soulb_device::md_rom_soulb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 147 | : md_std_rom_device(mconfig, MD_ROM_SOULB, "MD Soul Blade", tag, owner, clock) | |
| 147 | : md_std_rom_device(mconfig, MD_ROM_SOULB, "MD Soul Blade", tag, owner, clock, "md_rom_soulb", __FILE__) | |
| 148 | 148 | { |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | md_rom_chinf3_device::md_rom_chinf3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 152 | : md_std_rom_device(mconfig, MD_ROM_CHINF3, "MD Chinese Fighter 3", tag, owner, clock) | |
| 152 | : md_std_rom_device(mconfig, MD_ROM_CHINF3, "MD Chinese Fighter 3", tag, owner, clock, "md_rom_chinf3", __FILE__) | |
| 153 | 153 | { |
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | md_rom_elfwor_device::md_rom_elfwor_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 157 | : md_std_rom_device(mconfig, MD_ROM_ELFWOR, "MD Linghuan Daoshi Super Magician / Elf Wor", tag, owner, clock) | |
| 157 | : md_std_rom_device(mconfig, MD_ROM_ELFWOR, "MD Linghuan Daoshi Super Magician / Elf Wor", tag, owner, clock, "md_rom_elfwor", __FILE__) | |
| 158 | 158 | { |
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | md_rom_yasech_device::md_rom_yasech_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 162 | : md_std_rom_device(mconfig, MD_ROM_YASECH, "MD Ya Se Chuan Shuo", tag, owner, clock) | |
| 162 | : md_std_rom_device(mconfig, MD_ROM_YASECH, "MD Ya Se Chuan Shuo", tag, owner, clock, "md_rom_yasech", __FILE__) | |
| 163 | 163 | { |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | md_rom_lion2_device::md_rom_lion2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 167 | : md_std_rom_device(mconfig, MD_ROM_LION2, "MD Lion King 2", tag, owner, clock) | |
| 167 | : md_std_rom_device(mconfig, MD_ROM_LION2, "MD Lion King 2", tag, owner, clock, "md_rom_lion2", __FILE__) | |
| 168 | 168 | { |
| 169 | 169 | } |
| 170 | 170 | |
| 171 | 171 | md_rom_lion3_device::md_rom_lion3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 172 | : md_std_rom_device(mconfig, MD_ROM_LION3, "MD Lion King 3", tag, owner, clock) | |
| 172 | : md_std_rom_device(mconfig, MD_ROM_LION3, "MD Lion King 3", tag, owner, clock, "md_rom_lion3", __FILE__) | |
| 173 | 173 | { |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | md_rom_pokea_device::md_rom_pokea_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 177 | : md_std_rom_device(mconfig, MD_ROM_POKEA, "MD Pokemon (Alt Protection)", tag, owner, clock) | |
| 177 | : md_std_rom_device(mconfig, MD_ROM_POKEA, "MD Pokemon (Alt Protection)", tag, owner, clock, "md_rom_pokea", __FILE__) | |
| 178 | 178 | { |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | md_rom_pokestad_device::md_rom_pokestad_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 182 | : md_std_rom_device(mconfig, MD_ROM_POKESTAD, "MD Pokemon Stadium", tag, owner, clock) | |
| 182 | : md_std_rom_device(mconfig, MD_ROM_POKESTAD, "MD Pokemon Stadium", tag, owner, clock, "md_rom_pokestad", __FILE__) | |
| 183 | 183 | { |
| 184 | 184 | } |
| 185 | 185 | |
| 186 | 186 | md_rom_realtec_device::md_rom_realtec_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 187 | : md_std_rom_device(mconfig, MD_ROM_REALTEC, "MD Realtec", tag, owner, clock) | |
| 187 | : md_std_rom_device(mconfig, MD_ROM_REALTEC, "MD Realtec", tag, owner, clock, "md_rom_realtec", __FILE__) | |
| 188 | 188 | { |
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | md_rom_redcl_device::md_rom_redcl_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 192 | : md_std_rom_device(mconfig, MD_ROM_REDCL, "MD Redcliff", tag, owner, clock) | |
| 192 | : md_std_rom_device(mconfig, MD_ROM_REDCL, "MD Redcliff", tag, owner, clock, "md_rom_redcl", __FILE__) | |
| 193 | 193 | { |
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | md_rom_squir_device::md_rom_squir_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 197 | : md_std_rom_device(mconfig, MD_ROM_SQUIR, "MD Squirrel King", tag, owner, clock) | |
| 197 | : md_std_rom_device(mconfig, MD_ROM_SQUIR, "MD Squirrel King", tag, owner, clock, "md_rom_squir", __FILE__) | |
| 198 | 198 | { |
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | md_rom_topf_device::md_rom_topf_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 202 | : md_std_rom_device(mconfig, MD_ROM_TOPF, "MD Top Fighter", tag, owner, clock) | |
| 202 | : md_std_rom_device(mconfig, MD_ROM_TOPF, "MD Top Fighter", tag, owner, clock, "md_rom_topf", __FILE__) | |
| 203 | 203 | { |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | md_rom_radica_device::md_rom_radica_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 207 | : md_std_rom_device(mconfig, MD_ROM_RADICA, "MD Radica TV games", tag, owner, clock) | |
| 207 | : md_std_rom_device(mconfig, MD_ROM_RADICA, "MD Radica TV games", tag, owner, clock, "md_rom_radica", __FILE__) | |
| 208 | 208 | { |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | 211 | md_rom_beggarp_device::md_rom_beggarp_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 212 | : md_std_rom_device(mconfig, MD_ROM_BEGGARP, "MD Beggar Prince", tag, owner, clock) | |
| 212 | : md_std_rom_device(mconfig, MD_ROM_BEGGARP, "MD Beggar Prince", tag, owner, clock, "md_rom_beggarp", __FILE__) | |
| 213 | 213 | { |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | md_rom_wukong_device::md_rom_wukong_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 217 | : md_std_rom_device(mconfig, MD_ROM_WUKONG, "MD Legend of Wukong", tag, owner, clock) | |
| 217 | : md_std_rom_device(mconfig, MD_ROM_WUKONG, "MD Legend of Wukong", tag, owner, clock, "md_rom_wukong", __FILE__) | |
| 218 | 218 | { |
| 219 | 219 | } |
| 220 | 220 |
| r22095 | r22096 | |
|---|---|---|
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 | i82439tx_device::i82439tx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 18 | : northbridge_device(mconfig, I82439TX, "Intel 82439TX", tag, owner, clock), | |
| 18 | : northbridge_device(mconfig, I82439TX, "Intel 82439TX", tag, owner, clock, "i82439tx", __FILE__), | |
| 19 | 19 | pci_device_interface( mconfig, *this ) |
| 20 | 20 | { |
| 21 | 21 | } |
| r22095 | r22096 | |
| 273 | 273 | memset(&m_cputag, 0, sizeof(m_cputag)); |
| 274 | 274 | memset(&m_rom_region, 0, sizeof(m_rom_region)); |
| 275 | 275 | } |
| 276 | m_shortname = "i82439tx"; | |
| 277 | 276 | } |
| 278 | 277 | |
| 279 | 278 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 10 | 10 | const device_type D9060HD = &device_creator<d9060hd_device>; |
| 11 | 11 | |
| 12 | 12 | d9060hd_device::d9060hd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 13 | : scsihd_device(mconfig, D9060HD, "D9060HD", tag, owner, clock) | |
| 13 | : scsihd_device(mconfig, D9060HD, "D9060HD", tag, owner, clock, "d9060hd", __FILE__) | |
| 14 | 14 | { |
| 15 | 15 | } |
| 16 | 16 |
| r22095 | r22096 | |
|---|---|---|
| 96 | 96 | { |
| 97 | 97 | public: |
| 98 | 98 | // construction/destruction |
| 99 | sb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *name); | |
| 99 | sb_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *name, const char *shortname, const char *source); | |
| 100 | 100 | |
| 101 | 101 | required_device<dac_device> m_dacl; |
| 102 | 102 | required_device<dac_device> m_dacr; |
| r22095 | r22096 | |
| 158 | 158 | { |
| 159 | 159 | public: |
| 160 | 160 | // construction/destruction |
| 161 | sb8_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *name); | |
| 161 | sb8_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *name, const char *shortname, const char *source); | |
| 162 | 162 | protected: |
| 163 | 163 | virtual void device_start(); |
| 164 | 164 | virtual void drq_w(int state) { m_isa->drq1_w(state); } |
| r22095 | r22096 | |
| 178 | 178 | protected: |
| 179 | 179 | // device-level overrides |
| 180 | 180 | virtual void device_start(); |
| 181 | virtual void device_config_complete() { m_shortname = "isa_sblaster1_0"; } | |
| 182 | 181 | private: |
| 183 | 182 | // internal state |
| 184 | 183 | }; |
| r22095 | r22096 | |
| 194 | 193 | protected: |
| 195 | 194 | // device-level overrides |
| 196 | 195 | virtual void device_start(); |
| 197 | virtual void device_config_complete() { m_shortname = "isa_sblaster1_5"; } | |
| 198 | 196 | private: |
| 199 | 197 | // internal state |
| 200 | 198 | }; |
| r22095 | r22096 | |
| 204 | 202 | { |
| 205 | 203 | public: |
| 206 | 204 | // construction/destruction |
| 207 | sb16_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *name); | |
| 205 | sb16_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock, const char *name, const char *shortname, const char *source); | |
| 208 | 206 | DECLARE_READ8_MEMBER(mpu401_r); |
| 209 | 207 | DECLARE_WRITE8_MEMBER(mpu401_w); |
| 210 | 208 | DECLARE_READ8_MEMBER(mixer_r); |
| r22095 | r22096 | |
| 236 | 234 | protected: |
| 237 | 235 | // device-level overrides |
| 238 | 236 | virtual void device_start(); |
| 239 | virtual void device_config_complete() { m_shortname = "isa_sblaster_16"; } | |
| 240 | 237 | private: |
| 241 | 238 | // internal state |
| 242 | 239 | }; |
| r22095 | r22096 | |
|---|---|---|
| 57 | 57 | // device-level overrides |
| 58 | 58 | virtual void device_start(); |
| 59 | 59 | virtual void device_reset(); |
| 60 | virtual void device_config_complete() { m_shortname = "comx_eb"; } | |
| 61 | 60 | |
| 62 | 61 | // device_comx_expansion_card_interface overrides |
| 63 | 62 | virtual int comx_ef4_r(); |
| r22095 | r22096 | |
|---|---|---|
| 14 | 14 | { |
| 15 | 15 | public: |
| 16 | 16 | // construction/destruction |
| 17 | md_std_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 17 | md_std_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); | |
| 18 | 18 | md_std_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 19 | 19 | |
| 20 | 20 | // device-level overrides |
| 21 | 21 | virtual void device_start() {}; |
| 22 | virtual void device_config_complete() { m_shortname = "md_std_rom"; } | |
| 23 | 22 | |
| 24 | 23 | // reading and writing |
| 25 | 24 | virtual DECLARE_READ16_MEMBER(read) { if (offset < 0x400000/2) return m_rom[MD_ADDR(offset)]; else return 0xffff; }; |
| r22095 | r22096 | |
| 34 | 33 | // construction/destruction |
| 35 | 34 | md_rom_sram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 36 | 35 | |
| 37 | // device-level overrides | |
| 38 | virtual void device_config_complete() { m_shortname = "md_rom_sram"; } | |
| 39 | ||
| 40 | 36 | // reading and writing |
| 41 | 37 | virtual DECLARE_READ16_MEMBER(read); |
| 42 | 38 | virtual DECLARE_WRITE16_MEMBER(write); |
| r22095 | r22096 | |
| 51 | 47 | // construction/destruction |
| 52 | 48 | md_rom_fram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 53 | 49 | |
| 54 | // device-level overrides | |
| 55 | virtual void device_config_complete() { m_shortname = "md_rom_fram"; } | |
| 56 | ||
| 57 | 50 | // reading and writing |
| 58 | 51 | virtual DECLARE_READ16_MEMBER(read); |
| 59 | 52 | virtual DECLARE_WRITE16_MEMBER(write); |
| r22095 | r22096 | |
| 72 | 65 | // device-level overrides |
| 73 | 66 | virtual void device_start(); |
| 74 | 67 | virtual void device_reset(); |
| 75 | virtual void device_config_complete() { m_shortname = "md_rom_ssf2"; } | |
| 76 | 68 | |
| 77 | 69 | // reading and writing |
| 78 | 70 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
| 94 | 86 | // device-level overrides |
| 95 | 87 | virtual void device_start(); |
| 96 | 88 | virtual void device_reset(); |
| 97 | virtual void device_config_complete() { m_shortname = "md_rom_cm2in1"; } | |
| 98 | 89 | |
| 99 | 90 | // reading and writing |
| 100 | 91 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
| 115 | 106 | // device-level overrides |
| 116 | 107 | virtual void device_start(); |
| 117 | 108 | virtual void device_reset(); |
| 118 | virtual void device_config_complete() { m_shortname = "md_rom_mcpirate"; } | |
| 119 | 109 | |
| 120 | 110 | // reading and writing |
| 121 | 111 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
| 134 | 124 | // construction/destruction |
| 135 | 125 | md_rom_bugslife_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 136 | 126 | |
| 137 | // device-level overrides | |
| 138 | virtual void device_config_complete() { m_shortname = "md_rom_bugslife"; } | |
| 139 | ||
| 140 | 127 | // reading and writing |
| 141 | 128 | virtual DECLARE_READ16_MEMBER(read_a13); |
| 142 | 129 | }; |
| r22095 | r22096 | |
| 152 | 139 | // device-level overrides |
| 153 | 140 | virtual void device_start(); |
| 154 | 141 | virtual void device_reset(); |
| 155 | virtual void device_config_complete() { m_shortname = "md_rom_chinf3"; } | |
| 156 | 142 | |
| 157 | 143 | // reading and writing |
| 158 | 144 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
| 170 | 156 | // construction/destruction |
| 171 | 157 | md_rom_elfwor_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 172 | 158 | |
| 173 | // device-level overrides | |
| 174 | virtual void device_config_complete() { m_shortname = "md_rom_elfwor"; } | |
| 175 | ||
| 176 | 159 | // reading and writing |
| 177 | 160 | virtual DECLARE_READ16_MEMBER(read); |
| 178 | 161 | }; |
| r22095 | r22096 | |
| 185 | 168 | // construction/destruction |
| 186 | 169 | md_rom_yasech_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 187 | 170 | |
| 188 | // device-level overrides | |
| 189 | virtual void device_config_complete() { m_shortname = "md_rom_yasech"; } | |
| 190 | ||
| 191 | 171 | // reading and writing |
| 192 | 172 | virtual DECLARE_READ16_MEMBER(read); |
| 193 | 173 | }; |
| r22095 | r22096 | |
| 200 | 180 | // construction/destruction |
| 201 | 181 | md_rom_kof98_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 202 | 182 | |
| 203 | // device-level overrides | |
| 204 | virtual void device_config_complete() { m_shortname = "md_rom_kof98"; } | |
| 205 | ||
| 206 | 183 | // reading and writing |
| 207 | 184 | virtual DECLARE_READ16_MEMBER(read); |
| 208 | 185 | }; |
| r22095 | r22096 | |
| 215 | 192 | // construction/destruction |
| 216 | 193 | md_rom_kof99_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 217 | 194 | |
| 218 | // device-level overrides | |
| 219 | virtual void device_config_complete() { m_shortname = "md_rom_kof99"; } | |
| 220 | ||
| 221 | 195 | // reading and writing |
| 222 | 196 | virtual DECLARE_READ16_MEMBER(read_a13); |
| 223 | 197 | }; |
| r22095 | r22096 | |
| 233 | 207 | // device-level overrides |
| 234 | 208 | virtual void device_start(); |
| 235 | 209 | virtual void device_reset(); |
| 236 | virtual void device_config_complete() { m_shortname = "md_rom_lion2"; } | |
| 237 | 210 | |
| 238 | 211 | // reading and writing |
| 239 | 212 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
| 254 | 227 | // device-level overrides |
| 255 | 228 | virtual void device_start(); |
| 256 | 229 | virtual void device_reset(); |
| 257 | virtual void device_config_complete() { m_shortname = "md_rom_lion3"; } | |
| 258 | 230 | |
| 259 | 231 | // reading and writing |
| 260 | 232 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
| 273 | 245 | // construction/destruction |
| 274 | 246 | md_rom_mjlov_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 275 | 247 | |
| 276 | // device-level overrides | |
| 277 | virtual void device_config_complete() { m_shortname = "md_rom_mjlov"; } | |
| 278 | ||
| 279 | 248 | // reading and writing |
| 280 | 249 | virtual DECLARE_READ16_MEMBER(read); |
| 281 | 250 | }; |
| r22095 | r22096 | |
| 288 | 257 | // construction/destruction |
| 289 | 258 | md_rom_pokea_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 290 | 259 | |
| 291 | // device-level overrides | |
| 292 | virtual void device_config_complete() { m_shortname = "md_rom_pokea"; } | |
| 293 | ||
| 294 | 260 | // reading and writing |
| 295 | 261 | virtual DECLARE_READ16_MEMBER(read_a13); |
| 296 | 262 | }; |
| r22095 | r22096 | |
| 306 | 272 | // device-level overrides |
| 307 | 273 | virtual void device_start(); |
| 308 | 274 | virtual void device_reset(); |
| 309 | virtual void device_config_complete() { m_shortname = "md_rom_pokestad"; } | |
| 310 | 275 | |
| 311 | 276 | // reading and writing |
| 312 | 277 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
| 327 | 292 | // device-level overrides |
| 328 | 293 | virtual void device_start(); |
| 329 | 294 | virtual void device_reset(); |
| 330 | virtual void device_config_complete() { m_shortname = "md_rom_realtec"; } | |
| 331 | 295 | |
| 332 | 296 | // reading and writing |
| 333 | 297 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
| 345 | 309 | // construction/destruction |
| 346 | 310 | md_rom_redcl_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 347 | 311 | |
| 348 | // device-level overrides | |
| 349 | virtual void device_config_complete() { m_shortname = "md_rom_redcl"; } | |
| 350 | ||
| 351 | 312 | // reading and writing |
| 352 | 313 | virtual DECLARE_READ16_MEMBER(read); |
| 353 | 314 | }; |
| r22095 | r22096 | |
| 360 | 321 | // construction/destruction |
| 361 | 322 | md_rom_rx3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 362 | 323 | |
| 363 | // device-level overrides | |
| 364 | virtual void device_config_complete() { m_shortname = "md_rom_rx3"; } | |
| 365 | ||
| 366 | 324 | // reading and writing |
| 367 | 325 | virtual DECLARE_READ16_MEMBER(read_a13); |
| 368 | 326 | }; |
| r22095 | r22096 | |
| 375 | 333 | // construction/destruction |
| 376 | 334 | md_rom_sbubl_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 377 | 335 | |
| 378 | // device-level overrides | |
| 379 | virtual void device_config_complete() { m_shortname = "md_rom_sbubl"; } | |
| 380 | ||
| 381 | 336 | // reading and writing |
| 382 | 337 | virtual DECLARE_READ16_MEMBER(read); |
| 383 | 338 | }; |
| r22095 | r22096 | |
| 390 | 345 | // construction/destruction |
| 391 | 346 | md_rom_smb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 392 | 347 | |
| 393 | // device-level overrides | |
| 394 | virtual void device_config_complete() { m_shortname = "md_rom_smb"; } | |
| 395 | ||
| 396 | 348 | // reading and writing |
| 397 | 349 | virtual DECLARE_READ16_MEMBER(read_a13); |
| 398 | 350 | }; |
| r22095 | r22096 | |
| 405 | 357 | // construction/destruction |
| 406 | 358 | md_rom_smb2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 407 | 359 | |
| 408 | // device-level overrides | |
| 409 | virtual void device_config_complete() { m_shortname = "md_rom_smb2"; } | |
| 410 | ||
| 411 | 360 | // reading and writing |
| 412 | 361 | virtual DECLARE_READ16_MEMBER(read_a13); |
| 413 | 362 | }; |
| r22095 | r22096 | |
| 423 | 372 | // device-level overrides |
| 424 | 373 | virtual void device_start(); |
| 425 | 374 | virtual void device_reset(); |
| 426 | virtual void device_config_complete() { m_shortname = "md_rom_smw64"; } | |
| 427 | 375 | |
| 428 | 376 | // reading and writing |
| 429 | 377 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
| 443 | 391 | // construction/destruction |
| 444 | 392 | md_rom_smouse_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 445 | 393 | |
| 446 | // device-level overrides | |
| 447 | virtual void device_config_complete() { m_shortname = "md_rom_smouse"; } | |
| 448 | ||
| 449 | 394 | // reading and writing |
| 450 | 395 | virtual DECLARE_READ16_MEMBER(read); |
| 451 | 396 | }; |
| r22095 | r22096 | |
| 459 | 404 | // construction/destruction |
| 460 | 405 | md_rom_soulb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 461 | 406 | |
| 462 | // device-level overrides | |
| 463 | virtual void device_config_complete() { m_shortname = "md_rom_soulb"; } | |
| 464 | ||
| 465 | 407 | // reading and writing |
| 466 | 408 | virtual DECLARE_READ16_MEMBER(read); |
| 467 | 409 | }; |
| r22095 | r22096 | |
| 477 | 419 | // device-level overrides |
| 478 | 420 | virtual void device_start(); |
| 479 | 421 | virtual void device_reset(); |
| 480 | virtual void device_config_complete() { m_shortname = "md_rom_squir"; } | |
| 481 | 422 | |
| 482 | 423 | // reading and writing |
| 483 | 424 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
| 498 | 439 | // device-level overrides |
| 499 | 440 | virtual void device_start(); |
| 500 | 441 | virtual void device_reset(); |
| 501 | virtual void device_config_complete() { m_shortname = "md_rom_topf"; } | |
| 502 | 442 | |
| 503 | 443 | // reading and writing |
| 504 | 444 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
| 520 | 460 | // device-level overrides |
| 521 | 461 | virtual void device_start(); |
| 522 | 462 | virtual void device_reset(); |
| 523 | virtual void device_config_complete() { m_shortname = "md_rom_radica"; } | |
| 524 | 463 | |
| 525 | 464 | // reading and writing |
| 526 | 465 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
| 541 | 480 | // device-level overrides |
| 542 | 481 | virtual void device_start(); |
| 543 | 482 | virtual void device_reset(); |
| 544 | virtual void device_config_complete() { m_shortname = "md_rom_beggarp"; } | |
| 545 | 483 | |
| 546 | 484 | // reading and writing |
| 547 | 485 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
| 563 | 501 | // device-level overrides |
| 564 | 502 | virtual void device_start(); |
| 565 | 503 | virtual void device_reset(); |
| 566 | virtual void device_config_complete() { m_shortname = "md_rom_wukong"; } | |
| 567 | 504 | |
| 568 | 505 | // reading and writing |
| 569 | 506 | virtual DECLARE_READ16_MEMBER(read); |
| r22095 | r22096 | |
|---|---|---|
| 20 | 20 | |
| 21 | 21 | |
| 22 | 22 | sns_rom_superfx_device::sns_rom_superfx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 23 | : sns_rom_device(mconfig, SNS_LOROM_SUPERFX, "SNES Cart (LoROM) + SuperFX", tag, owner, clock), | |
| 23 | : sns_rom_device(mconfig, SNS_LOROM_SUPERFX, "SNES Cart (LoROM) + SuperFX", tag, owner, clock, "sns_rom_superfx", __FILE__), | |
| 24 | 24 | m_superfx(*this, "superfx") |
| 25 | 25 | { |
| 26 | 26 | } |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | //------------------------------------------------- |
| 38 | 38 | |
| 39 | 39 | c64_dqbb_cartridge_device::c64_dqbb_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 40 | device_t(mconfig, C64_DQBB, "C64 Double Quick Brown Box cartridge", tag, owner, clock), | |
| 40 | device_t(mconfig, C64_DQBB, "C64 Double Quick Brown Box cartridge", tag, owner, clock, "c64_dqbb", __FILE__), | |
| 41 | 41 | device_c64_expansion_card_interface(mconfig, *this), |
| 42 | 42 | device_nvram_interface(mconfig, *this) |
| 43 | 43 | { |
| r22095 | r22096 | |
|---|---|---|
| 17 | 17 | // device-level overrides |
| 18 | 18 | virtual void device_start(); |
| 19 | 19 | virtual void device_reset(); |
| 20 | virtual void device_config_complete() { m_shortname = "sns_rom_superfx"; } | |
| 21 | 20 | virtual machine_config_constructor device_mconfig_additions() const; |
| 22 | 21 | |
| 23 | 22 | required_device<device_t> m_superfx; |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | // device-level overrides |
| 38 | 38 | virtual void device_start(); |
| 39 | 39 | virtual void device_reset(); |
| 40 | virtual void device_config_complete() { m_shortname = "c64_dqbb"; } | |
| 41 | 40 | |
| 42 | 41 | // device_nvram_interface overrides |
| 43 | 42 | virtual void nvram_default() { } |
| r22095 | r22096 | |
|---|---|---|
| 114 | 114 | //------------------------------------------------- |
| 115 | 115 | |
| 116 | 116 | c64_stardos_cartridge_device::c64_stardos_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 117 | device_t(mconfig, C64_STARDOS, "C64 StarDOS cartridge", tag, owner, clock), | |
| 117 | device_t(mconfig, C64_STARDOS, "C64 StarDOS cartridge", tag, owner, clock, "c64_stardos", __FILE__), | |
| 118 | 118 | device_c64_expansion_card_interface(mconfig, *this), |
| 119 | 119 | m_io1_charge(0), |
| 120 | 120 | m_io2_charge(0) |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | |
| 38 | 38 | protected: |
| 39 | 39 | // device-level overrides |
| 40 | virtual void device_config_complete() { m_shortname = "c64_stardos"; } | |
| 41 | 40 | virtual void device_start(); |
| 42 | 41 | |
| 43 | 42 | // device_c64_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 177 | 177 | //------------------------------------------------- |
| 178 | 178 | |
| 179 | 179 | c64_magic_formel_cartridge_device::c64_magic_formel_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 180 | device_t(mconfig, C64_MAGIC_FORMEL, "C64 Magic Formel cartridge", tag, owner, clock), | |
| 180 | device_t(mconfig, C64_MAGIC_FORMEL, "C64 Magic Formel cartridge", tag, owner, clock, "c64_magic_formel", __FILE__), | |
| 181 | 181 | device_c64_expansion_card_interface(mconfig, *this), |
| 182 | 182 | m_pia(*this, MC6821_TAG), |
| 183 | 183 | m_rom_bank(0), |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | ne1000_device::ne1000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 22 | : device_t(mconfig, NE1000, "NE1000 Network Adapter", tag, owner, clock), | |
| 22 | : device_t(mconfig, NE1000, "NE1000 Network Adapter", tag, owner, clock, "ne1000", __FILE__), | |
| 23 | 23 | device_isa8_card_interface(mconfig, *this), |
| 24 | 24 | m_dp8390(*this, "dp8390d") { |
| 25 | 25 | } |
| r22095 | r22096 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | protected: |
| 47 | 47 | // device-level overrides |
| 48 | virtual void device_config_complete() { m_shortname = "c64_magic_formel"; } | |
| 49 | 48 | virtual void device_start(); |
| 50 | 49 | virtual void device_reset(); |
| 51 | 50 |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | protected: |
| 24 | 24 | virtual void device_start(); |
| 25 | 25 | virtual void device_reset(); |
| 26 | virtual void device_config_complete() { m_shortname = "ne1000"; } | |
| 27 | 26 | private: |
| 28 | 27 | required_device<dp8390d_device> m_dp8390; |
| 29 | 28 | UINT8 m_irq; |
| r22095 | r22096 | |
|---|---|---|
| 189 | 189 | //------------------------------------------------- |
| 190 | 190 | |
| 191 | 191 | c64_sfx_sound_expander_cartridge_device::c64_sfx_sound_expander_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 192 | device_t(mconfig, C64_SFX_SOUND_EXPANDER, "C64 SFX Sound Expander cartridge", tag, owner, clock), | |
| 192 | device_t(mconfig, C64_SFX_SOUND_EXPANDER, "C64 SFX Sound Expander cartridge", tag, owner, clock, "c64_sfxse", __FILE__), | |
| 193 | 193 | device_c64_expansion_card_interface(mconfig, *this), |
| 194 | 194 | m_opl(*this, YM3526_TAG), |
| 195 | 195 | m_exp(*this, C64_EXPANSION_SLOT_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 40 | 40 | |
| 41 | 41 | protected: |
| 42 | 42 | // device-level overrides |
| 43 | virtual void device_config_complete() { m_shortname = "c64_sfxse"; } | |
| 44 | 43 | virtual void device_start(); |
| 45 | 44 | virtual void device_reset(); |
| 46 | 45 |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_comal80_cartridge_device::c64_comal80_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_COMAL80, "C64 COMAL 80 cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_COMAL80, "C64 COMAL 80 cartridge", tag, owner, clock, "c64_comal80", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 30 | 30 | const device_type SNS_LOROM_20COL = &device_creator<sns_rom_20col_device>; |
| 31 | 31 | |
| 32 | 32 | |
| 33 | sns_rom_device::sns_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 34 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 33 | sns_rom_device::sns_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) | |
| 34 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 35 | 35 | device_sns_cart_interface( mconfig, *this ) |
| 36 | 36 | { |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | sns_rom_device::sns_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 40 | : device_t(mconfig, SNS_LOROM, "SNES Cart (LoROM)", tag, owner, clock), | |
| 40 | : device_t(mconfig, SNS_LOROM, "SNES Cart (LoROM)", tag, owner, clock, "sns_rom", __FILE__), | |
| 41 | 41 | device_sns_cart_interface( mconfig, *this ) |
| 42 | 42 | { |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | sns_rom_obc1_device::sns_rom_obc1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 46 | : sns_rom_device(mconfig, SNS_LOROM_OBC1, "SNES Cart (LoROM) + OBC-1", tag, owner, clock) | |
| 46 | : sns_rom_device(mconfig, SNS_LOROM_OBC1, "SNES Cart (LoROM) + OBC-1", tag, owner, clock, "sns_rom_obc1", __FILE__) | |
| 47 | 47 | { |
| 48 | 48 | } |
| 49 | 49 | |
| r22095 | r22096 | |
| 51 | 51 | |
| 52 | 52 | // Pirate LoROM 'mappers' |
| 53 | 53 | sns_rom_pokemon_device::sns_rom_pokemon_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 54 | : sns_rom_device(mconfig, SNS_LOROM_POKEMON, "SNES Pirate Carts with Protection", tag, owner, clock) | |
| 54 | : sns_rom_device(mconfig, SNS_LOROM_POKEMON, "SNES Pirate Carts with Protection", tag, owner, clock, "sns_rom_pokemon", __FILE__) | |
| 55 | 55 | { |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | sns_rom_tekken2_device::sns_rom_tekken2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 59 | : sns_rom_device(mconfig, SNS_LOROM_TEKKEN2, "SNES Tekken 2", tag, owner, clock) | |
| 59 | : sns_rom_device(mconfig, SNS_LOROM_TEKKEN2, "SNES Tekken 2", tag, owner, clock, "sns_rom_tekken2", __FILE__) | |
| 60 | 60 | { |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | sns_rom_soulblad_device::sns_rom_soulblad_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 64 | : sns_rom_device(mconfig, SNS_LOROM_SOULBLAD, "SNES Soul Blade", tag, owner, clock) | |
| 64 | : sns_rom_device(mconfig, SNS_LOROM_SOULBLAD, "SNES Soul Blade", tag, owner, clock, "sns_rom_soulblad", __FILE__) | |
| 65 | 65 | { |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | sns_rom_banana_device::sns_rom_banana_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 69 | : sns_rom_device(mconfig, SNS_LOROM_BANANA, "SNES Banana de Pijamas", tag, owner, clock) | |
| 69 | : sns_rom_device(mconfig, SNS_LOROM_BANANA, "SNES Banana de Pijamas", tag, owner, clock, "sns_rom_banana", __FILE__) | |
| 70 | 70 | { |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | 73 | sns_rom_bugs_device::sns_rom_bugs_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 74 | : sns_rom_device(mconfig, SNS_LOROM_BUGSLIFE, "SNES A Bug's Life", tag, owner, clock) | |
| 74 | : sns_rom_device(mconfig, SNS_LOROM_BUGSLIFE, "SNES A Bug's Life", tag, owner, clock, "sns_rom_bugslife", __FILE__) | |
| 75 | 75 | { |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | // Multigame LoROM 'mappers' |
| 79 | 79 | sns_rom_mcpirate1_device::sns_rom_mcpirate1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 80 | : sns_rom_device(mconfig, SNS_LOROM_MCPIR1, "SNES Pirate Multigame Carts Type 1", tag, owner, clock) | |
| 80 | : sns_rom_device(mconfig, SNS_LOROM_MCPIR1, "SNES Pirate Multigame Carts Type 1", tag, owner, clock, "sns_rom_mcpirate1", __FILE__) | |
| 81 | 81 | { |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | sns_rom_mcpirate2_device::sns_rom_mcpirate2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 85 | : sns_rom_device(mconfig, SNS_LOROM_MCPIR2, "SNES Pirate Multigame Carts Type 2", tag, owner, clock) | |
| 85 | : sns_rom_device(mconfig, SNS_LOROM_MCPIR2, "SNES Pirate Multigame Carts Type 2", tag, owner, clock, "sns_rom_mcpirate2", __FILE__) | |
| 86 | 86 | { |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | sns_rom_20col_device::sns_rom_20col_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 90 | : sns_rom_device(mconfig, SNS_LOROM_20COL, "SNES Super 20 Collection", tag, owner, clock) | |
| 90 | : sns_rom_device(mconfig, SNS_LOROM_20COL, "SNES Super 20 Collection", tag, owner, clock, "sns_rom_20col", __FILE__) | |
| 91 | 91 | { |
| 92 | 92 | } |
| 93 | 93 |
| r22095 | r22096 | |
|---|---|---|
| 104 | 104 | //------------------------------------------------- |
| 105 | 105 | |
| 106 | 106 | s100_djdma_device::s100_djdma_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 107 | device_t(mconfig, S100_DJDMA, "DJDMA", tag, owner, clock), | |
| 107 | device_t(mconfig, S100_DJDMA, "DJDMA", tag, owner, clock, "djdma", __FILE__), | |
| 108 | 108 | device_s100_card_interface(mconfig, *this) |
| 109 | 109 | { |
| 110 | 110 | } |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | // device-level overrides |
| 36 | 36 | virtual void device_start(); |
| 37 | 37 | virtual void device_reset(); |
| 38 | virtual void device_config_complete() { m_shortname = "c64_comal80"; } | |
| 39 | 38 | |
| 40 | 39 | // device_c64_expansion_card_interface overrides |
| 41 | 40 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, UINT8 data, int sphi2, int ba, int roml, int romh, int io1, int io2); |
| r22095 | r22096 | |
|---|---|---|
| 11 | 11 | { |
| 12 | 12 | public: |
| 13 | 13 | // construction/destruction |
| 14 | sns_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 14 | sns_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); | |
| 15 | 15 | sns_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 16 | 16 | |
| 17 | 17 | // device-level overrides |
| 18 | 18 | virtual void device_start(); |
| 19 | virtual void device_config_complete() { m_shortname = "sns_rom"; } | |
| 20 | ||
| 19 | ||
| 21 | 20 | // reading and writing |
| 22 | 21 | virtual DECLARE_READ8_MEMBER(read_l); |
| 23 | 22 | virtual DECLARE_READ8_MEMBER(read_h); |
| r22095 | r22096 | |
| 34 | 33 | // device-level overrides |
| 35 | 34 | virtual void device_start(); |
| 36 | 35 | virtual void device_reset(); |
| 37 | virtual void device_config_complete() { m_shortname = "sns_rom_obc1"; } | |
| 38 | 36 | |
| 39 | 37 | // additional reading and writing |
| 40 | 38 | virtual DECLARE_READ8_MEMBER(chip_read); |
| r22095 | r22096 | |
| 59 | 57 | // device-level overrides |
| 60 | 58 | virtual void device_start(); |
| 61 | 59 | virtual void device_reset(); |
| 62 | virtual void device_config_complete() { m_shortname = "sns_rom_pokemon"; } | |
| 63 | 60 | |
| 64 | 61 | // reading and writing |
| 65 | 62 | virtual DECLARE_READ8_MEMBER(chip_read); // protection device |
| r22095 | r22096 | |
| 78 | 75 | // device-level overrides |
| 79 | 76 | virtual void device_start(); |
| 80 | 77 | virtual void device_reset(); |
| 81 | virtual void device_config_complete() { m_shortname = "sns_rom_tekken2"; } | |
| 82 | 78 | |
| 83 | 79 | // reading and writing |
| 84 | 80 | virtual DECLARE_READ8_MEMBER(chip_read); // protection device |
| r22095 | r22096 | |
| 99 | 95 | // construction/destruction |
| 100 | 96 | sns_rom_soulblad_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 101 | 97 | |
| 102 | // device-level overrides | |
| 103 | virtual void device_config_complete() { m_shortname = "sns_rom_soulblad"; } | |
| 104 | ||
| 105 | 98 | // reading and writing |
| 106 | 99 | virtual DECLARE_READ8_MEMBER(chip_read); // protection device |
| 107 | 100 | }; |
| r22095 | r22096 | |
| 117 | 110 | // device-level overrides |
| 118 | 111 | virtual void device_start(); |
| 119 | 112 | virtual void device_reset(); |
| 120 | virtual void device_config_complete() { m_shortname = "sns_rom_mcpirate1"; } | |
| 121 | 113 | |
| 122 | 114 | // reading and writing |
| 123 | 115 | virtual DECLARE_READ8_MEMBER(read_l); |
| r22095 | r22096 | |
| 137 | 129 | // device-level overrides |
| 138 | 130 | virtual void device_start(); |
| 139 | 131 | virtual void device_reset(); |
| 140 | virtual void device_config_complete() { m_shortname = "sns_rom_mcpirate2"; } | |
| 141 | 132 | |
| 142 | 133 | // reading and writing |
| 143 | 134 | virtual DECLARE_READ8_MEMBER(read_l); |
| r22095 | r22096 | |
| 156 | 147 | |
| 157 | 148 | // device-level overrides |
| 158 | 149 | virtual void device_start(); |
| 159 | virtual void device_config_complete() { m_shortname = "sns_rom_20col"; } | |
| 160 | ||
| 150 | ||
| 161 | 151 | // reading and writing |
| 162 | 152 | virtual DECLARE_READ8_MEMBER(read_l); |
| 163 | 153 | virtual DECLARE_READ8_MEMBER(read_h); |
| r22095 | r22096 | |
| 176 | 166 | // device-level overrides |
| 177 | 167 | // virtual void device_start(); |
| 178 | 168 | // virtual void device_reset(); |
| 179 | virtual void device_config_complete() { m_shortname = "sns_rom_banana"; } | |
| 180 | 169 | |
| 181 | 170 | // reading and writing |
| 182 | 171 | virtual DECLARE_READ8_MEMBER(chip_read); // protection device |
| r22095 | r22096 | |
| 195 | 184 | // device-level overrides |
| 196 | 185 | virtual void device_start(); |
| 197 | 186 | virtual void device_reset(); |
| 198 | virtual void device_config_complete() { m_shortname = "sns_rom_bugslife"; } | |
| 199 | 187 | |
| 200 | 188 | // reading and writing |
| 201 | 189 | virtual DECLARE_READ8_MEMBER(chip_read); // protection device |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | diag264_cassette_loopback_device::diag264_cassette_loopback_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 31 | : device_t(mconfig, DIAG264_CASSETTE_LOOPBACK, "Diag264 Cassette Loopback", tag, owner, clock), | |
| 31 | : device_t(mconfig, DIAG264_CASSETTE_LOOPBACK, "Diag264 Cassette Loopback", tag, owner, clock, "diag264_loopback_cassette", __FILE__), | |
| 32 | 32 | device_pet_datassette_port_interface(mconfig, *this), |
| 33 | 33 | m_read(1), |
| 34 | 34 | m_sense(0) |
| r22095 | r22096 | |
|---|---|---|
| 40 | 40 | // device-level overrides |
| 41 | 41 | virtual void device_start(); |
| 42 | 42 | virtual void device_reset(); |
| 43 | virtual void device_config_complete() { m_shortname = "djdma"; } | |
| 44 | 43 | |
| 45 | 44 | private: |
| 46 | 45 | // internal state |
| r22095 | r22096 | |
|---|---|---|
| 59 | 59 | MACHINE_CONFIG_END |
| 60 | 60 | |
| 61 | 61 | |
| 62 | isa8_fdc_device::isa8_fdc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 63 | device_t(mconfig, type, name, tag, owner, clock), | |
| 62 | isa8_fdc_device::isa8_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) : | |
| 63 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 64 | 64 | device_isa8_card_interface(mconfig, *this), |
| 65 | 65 | fdc(*this, "fdc") |
| 66 | 66 | { |
| r22095 | r22096 | |
| 105 | 105 | fdc->tc_w(state == ASSERT_LINE); |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | isa8_fdc_xt_device::isa8_fdc_xt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : isa8_fdc_device(mconfig, ISA8_FDC_XT, "ISA 8bits XT FDC hookup", tag, owner, clock) | |
| 108 | isa8_fdc_xt_device::isa8_fdc_xt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : isa8_fdc_device(mconfig, ISA8_FDC_XT, "ISA 8bits XT FDC hookup", tag, owner, clock, "isa8_fdc_xt", __FILE__) | |
| 109 | 109 | { |
| 110 | m_shortname = "isa8_fdc_xt"; | |
| 111 | 110 | } |
| 112 | 111 | |
| 113 | 112 | machine_config_constructor isa8_fdc_xt_device::device_mconfig_additions() const |
| r22095 | r22096 | |
| 115 | 114 | return MACHINE_CONFIG_NAME(cfg_xt); |
| 116 | 115 | } |
| 117 | 116 | |
| 118 | isa8_fdc_at_device::isa8_fdc_at_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : isa8_fdc_device(mconfig, ISA8_FDC_AT, "ISA 8bits AT FDC hookup", tag, owner, clock) | |
| 117 | isa8_fdc_at_device::isa8_fdc_at_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : isa8_fdc_device(mconfig, ISA8_FDC_AT, "ISA 8bits AT FDC hookup", tag, owner, clock, "isa8_fdc_at", __FILE__) | |
| 119 | 118 | { |
| 120 | m_shortname = "isa8_fdc_at"; | |
| 121 | 119 | } |
| 122 | 120 | |
| 123 | 121 | machine_config_constructor isa8_fdc_at_device::device_mconfig_additions() const |
| r22095 | r22096 | |
| 125 | 123 | return MACHINE_CONFIG_NAME(cfg_at); |
| 126 | 124 | } |
| 127 | 125 | |
| 128 | isa8_fdc_smc_device::isa8_fdc_smc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : isa8_fdc_device(mconfig, ISA8_FDC_XT, "ISA 8bits SMC FDC hookup", tag, owner, clock) | |
| 126 | isa8_fdc_smc_device::isa8_fdc_smc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : isa8_fdc_device(mconfig, ISA8_FDC_XT, "ISA 8bits SMC FDC hookup", tag, owner, clock, "isa8_fdc_smc", __FILE__) | |
| 129 | 127 | { |
| 130 | m_shortname = "isa8_fdc_smc"; | |
| 131 | 128 | } |
| 132 | 129 | |
| 133 | 130 | machine_config_constructor isa8_fdc_smc_device::device_mconfig_additions() const |
| r22095 | r22096 | |
| 135 | 132 | return MACHINE_CONFIG_NAME(cfg_smc); |
| 136 | 133 | } |
| 137 | 134 | |
| 138 | isa8_fdc_ps2_device::isa8_fdc_ps2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : isa8_fdc_device(mconfig, ISA8_FDC_PS2, "ISA 8bits PS/2 FDC hookup", tag, owner, clock) | |
| 135 | isa8_fdc_ps2_device::isa8_fdc_ps2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : isa8_fdc_device(mconfig, ISA8_FDC_PS2, "ISA 8bits PS/2 FDC hookup", tag, owner, clock, "isa8_fdc_ps2", __FILE__) | |
| 139 | 136 | { |
| 140 | m_shortname = "isa8_fdc_ps2"; | |
| 141 | 137 | } |
| 142 | 138 | |
| 143 | 139 | machine_config_constructor isa8_fdc_ps2_device::device_mconfig_additions() const |
| r22095 | r22096 | |
| 145 | 141 | return MACHINE_CONFIG_NAME(cfg_ps2); |
| 146 | 142 | } |
| 147 | 143 | |
| 148 | isa8_fdc_superio_device::isa8_fdc_superio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : isa8_fdc_device(mconfig, ISA8_FDC_SUPERIO, "ISA 8bits SUPERIO FDC hookup", tag, owner, clock) | |
| 144 | isa8_fdc_superio_device::isa8_fdc_superio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : isa8_fdc_device(mconfig, ISA8_FDC_SUPERIO, "ISA 8bits SUPERIO FDC hookup", tag, owner, clock, "isa8_fdc_superio", __FILE__) | |
| 149 | 145 | { |
| 150 | m_shortname = "isa8_fdc_superio"; | |
| 151 | 146 | } |
| 152 | 147 | |
| 153 | 148 | machine_config_constructor isa8_fdc_superio_device::device_mconfig_additions() const |
| r22095 | r22096 | |
|---|---|---|
| 131 | 131 | //------------------------------------------------- |
| 132 | 132 | |
| 133 | 133 | c64_cpm_cartridge_device::c64_cpm_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 134 | device_t(mconfig, C64_CPM, "C64 CP/M cartridge", tag, owner, clock), | |
| 134 | device_t(mconfig, C64_CPM, "C64 CP/M cartridge", tag, owner, clock, "c64_cpm", __FILE__), | |
| 135 | 135 | device_c64_expansion_card_interface(mconfig, *this), |
| 136 | 136 | m_maincpu(*this, Z80_TAG), |
| 137 | 137 | m_enabled(0), |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "diag264_loopback_cassette"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | |
| 39 | 38 | // device_pet_datassette_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 41 | 41 | //------------------------------------------------- |
| 42 | 42 | |
| 43 | 43 | kc_m011_device::kc_m011_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 44 | : device_t(mconfig, KC_M011, "M011 64KB RAM", tag, owner, clock), | |
| 44 | : device_t(mconfig, KC_M011, "M011 64KB RAM", tag, owner, clock, "kc_m011", __FILE__), | |
| 45 | 45 | device_kcexp_interface( mconfig, *this ) |
| 46 | 46 | { |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | kc_m011_device::kc_m011_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 50 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 49 | kc_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) | |
| 50 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 51 | 51 | device_kcexp_interface( mconfig, *this ) |
| 52 | 52 | { |
| 53 | 53 | } |
| r22095 | r22096 | |
| 146 | 146 | //------------------------------------------------- |
| 147 | 147 | |
| 148 | 148 | kc_m022_device::kc_m022_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 149 | : kc_m011_device(mconfig, KC_M022, "M022 16KB RAM", tag, owner, clock) | |
| 149 | : kc_m011_device(mconfig, KC_M022, "M022 16KB RAM", tag, owner, clock, "kc_m022", __FILE__) | |
| 150 | 150 | { |
| 151 | 151 | } |
| 152 | 152 | |
| r22095 | r22096 | |
| 191 | 191 | //------------------------------------------------- |
| 192 | 192 | |
| 193 | 193 | kc_m032_device::kc_m032_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 194 | : kc_m011_device(mconfig, KC_M032, "M032 256KB segmented RAM", tag, owner, clock) | |
| 194 | : kc_m011_device(mconfig, KC_M032, "M032 256KB segmented RAM", tag, owner, clock, "kc_m032", __FILE__) | |
| 195 | 195 | { |
| 196 | 196 | } |
| 197 | 197 | |
| r22095 | r22096 | |
| 260 | 260 | //------------------------------------------------- |
| 261 | 261 | |
| 262 | 262 | kc_m034_device::kc_m034_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 263 | : kc_m011_device(mconfig, KC_M034, "M034 512KB segmented RAM", tag, owner, clock) | |
| 263 | : kc_m011_device(mconfig, KC_M034, "M034 512KB segmented RAM", tag, owner, clock, "kc_m034", __FILE__) | |
| 264 | 264 | { |
| 265 | 265 | } |
| 266 | 266 | |
| r22095 | r22096 | |
| 329 | 329 | //------------------------------------------------- |
| 330 | 330 | |
| 331 | 331 | kc_m035_device::kc_m035_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 332 | : kc_m011_device(mconfig, KC_M035, "M035 1MB segmented RAM", tag, owner, clock) | |
| 332 | : kc_m011_device(mconfig, KC_M035, "M035 1MB segmented RAM", tag, owner, clock, "kc_m035", __FILE__) | |
| 333 | 333 | { |
| 334 | 334 | } |
| 335 | 335 | |
| r22095 | r22096 | |
| 387 | 387 | //------------------------------------------------- |
| 388 | 388 | |
| 389 | 389 | kc_m036_device::kc_m036_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 390 | : kc_m011_device(mconfig, KC_M036, "M036 128KB segmented RAM", tag, owner, clock) | |
| 390 | : kc_m011_device(mconfig, KC_M036, "M036 128KB segmented RAM", tag, owner, clock, "kc_m036", __FILE__) | |
| 391 | 391 | { |
| 392 | 392 | } |
| 393 | 393 |
| r22095 | r22096 | |
|---|---|---|
| 24 | 24 | { |
| 25 | 25 | public: |
| 26 | 26 | // construction/destruction |
| 27 | isa8_fdc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 27 | isa8_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); | |
| 28 | 28 | |
| 29 | 29 | required_device<pc_fdc_interface> fdc; |
| 30 | 30 |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | // device-level overrides |
| 45 | 45 | virtual void device_start(); |
| 46 | 46 | virtual void device_reset(); |
| 47 | virtual void device_config_complete() { m_shortname = "c64_cpm"; } | |
| 48 | 47 | |
| 49 | 48 | // device_c64_expansion_card_interface overrides |
| 50 | 49 | virtual void c64_cd_w(address_space &space, offs_t offset, UINT8 data, int sphi2, int ba, int roml, int romh, int io1, int io2); |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | kc_m011_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | kc_m011_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | protected: |
| 25 | 25 | // device-level overrides |
| 26 | 26 | virtual void device_start(); |
| 27 | 27 | virtual void device_reset(); |
| 28 | virtual void device_config_complete() { m_shortname = "kc_m011"; } | |
| 29 | 28 | |
| 30 | 29 | // kcexp_interface overrides |
| 31 | 30 | virtual UINT8 module_id_r() { return 0xf6; } |
| r22095 | r22096 | |
| 61 | 60 | kc_m022_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 62 | 61 | |
| 63 | 62 | protected: |
| 64 | // device-level overrides | |
| 65 | virtual void device_config_complete() { m_shortname = "kc_m022"; } | |
| 66 | ||
| 67 | 63 | // kcexp_interface overrides |
| 68 | 64 | virtual UINT8 module_id_r() { return 0xf4; } |
| 69 | 65 | virtual void read(offs_t offset, UINT8 &ata); |
| r22095 | r22096 | |
| 87 | 83 | protected: |
| 88 | 84 | // device-level overrides |
| 89 | 85 | virtual void device_reset(); |
| 90 | virtual void device_config_complete() { m_shortname = "kc_m032"; } | |
| 91 | 86 | |
| 92 | 87 | // kcexp_interface overrides |
| 93 | 88 | virtual UINT8 module_id_r() { return 0x79; } |
| r22095 | r22096 | |
| 113 | 108 | protected: |
| 114 | 109 | // device-level overrides |
| 115 | 110 | virtual void device_reset(); |
| 116 | virtual void device_config_complete() { m_shortname = "kc_m034"; } | |
| 117 | 111 | |
| 118 | 112 | // kcexp_interface overrides |
| 119 | 113 | virtual UINT8 module_id_r() { return 0x7a; } |
| r22095 | r22096 | |
| 137 | 131 | kc_m035_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 138 | 132 | |
| 139 | 133 | protected: |
| 140 | // device-level overrides | |
| 141 | virtual void device_config_complete() { m_shortname = "kc_m035"; } | |
| 142 | ||
| 143 | 134 | // kcexp_interface overrides |
| 144 | 135 | virtual UINT8 module_id_r() { return 0x7b; } |
| 145 | 136 | virtual void control_w(UINT8 data); |
| r22095 | r22096 | |
| 164 | 155 | protected: |
| 165 | 156 | // device-level overrides |
| 166 | 157 | virtual void device_reset(); |
| 167 | virtual void device_config_complete() { m_shortname = "kc_m036"; } | |
| 168 | 158 | |
| 169 | 159 | // kcexp_interface overrides |
| 170 | 160 | virtual UINT8 module_id_r() { return 0x78; } |
| r22095 | r22096 | |
|---|---|---|
| 87 | 87 | //------------------------------------------------- |
| 88 | 88 | |
| 89 | 89 | c64_warp_speed_cartridge_device::c64_warp_speed_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 90 | device_t(mconfig, C64_WARP_SPEED, "C64 Warp Speed cartridge", tag, owner, clock), | |
| 90 | device_t(mconfig, C64_WARP_SPEED, "C64 Warp Speed cartridge", tag, owner, clock, "c64_warp_speed", __FILE__), | |
| 91 | 91 | device_c64_expansion_card_interface(mconfig, *this) |
| 92 | 92 | { |
| 93 | 93 | } |
| r22095 | r22096 | |
|---|---|---|
| 102 | 102 | //------------------------------------------------- |
| 103 | 103 | |
| 104 | 104 | c64_ps64_cartridge_device::c64_ps64_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 105 | device_t(mconfig, C64_PS64, "C64 PS-64", tag, owner, clock), | |
| 105 | device_t(mconfig, C64_PS64, "C64 PS-64", tag, owner, clock, "c64_ps64", __FILE__), | |
| 106 | 106 | device_c64_expansion_card_interface(mconfig, *this) |
| 107 | 107 | { |
| 108 | 108 | } |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | virtual void device_config_complete() { m_shortname = "c64_warp_speed"; } | |
| 40 | 39 | virtual void device_start(); |
| 41 | 40 | virtual void device_reset(); |
| 42 | 41 |
| r22095 | r22096 | |
|---|---|---|
| 410 | 410 | //------------------------------------------------- |
| 411 | 411 | |
| 412 | 412 | luxor_55_10828_device::luxor_55_10828_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 413 | : device_t(mconfig, LUXOR_55_10828, "Luxor 55 10828", tag, owner, clock), | |
| 413 | : device_t(mconfig, LUXOR_55_10828, "Luxor 55 10828", tag, owner, clock, "lux10828", __FILE__), | |
| 414 | 414 | device_abcbus_card_interface(mconfig, *this), |
| 415 | 415 | m_maincpu(*this, Z80_TAG), |
| 416 | 416 | m_pio(*this, Z80PIO_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | |
| 38 | 38 | protected: |
| 39 | 39 | // device-level overrides |
| 40 | virtual void device_config_complete() { m_shortname = "c64_ps64"; } | |
| 41 | 40 | virtual void device_start(); |
| 42 | 41 | virtual void device_reset(); |
| 43 | 42 |
| r22095 | r22096 | |
|---|---|---|
| 67 | 67 | // LIVE DEVICE |
| 68 | 68 | //************************************************************************** |
| 69 | 69 | |
| 70 | a2bus_zipdrivebase_device::a2bus_zipdrivebase_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 71 | device_t(mconfig, type, name, tag, owner, clock), | |
| 70 | a2bus_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) : | |
| 71 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 72 | 72 | device_a2bus_card_interface(mconfig, *this), |
| 73 | 73 | m_ide(*this, ZIPDRIVE_IDE_TAG) |
| 74 | 74 | { |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | a2bus_zipdrive_device::a2bus_zipdrive_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 78 | a2bus_zipdrivebase_device(mconfig, A2BUS_ZIPDRIVE, "Zip Technologies ZipDrive", tag, owner, clock) | |
| 78 | a2bus_zipdrivebase_device(mconfig, A2BUS_ZIPDRIVE, "Zip Technologies ZipDrive", tag, owner, clock, "a2zipdrv", __FILE__) | |
| 79 | 79 | { |
| 80 | m_shortname = "a2zipdrv"; | |
| 81 | 80 | } |
| 82 | 81 | |
| 83 | 82 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 79 | 79 | // device-level overrides |
| 80 | 80 | virtual void device_start(); |
| 81 | 81 | virtual void device_reset(); |
| 82 | virtual void device_config_complete() { m_shortname = "lux10828"; } | |
| 83 | 82 | |
| 84 | 83 | // device_abcbus_interface overrides |
| 85 | 84 | virtual void abcbus_cs(UINT8 data); |
| r22095 | r22096 | |
|---|---|---|
| 25 | 25 | { |
| 26 | 26 | public: |
| 27 | 27 | // construction/destruction |
| 28 | a2bus_zipdrivebase_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 28 | 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); | |
| 29 | 29 | |
| 30 | 30 | // optional information overrides |
| 31 | 31 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 65 | 65 | // LIVE DEVICE |
| 66 | 66 | //************************************************************************** |
| 67 | 67 | |
| 68 | a2bus_alfam2_device::a2bus_alfam2_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 69 | device_t(mconfig, type, name, tag, owner, clock), | |
| 68 | a2bus_alfam2_device::a2bus_alfam2_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) : | |
| 69 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 70 | 70 | device_a2bus_card_interface(mconfig, *this), |
| 71 | 71 | m_sn1(*this, SN1_TAG), |
| 72 | 72 | m_sn2(*this, SN2_TAG), |
| 73 | 73 | m_sn3(*this, SN3_TAG) |
| 74 | 74 | { |
| 75 | m_shortname = "a2alfam2"; | |
| 76 | 75 | } |
| 77 | 76 | |
| 78 | 77 | a2bus_alfam2_device::a2bus_alfam2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 79 | device_t(mconfig, A2BUS_ALFAM2, "ALF Apple Music II", tag, owner, clock), | |
| 78 | device_t(mconfig, A2BUS_ALFAM2, "ALF Apple Music II", tag, owner, clock, "a2alfam2", __FILE__), | |
| 80 | 79 | device_a2bus_card_interface(mconfig, *this), |
| 81 | 80 | m_sn1(*this, SN1_TAG), |
| 82 | 81 | m_sn2(*this, SN2_TAG), |
| 83 | 82 | m_sn3(*this, SN3_TAG) |
| 84 | 83 | { |
| 85 | m_shortname = "a2alfam2"; | |
| 86 | 84 | } |
| 87 | 85 | |
| 88 | 86 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | { |
| 24 | 24 | public: |
| 25 | 25 | // construction/destruction |
| 26 | a2bus_alfam2_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 26 | a2bus_alfam2_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); | |
| 27 | 27 | a2bus_alfam2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 28 | 28 | |
| 29 | 29 | // optional information overrides |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_mikro_assembler_cartridge_device::c64_mikro_assembler_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_MIKRO_ASSEMBLER, "C64 Mikro Assembler cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_MIKRO_ASSEMBLER, "C64 Mikro Assembler cartridge", tag, owner, clock, "c64_mikro_assembler", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_mikro_assembler"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | |
| 39 | 38 | // device_c64_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 46 | 46 | // LIVE DEVICE |
| 47 | 47 | //************************************************************************** |
| 48 | 48 | |
| 49 | a2bus_sam_device::a2bus_sam_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 50 | device_t(mconfig, type, name, tag, owner, clock), | |
| 49 | a2bus_sam_device::a2bus_sam_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) : | |
| 50 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 51 | 51 | device_a2bus_card_interface(mconfig, *this), |
| 52 | 52 | m_dac(*this, DAC_TAG) |
| 53 | 53 | { |
| 54 | m_shortname = "a2sam"; | |
| 55 | 54 | } |
| 56 | 55 | |
| 57 | 56 | a2bus_sam_device::a2bus_sam_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 58 | device_t(mconfig, A2BUS_SAM, "Don't Ask Software SAM", tag, owner, clock), | |
| 57 | device_t(mconfig, A2BUS_SAM, "Don't Ask Software SAM", tag, owner, clock, "a2sam", __FILE__), | |
| 59 | 58 | device_a2bus_card_interface(mconfig, *this), |
| 60 | 59 | m_dac(*this, DAC_TAG) |
| 61 | 60 | { |
| 62 | m_shortname = "a2sam"; | |
| 63 | 61 | } |
| 64 | 62 | |
| 65 | 63 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | { |
| 24 | 24 | public: |
| 25 | 25 | // construction/destruction |
| 26 | a2bus_sam_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 26 | a2bus_sam_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); | |
| 27 | 27 | a2bus_sam_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 28 | 28 | |
| 29 | 29 | // optional information overrides |
| r22095 | r22096 | |
|---|---|---|
| 57 | 57 | //------------------------------------------------- |
| 58 | 58 | |
| 59 | 59 | tvc_hbf_device::tvc_hbf_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 60 | : device_t(mconfig, TVC_HBF, "HBF floppy interface", tag, owner, clock), | |
| 60 | : device_t(mconfig, TVC_HBF, "HBF floppy interface", tag, owner, clock, "tvc_hbf", __FILE__), | |
| 61 | 61 | device_tvcexp_interface( mconfig, *this ), |
| 62 | 62 | m_fdc(*this, "fdc") |
| 63 | 63 | { |
| r22095 | r22096 | |
|---|---|---|
| 158 | 158 | //------------------------------------------------- |
| 159 | 159 | |
| 160 | 160 | epson_tf20_device::epson_tf20_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 161 | device_t(mconfig, EPSON_TF20, "EPSON TF-20 dual floppy drive", tag, owner, clock), | |
| 161 | device_t(mconfig, EPSON_TF20, "EPSON TF-20 dual floppy drive", tag, owner, clock, "epson_tf20", __FILE__), | |
| 162 | 162 | device_epson_sio_interface(mconfig, *this), |
| 163 | 163 | m_cpu(*this, "19b"), |
| 164 | 164 | m_ram(*this, "ram"), |
| r22095 | r22096 | |
|---|---|---|
| 60 | 60 | ROM_LOAD( "sed1200-b.bin", 0x000, 0x800, CRC(d0741f51) SHA1(c8c856f1357286a2c8c806af81724a828345357e)) |
| 61 | 61 | ROM_END |
| 62 | 62 | |
| 63 | sed1200_device::sed1200_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 64 | device_t(mconfig, type, name, tag, owner, clock) | |
| 63 | sed1200_device::sed1200_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) : | |
| 64 | device_t(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 65 | 65 | { |
| 66 | m_shortname = "sed1200"; | |
| 67 | 66 | } |
| 68 | 67 | |
| 69 | 68 | sed1200d0a_device::sed1200d0a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 70 | sed1200_device(mconfig, SED1200D0A, "sed1200d-0a", tag, owner, clock) | |
| 69 | sed1200_device(mconfig, SED1200D0A, "sed1200d-0a", tag, owner, clock, "sed1200", __FILE__) | |
| 71 | 70 | { |
| 72 | 71 | } |
| 73 | 72 | |
| 74 | 73 | sed1200f0a_device::sed1200f0a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 75 | sed1200_device(mconfig, SED1200F0A, "sed1200f-0a", tag, owner, clock) | |
| 74 | sed1200_device(mconfig, SED1200F0A, "sed1200f-0a", tag, owner, clock, "sed1200", __FILE__) | |
| 76 | 75 | { |
| 77 | 76 | } |
| 78 | 77 | |
| 79 | 78 | sed1200d0b_device::sed1200d0b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 80 | sed1200_device(mconfig, SED1200D0B, "sed1200d-0b", tag, owner, clock) | |
| 79 | sed1200_device(mconfig, SED1200D0B, "sed1200d-0b", tag, owner, clock, "sed1200", __FILE__) | |
| 81 | 80 | { |
| 82 | 81 | } |
| 83 | 82 | |
| 84 | 83 | sed1200f0b_device::sed1200f0b_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 85 | sed1200_device(mconfig, SED1200F0B, "sed1200f-0b", tag, owner, clock) | |
| 84 | sed1200_device(mconfig, SED1200F0B, "sed1200f-0b", tag, owner, clock, "sed1200", __FILE__) | |
| 86 | 85 | { |
| 87 | 86 | } |
| 88 | 87 |
| r22095 | r22096 | |
|---|---|---|
| 25 | 25 | const device_type SNS_BSMEMPAK = &device_creator<sns_rom_bsmempak_device>; |
| 26 | 26 | |
| 27 | 27 | |
| 28 | sns_rom_bsx_device::sns_rom_bsx_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 29 | : sns_rom_device(mconfig, type, name, tag, owner, clock), | |
| 28 | sns_rom_bsx_device::sns_rom_bsx_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) | |
| 29 | : sns_rom_device(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 30 | 30 | m_slot(*this, "bs_slot") |
| 31 | 31 | { |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | sns_rom_bsx_device::sns_rom_bsx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 35 | : sns_rom_device(mconfig, SNS_ROM_BSX, "SNES BS-X Cart", tag, owner, clock), | |
| 35 | : sns_rom_device(mconfig, SNS_ROM_BSX, "SNES BS-X Cart", tag, owner, clock, "sns_rom_bsx", __FILE__), | |
| 36 | 36 | m_slot(*this, "bs_slot") |
| 37 | 37 | { |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | sns_rom_bsxlo_device::sns_rom_bsxlo_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 41 | : sns_rom_device(mconfig, SNS_LOROM_BSX, "SNES Cart (LoROM) + BS-X slot", tag, owner, clock), | |
| 41 | : sns_rom_device(mconfig, SNS_LOROM_BSX, "SNES Cart (LoROM) + BS-X slot", tag, owner, clock, "sns_rom_bsxlo", __FILE__), | |
| 42 | 42 | m_slot(*this, "bs_slot") |
| 43 | 43 | { |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | sns_rom_bsxhi_device::sns_rom_bsxhi_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 47 | : sns_rom21_device(mconfig, SNS_HIROM_BSX, "SNES Cart (HiROM) + BS-X slot", tag, owner, clock), | |
| 47 | : sns_rom21_device(mconfig, SNS_HIROM_BSX, "SNES Cart (HiROM) + BS-X slot", tag, owner, clock, "sns_rom_bsxhi", __FILE__), | |
| 48 | 48 | m_slot(*this, "bs_slot") |
| 49 | 49 | { |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | sns_rom_bsmempak_device::sns_rom_bsmempak_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 53 | : sns_rom_device(mconfig, SNS_BSMEMPAK, "SNES BS-X Memory packs", tag, owner, clock) | |
| 53 | : sns_rom_device(mconfig, SNS_BSMEMPAK, "SNES BS-X Memory packs", tag, owner, clock, "sns_bsmempak", __FILE__) | |
| 54 | 54 | { |
| 55 | 55 | } |
| 56 | 56 |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | // device-level overrides |
| 34 | 34 | virtual void device_start(); |
| 35 | 35 | virtual void device_reset(); |
| 36 | virtual void device_config_complete() { m_shortname = "tvc_hbf"; } | |
| 37 | 36 | |
| 38 | 37 | // tvcexp_interface overrides |
| 39 | 38 | virtual UINT8 id_r() { return 0x02; } // ID_A to GND, ID_B to VCC |
| r22095 | r22096 | |
|---|---|---|
| 48 | 48 | |
| 49 | 49 | protected: |
| 50 | 50 | // device-level overrides |
| 51 | virtual void device_config_complete() { m_shortname = "epson_tf20"; } | |
| 52 | 51 | virtual void device_start(); |
| 53 | 52 | virtual void device_reset(); |
| 54 | 53 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| r22095 | r22096 | |
|---|---|---|
| 81 | 81 | //------------------------------------------------- |
| 82 | 82 | |
| 83 | 83 | isa8_mpu401_device::isa8_mpu401_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 84 | : device_t(mconfig, ISA8_MPU401, "Roland MPU-401 Sound Card", tag, owner, clock), | |
| 84 | : device_t(mconfig, ISA8_MPU401, "Roland MPU-401 Sound Card", tag, owner, clock, "isa_mpu401", __FILE__), | |
| 85 | 85 | device_isa8_card_interface( mconfig, *this ) |
| 86 | 86 | { |
| 87 | 87 | } |
| r22095 | r22096 | |
|---|---|---|
| 58 | 58 | |
| 59 | 59 | class sed1200_device : public device_t { |
| 60 | 60 | public: |
| 61 | sed1200_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 61 | sed1200_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); | |
| 62 | 62 | |
| 63 | 63 | void control_w(UINT8 data); |
| 64 | 64 | UINT8 control_r(); |
| r22095 | r22096 | |
|---|---|---|
| 87 | 87 | //------------------------------------------------- |
| 88 | 88 | |
| 89 | 89 | powermate_ide_device::powermate_ide_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 90 | : device_t(mconfig, ADAM_IDE, "Powermate HP IDE", tag, owner, clock), | |
| 90 | : device_t(mconfig, ADAM_IDE, "Powermate HP IDE", tag, owner, clock, "adam_ide", __FILE__), | |
| 91 | 91 | device_adam_expansion_slot_card_interface(mconfig, *this), |
| 92 | 92 | m_ide(*this, IDE_TAG), |
| 93 | 93 | m_centronics(*this, CENTRONICS_TAG) |
| r22095 | r22096 | |
|---|---|---|
| 32 | 32 | { |
| 33 | 33 | public: |
| 34 | 34 | // construction/destruction |
| 35 | sns_rom_bsx_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 35 | 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); | |
| 36 | 36 | sns_rom_bsx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 37 | 37 | |
| 38 | 38 | // device-level overrides |
| 39 | 39 | virtual void device_start(); |
| 40 | 40 | virtual void device_reset(); |
| 41 | virtual void device_config_complete() { m_shortname = "sns_rom_bsx"; } | |
| 42 | 41 | virtual machine_config_constructor device_mconfig_additions() const; |
| 43 | 42 | |
| 44 | 43 | // additional reading and writing |
| r22095 | r22096 | |
| 79 | 78 | |
| 80 | 79 | // device-level overrides |
| 81 | 80 | virtual void device_start(); |
| 82 | virtual void device_config_complete() { m_shortname = "sns_rom_bsxlo"; } | |
| 83 | 81 | virtual machine_config_constructor device_mconfig_additions() const; |
| 84 | 82 | |
| 85 | 83 | // additional reading and writing |
| r22095 | r22096 | |
| 100 | 98 | |
| 101 | 99 | // device-level overrides |
| 102 | 100 | virtual void device_start(); |
| 103 | virtual void device_config_complete() { m_shortname = "sns_rom_bsxhi"; } | |
| 104 | 101 | virtual machine_config_constructor device_mconfig_additions() const; |
| 105 | 102 | |
| 106 | 103 | // additional reading and writing |
| r22095 | r22096 | |
| 123 | 120 | // device-level overrides |
| 124 | 121 | virtual void device_start(); |
| 125 | 122 | virtual void device_reset(); |
| 126 | virtual void device_config_complete() { m_shortname = "sns_bsmempak"; } | |
| 127 | 123 | |
| 128 | 124 | // additional reading and writing |
| 129 | 125 | virtual DECLARE_READ8_MEMBER(read_l); |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | // device-level overrides |
| 28 | 28 | virtual void device_start(); |
| 29 | 29 | virtual void device_reset(); |
| 30 | virtual void device_config_complete() { m_shortname = "isa_mpu401"; } | |
| 31 | 30 | private: |
| 32 | 31 | // internal state |
| 33 | 32 | }; |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| 41 | virtual void device_config_complete() { m_shortname = "adam_ide"; } | |
| 42 | 41 | virtual void device_start(); |
| 43 | 42 | |
| 44 | 43 | // device_adam_expansion_slot_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 63 | 63 | //------------------------------------------------- |
| 64 | 64 | |
| 65 | 65 | c64_4cga_device::c64_4cga_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 66 | device_t(mconfig, C64_4CGA, "C64 Protovision 4 Player Interface", tag, owner, clock), | |
| 66 | device_t(mconfig, C64_4CGA, "C64 Protovision 4 Player Interface", tag, owner, clock, "c64_4cga", __FILE__), | |
| 67 | 67 | device_c64_user_port_interface(mconfig, *this), |
| 68 | 68 | m_fire(*this, "FIRE"), |
| 69 | 69 | m_joy3(*this, "JOY3"), |
| r22095 | r22096 | |
|---|---|---|
| 17 | 17 | const device_type SATURN_DRAM_32MB = &device_creator<saturn_dram32mb_device>; |
| 18 | 18 | |
| 19 | 19 | |
| 20 | saturn_dram_device::saturn_dram_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 size) | |
| 21 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 20 | saturn_dram_device::saturn_dram_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 size, const char *shortname, const char *source) | |
| 21 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 22 | 22 | device_sat_cart_interface( mconfig, *this ), |
| 23 | 23 | m_size(size) |
| 24 | 24 | { |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | saturn_dram8mb_device::saturn_dram8mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 28 | : saturn_dram_device(mconfig, SATURN_DRAM_8MB, "Saturn Data RAM 8Mbit Cart", tag, owner, clock, 0x400000/4) | |
| 28 | : saturn_dram_device(mconfig, SATURN_DRAM_8MB, "Saturn Data RAM 8Mbit Cart", tag, owner, clock, 0x400000/4, "sat_dram_8mb", __FILE__) | |
| 29 | 29 | { |
| 30 | 30 | m_cart_type = 0x5a; |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | saturn_dram32mb_device::saturn_dram32mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 34 | : saturn_dram_device(mconfig, SATURN_DRAM_32MB, "Saturn Data RAM 32Mbit Cart", tag, owner, clock, 0x800000/4) | |
| 34 | : saturn_dram_device(mconfig, SATURN_DRAM_32MB, "Saturn Data RAM 32Mbit Cart", tag, owner, clock, 0x800000/4, "sat_dram_32mb", __FILE__) | |
| 35 | 35 | { |
| 36 | 36 | m_cart_type = 0x5c; |
| 37 | 37 | } |
| r22095 | r22096 | |
|---|---|---|
| 3 | 3 | const device_type NULL_MODEM = &device_creator<null_modem_device>; |
| 4 | 4 | |
| 5 | 5 | null_modem_device::null_modem_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 6 | : device_t(mconfig, NULL_MODEM, "Null Modem", tag, owner, clock), | |
| 6 | : device_t(mconfig, NULL_MODEM, "Null Modem", tag, owner, clock, "null_modem", __FILE__), | |
| 7 | 7 | device_serial_port_interface(mconfig, *this), |
| 8 | 8 | m_bitbanger(*this, "bitbanger") |
| 9 | 9 | { |
| r22095 | r22096 | |
|---|---|---|
| 314 | 314 | //************************************************************************** |
| 315 | 315 | |
| 316 | 316 | cpc_multiface2_device::cpc_multiface2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 317 | device_t(mconfig, CPC_MFACE2, "Multiface II", tag, owner, clock), | |
| 317 | device_t(mconfig, CPC_MFACE2, "Multiface II", tag, owner, clock, "cpc_mf2", __FILE__), | |
| 318 | 318 | device_cpc_expansion_card_interface(mconfig, *this) |
| 319 | 319 | { |
| 320 | 320 | } |
| r22095 | r22096 | |
|---|---|---|
| 11 | 11 | { |
| 12 | 12 | public: |
| 13 | 13 | // construction/destruction |
| 14 | saturn_dram_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 size); | |
| 14 | saturn_dram_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 size, const char *shortname, const char *source); | |
| 15 | 15 | |
| 16 | 16 | // device-level overrides |
| 17 | 17 | virtual void device_start(); |
| 18 | 18 | virtual void device_reset(); |
| 19 | virtual void device_config_complete() { m_shortname = "sat_dram"; } | |
| 20 | 19 | |
| 21 | 20 | // reading and writing |
| 22 | 21 | virtual DECLARE_READ32_MEMBER(read_ext_dram0); |
| r22095 | r22096 | |
| 32 | 31 | public: |
| 33 | 32 | // construction/destruction |
| 34 | 33 | saturn_dram8mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 35 | ||
| 36 | // device-level overrides | |
| 37 | virtual void device_config_complete() { m_shortname = "sat_dram_8mb"; } | |
| 38 | 34 | }; |
| 39 | 35 | |
| 40 | 36 | class saturn_dram32mb_device : public saturn_dram_device |
| r22095 | r22096 | |
| 42 | 38 | public: |
| 43 | 39 | // construction/destruction |
| 44 | 40 | saturn_dram32mb_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 45 | ||
| 46 | // device-level overrides | |
| 47 | virtual void device_config_complete() { m_shortname = "sat_dram_32mb"; } | |
| 48 | 41 | }; |
| 49 | 42 | |
| 50 | 43 |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | virtual void device_config_complete() { m_shortname = "c64_4cga"; } | |
| 40 | 39 | virtual void device_start(); |
| 41 | 40 | |
| 42 | 41 | // device_c64_user_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 17 | 17 | protected: |
| 18 | 18 | virtual void device_start() { m_owner = dynamic_cast<serial_port_device *>(owner()); } |
| 19 | 19 | virtual void device_reset() { m_owner->out_rx(1); m_rbit = 1; } |
| 20 | virtual void device_config_complete() { m_shortname = "null_modem"; } | |
| 21 | 20 | private: |
| 22 | 21 | serial_port_device *m_owner; |
| 23 | 22 | required_device<bitbanger_device> m_bitbanger; |
| r22095 | r22096 | |
|---|---|---|
| 50 | 50 | // device-level overrides |
| 51 | 51 | virtual void device_start(); |
| 52 | 52 | virtual void device_reset(); |
| 53 | virtual void device_config_complete() { m_shortname = "cpc_mf2"; } | |
| 54 | 53 | |
| 55 | 54 | private: |
| 56 | 55 | cpc_expansion_slot_device *m_slot; |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_zaxxon_cartridge_device::c64_zaxxon_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_ZAXXON, "C64 Zaxxon cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_ZAXXON, "C64 Zaxxon cartridge", tag, owner, clock, "c64_zaxxon", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_zaxxon"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | |
| 39 | 38 | // device_c64_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 666 | 666 | //------------------------------------------------- |
| 667 | 667 | |
| 668 | 668 | grip_device::grip_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 669 | device_t(mconfig, ECB_GRIP21, "GRIP-2.1", tag, owner, clock), | |
| 669 | device_t(mconfig, ECB_GRIP21, "GRIP-2.1", tag, owner, clock, "grip", __FILE__), | |
| 670 | 670 | device_ecbbus_card_interface(mconfig, *this), |
| 671 | 671 | m_ppi(*this, I8255A_TAG), |
| 672 | 672 | m_sti(*this, Z80STI_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 49 | 49 | //------------------------------------------------- |
| 50 | 50 | |
| 51 | 51 | vcs_joystick_device::vcs_joystick_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 52 | device_t(mconfig, VCS_JOYSTICK, "Digital joystick", tag, owner, clock), | |
| 52 | device_t(mconfig, VCS_JOYSTICK, "Digital joystick", tag, owner, clock, "vcs_joystick", __FILE__), | |
| 53 | 53 | device_vcs_control_port_interface(mconfig, *this), |
| 54 | 54 | m_joy(*this, "JOY") |
| 55 | 55 | { |
| r22095 | r22096 | |
|---|---|---|
| 68 | 68 | // device-level overrides |
| 69 | 69 | virtual void device_start(); |
| 70 | 70 | virtual void device_reset(); |
| 71 | virtual void device_config_complete() { m_shortname = "grip"; } | |
| 72 | 71 | |
| 73 | 72 | // device_ecbbus_card_interface overrides |
| 74 | 73 | virtual UINT8 ecbbus_io_r(offs_t offset); |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | virtual void device_config_complete() { m_shortname = "vcs_joystick"; } | |
| 40 | 39 | virtual void device_start(); |
| 41 | 40 | |
| 42 | 41 | // device_vcs_control_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 61 | 61 | //------------------------------------------------- |
| 62 | 62 | |
| 63 | 63 | vp570_device::vp570_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 64 | device_t(mconfig, VP570, "VP570", tag, owner, clock), | |
| 64 | device_t(mconfig, VP570, "VP570", tag, owner, clock, "vp570", __FILE__), | |
| 65 | 65 | device_vip_expansion_card_interface(mconfig, *this), |
| 66 | 66 | m_ram(*this, "ram"), |
| 67 | 67 | m_base(*this, "BASE"), |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | |
| 36 | 36 | protected: |
| 37 | 37 | // device-level overrides |
| 38 | virtual void device_config_complete() { m_shortname = "vp570"; } | |
| 39 | 38 | virtual void device_start(); |
| 40 | 39 | |
| 41 | 40 | // device_vip_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_georam_cartridge_device::c64_georam_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_GEORAM, "C64 GeoRAM cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_GEORAM, "C64 GeoRAM cartridge", tag, owner, clock, "c64_georam", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 259 | 259 | //------------------------------------------------- |
| 260 | 260 | |
| 261 | 261 | wangpc_rtc_device::wangpc_rtc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 262 | device_t(mconfig, WANGPC_RTC, "Wang PC-PM040-B", tag, owner, clock), | |
| 262 | device_t(mconfig, WANGPC_RTC, "Wang PC-PM040-B", tag, owner, clock, "wangpc_rtc", __FILE__), | |
| 263 | 263 | device_wangpcbus_card_interface(mconfig, *this), |
| 264 | 264 | m_maincpu(*this, Z80_TAG), |
| 265 | 265 | m_dmac(*this, AM9517A_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_georam"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | // device-level overrides |
| 45 | 45 | virtual void device_start(); |
| 46 | 46 | virtual void device_reset(); |
| 47 | virtual void device_config_complete() { m_shortname = "wangpc_rtc"; } | |
| 48 | 47 | |
| 49 | 48 | // device_wangpcbus_card_interface overrides |
| 50 | 49 | virtual UINT16 wangpcbus_mrdc_r(address_space &space, offs_t offset, UINT16 mem_mask); |
| r22095 | r22096 | |
|---|---|---|
| 34 | 34 | ***************************************************************************/ |
| 35 | 35 | |
| 36 | 36 | |
| 37 | generic_keyboard_device::generic_keyboard_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 38 | : device_t(mconfig, type, name, tag, owner, clock) | |
| 37 | generic_keyboard_device::generic_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) | |
| 38 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 39 | 39 | , m_io_kbd0(*this, "TERM_LINE0") |
| 40 | 40 | , m_io_kbd1(*this, "TERM_LINE1") |
| 41 | 41 | , m_io_kbd2(*this, "TERM_LINE2") |
| r22095 | r22096 | |
| 394 | 394 | } |
| 395 | 395 | |
| 396 | 396 | serial_keyboard_device::serial_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 397 | : generic_keyboard_device(mconfig, SERIAL_KEYBOARD, "Serial Keyboard", tag, owner, clock), | |
| 397 | : generic_keyboard_device(mconfig, SERIAL_KEYBOARD, "Serial Keyboard", tag, owner, clock, "serial_keyboard", __FILE__), | |
| 398 | 398 | device_serial_interface(mconfig, *this), |
| 399 | 399 | device_serial_port_interface(mconfig, *this) |
| 400 | 400 | { |
| r22095 | r22096 | |
| 411 | 411 | { |
| 412 | 412 | memset(&m_out_tx_cb, 0, sizeof(m_out_tx_cb)); |
| 413 | 413 | } |
| 414 | m_shortname = "serial_keyboard"; | |
| 415 | 414 | } |
| 416 | 415 | |
| 417 | 416 | static int rates[] = {150, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 115200}; |
| r22095 | r22096 | |
|---|---|---|
| 42 | 42 | public keyboard_interface |
| 43 | 43 | { |
| 44 | 44 | public: |
| 45 | generic_keyboard_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 45 | generic_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); | |
| 46 | 46 | generic_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 47 | 47 | |
| 48 | 48 | virtual ioport_constructor device_input_ports() const; |
| r22095 | r22096 | |
|---|---|---|
| 182 | 182 | //------------------------------------------------- |
| 183 | 183 | |
| 184 | 184 | superpet_device::superpet_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 185 | device_t(mconfig, SUPERPET, "SuperPET", tag, owner, clock), | |
| 185 | device_t(mconfig, SUPERPET, "SuperPET", tag, owner, clock, "pet_superpet", __FILE__), | |
| 186 | 186 | device_pet_expansion_card_interface(mconfig, *this), |
| 187 | 187 | m_maincpu(*this, M6809_TAG), |
| 188 | 188 | m_acia(*this, MOS6551_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 138 | 138 | //************************************************************************** |
| 139 | 139 | |
| 140 | 140 | a2bus_ssc_device::a2bus_ssc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 141 | device_t(mconfig, A2BUS_SSC, "Apple Super Serial Card", tag, owner, clock), | |
| 141 | device_t(mconfig, A2BUS_SSC, "Apple Super Serial Card", tag, owner, clock, "a2ssc", __FILE__), | |
| 142 | 142 | device_a2bus_card_interface(mconfig, *this), |
| 143 | 143 | m_dsw1(*this, "DSW1"), |
| 144 | 144 | m_dsw2(*this, "DSW2"), |
| 145 | 145 | m_acia(*this, SSC_ACIA_TAG) |
| 146 | 146 | { |
| 147 | m_shortname = "a2ssc"; | |
| 148 | 147 | } |
| 149 | 148 | |
| 150 | a2bus_ssc_device::a2bus_ssc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 151 | device_t(mconfig, type, name, tag, owner, clock), | |
| 149 | a2bus_ssc_device::a2bus_ssc_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), | |
| 152 | 151 | device_a2bus_card_interface(mconfig, *this), |
| 153 | 152 | m_dsw1(*this, "DSW1"), |
| 154 | 153 | m_dsw2(*this, "DSW2"), |
| 155 | 154 | m_acia(*this, SSC_ACIA_TAG) |
| 156 | 155 | { |
| 157 | m_shortname = "a2ssc"; | |
| 158 | 156 | } |
| 159 | 157 | |
| 160 | 158 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 381 | 381 | //------------------------------------------------- |
| 382 | 382 | |
| 383 | 383 | cuda_device::cuda_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 384 | : device_t(mconfig, CUDA, "Apple Cuda", tag, owner, clock), | |
| 384 | : device_t(mconfig, CUDA, "Apple Cuda", tag, owner, clock, "cuda", __FILE__), | |
| 385 | 385 | device_nvram_interface(mconfig, *this), |
| 386 | 386 | m_maincpu(*this, CUDA_CPU_TAG) |
| 387 | 387 | { |
| r22095 | r22096 | |
| 507 | 507 | |
| 508 | 508 | void cuda_device::device_config_complete() |
| 509 | 509 | { |
| 510 | m_shortname = "cuda"; | |
| 511 | ||
| 512 | 510 | // inherit a copy of the static data |
| 513 | 511 | const cuda_interface *intf = reinterpret_cast<const cuda_interface *>(static_config()); |
| 514 | 512 | if (intf != NULL) |
| r22095 | r22096 | |
|---|---|---|
| 46 | 46 | |
| 47 | 47 | protected: |
| 48 | 48 | // device-level overrides |
| 49 | virtual void device_config_complete() { m_shortname = "pet_superpet"; } | |
| 50 | 49 | virtual void device_start(); |
| 51 | 50 | virtual void device_reset(); |
| 52 | 51 |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | //------------------------------------------------- |
| 37 | 37 | |
| 38 | 38 | mos6702_device::mos6702_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 39 | : device_t(mconfig, MOS6702, "MOS6702", tag, owner, clock) | |
| 39 | : device_t(mconfig, MOS6702, "MOS6702", tag, owner, clock, "mos6702", __FILE__) | |
| 40 | 40 | { |
| 41 | 41 | } |
| 42 | 42 |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | //------------------------------------------------- |
| 37 | 37 | |
| 38 | 38 | swim_device::swim_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 39 | : applefdc_base_device(APPLEFDC_SWIM, mconfig, SWIM, "Apple SWIM (Steve Woz Integrated Machine)", tag, owner, clock) | |
| 39 | : applefdc_base_device(APPLEFDC_SWIM, mconfig, SWIM, "Apple SWIM (Steve Woz Integrated Machine)", tag, owner, clock, "swim", __FILE__) | |
| 40 | 40 | { |
| 41 | 41 | } |
| 42 | 42 |
| r22095 | r22096 | |
|---|---|---|
| 24 | 24 | public: |
| 25 | 25 | // construction/destruction |
| 26 | 26 | a2bus_ssc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 27 | a2bus_ssc_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 27 | a2bus_ssc_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 | 28 | |
| 29 | 29 | // optional information overrides |
| 30 | 30 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_dinamic_cartridge_device::c64_dinamic_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_DINAMIC, "C64 Dinamic cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_DINAMIC, "C64 Dinamic cartridge", tag, owner, clock, "c64_dinamic", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 55 | 55 | |
| 56 | 56 | protected: |
| 57 | 57 | // device-level overrides |
| 58 | virtual void device_config_complete() { m_shortname = "mos6702"; } | |
| 59 | 58 | virtual void device_start(); |
| 60 | 59 | }; |
| 61 | 60 |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | // device-level overrides |
| 36 | 36 | virtual void device_start(); |
| 37 | 37 | virtual void device_reset(); |
| 38 | virtual void device_config_complete() { m_shortname = "c64_dinamic"; } | |
| 39 | 38 | |
| 40 | 39 | // device_c64_expansion_card_interface overrides |
| 41 | 40 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, UINT8 data, int sphi2, int ba, int roml, int romh, int io1, int io2); |
| r22095 | r22096 | |
|---|---|---|
| 126 | 126 | //------------------------------------------------- |
| 127 | 127 | |
| 128 | 128 | adam_digital_data_pack_device::adam_digital_data_pack_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 129 | : device_t(mconfig, ADAM_DDP, "Adam DDP", tag, owner, clock), | |
| 129 | : device_t(mconfig, ADAM_DDP, "Adam DDP", tag, owner, clock, "adam_ddp", __FILE__), | |
| 130 | 130 | device_adamnet_card_interface(mconfig, *this), |
| 131 | 131 | m_maincpu(*this, M6801_TAG), |
| 132 | 132 | m_ddp0(*this, CASSETTE_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | protected: |
| 47 | 47 | // device-level overrides |
| 48 | virtual void device_config_complete() { m_shortname = "adam_ddp"; } | |
| 49 | 48 | virtual void device_start(); |
| 50 | 49 | |
| 51 | 50 | // device_adamnet_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | ne2000_device::ne2000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 22 | : device_t(mconfig, NE2000, "NE2000 Network Adapter", tag, owner, clock), | |
| 22 | : device_t(mconfig, NE2000, "NE2000 Network Adapter", tag, owner, clock, "ne2000", __FILE__), | |
| 23 | 23 | device_isa16_card_interface(mconfig, *this), |
| 24 | 24 | m_dp8390(*this, "dp8390d") { |
| 25 | 25 | } |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | mpc105_device::mpc105_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 31 | : device_t(mconfig, MPC105, "MPC105", tag, owner, clock), | |
| 31 | : device_t(mconfig, MPC105, "MPC105", tag, owner, clock, "mpc105", __FILE__), | |
| 32 | 32 | pci_device_interface( mconfig, *this ), |
| 33 | 33 | m_maincpu(NULL) |
| 34 | 34 | { |
| r22095 | r22096 | |
| 76 | 76 | m_bank_base_default = 0; |
| 77 | 77 | |
| 78 | 78 | } |
| 79 | m_shortname = "mpc105"; | |
| 80 | 79 | } |
| 81 | 80 | |
| 82 | 81 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 69 | 69 | //************************************************************************** |
| 70 | 70 | |
| 71 | 71 | a2bus_arcboard_device::a2bus_arcboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 72 | device_t(mconfig, A2BUS_ARCADEBOARD, "Third Millenium Engineering Arcade Board", tag, owner, clock), | |
| 72 | device_t(mconfig, A2BUS_ARCADEBOARD, "Third Millenium Engineering Arcade Board", tag, owner, clock, "a2arcbd", __FILE__), | |
| 73 | 73 | device_a2bus_card_interface(mconfig, *this), |
| 74 | 74 | m_tms(*this, TMS_TAG), |
| 75 | 75 | m_ay(*this, AY_TAG) |
| 76 | 76 | { |
| 77 | m_shortname = "a2arcbd"; | |
| 78 | 77 | } |
| 79 | 78 | |
| 80 | a2bus_arcboard_device::a2bus_arcboard_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 81 | device_t(mconfig, type, name, tag, owner, clock), | |
| 79 | a2bus_arcboard_device::a2bus_arcboard_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) : | |
| 80 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 82 | 81 | device_a2bus_card_interface(mconfig, *this), |
| 83 | 82 | m_tms(*this, TMS_TAG), |
| 84 | 83 | m_ay(*this, AY_TAG) |
| 85 | 84 | { |
| 86 | m_shortname = "a2arcbd"; | |
| 87 | 85 | } |
| 88 | 86 | |
| 89 | 87 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 21 | 21 | protected: |
| 22 | 22 | virtual void device_start(); |
| 23 | 23 | virtual void device_reset(); |
| 24 | virtual void device_config_complete() { m_shortname = "ne2000"; } | |
| 25 | 24 | private: |
| 26 | 25 | required_device<dp8390d_device> m_dp8390; |
| 27 | 26 | UINT8 m_irq; |
| r22095 | r22096 | |
|---|---|---|
| 236 | 236 | //------------------------------------------------- |
| 237 | 237 | |
| 238 | 238 | victor9k_keyboard_device::victor9k_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 239 | : device_t(mconfig, VICTOR9K_KEYBOARD, "Victor 9000 Keyboard", tag, owner, clock), | |
| 239 | : device_t(mconfig, VICTOR9K_KEYBOARD, "Victor 9000 Keyboard", tag, owner, clock, "victor9kb", __FILE__), | |
| 240 | 240 | m_maincpu(*this, I8021_TAG), |
| 241 | 241 | m_y0(*this, "Y0"), |
| 242 | 242 | m_y1(*this, "Y1"), |
| r22095 | r22096 | |
| 266 | 266 | |
| 267 | 267 | void victor9k_keyboard_device::device_config_complete() |
| 268 | 268 | { |
| 269 | m_shortname = "victor9kb"; | |
| 270 | ||
| 271 | 269 | // inherit a copy of the static data |
| 272 | 270 | const victor9k_keyboard_interface *intf = reinterpret_cast<const victor9k_keyboard_interface *>(static_config()); |
| 273 | 271 | if (intf != NULL) |
| r22095 | r22096 | |
|---|---|---|
| 46 | 46 | //------------------------------------------------- |
| 47 | 47 | |
| 48 | 48 | iq151_minigraf_device::iq151_minigraf_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 49 | : device_t(mconfig, IQ151_MINIGRAF, "IQ151 Minigraf", tag, owner, clock), | |
| 49 | : device_t(mconfig, IQ151_MINIGRAF, "IQ151 Minigraf", tag, owner, clock, "iq151_minigraf", __FILE__), | |
| 50 | 50 | device_iq151cart_interface( mconfig, *this ) |
| 51 | 51 | { |
| 52 | 52 | } |
| r22095 | r22096 | |
|---|---|---|
| 25 | 25 | public: |
| 26 | 26 | // construction/destruction |
| 27 | 27 | a2bus_arcboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 28 | a2bus_arcboard_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 28 | a2bus_arcboard_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); | |
| 29 | 29 | |
| 30 | 30 | // optional information overrides |
| 31 | 31 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | // device-level overrides |
| 28 | 28 | virtual void device_start(); |
| 29 | 29 | virtual void device_stop(); |
| 30 | virtual void device_config_complete() { m_shortname = "iq151_minigraf"; } | |
| 31 | 30 | |
| 32 | 31 | // iq151cart_interface overrides |
| 33 | 32 | virtual void read(offs_t offset, UINT8 &data); |
| r22095 | r22096 | |
|---|---|---|
| 20 | 20 | const device_type SNS_HIROM_SRTC = &device_creator<sns_rom21_srtc_device>; |
| 21 | 21 | |
| 22 | 22 | |
| 23 | sns_rom21_device::sns_rom21_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 24 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 23 | sns_rom21_device::sns_rom21_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) | |
| 24 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 25 | 25 | device_sns_cart_interface( mconfig, *this ) |
| 26 | 26 | { |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | sns_rom21_device::sns_rom21_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 30 | : device_t(mconfig, SNS_HIROM, "SNES Cart (HiROM)", tag, owner, clock), | |
| 30 | : device_t(mconfig, SNS_HIROM, "SNES Cart (HiROM)", tag, owner, clock, "sns_rom21", __FILE__), | |
| 31 | 31 | device_sns_cart_interface( mconfig, *this ) |
| 32 | 32 | { |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | sns_rom21_srtc_device::sns_rom21_srtc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 36 | : sns_rom21_device(mconfig, SNS_HIROM_SRTC, "SNES Cart (HiROM) + S-RTC", tag, owner, clock) | |
| 36 | : sns_rom21_device(mconfig, SNS_HIROM_SRTC, "SNES Cart (HiROM) + S-RTC", tag, owner, clock, "sns_rom21_srtc", __FILE__) | |
| 37 | 37 | { |
| 38 | 38 | } |
| 39 | 39 |
| r22095 | r22096 | |
|---|---|---|
| 121 | 121 | //------------------------------------------------- |
| 122 | 122 | |
| 123 | 123 | c64_tdos_cartridge_device::c64_tdos_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 124 | device_t(mconfig, C64_TDOS, "C64 TDOS cartridge", tag, owner, clock), | |
| 124 | device_t(mconfig, C64_TDOS, "C64 TDOS cartridge", tag, owner, clock, "c64_tdos", __FILE__), | |
| 125 | 125 | device_c64_expansion_card_interface(mconfig, *this), |
| 126 | 126 | m_ssda(*this, MC68A52P_TAG), |
| 127 | 127 | m_exp(*this, C64_EXPANSION_SLOT_TAG) |
| r22095 | r22096 | |
|---|---|---|
| 11 | 11 | { |
| 12 | 12 | public: |
| 13 | 13 | // construction/destruction |
| 14 | sns_rom21_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 14 | sns_rom21_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); | |
| 15 | 15 | sns_rom21_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 16 | 16 | |
| 17 | 17 | // device-level overrides |
| 18 | 18 | virtual void device_start(); |
| 19 | 19 | virtual void device_reset(); |
| 20 | virtual void device_config_complete() { m_shortname = "sns_rom21"; } | |
| 21 | 20 | |
| 22 | 21 | // reading and writing |
| 23 | 22 | virtual DECLARE_READ8_MEMBER(read_l); |
| r22095 | r22096 | |
| 35 | 34 | // device-level overrides |
| 36 | 35 | virtual void device_start(); |
| 37 | 36 | virtual void device_reset(); |
| 38 | virtual void device_config_complete() { m_shortname = "sns_rom21_srtc"; } | |
| 39 | 37 | |
| 40 | 38 | // reading and writing |
| 41 | 39 | virtual DECLARE_READ8_MEMBER(chip_read); |
| r22095 | r22096 | |
|---|---|---|
| 55 | 55 | //------------------------------------------------- |
| 56 | 56 | |
| 57 | 57 | vcs_keypad_device::vcs_keypad_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 58 | device_t(mconfig, VCS_KEYPAD, "Keypad", tag, owner, clock), | |
| 58 | device_t(mconfig, VCS_KEYPAD, "Keypad", tag, owner, clock, "vcs_keypad", __FILE__), | |
| 59 | 59 | device_vcs_control_port_interface(mconfig, *this), |
| 60 | 60 | m_keypad(*this, "KEYPAD") |
| 61 | 61 | { |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | |
| 38 | 38 | protected: |
| 39 | 39 | // device-level overrides |
| 40 | virtual void device_config_complete() { m_shortname = "c64_tdos"; } | |
| 41 | 40 | virtual void device_start(); |
| 42 | 41 | virtual void device_reset(); |
| 43 | 42 |
| r22095 | r22096 | |
|---|---|---|
| 30 | 30 | { |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | nubus_slot_device::nubus_slot_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 34 | device_t(mconfig, type, name, tag, owner, clock), | |
| 33 | nubus_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) : | |
| 34 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 35 | 35 | device_slot_interface(mconfig, *this) |
| 36 | 36 | { |
| 37 | 37 | } |
| r22095 | r22096 | |
| 106 | 106 | { |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | nubus_device::nubus_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 110 | device_t(mconfig, type, name, tag, owner, clock) | |
| 109 | nubus_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) : | |
| 110 | device_t(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 111 | 111 | { |
| 112 | 112 | } |
| 113 | 113 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | virtual void device_config_complete() { m_shortname = "vcs_keypad"; } | |
| 40 | 39 | virtual void device_start(); |
| 41 | 40 | |
| 42 | 41 | // device_vcs_control_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 49 | 49 | public: |
| 50 | 50 | // construction/destruction |
| 51 | 51 | nubus_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 52 | nubus_slot_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 52 | 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); | |
| 53 | 53 | |
| 54 | 54 | // device-level overrides |
| 55 | 55 | virtual void device_start(); |
| r22095 | r22096 | |
| 84 | 84 | public: |
| 85 | 85 | // construction/destruction |
| 86 | 86 | nubus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 87 | nubus_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 87 | 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); | |
| 88 | 88 | // inline configuration |
| 89 | 89 | static void static_set_cputag(device_t &device, const char *tag); |
| 90 | 90 |
| r22095 | r22096 | |
|---|---|---|
| 82 | 82 | memset(&m_out_clock_cb, 0, sizeof(m_out_clock_cb)); |
| 83 | 83 | memset(&m_out_keydown_cb, 0, sizeof(m_out_keydown_cb)); |
| 84 | 84 | } |
| 85 | ||
| 86 | m_shortname = "abc77"; | |
| 87 | 85 | } |
| 88 | 86 | |
| 89 | 87 | |
| r22095 | r22096 | |
| 445 | 443 | //------------------------------------------------- |
| 446 | 444 | |
| 447 | 445 | abc77_device::abc77_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 448 | : device_t(mconfig, ABC77, "Luxor ABC 77", tag, owner, clock), | |
| 446 | : device_t(mconfig, ABC77, "Luxor ABC 77", tag, owner, clock, "abc77", __FILE__), | |
| 449 | 447 | m_maincpu(*this, I8035_TAG), |
| 450 | 448 | m_discrete(*this, DISCRETE_TAG), |
| 451 | 449 | m_x0(*this, "X0"), |
| r22095 | r22096 | |
| 468 | 466 | { |
| 469 | 467 | } |
| 470 | 468 | |
| 471 | abc77_device::abc77_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 472 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 469 | abc77_device::abc77_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) | |
| 470 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 473 | 471 | m_maincpu(*this, I8035_TAG), |
| 474 | 472 | m_discrete(*this, DISCRETE_TAG), |
| 475 | 473 | m_x0(*this, "X0"), |
| r22095 | r22096 | |
| 493 | 491 | } |
| 494 | 492 | |
| 495 | 493 | abc55_device::abc55_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 496 | : abc77_device(mconfig, ABC55, "Luxor ABC 55", tag, owner, clock) { } | |
| 494 | : abc77_device(mconfig, ABC55, "Luxor ABC 55", tag, owner, clock, "abc55", __FILE__) { } | |
| 497 | 495 | |
| 498 | 496 | |
| 499 | 497 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 67 | 67 | //------------------------------------------------- |
| 68 | 68 | |
| 69 | 69 | isa8_adlib_device::isa8_adlib_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 70 | : device_t(mconfig, ISA8_ADLIB, "Ad Lib Sound Card", tag, owner, clock), | |
| 70 | : device_t(mconfig, ISA8_ADLIB, "Ad Lib Sound Card", tag, owner, clock, "isa_adlib", __FILE__), | |
| 71 | 71 | device_isa8_card_interface( mconfig, *this ) |
| 72 | 72 | { |
| 73 | 73 | } |
| r22095 | r22096 | |
|---|---|---|
| 67 | 67 | { |
| 68 | 68 | public: |
| 69 | 69 | // construction/destruction |
| 70 | abc77_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 70 | abc77_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 | 71 | abc77_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 72 | 72 | |
| 73 | 73 | // optional information overrides |
| r22095 | r22096 | |
|---|---|---|
| 92 | 92 | { |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | a2bus_slot_device::a2bus_slot_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 96 | device_t(mconfig, type, name, tag, owner, clock), | |
| 95 | a2bus_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) : | |
| 96 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 97 | 97 | device_slot_interface(mconfig, *this) |
| 98 | 98 | { |
| 99 | 99 | } |
| r22095 | r22096 | |
| 165 | 165 | { |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | a2bus_device::a2bus_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 169 | device_t(mconfig, type, name, tag, owner, clock) | |
| 168 | a2bus_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) : | |
| 169 | device_t(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 170 | 170 | { |
| 171 | 171 | } |
| 172 | 172 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 77 | 77 | //------------------------------------------------- |
| 78 | 78 | |
| 79 | 79 | pet_64k_expansion_device::pet_64k_expansion_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 80 | device_t(mconfig, PET_64K, "PET 64KB RAM", tag, owner, clock), | |
| 80 | device_t(mconfig, PET_64K, "PET 64KB RAM", tag, owner, clock, "pet_64k", __FILE__), | |
| 81 | 81 | device_pet_expansion_card_interface(mconfig, *this), |
| 82 | 82 | m_ram(*this, "ram"), |
| 83 | 83 | m_ctrl(0) |
| r22095 | r22096 | |
|---|---|---|
| 78 | 78 | : device_t(mconfig, NAND, "NAND Flash Memory", tag, owner, clock) |
| 79 | 79 | { |
| 80 | 80 | } |
| 81 | nand_device::nand_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 82 | : device_t(mconfig, type, name, tag, owner, clock) | |
| 81 | nand_device::nand_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) | |
| 82 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 83 | 83 | { |
| 84 | 84 | } |
| 85 | 85 | |
| r22095 | r22096 | |
| 793 | 793 | const device_type SMARTMEDIA = &device_creator<smartmedia_image_device>; |
| 794 | 794 | |
| 795 | 795 | smartmedia_image_device::smartmedia_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 796 | : nand_device(mconfig, SMARTMEDIA, "SmartMedia Flash ROM", tag, owner, clock), | |
| 796 | : nand_device(mconfig, SMARTMEDIA, "SmartMedia Flash ROM", tag, owner, clock, "smartmedia", __FILE__), | |
| 797 | 797 | device_image_interface(mconfig, *this), |
| 798 | 798 | m_image_interface(NULL) |
| 799 | 799 | { |
| r22095 | r22096 | |
|---|---|---|
| 26 | 26 | // device-level overrides |
| 27 | 27 | virtual void device_start(); |
| 28 | 28 | virtual void device_reset(); |
| 29 | virtual void device_config_complete() { m_shortname = "isa_adlib"; } | |
| 30 | 29 | private: |
| 31 | 30 | // internal state |
| 32 | 31 | }; |
| r22095 | r22096 | |
|---|---|---|
| 412 | 412 | const device_type SNS_LOROM_SDD1 = &device_creator<sns_rom_sdd1_device>; |
| 413 | 413 | |
| 414 | 414 | |
| 415 | sns_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) | |
| 416 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 415 | sns_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) | |
| 416 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 417 | 417 | device_sns_cart_interface( mconfig, *this ) |
| 418 | 418 | { |
| 419 | 419 | } |
| 420 | 420 | |
| 421 | 421 | sns_rom_sdd1_device::sns_rom_sdd1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 422 | : device_t(mconfig, SNS_LOROM_SDD1, "SNES Cart + S-DD1", tag, owner, clock), | |
| 422 | : device_t(mconfig, SNS_LOROM_SDD1, "SNES Cart + S-DD1", tag, owner, clock, "sns_rom_sdd1", __FILE__), | |
| 423 | 423 | device_sns_cart_interface( mconfig, *this ) |
| 424 | 424 | { |
| 425 | 425 | } |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | //------------------------------------------------- |
| 39 | 39 | // coco_pak_device - constructor |
| 40 | 40 | //------------------------------------------------- |
| 41 | coco_pak_device::coco_pak_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 42 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 41 | coco_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) | |
| 42 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 43 | 43 | device_cococart_interface( mconfig, *this ) |
| 44 | 44 | { |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | coco_pak_device::coco_pak_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 48 | : device_t(mconfig, COCO_PAK, "CoCo Program PAK", tag, owner, clock), | |
| 48 | : device_t(mconfig, COCO_PAK, "CoCo Program PAK", tag, owner, clock, "cocopak", __FILE__), | |
| 49 | 49 | device_cococart_interface( mconfig, *this ) |
| 50 | 50 | { |
| 51 | 51 | } |
| r22095 | r22096 | |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | //------------------------------------------------- |
| 64 | // device_config_complete - perform any | |
| 65 | // operations now that the configuration is | |
| 66 | // complete | |
| 67 | //------------------------------------------------- | |
| 68 | ||
| 69 | void coco_pak_device::device_config_complete() | |
| 70 | { | |
| 71 | m_shortname = "cocopak"; | |
| 72 | } | |
| 73 | //------------------------------------------------- | |
| 74 | 64 | // machine_config_additions - device-specific |
| 75 | 65 | // machine configurations |
| 76 | 66 | //------------------------------------------------- |
| r22095 | r22096 | |
| 135 | 125 | //------------------------------------------------- |
| 136 | 126 | |
| 137 | 127 | coco_pak_banked_device::coco_pak_banked_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 138 | : coco_pak_device(mconfig, COCO_PAK_BANKED, "CoCo Program PAK (Banked)", tag, owner, clock) | |
| 128 | : coco_pak_device(mconfig, COCO_PAK_BANKED, "CoCo Program PAK (Banked)", tag, owner, clock, "cocopak_banked", __FILE__) | |
| 139 | 129 | { |
| 140 | 130 | } |
| 141 | 131 | |
| 142 | //------------------------------------------------- | |
| 143 | // device_config_complete - perform any | |
| 144 | // operations now that the configuration is | |
| 145 | // complete | |
| 146 | //------------------------------------------------- | |
| 147 | ||
| 148 | void coco_pak_banked_device::device_config_complete() | |
| 149 | { | |
| 150 | m_shortname = "cocopak_banked"; | |
| 151 | } | |
| 152 | ||
| 153 | 132 | /*------------------------------------------------- |
| 154 | 133 | device_reset - device-specific startup |
| 155 | 134 | -------------------------------------------------*/ |
| r22095 | r22096 | |
|---|---|---|
| 128 | 128 | //------------------------------------------------- |
| 129 | 129 | |
| 130 | 130 | comx_fd_device::comx_fd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 131 | device_t(mconfig, COMX_FD, "COMX FD", tag, owner, clock), | |
| 131 | device_t(mconfig, COMX_FD, "COMX FD", tag, owner, clock, "comx_fd", __FILE__), | |
| 132 | 132 | device_comx_expansion_card_interface(mconfig, *this), |
| 133 | 133 | m_fdc(*this, WD1770_TAG), |
| 134 | 134 | m_floppy0(*this, WD1770_TAG":0"), |
| r22095 | r22096 | |
|---|---|---|
| 50 | 50 | public: |
| 51 | 51 | // construction/destruction |
| 52 | 52 | a2bus_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 53 | a2bus_slot_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 53 | 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); | |
| 54 | 54 | |
| 55 | 55 | // device-level overrides |
| 56 | 56 | virtual void device_start(); |
| r22095 | r22096 | |
| 82 | 82 | public: |
| 83 | 83 | // construction/destruction |
| 84 | 84 | a2bus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 85 | a2bus_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 85 | 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); | |
| 86 | 86 | // inline configuration |
| 87 | 87 | static void static_set_cputag(device_t &device, const char *tag); |
| 88 | 88 |
| r22095 | r22096 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | protected: |
| 34 | 34 | // device-level overrides |
| 35 | virtual void device_config_complete() { m_shortname = "pet_64k"; } | |
| 36 | 35 | virtual void device_start(); |
| 37 | 36 | virtual void device_reset(); |
| 38 | 37 |
| r22095 | r22096 | |
|---|---|---|
| 74 | 74 | public: |
| 75 | 75 | // construction/destruction |
| 76 | 76 | nand_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 77 | nand_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 77 | nand_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); | |
| 78 | 78 | |
| 79 | 79 | int is_present(); |
| 80 | 80 | int is_protected(); |
| r22095 | r22096 | |
|---|---|---|
| 140 | 140 | { |
| 141 | 141 | public: |
| 142 | 142 | // construction/destruction |
| 143 | sns_rom_sdd1_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 143 | 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); | |
| 144 | 144 | sns_rom_sdd1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 145 | 145 | |
| 146 | 146 | // device-level overrides |
| 147 | 147 | virtual void device_start(); |
| 148 | 148 | virtual void device_reset(); |
| 149 | virtual void device_config_complete() { m_shortname = "sns_rom_sdd1"; } | |
| 150 | 149 | |
| 151 | 150 | // reading and writing |
| 152 | 151 | virtual DECLARE_READ8_MEMBER(read_l); |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | coco_pak_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | coco_pak_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
| 30 | 30 | // device-level overrides |
| 31 | 31 | virtual void device_start(); |
| 32 | 32 | virtual void device_reset(); |
| 33 | virtual void device_config_complete(); | |
| 34 | 33 | |
| 35 | 34 | // internal state |
| 36 | 35 | device_image_interface *m_cart; |
| r22095 | r22096 | |
| 53 | 52 | protected: |
| 54 | 53 | // device-level overrides |
| 55 | 54 | virtual void device_reset(); |
| 56 | virtual void device_config_complete(); | |
| 57 | 55 | virtual DECLARE_WRITE8_MEMBER(write); |
| 58 | 56 | private: |
| 59 | 57 | void banked_pak_set_bank(UINT32 bank); |
| r22095 | r22096 | |
|---|---|---|
| 41 | 41 | |
| 42 | 42 | protected: |
| 43 | 43 | // device-level overrides |
| 44 | virtual void device_config_complete() { m_shortname = "comx_fd"; } | |
| 45 | 44 | virtual void device_start(); |
| 46 | 45 | virtual void device_reset(); |
| 47 | 46 |
| r22095 | r22096 | |
|---|---|---|
| 62 | 62 | //------------------------------------------------- |
| 63 | 63 | |
| 64 | 64 | c64_bn1541_device::c64_bn1541_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 65 | device_t(mconfig, C64_BN1541, "C64 Burst Nibbler 1541/1571 Parallel Cable", tag, owner, clock), | |
| 65 | device_t(mconfig, C64_BN1541, "C64 Burst Nibbler 1541/1571 Parallel Cable", tag, owner, clock, "c64_bn1541", __FILE__), | |
| 66 | 66 | device_c64_user_port_interface(mconfig, *this), |
| 67 | 67 | device_c64_floppy_parallel_interface(mconfig, *this) |
| 68 | 68 | { |
| r22095 | r22096 | |
|---|---|---|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | dp8390d_device::dp8390d_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 23 | : dp8390_device(mconfig, DP8390D, "DP8390D", tag, owner, clock, 10.0f) { | |
| 23 | : dp8390_device(mconfig, DP8390D, "DP8390D", tag, owner, clock, 10.0f, "dp8390d", __FILE__) { | |
| 24 | 24 | m_type = TYPE_DP8390D; |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | rtl8019a_device::rtl8019a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 28 | : dp8390_device(mconfig, RTL8019A, "RTL8019A", tag, owner, clock, 10.0f) { | |
| 28 | : dp8390_device(mconfig, RTL8019A, "RTL8019A", tag, owner, clock, 10.0f, "rtl8019a", __FILE__) { | |
| 29 | 29 | m_type = TYPE_RTL8019A; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | dp8390_device::dp8390_device(const machine_config &mconfig, device_type type, const char* name, const char *tag, device_t *owner, UINT32 clock, float bandwidth) | |
| 33 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 32 | dp8390_device::dp8390_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, float bandwidth, const char *shortname, const char *source) | |
| 33 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 34 | 34 | device_network_interface(mconfig, *this, bandwidth) { |
| 35 | 35 | } |
| 36 | 36 |
| r22095 | r22096 | |
|---|---|---|
| 280 | 280 | } |
| 281 | 281 | |
| 282 | 282 | |
| 283 | //------------------------------------------------- | |
| 284 | // device_config_complete - perform any | |
| 285 | // operations now that the configuration is | |
| 286 | // complete | |
| 287 | //------------------------------------------------- | |
| 288 | ||
| 289 | void fd2000_device::device_config_complete() | |
| 290 | { | |
| 291 | switch (m_variant) | |
| 292 | { | |
| 293 | default: | |
| 294 | m_shortname = "fd2000"; | |
| 295 | break; | |
| 296 | ||
| 297 | case TYPE_FD4000: | |
| 298 | m_shortname = "fd4000"; | |
| 299 | break; | |
| 300 | } | |
| 301 | } | |
| 302 | ||
| 303 | ||
| 304 | ||
| 305 | 283 | //************************************************************************** |
| 306 | 284 | // LIVE DEVICE |
| 307 | 285 | //************************************************************************** |
| r22095 | r22096 | |
| 311 | 289 | //------------------------------------------------- |
| 312 | 290 | |
| 313 | 291 | fd2000_device::fd2000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 314 | : device_t(mconfig, FD2000, "FD-2000", tag, owner, clock), | |
| 292 | : device_t(mconfig, FD2000, "FD-2000", tag, owner, clock, "fd2000", __FILE__), | |
| 315 | 293 | device_cbm_iec_interface(mconfig, *this), |
| 316 | 294 | m_maincpu(*this, G65SC02PI2_TAG), |
| 317 | 295 | m_fdc(*this, DP8473V_TAG), |
| r22095 | r22096 | |
| 320 | 298 | { |
| 321 | 299 | } |
| 322 | 300 | |
| 323 | fd2000_device::fd2000_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) | |
| 324 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 301 | fd2000_device::fd2000_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source) | |
| 302 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 325 | 303 | device_cbm_iec_interface(mconfig, *this), |
| 326 | 304 | m_maincpu(*this, R65C02P4_TAG), |
| 327 | 305 | m_fdc(*this, PC8477AV1_TAG), |
| r22095 | r22096 | |
| 336 | 314 | //------------------------------------------------- |
| 337 | 315 | |
| 338 | 316 | fd4000_device::fd4000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 339 | : fd2000_device(mconfig, FD4000, "FD-4000", tag, owner, clock, TYPE_FD4000) { } | |
| 317 | : fd2000_device(mconfig, FD4000, "FD-4000", tag, owner, clock, TYPE_FD4000, "fd4000", __FILE__ ) { } | |
| 340 | 318 | |
| 341 | 319 | |
| 342 | 320 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 53 | 53 | |
| 54 | 54 | protected: |
| 55 | 55 | // device-level overrides |
| 56 | virtual void device_config_complete() { m_shortname = "c64_bn1541"; } | |
| 57 | 56 | virtual void device_start(); |
| 58 | 57 | |
| 59 | 58 | // device_c64_user_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 26 | 26 | { |
| 27 | 27 | public: |
| 28 | 28 | // construction/destruction |
| 29 | dp8390_device(const machine_config &mconfig, device_type type, const char | |
| 29 | dp8390_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, float bandwidth, const char *shortname, const char *source); | |
| 30 | 30 | |
| 31 | 31 | DECLARE_WRITE16_MEMBER( dp8390_w ); |
| 32 | 32 | DECLARE_READ16_MEMBER( dp8390_r ); |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_westermann_cartridge_device::c64_westermann_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_WESTERMANN, "C64 Westermann cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_WESTERMANN, "C64 Westermann cartridge", tag, owner, clock, "c64_westermann", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 41 | 41 | public: |
| 42 | 42 | // construction/destruction |
| 43 | 43 | fd2000_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 44 | fd2000_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); | |
| 44 | fd2000_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source); | |
| 45 | 45 | |
| 46 | 46 | enum |
| 47 | 47 | { |
| r22095 | r22096 | |
| 62 | 62 | |
| 63 | 63 | protected: |
| 64 | 64 | // device-level overrides |
| 65 | virtual void device_config_complete(); | |
| 66 | 65 | virtual void device_start(); |
| 67 | 66 | virtual void device_reset(); |
| 68 | 67 |
| r22095 | r22096 | |
|---|---|---|
| 21 | 21 | |
| 22 | 22 | |
| 23 | 23 | i82371ab_device::i82371ab_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 24 | : southbridge_device(mconfig, I82371AB, "Intel 82371AB", tag, owner, clock), | |
| 24 | : southbridge_device(mconfig, I82371AB, "Intel 82371AB", tag, owner, clock, "i82371ab", __FILE__), | |
| 25 | 25 | pci_device_interface( mconfig, *this ) |
| 26 | 26 | { |
| 27 | 27 | } |
| r22095 | r22096 | |
|---|---|---|
| 40 | 40 | // LIVE DEVICE |
| 41 | 41 | //************************************************************************** |
| 42 | 42 | |
| 43 | a2bus_laser128_device::a2bus_laser128_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 44 | device_t(mconfig, type, name, tag, owner, clock), | |
| 43 | a2bus_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) : | |
| 44 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 45 | 45 | device_a2bus_card_interface(mconfig, *this) |
| 46 | 46 | { |
| 47 | m_shortname = "a2laser128"; | |
| 48 | 47 | } |
| 49 | 48 | |
| 50 | 49 | a2bus_laser128_device::a2bus_laser128_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 51 | device_t(mconfig, A2BUS_LASER128, "VTech Laser 128 Internal Device", tag, owner, clock), | |
| 50 | device_t(mconfig, A2BUS_LASER128, "VTech Laser 128 Internal Device", tag, owner, clock, "a2laser128", __FILE__), | |
| 52 | 51 | device_a2bus_card_interface(mconfig, *this) |
| 53 | 52 | { |
| 54 | m_shortname = "a2laser128"; | |
| 55 | 53 | } |
| 56 | 54 | |
| 57 | 55 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_westermann"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | // device-level overrides |
| 29 | 29 | virtual void device_start(); |
| 30 | 30 | virtual void device_reset(); |
| 31 | virtual void device_config_complete() { m_shortname = "i82371ab"; } | |
| 32 | 31 | |
| 33 | 32 | UINT32 pci_isa_r(device_t *busdevice, int offset, UINT32 mem_mask); |
| 34 | 33 | void pci_isa_w(device_t *busdevice, int offset, UINT32 data, UINT32 mem_mask); |
| r22095 | r22096 | |
|---|---|---|
| 22 | 22 | { |
| 23 | 23 | public: |
| 24 | 24 | // construction/destruction |
| 25 | a2bus_laser128_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 25 | 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); | |
| 26 | 26 | a2bus_laser128_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 27 | 27 | |
| 28 | 28 | // optional information overrides |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | diag264_user_port_loopback_device::diag264_user_port_loopback_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 31 | : device_t(mconfig, DIAG264_USER_PORT_LOOPBACK, "Diag264 User Port Loopback", tag, owner, clock), | |
| 31 | : device_t(mconfig, DIAG264_USER_PORT_LOOPBACK, "Diag264 User Port Loopback", tag, owner, clock, "diag264_user_port_loopback", __FILE__), | |
| 32 | 32 | device_plus4_user_port_interface(mconfig, *this), |
| 33 | 33 | m_p(0), |
| 34 | 34 | m_txd(0), |
| r22095 | r22096 | |
|---|---|---|
| 101 | 101 | // LIVE DEVICE |
| 102 | 102 | //************************************************************************** |
| 103 | 103 | |
| 104 | a2bus_vulcanbase_device::a2bus_vulcanbase_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 105 | device_t(mconfig, type, name, tag, owner, clock), | |
| 104 | a2bus_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) : | |
| 105 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 106 | 106 | device_a2bus_card_interface(mconfig, *this), |
| 107 | 107 | m_ide(*this, VULCAN_IDE_TAG) |
| 108 | 108 | { |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | a2bus_vulcan_device::a2bus_vulcan_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 112 | a2bus_vulcanbase_device(mconfig, A2BUS_VULCAN, "Applied Engineering Vulcan IDE controller", tag, owner, clock) | |
| 112 | a2bus_vulcanbase_device(mconfig, A2BUS_VULCAN, "Applied Engineering Vulcan IDE controller", tag, owner, clock, "a2vulcan", __FILE__) | |
| 113 | 113 | { |
| 114 | m_shortname = "a2vulcan"; | |
| 115 | 114 | } |
| 116 | 115 | |
| 117 | 116 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 155 | 155 | //------------------------------------------------- |
| 156 | 156 | |
| 157 | 157 | wangpc_wdc_device::wangpc_wdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 158 | device_t(mconfig, WANGPC_WDC, "Wang PC-PM001", tag, owner, clock), | |
| 158 | device_t(mconfig, WANGPC_WDC, "Wang PC-PM001", tag, owner, clock, "wangpc_wdc", __FILE__), | |
| 159 | 159 | device_wangpcbus_card_interface(mconfig, *this), |
| 160 | 160 | m_maincpu(*this, Z80_TAG), |
| 161 | 161 | m_ctc(*this, MK3882_TAG) |
| r22095 | r22096 | |
|---|---|---|
| 73 | 73 | //------------------------------------------------- |
| 74 | 74 | |
| 75 | 75 | c64_geocable_device::c64_geocable_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 76 | device_t(mconfig, C64_GEOCABLE, "C64 geoCable", tag, owner, clock), | |
| 76 | device_t(mconfig, C64_GEOCABLE, "C64 geoCable", tag, owner, clock, "c64_geocable", __FILE__), | |
| 77 | 77 | device_c64_user_port_interface(mconfig, *this), |
| 78 | 78 | m_centronics(*this, CENTRONICS_TAG) |
| 79 | 79 | { |
| r22095 | r22096 | |
|---|---|---|
| 63 | 63 | //------------------------------------------------- |
| 64 | 64 | |
| 65 | 65 | c64_4ksa_device::c64_4ksa_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 66 | device_t(mconfig, C64_4KSA, "C64 Kingsoft 4-Player Adapter", tag, owner, clock), | |
| 66 | device_t(mconfig, C64_4KSA, "C64 Kingsoft 4-Player Adapter", tag, owner, clock, "c64_4ksa", __FILE__), | |
| 67 | 67 | device_c64_user_port_interface(mconfig, *this), |
| 68 | 68 | m_pb(*this, "PB"), |
| 69 | 69 | m_pa2(*this, "PA2") |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "diag264_user_port_loopback"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | |
| 39 | 38 | // device_plus4_user_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | { |
| 24 | 24 | public: |
| 25 | 25 | // construction/destruction |
| 26 | a2bus_vulcanbase_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 26 | 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); | |
| 27 | 27 | |
| 28 | 28 | // optional information overrides |
| 29 | 29 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | ADDRESS_MAP_END |
| 28 | 28 | |
| 29 | 29 | ncr5380n_device::ncr5380n_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 30 | : nscsi_device(mconfig, NCR5380N, "5380 SCSI (new)", tag, owner, clock) | |
| 30 | : nscsi_device(mconfig, NCR5380N, "5380 SCSI (new)", tag, owner, clock, "ncr5380", __FILE__) | |
| 31 | 31 | { |
| 32 | 32 | } |
| 33 | 33 | |
| r22095 | r22096 | |
| 87 | 87 | memset(&m_irq_cb, 0, sizeof(m_irq_cb)); |
| 88 | 88 | memset(&m_drq_cb, 0, sizeof(m_drq_cb)); |
| 89 | 89 | } |
| 90 | m_shortname = "ncr5380"; | |
| 91 | 90 | } |
| 92 | 91 | |
| 93 | 92 | void ncr5380n_device::reset_soft() |
| r22095 | r22096 | |
|---|---|---|
| 332 | 332 | //------------------------------------------------- |
| 333 | 333 | |
| 334 | 334 | isa8_lpt_device::isa8_lpt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 335 | device_t(mconfig, ISA8_LPT, "Printer Adapter", tag, owner, clock), | |
| 335 | device_t(mconfig, ISA8_LPT, "Printer Adapter", tag, owner, clock, "isa_lpt", __FILE__), | |
| 336 | 336 | device_isa8_card_interface(mconfig, *this) |
| 337 | 337 | { |
| 338 | 338 | } |
| r22095 | r22096 | |
|---|---|---|
| 54 | 54 | // device-level overrides |
| 55 | 55 | virtual void device_start(); |
| 56 | 56 | virtual void device_reset(); |
| 57 | virtual void device_config_complete() { m_shortname = "wangpc_wdc"; } | |
| 58 | 57 | |
| 59 | 58 | // device_wangpcbus_card_interface overrides |
| 60 | 59 | virtual UINT16 wangpcbus_mrdc_r(address_space &space, offs_t offset, UINT16 mem_mask); |
| r22095 | r22096 | |
|---|---|---|
| 40 | 40 | |
| 41 | 41 | protected: |
| 42 | 42 | // device-level overrides |
| 43 | virtual void device_config_complete() { m_shortname = "c64_geocable"; } | |
| 44 | 43 | virtual void device_start(); |
| 45 | 44 | |
| 46 | 45 | // device_c64_user_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | virtual void device_config_complete() { m_shortname = "c64_4ksa"; } | |
| 40 | 39 | virtual void device_start(); |
| 41 | 40 | |
| 42 | 41 | // device_c64_user_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 91 | 91 | // device-level overrides |
| 92 | 92 | virtual void device_start(); |
| 93 | 93 | virtual void device_reset(); |
| 94 | virtual void device_config_complete() { m_shortname = "isa_lpt"; } | |
| 95 | 94 | private: |
| 96 | 95 | // internal state |
| 97 | 96 | bool m_is_primary; |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | //------------------------------------------------- |
| 39 | 39 | |
| 40 | 40 | c64_super_explode_cartridge_device::c64_super_explode_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 41 | device_t(mconfig, C64_SUPER_EXPLODE, "C64 Super Explode! cartridge", tag, owner, clock), | |
| 41 | device_t(mconfig, C64_SUPER_EXPLODE, "C64 Super Explode! cartridge", tag, owner, clock, "c64_super_explode", __FILE__), | |
| 42 | 42 | device_c64_expansion_card_interface(mconfig, *this) |
| 43 | 43 | { |
| 44 | 44 | } |
| r22095 | r22096 | |
|---|---|---|
| 25 | 25 | const device_type MD_ROM_SK = &device_creator<md_rom_sk_device>; |
| 26 | 26 | |
| 27 | 27 | |
| 28 | md_rom_sk_device::md_rom_sk_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 29 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 28 | md_rom_sk_device::md_rom_sk_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) | |
| 29 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 30 | 30 | device_md_cart_interface( mconfig, *this ), |
| 31 | 31 | m_exp(*this, "subslot") |
| 32 | 32 | { |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | md_rom_sk_device::md_rom_sk_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 36 | : device_t(mconfig, MD_ROM_SK, "MD Sonic & Knuckles", tag, owner, clock), | |
| 36 | : device_t(mconfig, MD_ROM_SK, "MD Sonic & Knuckles", tag, owner, clock, "md_rom_sk", __FILE__), | |
| 37 | 37 | device_md_cart_interface( mconfig, *this ), |
| 38 | 38 | m_exp(*this, "subslot") |
| 39 | 39 | { |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_super_explode"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| r22095 | r22096 | |
|---|---|---|
| 11 | 11 | { |
| 12 | 12 | public: |
| 13 | 13 | // construction/destruction |
| 14 | md_rom_sk_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 14 | md_rom_sk_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); | |
| 15 | 15 | md_rom_sk_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 16 | 16 | |
| 17 | 17 | // device-level overrides |
| 18 | 18 | virtual void device_start(); |
| 19 | virtual void device_config_complete() { m_shortname = "md_rom_sk"; } | |
| 20 | 19 | virtual machine_config_constructor device_mconfig_additions() const; |
| 21 | 20 | |
| 22 | 21 | // reading and writing |
| r22095 | r22096 | |
|---|---|---|
| 41 | 41 | AM_RANGE(0x7, 0x7) AM_READWRITE(dir_r, ccr_w) |
| 42 | 42 | ADDRESS_MAP_END |
| 43 | 43 | |
| 44 | pc_fdc_family_device::pc_fdc_family_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : pc_fdc_interface(mconfig, type, name, tag, owner, clock), fdc(*this, "upd765") | |
| 44 | pc_fdc_family_device::pc_fdc_family_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) : pc_fdc_interface(mconfig, type, name, tag, owner, clock, shortname, source), fdc(*this, "upd765") | |
| 45 | 45 | { |
| 46 | 46 | } |
| 47 | 47 | |
| r22095 | r22096 | |
| 186 | 186 | drq_cb(drq); |
| 187 | 187 | } |
| 188 | 188 | |
| 189 | pc_fdc_xt_device::pc_fdc_xt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : pc_fdc_family_device(mconfig, PC_FDC_XT, "PC FDC XT", tag, owner, clock) | |
| 189 | pc_fdc_xt_device::pc_fdc_xt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : pc_fdc_family_device(mconfig, PC_FDC_XT, "PC FDC XT", tag, owner, clock, "pc_fdc_xt", __FILE__) | |
| 190 | 190 | { |
| 191 | m_shortname = "pc_fdc_xt"; | |
| 192 | 191 | } |
| 193 | 192 | |
| 194 | pc_fdc_at_device::pc_fdc_at_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : pc_fdc_family_device(mconfig, PC_FDC_AT, "PC FDC AT", tag, owner, clock) | |
| 193 | pc_fdc_at_device::pc_fdc_at_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : pc_fdc_family_device(mconfig, PC_FDC_AT, "PC FDC AT", tag, owner, clock, "pc_fdc_at", __FILE__) | |
| 195 | 194 | { |
| 196 | m_shortname = "pc_fdc_at"; | |
| 197 | 195 | } |
| r22095 | r22096 | |
|---|---|---|
| 71 | 71 | // c2n_device - constructor |
| 72 | 72 | //------------------------------------------------- |
| 73 | 73 | |
| 74 | c2n_device::c2n_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 75 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 74 | c2n_device::c2n_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) | |
| 75 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 76 | 76 | device_pet_datassette_port_interface(mconfig, *this), |
| 77 | 77 | m_cassette(*this, CASSETTE_TAG) |
| 78 | 78 | { |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | c2n_device::c2n_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 82 | : device_t(mconfig, C2N, "C2N", tag, owner, clock), | |
| 82 | : device_t(mconfig, C2N, "C2N", tag, owner, clock, "c2n", __FILE__), | |
| 83 | 83 | device_pet_datassette_port_interface(mconfig, *this), |
| 84 | 84 | m_cassette(*this, CASSETTE_TAG) |
| 85 | 85 | { |
| r22095 | r22096 | |
| 91 | 91 | //------------------------------------------------- |
| 92 | 92 | |
| 93 | 93 | c1530_device::c1530_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 94 | : c2n_device(mconfig, C1530, "C1530", tag, owner, clock) { } | |
| 94 | : c2n_device(mconfig, C1530, "C1530", tag, owner, clock, "c2n", __FILE__) { } | |
| 95 | 95 | |
| 96 | 96 | |
| 97 | 97 | //------------------------------------------------- |
| r22095 | r22096 | |
| 99 | 99 | //------------------------------------------------- |
| 100 | 100 | |
| 101 | 101 | c1531_device::c1531_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 102 | : c2n_device(mconfig, C1531, "C1531", tag, owner, clock) { } | |
| 102 | : c2n_device(mconfig, C1531, "C1531", tag, owner, clock, "c2n", __FILE__) { } | |
| 103 | 103 | |
| 104 | 104 | |
| 105 | 105 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 162 | 162 | //------------------------------------------------- |
| 163 | 163 | |
| 164 | 164 | luxor_4105_device::luxor_4105_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 165 | : device_t(mconfig, LUXOR_4105, "Luxor 4105", tag, owner, clock), | |
| 165 | : device_t(mconfig, LUXOR_4105, "Luxor 4105", tag, owner, clock, "luxor_4105", __FILE__), | |
| 166 | 166 | device_abc1600bus_card_interface(mconfig, *this), |
| 167 | 167 | m_sasibus(*this, SASIBUS_TAG ":host"), |
| 168 | 168 | m_1e(*this, "1E"), |
| r22095 | r22096 | |
|---|---|---|
| 18 | 18 | |
| 19 | 19 | class pc_fdc_family_device : public pc_fdc_interface { |
| 20 | 20 | public: |
| 21 | pc_fdc_family_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 21 | pc_fdc_family_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); | |
| 22 | 22 | |
| 23 | 23 | required_device<upd765a_device> fdc; |
| 24 | 24 |
| r22095 | r22096 | |
|---|---|---|
| 63 | 63 | //------------------------------------------------- |
| 64 | 64 | |
| 65 | 65 | c64_4dxh_device::c64_4dxh_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 66 | device_t(mconfig, C64_4DXH, "C64 DXH 4-Player Adapter", tag, owner, clock), | |
| 66 | device_t(mconfig, C64_4DXH, "C64 DXH 4-Player Adapter", tag, owner, clock, "c64_4dxh", __FILE__), | |
| 67 | 67 | device_c64_user_port_interface(mconfig, *this), |
| 68 | 68 | m_pb(*this, "PB"), |
| 69 | 69 | m_pa2(*this, "PA2") |
| r22095 | r22096 | |
|---|---|---|
| 31 | 31 | { |
| 32 | 32 | public: |
| 33 | 33 | // construction/destruction |
| 34 | c2n_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 34 | c2n_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); | |
| 35 | 35 | c2n_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 36 | 36 | |
| 37 | 37 | // optional information overrides |
| r22095 | r22096 | |
| 39 | 39 | |
| 40 | 40 | protected: |
| 41 | 41 | // device-level overrides |
| 42 | virtual void device_config_complete() { m_shortname = "c2n"; } | |
| 43 | 42 | virtual void device_start(); |
| 44 | 43 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 45 | 44 |
| r22095 | r22096 | |
|---|---|---|
| 53 | 53 | // device-level overrides |
| 54 | 54 | virtual void device_start(); |
| 55 | 55 | virtual void device_reset(); |
| 56 | virtual void device_config_complete() { m_shortname = "luxor_4105"; } | |
| 57 | 56 | |
| 58 | 57 | // device_abc1600bus_interface overrides |
| 59 | 58 | virtual void abc1600bus_cs(UINT8 data); |
| r22095 | r22096 | |
|---|---|---|
| 52 | 52 | memset(&m_out_data_cb, 0, sizeof(m_out_data_cb)); |
| 53 | 53 | memset(&m_out_clock_cb, 0, sizeof(m_out_clock_cb)); |
| 54 | 54 | } |
| 55 | ||
| 56 | m_shortname = "pc1512kb"; | |
| 57 | 55 | } |
| 58 | 56 | |
| 59 | 57 | |
| r22095 | r22096 | |
| 258 | 256 | //------------------------------------------------- |
| 259 | 257 | |
| 260 | 258 | pc1512_keyboard_device::pc1512_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 261 | : device_t(mconfig, PC1512_KEYBOARD, "Amstrad PC1512 Keyboard", tag, owner, clock), | |
| 259 | : device_t(mconfig, PC1512_KEYBOARD, "Amstrad PC1512 Keyboard", tag, owner, clock, "pc1512kb", __FILE__), | |
| 262 | 260 | m_maincpu(*this, I8048_TAG), |
| 263 | 261 | m_y1(*this, "Y1"), |
| 264 | 262 | m_y2(*this, "Y2"), |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | virtual void device_config_complete() { m_shortname = "c64_4dxh"; } | |
| 40 | 39 | virtual void device_start(); |
| 41 | 40 | |
| 42 | 41 | // device_c64_user_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 158 | 158 | //------------------------------------------------- |
| 159 | 159 | |
| 160 | 160 | isa8_hdc_device::isa8_hdc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 161 | device_t(mconfig, ISA8_HDC, "Fixed Disk Controller Card", tag, owner, clock), | |
| 161 | device_t(mconfig, ISA8_HDC, "Fixed Disk Controller Card", tag, owner, clock, "hdc", __FILE__), | |
| 162 | 162 | device_isa8_card_interface(mconfig, *this) |
| 163 | 163 | { |
| 164 | m_shortname = "hdc"; | |
| 165 | 164 | } |
| 166 | 165 | |
| 167 | 166 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 165 | 165 | //************************************************************************** |
| 166 | 166 | |
| 167 | 167 | cpc_ssa1_device::cpc_ssa1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 168 | device_t(mconfig, CPC_SSA1, "SSA-1", tag, owner, clock), | |
| 168 | device_t(mconfig, CPC_SSA1, "SSA-1", tag, owner, clock, "cpc_ssa1", __FILE__), | |
| 169 | 169 | device_cpc_expansion_card_interface(mconfig, *this), |
| 170 | 170 | m_lrq(1), |
| 171 | 171 | m_sp0256_device(*this,"sp0256") |
| r22095 | r22096 | |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | 175 | cpc_dkspeech_device::cpc_dkspeech_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 176 | device_t(mconfig, CPC_DKSPEECH, "DK'Tronics Speech Synthesiser", tag, owner, clock), | |
| 176 | device_t(mconfig, CPC_DKSPEECH, "DK'Tronics Speech Synthesiser", tag, owner, clock, "cpc_dkspeech", __FILE__), | |
| 177 | 177 | device_cpc_expansion_card_interface(mconfig, *this), |
| 178 | 178 | m_lrq(1), |
| 179 | 179 | m_sp0256_device(*this,"sp0256") |
| r22095 | r22096 | |
|---|---|---|
| 71 | 71 | // device-level overrides |
| 72 | 72 | virtual void device_start(); |
| 73 | 73 | virtual void device_reset(); |
| 74 | virtual void device_config_complete() { m_shortname = "cpc_ssa1"; } | |
| 75 | 74 | |
| 76 | 75 | private: |
| 77 | 76 | cpc_expansion_slot_device *m_slot; |
| r22095 | r22096 | |
| 108 | 107 | // device-level overrides |
| 109 | 108 | virtual void device_start(); |
| 110 | 109 | virtual void device_reset(); |
| 111 | virtual void device_config_complete() { m_shortname = "cpc_dkspeech"; } | |
| 112 | 110 | |
| 113 | 111 | private: |
| 114 | 112 | cpc_expansion_slot_device *m_slot; |
| r22095 | r22096 | |
|---|---|---|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | x68k_scsiext_device::x68k_scsiext_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 60 | : device_t(mconfig, X68K_SCSIEXT, "Sharp CZ-6BS1 SCSI-1", tag, owner, clock), | |
| 60 | : device_t(mconfig, X68K_SCSIEXT, "Sharp CZ-6BS1 SCSI-1", tag, owner, clock, "x68k_cz6bs1", __FILE__), | |
| 61 | 61 | device_x68k_expansion_card_interface(mconfig, *this), |
| 62 | 62 | m_spc(*this, "scsi:mb89352") |
| 63 | 63 | { |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | const device_type MEGADUCK_ROM = &device_creator<megaduck_rom_device>; |
| 28 | 28 | |
| 29 | 29 | |
| 30 | gb_rom_device::gb_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 31 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 30 | gb_rom_device::gb_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) | |
| 31 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 32 | 32 | device_gb_cart_interface( mconfig, *this ) |
| 33 | 33 | { |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | gb_rom_device::gb_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 37 | : device_t(mconfig, GB_STD_ROM, "GB Carts", tag, owner, clock), | |
| 37 | : device_t(mconfig, GB_STD_ROM, "GB Carts", tag, owner, clock, "gb_rom", __FILE__), | |
| 38 | 38 | device_gb_cart_interface( mconfig, *this ) |
| 39 | 39 | { |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | gb_rom_tama5_device::gb_rom_tama5_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 43 | : gb_rom_device(mconfig, GB_ROM_TAMA5, "GB Tamagotchi", tag, owner, clock) | |
| 43 | : gb_rom_device(mconfig, GB_ROM_TAMA5, "GB Tamagotchi", tag, owner, clock, "gb_rom_tama5", __FILE__) | |
| 44 | 44 | { |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | gb_rom_wisdom_device::gb_rom_wisdom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 48 | : gb_rom_device(mconfig, GB_ROM_WISDOM, "GB Wisdom Tree Carts", tag, owner, clock) | |
| 48 | : gb_rom_device(mconfig, GB_ROM_WISDOM, "GB Wisdom Tree Carts", tag, owner, clock, "gb_rom_wisdom", __FILE__) | |
| 49 | 49 | { |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | gb_rom_yong_device::gb_rom_yong_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 53 | : gb_rom_device(mconfig, GB_ROM_YONG, "GB Yong Yong Carts", tag, owner, clock) | |
| 53 | : gb_rom_device(mconfig, GB_ROM_YONG, "GB Yong Yong Carts", tag, owner, clock, "gb_rom_yong", __FILE__) | |
| 54 | 54 | { |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | gb_rom_atvrac_device::gb_rom_atvrac_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 58 | : gb_rom_device(mconfig, GB_ROM_ATVRAC, "GB ATV Racin'", tag, owner, clock) | |
| 58 | : gb_rom_device(mconfig, GB_ROM_ATVRAC, "GB ATV Racin'", tag, owner, clock, "gb_rom_atvrac", __FILE__) | |
| 59 | 59 | { |
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | gb_rom_lasama_device::gb_rom_lasama_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 63 | : gb_rom_device(mconfig, GB_ROM_LASAMA, "GB LaSaMa", tag, owner, clock) | |
| 63 | : gb_rom_device(mconfig, GB_ROM_LASAMA, "GB LaSaMa", tag, owner, clock, "gb_rom_lasama", __FILE__) | |
| 64 | 64 | { |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | |
| 68 | megaduck_rom_device::megaduck_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 69 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 68 | megaduck_rom_device::megaduck_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) | |
| 69 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 70 | 70 | device_gb_cart_interface( mconfig, *this ) |
| 71 | 71 | { |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | megaduck_rom_device::megaduck_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 75 | : device_t(mconfig, MEGADUCK_ROM, "MegaDuck Carts", tag, owner, clock), | |
| 75 | : device_t(mconfig, MEGADUCK_ROM, "MegaDuck Carts", tag, owner, clock, "megaduck_rom", __FILE__), | |
| 76 | 76 | device_gb_cart_interface( mconfig, *this ) |
| 77 | 77 | { |
| 78 | 78 | } |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_prophet64_cartridge_device::c64_prophet64_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_PROPHET64, "PROPHET64", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_PROPHET64, "PROPHET64", tag, owner, clock, "c64_prophet64", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this), |
| 33 | 33 | m_bank(0) |
| 34 | 34 | { |
| r22095 | r22096 | |
|---|---|---|
| 31 | 31 | // device-level overrides |
| 32 | 32 | virtual void device_start(); |
| 33 | 33 | virtual void device_reset(); |
| 34 | virtual void device_config_complete() { m_shortname = "x68k_cz6bs1"; } | |
| 35 | 34 | private: |
| 36 | 35 | x68k_expansion_slot_device *m_slot; |
| 37 | 36 |
| r22095 | r22096 | |
|---|---|---|
| 11 | 11 | { |
| 12 | 12 | public: |
| 13 | 13 | // construction/destruction |
| 14 | gb_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 14 | gb_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); | |
| 15 | 15 | gb_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 16 | 16 | |
| 17 | 17 | // device-level overrides |
| 18 | 18 | virtual void device_start() { shared_start(); }; |
| 19 | 19 | virtual void device_reset() { shared_reset(); }; |
| 20 | virtual void device_config_complete() { m_shortname = "gb_rom"; } | |
| 21 | 20 | |
| 22 | 21 | void shared_start(); |
| 23 | 22 | void shared_reset(); |
| r22095 | r22096 | |
| 38 | 37 | // device-level overrides |
| 39 | 38 | virtual void device_start(); |
| 40 | 39 | virtual void device_reset(); |
| 41 | virtual void device_config_complete() { m_shortname = "gb_rom_tama5"; } | |
| 42 | 40 | |
| 43 | 41 | // reading and writing |
| 44 | 42 | virtual DECLARE_READ8_MEMBER(read_rom); |
| r22095 | r22096 | |
| 59 | 57 | // device-level overrides |
| 60 | 58 | virtual void device_start() { shared_start(); }; |
| 61 | 59 | virtual void device_reset() { shared_reset(); }; |
| 62 | virtual void device_config_complete() { m_shortname = "gb_rom_wisdom"; } | |
| 63 | 60 | |
| 64 | 61 | // reading and writing |
| 65 | 62 | virtual DECLARE_READ8_MEMBER(read_rom); |
| r22095 | r22096 | |
| 76 | 73 | // device-level overrides |
| 77 | 74 | virtual void device_start() { shared_start(); }; |
| 78 | 75 | virtual void device_reset() { shared_reset(); }; |
| 79 | virtual void device_config_complete() { m_shortname = "gb_rom_yong"; } | |
| 80 | 76 | |
| 81 | 77 | // reading and writing |
| 82 | 78 | virtual DECLARE_READ8_MEMBER(read_rom); |
| r22095 | r22096 | |
| 93 | 89 | // device-level overrides |
| 94 | 90 | virtual void device_start() { shared_start(); }; |
| 95 | 91 | virtual void device_reset() { shared_reset(); }; |
| 96 | virtual void device_config_complete() { m_shortname = "gb_rom_atvrac"; } | |
| 97 | 92 | |
| 98 | 93 | // reading and writing |
| 99 | 94 | virtual DECLARE_READ8_MEMBER(read_rom); |
| r22095 | r22096 | |
| 110 | 105 | // device-level overrides |
| 111 | 106 | virtual void device_start() { shared_start(); }; |
| 112 | 107 | virtual void device_reset() { shared_reset(); }; |
| 113 | virtual void device_config_complete() { m_shortname = "gb_rom_lasama"; } | |
| 114 | 108 | |
| 115 | 109 | // reading and writing |
| 116 | 110 | virtual DECLARE_READ8_MEMBER(read_rom); |
| r22095 | r22096 | |
| 124 | 118 | { |
| 125 | 119 | public: |
| 126 | 120 | // construction/destruction |
| 127 | megaduck_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 121 | megaduck_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); | |
| 128 | 122 | megaduck_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 129 | 123 | |
| 130 | 124 | // device-level overrides |
| 131 | 125 | virtual void device_start(); |
| 132 | 126 | virtual void device_reset(); |
| 133 | virtual void device_config_complete() { m_shortname = "megaduck_rom"; } | |
| 134 | 127 | |
| 135 | 128 | // reading and writing |
| 136 | 129 | virtual DECLARE_READ8_MEMBER(read_rom); |
| r22095 | r22096 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | protected: |
| 34 | 34 | // device-level overrides |
| 35 | virtual void device_config_complete() { m_shortname = "c64_prophet64"; } | |
| 36 | 35 | virtual void device_start(); |
| 37 | 36 | virtual void device_reset(); |
| 38 | 37 |
| r22095 | r22096 | |
|---|---|---|
| 169 | 169 | // LIVE DEVICE |
| 170 | 170 | //************************************************************************** |
| 171 | 171 | |
| 172 | a2bus_videx80_device::a2bus_videx80_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 173 | device_t(mconfig, type, name, tag, owner, clock), | |
| 172 | a2bus_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) : | |
| 173 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 174 | 174 | device_a2bus_card_interface(mconfig, *this), |
| 175 | 175 | m_crtc(*this, VIDEOTERM_MC6845_NAME) |
| 176 | 176 | { |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | 179 | a2bus_videoterm_device::a2bus_videoterm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 180 | a2bus_videx80_device(mconfig, A2BUS_VIDEOTERM, "Videx VideoTerm", tag, owner, clock) | |
| 180 | a2bus_videx80_device(mconfig, A2BUS_VIDEOTERM, "Videx VideoTerm", tag, owner, clock, "a2vidtrm", __FILE__) | |
| 181 | 181 | { |
| 182 | m_shortname = "a2vidtrm"; | |
| 183 | 182 | } |
| 184 | 183 | |
| 185 | 184 | a2bus_ap16_device::a2bus_ap16_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 186 | a2bus_videx80_device(mconfig, A2BUS_IBSAP16, "IBS AP-16 80 column card", tag, owner, clock) | |
| 185 | a2bus_videx80_device(mconfig, A2BUS_IBSAP16, "IBS AP-16 80 column card", tag, owner, clock, "a2ap16", __FILE__) | |
| 187 | 186 | { |
| 188 | m_shortname = "a2ap16"; | |
| 189 | 187 | } |
| 190 | 188 | |
| 191 | 189 | a2bus_ap16alt_device::a2bus_ap16alt_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 192 | a2bus_videx80_device(mconfig, A2BUS_IBSAP16ALT, "IBS AP-16 80 column card (alt. version)", tag, owner, clock) | |
| 190 | a2bus_videx80_device(mconfig, A2BUS_IBSAP16ALT, "IBS AP-16 80 column card (alt. version)", tag, owner, clock, "a2ap16a", __FILE__) | |
| 193 | 191 | { |
| 194 | m_shortname = "a2ap16a"; | |
| 195 | 192 | } |
| 196 | 193 | |
| 197 | 194 | a2bus_vtc1_device::a2bus_vtc1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 198 | a2bus_videx80_device(mconfig, A2BUS_VTC1, "Unknown VideoTerm clone #1", tag, owner, clock) | |
| 195 | a2bus_videx80_device(mconfig, A2BUS_VTC1, "Unknown VideoTerm clone #1", tag, owner, clock, "a2vtc1", __FILE__) | |
| 199 | 196 | { |
| 200 | m_shortname = "a2vtc1"; | |
| 201 | 197 | } |
| 202 | 198 | |
| 203 | 199 | a2bus_vtc2_device::a2bus_vtc2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 204 | a2bus_videx80_device(mconfig, A2BUS_VTC2, "Unknown VideoTerm clone #2", tag, owner, clock) | |
| 200 | a2bus_videx80_device(mconfig, A2BUS_VTC2, "Unknown VideoTerm clone #2", tag, owner, clock, "a2vtc2", __FILE__) | |
| 205 | 201 | { |
| 206 | m_shortname = "a2vtc2"; | |
| 207 | 202 | } |
| 208 | 203 | |
| 209 | 204 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 148 | 148 | //------------------------------------------------- |
| 149 | 149 | |
| 150 | 150 | vp590_device::vp590_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 151 | device_t(mconfig, VP590, "VP590", tag, owner, clock), | |
| 151 | device_t(mconfig, VP590, "VP590", tag, owner, clock, "vp590", __FILE__), | |
| 152 | 152 | device_vip_expansion_card_interface(mconfig, *this), |
| 153 | 153 | m_cgc(*this, CDP1862_TAG), |
| 154 | 154 | m_color_ram(*this, "color_ram"), |
| r22095 | r22096 | |
|---|---|---|
| 94 | 94 | // LIVE DEVICE |
| 95 | 95 | //************************************************************************** |
| 96 | 96 | |
| 97 | a2bus_scsi_device::a2bus_scsi_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 98 | device_t(mconfig, type, name, tag, owner, clock), | |
| 97 | a2bus_scsi_device::a2bus_scsi_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) : | |
| 98 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 99 | 99 | device_a2bus_card_interface(mconfig, *this), |
| 100 | 100 | m_ncr5380(*this, SCSI_5380_TAG), |
| 101 | 101 | m_scsibus(*this, SCSI_BUS_TAG) |
| 102 | 102 | { |
| 103 | m_shortname = "a2scsi"; | |
| 104 | 103 | } |
| 105 | 104 | |
| 106 | 105 | a2bus_scsi_device::a2bus_scsi_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 107 | device_t(mconfig, A2BUS_SCSI, "Apple II SCSI Card", tag, owner, clock), | |
| 106 | device_t(mconfig, A2BUS_SCSI, "Apple II SCSI Card", tag, owner, clock, "a2scsi", __FILE__), | |
| 108 | 107 | device_a2bus_card_interface(mconfig, *this), |
| 109 | 108 | m_ncr5380(*this, SCSI_5380_TAG), |
| 110 | 109 | m_scsibus(*this, SCSI_BUS_TAG) |
| 111 | 110 | { |
| 112 | m_shortname = "a2scsi"; | |
| 113 | 111 | } |
| 114 | 112 | |
| 115 | 113 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 136 | 136 | // abc890_device - constructor |
| 137 | 137 | //------------------------------------------------- |
| 138 | 138 | |
| 139 | abc890_device::abc890_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 140 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 139 | abc890_device::abc890_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) | |
| 140 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 141 | 141 | device_abcbus_card_interface(mconfig, *this) |
| 142 | 142 | { |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | abc890_device::abc890_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 146 | : device_t(mconfig, ABC890, "ABC 890", tag, owner, clock), | |
| 146 | : device_t(mconfig, ABC890, "ABC 890", tag, owner, clock, "abc890", __FILE__), | |
| 147 | 147 | device_abcbus_card_interface(mconfig, *this), |
| 148 | 148 | m_slots(7) |
| 149 | 149 | { |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | abc894_device::abc894_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 153 | : abc890_device(mconfig, ABC894, "ABC 894", tag, owner, clock) | |
| 153 | : abc890_device(mconfig, ABC894, "ABC 894", tag, owner, clock, "abc890", __FILE__) | |
| 154 | 154 | { |
| 155 | 155 | m_slots = 3; |
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | abc850_device::abc850_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 159 | : abc890_device(mconfig, ABC850, "ABC 850", tag, owner, clock) | |
| 159 | : abc890_device(mconfig, ABC850, "ABC 850", tag, owner, clock, "abc890", __FILE__) | |
| 160 | 160 | { |
| 161 | 161 | m_slots = 7; |
| 162 | 162 | } |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | { |
| 24 | 24 | public: |
| 25 | 25 | // construction/destruction |
| 26 | a2bus_videx80_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 26 | 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); | |
| 27 | 27 | |
| 28 | 28 | // optional information overrides |
| 29 | 29 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | |
| 44 | 44 | protected: |
| 45 | 45 | // device-level overrides |
| 46 | virtual void device_config_complete() { m_shortname = "vp590"; } | |
| 47 | 46 | virtual void device_start(); |
| 48 | 47 | |
| 49 | 48 | // device_vip_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | { |
| 24 | 24 | public: |
| 25 | 25 | // construction/destruction |
| 26 | a2bus_scsi_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 26 | a2bus_scsi_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); | |
| 27 | 27 | a2bus_scsi_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 28 | 28 | |
| 29 | 29 | // optional information overrides |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | { |
| 38 | 38 | public: |
| 39 | 39 | // construction/destruction |
| 40 | abc890_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 40 | abc890_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); | |
| 41 | 41 | abc890_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 42 | 42 | |
| 43 | 43 | // optional information overrides |
| r22095 | r22096 | |
| 52 | 52 | protected: |
| 53 | 53 | // device-level overrides |
| 54 | 54 | virtual void device_start(); |
| 55 | virtual void device_config_complete() { m_shortname = "abc890"; } | |
| 56 | 55 | |
| 57 | 56 | // device_abcbus_interface overrides |
| 58 | 57 | virtual void abcbus_cs(UINT8 data); |
| r22095 | r22096 | |
|---|---|---|
| 114 | 114 | //------------------------------------------------- |
| 115 | 115 | |
| 116 | 116 | abc_xebec_device::abc_xebec_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 117 | : device_t(mconfig, ABC_XEBEC, "ABC XEBEC", tag, owner, clock), | |
| 117 | : device_t(mconfig, ABC_XEBEC, "ABC XEBEC", tag, owner, clock, "abc_xebec", __FILE__), | |
| 118 | 118 | device_abcbus_card_interface(mconfig, *this), |
| 119 | 119 | m_maincpu(*this, Z80_TAG), |
| 120 | 120 | m_sasibus(*this, SASIBUS_TAG) |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | // device-level overrides |
| 45 | 45 | virtual void device_start(); |
| 46 | 46 | virtual void device_reset(); |
| 47 | virtual void device_config_complete() { m_shortname = "abc_xebec"; } | |
| 48 | 47 | |
| 49 | 48 | // device_abcbus_interface overrides |
| 50 | 49 | virtual void abcbus_cs(UINT8 data); |
| r22095 | r22096 | |
|---|---|---|
| 75 | 75 | //------------------------------------------------- |
| 76 | 76 | |
| 77 | 77 | wangpc_lic_device::wangpc_lic_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 78 | device_t(mconfig, WANGPC_LIC, "Wang PC-PM070", tag, owner, clock), | |
| 78 | device_t(mconfig, WANGPC_LIC, "Wang PC-PM070", tag, owner, clock, "wangpc_lic", __FILE__), | |
| 79 | 79 | device_wangpcbus_card_interface(mconfig, *this) |
| 80 | 80 | { |
| 81 | 81 | } |
| r22095 | r22096 | |
|---|---|---|
| 122 | 122 | //------------------------------------------------- |
| 123 | 123 | |
| 124 | 124 | isa8_com_device::isa8_com_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 125 | device_t(mconfig, ISA8_COM, "Communications Adapter PC/XT", tag, owner, clock), | |
| 125 | device_t(mconfig, ISA8_COM, "Communications Adapter PC/XT", tag, owner, clock, "isa_com", __FILE__), | |
| 126 | 126 | device_isa8_card_interface(mconfig, *this) |
| 127 | 127 | { |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | isa8_com_device::isa8_com_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 131 | device_t(mconfig, type, name, tag, owner, clock), | |
| 130 | isa8_com_device::isa8_com_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) : | |
| 131 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 132 | 132 | device_isa8_card_interface(mconfig, *this) |
| 133 | 133 | { |
| 134 | 134 | } |
| r22095 | r22096 | |
| 187 | 187 | //------------------------------------------------- |
| 188 | 188 | |
| 189 | 189 | isa8_com_at_device::isa8_com_at_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 190 | isa8_com_device(mconfig, ISA8_COM_AT, "Communications Adapter", tag, owner, clock) | |
| 190 | isa8_com_device(mconfig, ISA8_COM_AT, "Communications Adapter", tag, owner, clock, "isa_com_at", __FILE__) | |
| 191 | 191 | { |
| 192 | 192 | } |
| r22095 | r22096 | |
|---|---|---|
| 109 | 109 | { |
| 110 | 110 | memset(&m_out_keydown_cb, 0, sizeof(m_out_keydown_cb)); |
| 111 | 111 | } |
| 112 | ||
| 113 | m_shortname = "abc80kb"; | |
| 114 | 112 | } |
| 115 | 113 | |
| 116 | 114 | |
| r22095 | r22096 | |
| 192 | 190 | //------------------------------------------------- |
| 193 | 191 | |
| 194 | 192 | abc80_keyboard_device::abc80_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 195 | : device_t(mconfig, ABC80_KEYBOARD, "ABC-80 Keyboard", tag, owner, clock), | |
| 193 | : device_t(mconfig, ABC80_KEYBOARD, "ABC-80 Keyboard", tag, owner, clock, "abc80kb", __FILE__), | |
| 196 | 194 | m_maincpu(*this, I8048_TAG) |
| 197 | 195 | { |
| 198 | 196 | } |
| r22095 | r22096 | |
|---|---|---|
| 39 | 39 | // device-level overrides |
| 40 | 40 | virtual void device_start(); |
| 41 | 41 | virtual void device_reset(); |
| 42 | virtual void device_config_complete() { m_shortname = "wangpc_lic"; } | |
| 43 | ||
| 42 | ||
| 44 | 43 | // device_wangpcbus_card_interface overrides |
| 45 | 44 | virtual UINT16 wangpcbus_mrdc_r(address_space &space, offs_t offset, UINT16 mem_mask); |
| 46 | 45 | virtual void wangpcbus_amwc_w(address_space &space, offs_t offset, UINT16 mem_mask, UINT16 data); |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | //------------------------------------------------- |
| 39 | 39 | |
| 40 | 40 | c64_epyx_fast_load_cartridge_device::c64_epyx_fast_load_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 41 | device_t(mconfig, C64_EPYX_FAST_LOAD, "C64 Epyx Fast Load cartridge", tag, owner, clock), | |
| 41 | device_t(mconfig, C64_EPYX_FAST_LOAD, "C64 Epyx Fast Load cartridge", tag, owner, clock, "c64_epyx_fast_load", __FILE__), | |
| 42 | 42 | device_c64_expansion_card_interface(mconfig, *this) |
| 43 | 43 | { |
| 44 | 44 | } |
| r22095 | r22096 | |
|---|---|---|
| 20 | 20 | public: |
| 21 | 21 | // construction/destruction |
| 22 | 22 | isa8_com_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 23 | isa8_com_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 23 | isa8_com_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); | |
| 24 | 24 | |
| 25 | 25 | // optional information overrides |
| 26 | 26 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
| 30 | 30 | // device-level overrides |
| 31 | 31 | virtual void device_start(); |
| 32 | 32 | virtual void device_reset(); |
| 33 | virtual void device_config_complete() { m_shortname = "isa_com"; } | |
| 34 | 33 | }; |
| 35 | 34 | |
| 36 | 35 | |
| r22095 | r22096 | |
| 48 | 47 | |
| 49 | 48 | // optional information overrides |
| 50 | 49 | virtual machine_config_constructor device_mconfig_additions() const; |
| 51 | virtual void device_config_complete() { m_shortname = "isa_com_at"; } | |
| 52 | 50 | }; |
| 53 | 51 | |
| 54 | 52 |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_epyx_fast_load"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| r22095 | r22096 | |
|---|---|---|
| 48 | 48 | //------------------------------------------------- |
| 49 | 49 | |
| 50 | 50 | vic20_megacart_device::vic20_megacart_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 51 | : device_t(mconfig, VIC20_MEGACART, "Mega-Cart", tag, owner, clock), | |
| 51 | : device_t(mconfig, VIC20_MEGACART, "Mega-Cart", tag, owner, clock, "megacart", __FILE__), | |
| 52 | 52 | device_vic20_expansion_card_interface(mconfig, *this), |
| 53 | 53 | device_nvram_interface(mconfig, *this), |
| 54 | 54 | m_nvram_en(0) |
| r22095 | r22096 | |
|---|---|---|
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | stereo_fx_device::stereo_fx_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 194 | device_t(mconfig, ISA8_STEREO_FX, "ATI Stereo F/X Audio Adapter", tag, owner, clock), | |
| 194 | device_t(mconfig, ISA8_STEREO_FX, "ATI Stereo F/X Audio Adapter", tag, owner, clock, "stereo_fx", __FILE__), | |
| 195 | 195 | device_isa8_card_interface(mconfig, *this), |
| 196 | 196 | m_dacl(*this, "dacl"), |
| 197 | 197 | m_dacr(*this, "dacr"), |
| r22095 | r22096 | |
| 201 | 201 | m_t1 = 0; |
| 202 | 202 | } |
| 203 | 203 | |
| 204 | void stereo_fx_device::device_config_complete() | |
| 205 | { | |
| 206 | m_shortname = "stereo_fx"; | |
| 207 | } | |
| 208 | ||
| 209 | 204 | void stereo_fx_device::device_start() |
| 210 | 205 | { |
| 211 | 206 | set_isa_device(); |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_exos_cartridge_device::c64_exos_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_EXOS, "C64 ExOS cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_EXOS, "C64 ExOS cartridge", tag, owner, clock, "c64_exos", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 39 | 39 | // device-level overrides |
| 40 | 40 | virtual void device_start(); |
| 41 | 41 | virtual void device_reset(); |
| 42 | virtual void device_config_complete() { m_shortname = "megacart"; } | |
| 43 | 42 | |
| 44 | 43 | // device_nvram_interface overrides |
| 45 | 44 | virtual void nvram_default() { } |
| r22095 | r22096 | |
|---|---|---|
| 54 | 54 | // device-level overrides |
| 55 | 55 | virtual void device_start(); |
| 56 | 56 | virtual void device_reset(); |
| 57 | virtual void device_config_complete(); | |
| 58 | 57 | |
| 59 | 58 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| 60 | 59 | UINT8 dack_r(int line); |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_exos"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | |
| 39 | 38 | // device_c64_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 47 | 47 | |
| 48 | 48 | |
| 49 | 49 | //------------------------------------------------- |
| 50 | // device_config_complete - perform any | |
| 51 | // operations now that the configuration is | |
| 52 | // complete | |
| 53 | //------------------------------------------------- | |
| 54 | ||
| 55 | void base_d9060_device::device_config_complete() | |
| 56 | { | |
| 57 | switch (m_variant) | |
| 58 | { | |
| 59 | default: | |
| 60 | case TYPE_9060: | |
| 61 | m_shortname = "d9060"; | |
| 62 | break; | |
| 63 | ||
| 64 | case TYPE_9090: | |
| 65 | m_shortname = "d9090"; | |
| 66 | break; | |
| 67 | } | |
| 68 | } | |
| 69 | ||
| 70 | ||
| 71 | //------------------------------------------------- | |
| 72 | 50 | // ROM( d9060 ) |
| 73 | 51 | //------------------------------------------------- |
| 74 | 52 | |
| r22095 | r22096 | |
| 511 | 489 | // base_d9060_device - constructor |
| 512 | 490 | //------------------------------------------------- |
| 513 | 491 | |
| 514 | base_d9060_device::base_d9060_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) | |
| 515 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 492 | base_d9060_device::base_d9060_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source) | |
| 493 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 516 | 494 | device_ieee488_interface(mconfig, *this), |
| 517 | 495 | m_maincpu(*this, M6502_DOS_TAG), |
| 518 | 496 | m_hdccpu(*this, M6502_HDC_TAG), |
| r22095 | r22096 | |
| 534 | 512 | //------------------------------------------------- |
| 535 | 513 | |
| 536 | 514 | d9060_device::d9060_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 537 | : base_d9060_device(mconfig, D9060, "D9060", tag, owner, clock, TYPE_9060) { } | |
| 515 | : base_d9060_device(mconfig, D9060, "D9060", tag, owner, clock, TYPE_9060, "d9060", __FILE__) { } | |
| 538 | 516 | |
| 539 | 517 | |
| 540 | 518 | //------------------------------------------------- |
| r22095 | r22096 | |
| 542 | 520 | //------------------------------------------------- |
| 543 | 521 | |
| 544 | 522 | d9090_device::d9090_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 545 | : base_d9060_device(mconfig, D9090, "D9090", tag, owner, clock, TYPE_9090) { } | |
| 523 | : base_d9060_device(mconfig, D9090, "D9090", tag, owner, clock, TYPE_9090, "d9090", __FILE__) { } | |
| 546 | 524 | |
| 547 | 525 | |
| 548 | 526 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | //************************************************************************** |
| 34 | 34 | |
| 35 | 35 | a2bus_lang_device::a2bus_lang_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 36 | device_t(mconfig, A2BUS_LANG, "Apple II Language Card", tag, owner, clock), | |
| 36 | device_t(mconfig, A2BUS_LANG, "Apple II Language Card", tag, owner, clock, "a2lang", __FILE__), | |
| 37 | 37 | device_a2bus_card_interface(mconfig, *this) |
| 38 | 38 | { |
| 39 | m_shortname = "a2lang"; | |
| 40 | 39 | } |
| 41 | 40 | |
| 42 | a2bus_lang_device::a2bus_lang_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 43 | device_t(mconfig, type, name, tag, owner, clock), | |
| 41 | a2bus_lang_device::a2bus_lang_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) : | |
| 42 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 44 | 43 | device_a2bus_card_interface(mconfig, *this) |
| 45 | 44 | { |
| 46 | m_shortname = "a2lang"; | |
| 47 | 45 | } |
| 48 | 46 | |
| 49 | 47 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 16 | 16 | const device_type SATURN_ROM = &device_creator<saturn_rom_device>; |
| 17 | 17 | |
| 18 | 18 | |
| 19 | saturn_rom_device::saturn_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 20 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 19 | saturn_rom_device::saturn_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) | |
| 20 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 21 | 21 | device_sat_cart_interface( mconfig, *this ) |
| 22 | 22 | { |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | saturn_rom_device::saturn_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 26 | : device_t(mconfig, SATURN_ROM, "Saturn ROM Carts", tag, owner, clock), | |
| 26 | : device_t(mconfig, SATURN_ROM, "Saturn ROM Carts", tag, owner, clock, "sat_rom", __FILE__), | |
| 27 | 27 | device_sat_cart_interface( mconfig, *this ) |
| 28 | 28 | { |
| 29 | 29 | m_cart_type = 0xff; // actually not clear if ROM carts have a type ID like DRAM/BRAM carts |
| r22095 | r22096 | |
|---|---|---|
| 88 | 88 | //------------------------------------------------- |
| 89 | 89 | |
| 90 | 90 | epson_pf10_device::epson_pf10_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 91 | device_t(mconfig, EPSON_PF10, "EPSON PF-10 floppy drive", tag, owner, clock), | |
| 91 | device_t(mconfig, EPSON_PF10, "EPSON PF-10 floppy drive", tag, owner, clock, "epson_pf10", __FILE__), | |
| 92 | 92 | device_epson_sio_interface(mconfig, *this), |
| 93 | 93 | m_cpu(*this, "maincpu"), |
| 94 | 94 | m_fdc(*this, "upd765a"), |
| r22095 | r22096 | |
|---|---|---|
| 51 | 51 | }; |
| 52 | 52 | |
| 53 | 53 | // construction/destruction |
| 54 | base_d9060_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); | |
| 54 | base_d9060_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source); | |
| 55 | 55 | |
| 56 | 56 | // optional information overrides |
| 57 | 57 | virtual const rom_entry *device_rom_region() const; |
| r22095 | r22096 | |
| 76 | 76 | // device-level overrides |
| 77 | 77 | virtual void device_start(); |
| 78 | 78 | virtual void device_reset(); |
| 79 | virtual void device_config_complete(); | |
| 80 | 79 | |
| 81 | 80 | // device_ieee488_interface overrides |
| 82 | 81 | void ieee488_atn(int state); |
| r22095 | r22096 | |
|---|---|---|
| 174 | 174 | //------------------------------------------------- |
| 175 | 175 | |
| 176 | 176 | c64_xl80_device::c64_xl80_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 177 | device_t(mconfig, C64_XL80, "XL 80", tag, owner, clock), | |
| 177 | device_t(mconfig, C64_XL80, "XL 80", tag, owner, clock, "c64_xl80", __FILE__), | |
| 178 | 178 | device_c64_expansion_card_interface(mconfig, *this), |
| 179 | 179 | m_crtc(*this, HD46505SP_TAG), |
| 180 | 180 | m_char_rom(*this, HD46505SP_TAG) |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | public: |
| 24 | 24 | // construction/destruction |
| 25 | 25 | a2bus_lang_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 26 | a2bus_lang_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 26 | a2bus_lang_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); | |
| 27 | 27 | |
| 28 | 28 | protected: |
| 29 | 29 | virtual void device_start(); |
| r22095 | r22096 | |
|---|---|---|
| 11 | 11 | { |
| 12 | 12 | public: |
| 13 | 13 | // construction/destruction |
| 14 | saturn_rom_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 14 | saturn_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); | |
| 15 | 15 | saturn_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 16 | 16 | |
| 17 | 17 | // device-level overrides |
| 18 | 18 | virtual void device_start(); |
| 19 | 19 | virtual void device_reset(); |
| 20 | virtual void device_config_complete() { m_shortname = "sat_rom"; } | |
| 21 | 20 | |
| 22 | 21 | // reading and writing |
| 23 | 22 | virtual DECLARE_READ32_MEMBER(read_rom); |
| r22095 | r22096 | |
|---|---|---|
| 41 | 41 | //------------------------------------------------- |
| 42 | 42 | |
| 43 | 43 | kc_8k_device::kc_8k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 44 | : device_t(mconfig, KC_STANDARD, "Standard", tag, owner, clock), | |
| 44 | : device_t(mconfig, KC_STANDARD, "Standard", tag, owner, clock, "kc_8k", __FILE__), | |
| 45 | 45 | device_kcexp_interface( mconfig, *this ) |
| 46 | 46 | { |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | kc_8k_device::kc_8k_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 50 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 49 | kc_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) | |
| 50 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 51 | 51 | device_kcexp_interface( mconfig, *this ) |
| 52 | 52 | { |
| 53 | 53 | } |
| r22095 | r22096 | |
| 141 | 141 | //------------------------------------------------- |
| 142 | 142 | |
| 143 | 143 | kc_m006_device::kc_m006_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 144 | : kc_8k_device(mconfig, KC_M006, "M006 BASIC", tag, owner, clock) | |
| 144 | : kc_8k_device(mconfig, KC_M006, "M006 BASIC", tag, owner, clock, "kc_m006", __FILE__) | |
| 145 | 145 | { |
| 146 | 146 | } |
| 147 | 147 | |
| r22095 | r22096 | |
| 183 | 183 | //------------------------------------------------- |
| 184 | 184 | |
| 185 | 185 | kc_m033_device::kc_m033_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 186 | : kc_8k_device(mconfig, KC_M033, "M033 TypeStar", tag, owner, clock) | |
| 186 | : kc_8k_device(mconfig, KC_M033, "M033 TypeStar", tag, owner, clock, "kc_m033", __FILE__) | |
| 187 | 187 | { |
| 188 | 188 | } |
| 189 | 189 |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | |
| 38 | 38 | protected: |
| 39 | 39 | // device-level overrides |
| 40 | virtual void device_config_complete() { m_shortname = "epson_pf10"; } | |
| 41 | 40 | virtual void device_start(); |
| 42 | 41 | |
| 43 | 42 | // device_epson_sio_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 41 | 41 | |
| 42 | 42 | protected: |
| 43 | 43 | // device-level overrides |
| 44 | virtual void device_config_complete() { m_shortname = "c64_xl80"; } | |
| 45 | 44 | virtual void device_start(); |
| 46 | 45 | virtual void device_reset(); |
| 47 | 46 |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | kc_8k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | kc_8k_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | |
| r22095 | r22096 | |
| 27 | 27 | // device-level overrides |
| 28 | 28 | virtual void device_start(); |
| 29 | 29 | virtual void device_reset(); |
| 30 | virtual void device_config_complete() { m_shortname = "kc_8k"; } | |
| 31 | 30 | virtual const rom_entry *device_rom_region() const; |
| 32 | 31 | |
| 33 | 32 | // kcexp_interface overrides |
| r22095 | r22096 | |
| 58 | 57 | kc_m006_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 59 | 58 | |
| 60 | 59 | protected: |
| 61 | // device-level overrides | |
| 62 | virtual void device_config_complete() { m_shortname = "kc_m006"; } | |
| 63 | ||
| 64 | 60 | // kcexp_interface overrides |
| 65 | 61 | virtual UINT8 module_id_r() { return 0xfc; } |
| 66 | 62 | virtual void control_w(UINT8 data); |
| r22095 | r22096 | |
| 80 | 76 | protected: |
| 81 | 77 | // device-level overrides |
| 82 | 78 | virtual void device_reset(); |
| 83 | virtual void device_config_complete() { m_shortname = "kc_m033"; } | |
| 84 | 79 | |
| 85 | 80 | // kcexp_interface overrides |
| 86 | 81 | virtual UINT8 module_id_r() { return 0x01; } |
| r22095 | r22096 | |
|---|---|---|
| 101 | 101 | }; |
| 102 | 102 | |
| 103 | 103 | psxcd_device::psxcd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 104 | cdrom_image_device(mconfig, PSXCD, "Cdrom", tag, owner, clock), | |
| 104 | cdrom_image_device(mconfig, PSXCD, "Cdrom", tag, owner, clock, "psx_cd", __FILE__), | |
| 105 | 105 | m_irq_handler(*this) |
| 106 | 106 | { |
| 107 | 107 | static_set_static_config(*this, &psx_cdrom); |
| r22095 | r22096 | |
|---|---|---|
| 124 | 124 | //------------------------------------------------- |
| 125 | 125 | |
| 126 | 126 | mackbd_device::mackbd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 127 | : device_t(mconfig, MACKBD, "Macintosh keyboard", tag, owner, clock), | |
| 127 | : device_t(mconfig, MACKBD, "Macintosh keyboard", tag, owner, clock, "mackbd", __FILE__), | |
| 128 | 128 | m_maincpu(*this, MACKBD_CPU_TAG) |
| 129 | 129 | { |
| 130 | 130 | } |
| r22095 | r22096 | |
| 147 | 147 | { |
| 148 | 148 | } |
| 149 | 149 | |
| 150 | void mackbd_device::device_config_complete() | |
| 151 | { | |
| 152 | m_shortname = "mackbd"; | |
| 153 | } | |
| 154 | ||
| 155 | 150 | READ8_MEMBER(mackbd_device::p0_r) |
| 156 | 151 | { |
| 157 | 152 | return 0x20; // 0x20 indicates we're a keyboard rather than the keypad |
| r22095 | r22096 | |
|---|---|---|
| 53 | 53 | //------------------------------------------------- |
| 54 | 54 | |
| 55 | 55 | vic1010_device::vic1010_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 56 | : device_t(mconfig, VIC1010, "VIC1010", tag, owner, clock), | |
| 56 | : device_t(mconfig, VIC1010, "VIC1010", tag, owner, clock, "vic1010", __FILE__), | |
| 57 | 57 | device_vic20_expansion_card_interface(mconfig, *this), |
| 58 | 58 | m_slot1(*this, "slot1"), |
| 59 | 59 | m_slot2(*this, "slot2"), |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | const device_type MD_SEPROM_MM96 = &device_creator<md_seprom_mm96_device>; |
| 36 | 36 | |
| 37 | 37 | // Sampras, Super Skidmarks? |
| 38 | md_jcart_device::md_jcart_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 39 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 38 | md_jcart_device::md_jcart_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) | |
| 39 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 40 | 40 | device_md_cart_interface( mconfig, *this ), |
| 41 | 41 | m_jcart3(*this, "JCART3"), |
| 42 | 42 | m_jcart4(*this, "JCART4") |
| r22095 | r22096 | |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | md_jcart_device::md_jcart_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 47 | : device_t(mconfig, MD_JCART, "MD J-Cart games", tag, owner, clock), | |
| 47 | : device_t(mconfig, MD_JCART, "MD J-Cart games", tag, owner, clock, "md_jcart", __FILE__), | |
| 48 | 48 | device_md_cart_interface( mconfig, *this ), |
| 49 | 49 | m_jcart3(*this, "JCART3"), |
| 50 | 50 | m_jcart4(*this, "JCART4") |
| r22095 | r22096 | |
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | // Micro Machines 2, Micro Machines Military |
| 55 | md_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) | |
| 56 | : md_jcart_device(mconfig, type, name, tag, owner, clock), | |
| 55 | md_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) | |
| 56 | : md_jcart_device(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 57 | 57 | m_i2cmem(*this, "i2cmem") |
| 58 | 58 | { |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | md_seprom_codemast_device::md_seprom_codemast_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 62 | : md_jcart_device(mconfig, MD_SEPROM_CODEMAST, "MD J-Cart games + SEPROM", tag, owner, clock), | |
| 62 | : md_jcart_device(mconfig, MD_SEPROM_CODEMAST, "MD J-Cart games + SEPROM", tag, owner, clock, "md_seprom_codemast", __FILE__), | |
| 63 | 63 | m_i2cmem(*this, "i2cmem") |
| 64 | 64 | { |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | // Micro Machines 96 |
| 68 | 68 | md_seprom_mm96_device::md_seprom_mm96_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 69 | : md_seprom_codemast_device(mconfig, MD_SEPROM_MM96, "MD Micro Machine 96", tag, owner, clock) | |
| 69 | : md_seprom_codemast_device(mconfig, MD_SEPROM_MM96, "MD Micro Machine 96", tag, owner, clock, "md_seprom_mm96", __FILE__) | |
| 70 | 70 | { |
| 71 | 71 | } |
| 72 | 72 |
| r22095 | r22096 | |
|---|---|---|
| 210 | 210 | //------------------------------------------------- |
| 211 | 211 | |
| 212 | 212 | interpod_device::interpod_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 213 | : device_t(mconfig, INTERPOD, "Interpod", tag, owner, clock), | |
| 213 | : device_t(mconfig, INTERPOD, "Interpod", tag, owner, clock, "interpod", __FILE__), | |
| 214 | 214 | device_cbm_iec_interface(mconfig, *this), |
| 215 | 215 | m_maincpu(*this, R6502_TAG), |
| 216 | 216 | m_via(*this, R6522_TAG), |
| r22095 | r22096 | |
| 221 | 221 | } |
| 222 | 222 | |
| 223 | 223 | //------------------------------------------------- |
| 224 | // device_config_complete - perform any | |
| 225 | // operations now that the configuration is | |
| 226 | // complete | |
| 227 | //------------------------------------------------- | |
| 228 | ||
| 229 | void interpod_device::device_config_complete() | |
| 230 | { | |
| 231 | m_shortname = "interpod"; | |
| 232 | } | |
| 233 | ||
| 234 | ||
| 235 | //------------------------------------------------- | |
| 236 | 224 | // device_start - device-specific startup |
| 237 | 225 | //------------------------------------------------- |
| 238 | 226 |
| r22095 | r22096 | |
|---|---|---|
| 50 | 50 | // device-level overrides |
| 51 | 51 | virtual void device_start(); |
| 52 | 52 | virtual void device_reset(); |
| 53 | virtual void device_config_complete(); | |
| 54 | 53 | virtual machine_config_constructor device_mconfig_additions() const; |
| 55 | 54 | virtual const rom_entry *device_rom_region() const; |
| 56 | 55 |
| r22095 | r22096 | |
|---|---|---|
| 45 | 45 | |
| 46 | 46 | protected: |
| 47 | 47 | // device-level overrides |
| 48 | virtual void device_config_complete() { m_shortname = "vic1010"; } | |
| 49 | 48 | virtual void device_start(); |
| 50 | 49 | virtual void device_reset(); |
| 51 | 50 |
| r22095 | r22096 | |
|---|---|---|
| 16 | 16 | { |
| 17 | 17 | public: |
| 18 | 18 | // construction/destruction |
| 19 | md_jcart_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 19 | md_jcart_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); | |
| 20 | 20 | md_jcart_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 21 | 21 | |
| 22 | 22 | // device-level overrides |
| 23 | 23 | virtual void device_start(); |
| 24 | 24 | virtual void device_reset(); |
| 25 | virtual void device_config_complete() { m_shortname = "md_jcart"; } | |
| 26 | 25 | virtual ioport_constructor device_input_ports() const; |
| 27 | 26 | |
| 28 | 27 | // reading and writing |
| r22095 | r22096 | |
| 42 | 41 | { |
| 43 | 42 | public: |
| 44 | 43 | // construction/destruction |
| 45 | md_seprom_codemast_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 44 | 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); | |
| 46 | 45 | md_seprom_codemast_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 47 | 46 | |
| 48 | 47 | // device-level overrides |
| 49 | 48 | virtual void device_start(); |
| 50 | 49 | virtual void device_reset(); |
| 51 | virtual void device_config_complete() { m_shortname = "md_seprom_codemast"; } | |
| 52 | 50 | virtual machine_config_constructor device_mconfig_additions() const; |
| 53 | 51 | |
| 54 | 52 | // reading and writing |
| r22095 | r22096 | |
| 71 | 69 | md_seprom_mm96_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 72 | 70 | |
| 73 | 71 | // device-level overrides |
| 74 | virtual void device_config_complete() { m_shortname = "md_seprom_mm96"; } | |
| 75 | 72 | virtual machine_config_constructor device_mconfig_additions() const; |
| 76 | 73 | }; |
| 77 | 74 |
| r22095 | r22096 | |
|---|---|---|
| 66 | 66 | // device-level overrides |
| 67 | 67 | virtual void device_start(); |
| 68 | 68 | virtual void device_reset(); |
| 69 | virtual void device_config_complete(); | |
| 70 | 69 | |
| 71 | 70 | required_device<cpu_device> m_maincpu; |
| 72 | 71 | required_device<via6522_device> m_via; |
| r22095 | r22096 | |
|---|---|---|
| 119 | 119 | //------------------------------------------------- |
| 120 | 120 | |
| 121 | 121 | pc9801_26_device::pc9801_26_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 122 | : device_t(mconfig, PC9801_26, "pc9801_26", tag, owner, clock), | |
| 122 | : device_t(mconfig, PC9801_26, "pc9801_26", tag, owner, clock, "pc9801_26", __FILE__), | |
| 123 | 123 | // m_maincpu(*owner, "maincpu"), |
| 124 | 124 | m_opn(*this, "opn") |
| 125 | 125 | { |
| r22095 | r22096 | |
|---|---|---|
| 235 | 235 | //------------------------------------------------- |
| 236 | 236 | |
| 237 | 237 | trs80m2_keyboard_device::trs80m2_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 238 | : device_t(mconfig, TRS80M2_KEYBOARD, "TRS-80 Model II Keyboard", tag, owner, clock), | |
| 238 | : device_t(mconfig, TRS80M2_KEYBOARD, "TRS-80 Model II Keyboard", tag, owner, clock, "trs80m2kb", __FILE__), | |
| 239 | 239 | m_maincpu(*this, I8021_TAG), |
| 240 | 240 | m_y0(*this, "Y0"), |
| 241 | 241 | m_y1(*this, "Y1"), |
| r22095 | r22096 | |
| 264 | 264 | |
| 265 | 265 | void trs80m2_keyboard_device::device_config_complete() |
| 266 | 266 | { |
| 267 | m_shortname = "trs80m2kb"; | |
| 268 | ||
| 269 | 267 | // inherit a copy of the static data |
| 270 | 268 | const trs80m2_keyboard_interface *intf = reinterpret_cast<const trs80m2_keyboard_interface *>(static_config()); |
| 271 | 269 | if (intf != NULL) |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | cbm2_standard_cartridge_device::cbm2_standard_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, CBM2_STD, "CBM-II standard cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, CBM2_STD, "CBM-II standard cartridge", tag, owner, clock, "cbm2_standard", __FILE__), | |
| 32 | 32 | device_cbm2_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 42 | 42 | virtual void device_validity_check(validity_checker &valid) const; |
| 43 | 43 | virtual void device_start(); |
| 44 | 44 | virtual void device_reset(); |
| 45 | virtual void device_config_complete() { m_shortname = "pc9801_26"; } | |
| 46 | 45 | void install_device(offs_t start, offs_t end, offs_t mask, offs_t mirror, read8_delegate rhandler, write8_delegate whandler); |
| 47 | 46 | |
| 48 | 47 | private: |
| r22095 | r22096 | |
|---|---|---|
| 185 | 185 | } |
| 186 | 186 | |
| 187 | 187 | aha1542_device::aha1542_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 188 | device_t(mconfig, AHA1542, "AHA1542 SCSI Controller", tag, owner, clock), | |
| 188 | device_t(mconfig, AHA1542, "AHA1542 SCSI Controller", tag, owner, clock, "aha1542", __FILE__ ), | |
| 189 | 189 | device_isa16_card_interface(mconfig, *this) |
| 190 | 190 | { |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | void aha1542_device::device_config_complete() | |
| 194 | { | |
| 195 | m_shortname = "aha1542"; | |
| 196 | } | |
| 197 | ||
| 198 | 193 | void aha1542_device::device_start() |
| 199 | 194 | { |
| 200 | 195 | set_isa_device(); |
| r22095 | r22096 | |
|---|---|---|
| 34 | 34 | |
| 35 | 35 | protected: |
| 36 | 36 | // device-level overrides |
| 37 | virtual void device_config_complete() { m_shortname = "cbm2_standard"; } | |
| 38 | 37 | virtual void device_start(); |
| 39 | 38 | |
| 40 | 39 | // device_cbm2_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | // device-level overrides |
| 45 | 45 | virtual void device_start(); |
| 46 | 46 | virtual void device_reset(); |
| 47 | virtual void device_config_complete(); | |
| 48 | 47 | |
| 49 | 48 | // device_isa16_card_interface |
| 50 | 49 |
| r22095 | r22096 | |
|---|---|---|
| 81 | 81 | //------------------------------------------------- |
| 82 | 82 | |
| 83 | 83 | c64_reu_cartridge_device::c64_reu_cartridge_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, int jp1, size_t ram_size) : |
| 84 | device_t(mconfig, type, name, tag, owner, clock), | |
| 84 | device_t(mconfig, type, name, tag, owner, clock, "c64_reu", __FILE__), | |
| 85 | 85 | device_c64_expansion_card_interface(mconfig, *this), |
| 86 | 86 | m_dmac(*this, MOS8726R1_TAG), |
| 87 | 87 | m_variant(variant), |
| r22095 | r22096 | |
|---|---|---|
| 46 | 46 | }; |
| 47 | 47 | |
| 48 | 48 | // device-level overrides |
| 49 | virtual void device_config_complete() { m_shortname = "c64_reu"; } | |
| 50 | 49 | virtual void device_start(); |
| 51 | 50 | virtual void device_reset(); |
| 52 | 51 |
| r22095 | r22096 | |
|---|---|---|
| 53 | 53 | //------------------------------------------------- |
| 54 | 54 | |
| 55 | 55 | comx_thm_device::comx_thm_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 56 | device_t(mconfig, COMX_THM, "COMX-35 Thermal Printer Card", tag, owner, clock), | |
| 56 | device_t(mconfig, COMX_THM, "COMX-35 Thermal Printer Card", tag, owner, clock, "comx_thm", __FILE__), | |
| 57 | 57 | device_comx_expansion_card_interface(mconfig, *this), |
| 58 | 58 | m_rom(*this, "c000") |
| 59 | 59 | { |
| r22095 | r22096 | |
|---|---|---|
| 60 | 60 | //------------------------------------------------- |
| 61 | 61 | |
| 62 | 62 | c64_vizastar_cartridge_device::c64_vizastar_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 63 | device_t(mconfig, C64_VIZASTAR, "VizaStar 64 XL4", tag, owner, clock), | |
| 63 | device_t(mconfig, C64_VIZASTAR, "VizaStar 64 XL4", tag, owner, clock, "c64_vizastar", __FILE__), | |
| 64 | 64 | device_c64_expansion_card_interface(mconfig, *this) |
| 65 | 65 | { |
| 66 | 66 | } |
| r22095 | r22096 | |
|---|---|---|
| 159 | 159 | return MACHINE_CONFIG_NAME( southbridge ); |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | southbridge_device::southbridge_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 163 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 162 | southbridge_device::southbridge_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) | |
| 163 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 164 | 164 | m_maincpu(*this, ":maincpu"), |
| 165 | 165 | m_pic8259_master(*this, "pic8259_master"), |
| 166 | 166 | m_pic8259_slave(*this, "pic8259_slave"), |
| r22095 | r22096 | |
|---|---|---|
| 122 | 122 | //------------------------------------------------- |
| 123 | 123 | |
| 124 | 124 | sa1403d_device::sa1403d_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 125 | : scsihd_device(mconfig, SA1403D, "Shugart SA1403D", tag, owner, clock) | |
| 125 | : scsihd_device(mconfig, SA1403D, "Shugart SA1403D", tag, owner, clock, "sa1403d", __FILE__) | |
| 126 | 126 | { |
| 127 | 127 | } |
| 128 | 128 |
| r22095 | r22096 | |
|---|---|---|
| 98 | 98 | //------------------------------------------------- |
| 99 | 99 | |
| 100 | 100 | c64_16kb_cartridge_device::c64_16kb_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 101 | device_t(mconfig, C64_16KB, "C64 16KB EPROM cartridge", tag, owner, clock), | |
| 101 | device_t(mconfig, C64_16KB, "C64 16KB EPROM cartridge", tag, owner, clock, "c64_16kb", __FILE__), | |
| 102 | 102 | device_c64_expansion_card_interface(mconfig, *this), |
| 103 | 103 | m_sw1(*this, "SW1") |
| 104 | 104 | { |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | //************************************************************************** |
| 28 | 28 | |
| 29 | 29 | a2eaux_ramworks3_device::a2eaux_ramworks3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 30 | device_t(mconfig, A2EAUX_RAMWORKS3, "Applied Engineering RamWorks III", tag, owner, clock), | |
| 30 | device_t(mconfig, A2EAUX_RAMWORKS3, "Applied Engineering RamWorks III", tag, owner, clock, "a2erwks3", __FILE__), | |
| 31 | 31 | device_a2eauxslot_card_interface(mconfig, *this) |
| 32 | 32 | { |
| 33 | m_shortname = "a2erwks3"; | |
| 34 | 33 | } |
| 35 | 34 | |
| 36 | a2eaux_ramworks3_device::a2eaux_ramworks3_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 37 | device_t(mconfig, type, name, tag, owner, clock), | |
| 35 | a2eaux_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) : | |
| 36 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 38 | 37 | device_a2eauxslot_card_interface(mconfig, *this) |
| 39 | 38 | { |
| 40 | m_shortname = "a2erwks3"; | |
| 41 | 39 | } |
| 42 | 40 | |
| 43 | 41 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | // device-level overrides |
| 39 | 39 | virtual void device_start(); |
| 40 | 40 | virtual void device_reset(); |
| 41 | virtual void device_config_complete() { m_shortname = "comx_thm"; } | |
| 42 | 41 | |
| 43 | 42 | // device_comx_expansion_card_interface overrides |
| 44 | 43 | virtual UINT8 comx_mrd_r(address_space &space, offs_t offset, int *extrom); |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_vizastar"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | |
| 39 | 38 | // device_c64_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 62 | 62 | { |
| 63 | 63 | public: |
| 64 | 64 | // construction/destruction |
| 65 | southbridge_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 65 | southbridge_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); | |
| 66 | 66 | |
| 67 | 67 | // optional information overrides |
| 68 | 68 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 47 | 47 | //------------------------------------------------- |
| 48 | 48 | |
| 49 | 49 | iq151_disc2_device::iq151_disc2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 50 | : device_t(mconfig, IQ151_DISC2, "IQ151 Disc2", tag, owner, clock), | |
| 50 | : device_t(mconfig, IQ151_DISC2, "IQ151 Disc2", tag, owner, clock, "iq151_disc2", __FILE__), | |
| 51 | 51 | device_iq151cart_interface( mconfig, *this ), |
| 52 | 52 | m_fdc(*this, "fdc") |
| 53 | 53 | { |
| r22095 | r22096 | |
|---|---|---|
| 29 | 29 | |
| 30 | 30 | virtual void ExecCommand( int *transferLength ); |
| 31 | 31 | virtual void WriteData( UINT8 *data, int dataLength ); |
| 32 | ||
| 33 | protected: | |
| 34 | // device-level overrides | |
| 35 | virtual void device_config_complete() { m_shortname = "sa1403d"; } | |
| 36 | 32 | }; |
| 37 | 33 | |
| 38 | 34 |
| r22095 | r22096 | |
|---|---|---|
| 39 | 39 | |
| 40 | 40 | protected: |
| 41 | 41 | // device-level overrides |
| 42 | virtual void device_config_complete() { m_shortname = "c64_16kb"; } | |
| 43 | 42 | virtual void device_start(); |
| 44 | 43 | virtual void device_reset(); |
| 45 | 44 |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | public: |
| 24 | 24 | // construction/destruction |
| 25 | 25 | a2eaux_ramworks3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 26 | a2eaux_ramworks3_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 26 | 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); | |
| 27 | 27 | |
| 28 | 28 | protected: |
| 29 | 29 | virtual void device_start(); |
| r22095 | r22096 | |
|---|---|---|
| 31 | 31 | // device-level overrides |
| 32 | 32 | virtual void device_start(); |
| 33 | 33 | virtual void device_reset(); |
| 34 | virtual void device_config_complete() { m_shortname = "iq151_disc2"; } | |
| 35 | ||
| 34 | ||
| 36 | 35 | // iq151cart_interface overrides |
| 37 | 36 | virtual void read(offs_t offset, UINT8 &data); |
| 38 | 37 | virtual void io_read(offs_t offset, UINT8 &data); |
| r22095 | r22096 | |
|---|---|---|
| 178 | 178 | const device_type C1541_PROFESSIONAL_DOS_V1 = &device_creator<c1541_professional_dos_v1_device>; |
| 179 | 179 | const device_type C1541_PROLOGIC_DOS_CLASSIC = &device_creator<c1541_prologic_dos_classic_device>; |
| 180 | 180 | |
| 181 | ||
| 182 | 181 | //------------------------------------------------- |
| 183 | // device_config_complete - perform any | |
| 184 | // operations now that the configuration is | |
| 185 | // complete | |
| 186 | //------------------------------------------------- | |
| 187 | ||
| 188 | void base_c1541_device::device_config_complete() | |
| 189 | { | |
| 190 | switch (m_variant) | |
| 191 | { | |
| 192 | case TYPE_1540: | |
| 193 | m_shortname = "c1540"; | |
| 194 | break; | |
| 195 | ||
| 196 | default: | |
| 197 | case TYPE_1541: | |
| 198 | m_shortname = "c1541"; | |
| 199 | break; | |
| 200 | ||
| 201 | case TYPE_1541C: | |
| 202 | m_shortname = "c1541c"; | |
| 203 | break; | |
| 204 | ||
| 205 | case TYPE_1541II: | |
| 206 | m_shortname = "c1541ii"; | |
| 207 | break; | |
| 208 | ||
| 209 | case TYPE_SX1541: | |
| 210 | m_shortname = "sx1541"; | |
| 211 | break; | |
| 212 | ||
| 213 | case TYPE_FSD2: | |
| 214 | m_shortname = "fsd2"; | |
| 215 | break; | |
| 216 | ||
| 217 | case TYPE_CSD1: | |
| 218 | m_shortname = "csd1"; | |
| 219 | break; | |
| 220 | ||
| 221 | case TYPE_1541_DOLPHIN_DOS: | |
| 222 | m_shortname = "c1541dd"; | |
| 223 | break; | |
| 224 | ||
| 225 | case TYPE_1541_PROFESSIONAL_DOS_V1: | |
| 226 | m_shortname = "c1541pd"; | |
| 227 | break; | |
| 228 | ||
| 229 | case TYPE_1541_PROLOGIC_DOS_CLASSIC: | |
| 230 | m_shortname = "c1541pdc"; | |
| 231 | break; | |
| 232 | } | |
| 233 | } | |
| 234 | ||
| 235 | ||
| 236 | //------------------------------------------------- | |
| 237 | 182 | // ROM( c1540 ) |
| 238 | 183 | //------------------------------------------------- |
| 239 | 184 | |
| r22095 | r22096 | |
| 995 | 940 | // base_c1541_device - constructor |
| 996 | 941 | //------------------------------------------------- |
| 997 | 942 | |
| 998 | base_c1541_device:: base_c1541_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant) | |
| 999 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 943 | base_c1541_device:: base_c1541_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source) | |
| 944 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 1000 | 945 | device_cbm_iec_interface(mconfig, *this), |
| 1001 | 946 | device_c64_floppy_parallel_interface(mconfig, *this), |
| 1002 | 947 | m_maincpu(*this, M6502_TAG), |
| r22095 | r22096 | |
| 1017 | 962 | //------------------------------------------------- |
| 1018 | 963 | |
| 1019 | 964 | c1540_device::c1540_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1020 | : base_c1541_device(mconfig, C1540, "C1540", tag, owner, clock, TYPE_1540) { } | |
| 965 | : base_c1541_device(mconfig, C1540, "C1540", tag, owner, clock, TYPE_1540, "c1540", __FILE__) { } | |
| 1021 | 966 | |
| 1022 | 967 | |
| 1023 | 968 | //------------------------------------------------- |
| r22095 | r22096 | |
| 1025 | 970 | //------------------------------------------------- |
| 1026 | 971 | |
| 1027 | 972 | c1541_device::c1541_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1028 | : base_c1541_device(mconfig, C1541, "C1541", tag, owner, clock, TYPE_1541) { } | |
| 973 | : base_c1541_device(mconfig, C1541, "C1541", tag, owner, clock, TYPE_1541, "c1541", __FILE__) { } | |
| 1029 | 974 | |
| 1030 | 975 | |
| 1031 | 976 | //------------------------------------------------- |
| r22095 | r22096 | |
| 1033 | 978 | //------------------------------------------------- |
| 1034 | 979 | |
| 1035 | 980 | c1541c_device::c1541c_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1036 | : base_c1541_device(mconfig, C1541C, "C1541C", tag, owner, clock, TYPE_1541C) { } | |
| 981 | : base_c1541_device(mconfig, C1541C, "C1541C", tag, owner, clock, TYPE_1541C, "c1541c", __FILE__) { } | |
| 1037 | 982 | |
| 1038 | 983 | |
| 1039 | 984 | //------------------------------------------------- |
| r22095 | r22096 | |
| 1041 | 986 | //------------------------------------------------- |
| 1042 | 987 | |
| 1043 | 988 | c1541ii_device::c1541ii_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1044 | : base_c1541_device(mconfig, C1541II, "C1541-II", tag, owner, clock, TYPE_1541II) { } | |
| 989 | : base_c1541_device(mconfig, C1541II, "C1541-II", tag, owner, clock, TYPE_1541II, "c1541ii", __FILE__) { } | |
| 1045 | 990 | |
| 1046 | 991 | |
| 1047 | 992 | //------------------------------------------------- |
| r22095 | r22096 | |
| 1049 | 994 | //------------------------------------------------- |
| 1050 | 995 | |
| 1051 | 996 | sx1541_device::sx1541_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1052 | : base_c1541_device(mconfig, SX1541, "SX1541", tag, owner, clock, TYPE_SX1541) { } | |
| 997 | : base_c1541_device(mconfig, SX1541, "SX1541", tag, owner, clock, TYPE_SX1541, "sx1541", __FILE__) { } | |
| 1053 | 998 | |
| 1054 | 999 | |
| 1055 | 1000 | //------------------------------------------------- |
| r22095 | r22096 | |
| 1057 | 1002 | //------------------------------------------------- |
| 1058 | 1003 | |
| 1059 | 1004 | fsd2_device::fsd2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1060 | : base_c1541_device(mconfig, FSD2, "FSD-2", tag, owner, clock, TYPE_FSD2) { } | |
| 1005 | : base_c1541_device(mconfig, FSD2, "FSD-2", tag, owner, clock, TYPE_FSD2, "fsd2", __FILE__) { } | |
| 1061 | 1006 | |
| 1062 | 1007 | |
| 1063 | 1008 | //------------------------------------------------- |
| r22095 | r22096 | |
| 1065 | 1010 | //------------------------------------------------- |
| 1066 | 1011 | |
| 1067 | 1012 | csd1_device::csd1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1068 | : base_c1541_device(mconfig, CSD1, "CSD-1", tag, owner, clock, TYPE_CSD1) { } | |
| 1013 | : base_c1541_device(mconfig, CSD1, "CSD-1", tag, owner, clock, TYPE_CSD1, "csd1", __FILE__) { } | |
| 1069 | 1014 | |
| 1070 | 1015 | |
| 1071 | 1016 | //------------------------------------------------- |
| r22095 | r22096 | |
| 1073 | 1018 | //------------------------------------------------- |
| 1074 | 1019 | |
| 1075 | 1020 | c1541_dolphin_dos_device::c1541_dolphin_dos_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1076 | : base_c1541_device(mconfig, C1541_DOLPHIN_DOS, "C1541 Dolphin-DOS 2.0", tag, owner, clock, TYPE_1541_DOLPHIN_DOS) { } | |
| 1021 | : base_c1541_device(mconfig, C1541_DOLPHIN_DOS, "C1541 Dolphin-DOS 2.0", tag, owner, clock, TYPE_1541_DOLPHIN_DOS, "c1541dd", __FILE__) { } | |
| 1077 | 1022 | |
| 1078 | 1023 | |
| 1079 | 1024 | //------------------------------------------------- |
| r22095 | r22096 | |
| 1081 | 1026 | //------------------------------------------------- |
| 1082 | 1027 | |
| 1083 | 1028 | c1541_professional_dos_v1_device::c1541_professional_dos_v1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1084 | : base_c1541_device(mconfig, C1541_PROFESSIONAL_DOS_V1, "C1541 Professional-DOS v1", tag, owner, clock, TYPE_1541_PROFESSIONAL_DOS_V1) { } | |
| 1029 | : base_c1541_device(mconfig, C1541_PROFESSIONAL_DOS_V1, "C1541 Professional-DOS v1", tag, owner, clock, TYPE_1541_PROFESSIONAL_DOS_V1, "c1541pd", __FILE__) { } | |
| 1085 | 1030 | |
| 1086 | 1031 | |
| 1087 | 1032 | //------------------------------------------------- |
| r22095 | r22096 | |
| 1089 | 1034 | //------------------------------------------------- |
| 1090 | 1035 | |
| 1091 | 1036 | c1541_prologic_dos_classic_device::c1541_prologic_dos_classic_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 1092 | : base_c1541_device(mconfig, C1541_PROLOGIC_DOS_CLASSIC, "C1541 ProLogic-DOS Classic", tag, owner, clock, TYPE_1541_PROLOGIC_DOS_CLASSIC), | |
| 1037 | : base_c1541_device(mconfig, C1541_PROLOGIC_DOS_CLASSIC, "C1541 ProLogic-DOS Classic", tag, owner, clock, TYPE_1541_PROLOGIC_DOS_CLASSIC, "c1541pdc", __FILE__), | |
| 1093 | 1038 | m_pia(*this, MC6821_TAG), |
| 1094 | 1039 | m_centronics(*this, CENTRONICS_TAG), |
| 1095 | 1040 | m_mmu_rom(*this, "mmu") |
| r22095 | r22096 | |
|---|---|---|
| 129 | 129 | //------------------------------------------------- |
| 130 | 130 | |
| 131 | 131 | c64_maplin_midi_cartridge_device::c64_maplin_midi_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 132 | device_t(mconfig, C64_MIDI_MAPLIN, "C64 Maplin MIDI", tag, owner, clock), | |
| 132 | device_t(mconfig, C64_MIDI_MAPLIN, "C64 Maplin MIDI", tag, owner, clock, "c64_midimap", __FILE__), | |
| 133 | 133 | device_c64_expansion_card_interface(mconfig, *this), |
| 134 | 134 | m_acia(*this, MC6850_TAG), |
| 135 | 135 | m_mdout(*this, "mdout"), |
| r22095 | r22096 | |
|---|---|---|
| 227 | 227 | |
| 228 | 228 | |
| 229 | 229 | pc_kbd_microsoft_natural_device::pc_kbd_microsoft_natural_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 230 | : device_t(mconfig, PC_KBD_MICROSOFT_NATURAL, "Microsoft Natural Keyboard", tag, owner, clock ) | |
| 230 | : device_t(mconfig, PC_KBD_MICROSOFT_NATURAL, "Microsoft Natural Keyboard", tag, owner, clock, "ms_natural", __FILE__) | |
| 231 | 231 | , device_pc_kbd_interface(mconfig, *this) |
| 232 | 232 | , m_cpu(*this, "ms_natrl_cpu") |
| 233 | 233 | , m_p2_0(*this, "P2.0") |
| r22095 | r22096 | |
| 247 | 247 | , m_p1_6(*this, "P1.6") |
| 248 | 248 | , m_p1_7(*this, "P1.7") |
| 249 | 249 | { |
| 250 | m_shortname = "ms_natural"; | |
| 251 | 250 | } |
| 252 | 251 | |
| 253 | 252 |
| r22095 | r22096 | |
|---|---|---|
| 50 | 50 | //------------------------------------------------- |
| 51 | 51 | |
| 52 | 52 | c64_ocean_cartridge_device::c64_ocean_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 53 | device_t(mconfig, C64_OCEAN, "C64 Ocean cartridge", tag, owner, clock), | |
| 53 | device_t(mconfig, C64_OCEAN, "C64 Ocean cartridge", tag, owner, clock, "c64_ocean", __FILE__), | |
| 54 | 54 | device_c64_expansion_card_interface(mconfig, *this), |
| 55 | 55 | m_bank(0) |
| 56 | 56 | { |
| r22095 | r22096 | |
|---|---|---|
| 47 | 47 | { |
| 48 | 48 | public: |
| 49 | 49 | // construction/destruction |
| 50 | base_c1541_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant); | |
| 50 | base_c1541_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, UINT32 variant, const char *shortname, const char *source); | |
| 51 | 51 | |
| 52 | 52 | enum |
| 53 | 53 | { |
| r22095 | r22096 | |
| 84 | 84 | |
| 85 | 85 | protected: |
| 86 | 86 | // device-level overrides |
| 87 | virtual void device_config_complete(); | |
| 88 | 87 | virtual void device_start(); |
| 89 | 88 | virtual void device_reset(); |
| 90 | 89 |
| r22095 | r22096 | |
|---|---|---|
| 44 | 44 | |
| 45 | 45 | protected: |
| 46 | 46 | // device-level overrides |
| 47 | virtual void device_config_complete() { m_shortname = "c64_midimap"; } | |
| 48 | 47 | virtual void device_start(); |
| 49 | 48 | virtual void device_reset(); |
| 50 | 49 |
| r22095 | r22096 | |
|---|---|---|
| 183 | 183 | //------------------------------------------------- |
| 184 | 184 | |
| 185 | 185 | c64_multiscreen_cartridge_device::c64_multiscreen_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 186 | device_t(mconfig, C64_MULTISCREEN, "C64 Multiscreen cartridge", tag, owner, clock), | |
| 186 | device_t(mconfig, C64_MULTISCREEN, "C64 Multiscreen cartridge", tag, owner, clock, "c64_mscr", __FILE__), | |
| 187 | 187 | device_c64_expansion_card_interface(mconfig, *this) |
| 188 | 188 | { |
| 189 | 189 | } |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_ocean"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 |
| r22095 | r22096 | |
|---|---|---|
| 39 | 39 | //------------------------------------------------- |
| 40 | 40 | |
| 41 | 41 | coco_232_device::coco_232_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 42 | : device_t(mconfig, COCO_232, "CoCo RS-232 PAK", tag, owner, clock), | |
| 42 | : device_t(mconfig, COCO_232, "CoCo RS-232 PAK", tag, owner, clock, "coco_232", __FILE__), | |
| 43 | 43 | device_cococart_interface( mconfig, *this ), |
| 44 | 44 | m_uart(*this, UART_TAG) |
| 45 | 45 | { |
| r22095 | r22096 | |
|---|---|---|
| 39 | 39 | |
| 40 | 40 | protected: |
| 41 | 41 | // device-level overrides |
| 42 | virtual void device_config_complete() { m_shortname = "c64_mscr"; } | |
| 43 | 42 | virtual void device_start(); |
| 44 | 43 | virtual void device_reset(); |
| 45 | 44 |
| r22095 | r22096 | |
|---|---|---|
| 26 | 26 | protected: |
| 27 | 27 | // device-level overrides |
| 28 | 28 | virtual void device_start(); |
| 29 | virtual void device_config_complete() { m_shortname = "coco_232"; } | |
| 30 | 29 | virtual DECLARE_READ8_MEMBER(read); |
| 31 | 30 | virtual DECLARE_WRITE8_MEMBER(write); |
| 32 | 31 | private: |
| r22095 | r22096 | |
|---|---|---|
| 11 | 11 | const device_type MIDIOUT_PORT = &device_creator<midiout_port_device>; |
| 12 | 12 | |
| 13 | 13 | midiout_port_device::midiout_port_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 14 | : device_t(mconfig, MIDIOUT_PORT, "MIDI Out port", tag, owner, clock), | |
| 14 | : device_t(mconfig, MIDIOUT_PORT, "MIDI Out port", tag, owner, clock, "midiout_port", __FILE__), | |
| 15 | 15 | device_serial_port_interface(mconfig, *this), |
| 16 | 16 | m_midiout(*this, "midioutimg") |
| 17 | 17 | { |
| r22095 | r22096 | |
|---|---|---|
| 48 | 48 | //------------------------------------------------- |
| 49 | 49 | |
| 50 | 50 | vcs_wheel_device::vcs_wheel_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 51 | device_t(mconfig, VCS_WHEEL, "Driving Wheel", tag, owner, clock), | |
| 51 | device_t(mconfig, VCS_WHEEL, "Driving Wheel", tag, owner, clock, "vcs_wheel", __FILE__), | |
| 52 | 52 | device_vcs_control_port_interface(mconfig, *this), |
| 53 | 53 | m_joy(*this, "JOY"), |
| 54 | 54 | m_wheel(*this, "WHEEL") |
| r22095 | r22096 | |
|---|---|---|
| 120 | 120 | //------------------------------------------------- |
| 121 | 121 | |
| 122 | 122 | c64_supercpu_device::c64_supercpu_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 123 | device_t(mconfig, C64_SUPERCPU, "SuperCPU", tag, owner, clock), | |
| 123 | device_t(mconfig, C64_SUPERCPU, "SuperCPU", tag, owner, clock, "c64_supercpu", __FILE__), | |
| 124 | 124 | device_c64_expansion_card_interface(mconfig, *this), |
| 125 | 125 | m_maincpu(*this, G65816_TAG), |
| 126 | 126 | m_exp(*this, C64_EXPANSION_SLOT_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 78 | 78 | // LIVE DEVICE |
| 79 | 79 | //************************************************************************** |
| 80 | 80 | |
| 81 | a2bus_cffa2000_device::a2bus_cffa2000_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 82 | device_t(mconfig, type, name, tag, owner, clock), | |
| 81 | a2bus_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) : | |
| 82 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 83 | 83 | device_a2bus_card_interface(mconfig, *this), |
| 84 | 84 | m_ide(*this, CFFA2_IDE_TAG) |
| 85 | 85 | { |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | a2bus_cffa2_device::a2bus_cffa2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 89 | a2bus_cffa2000_device(mconfig, A2BUS_CFFA2, "CFFA2000 Compact Flash (65C02 firmware, www.dreher.net)", tag, owner, clock), | |
| 89 | a2bus_cffa2000_device(mconfig, A2BUS_CFFA2, "CFFA2000 Compact Flash (65C02 firmware, www.dreher.net)", tag, owner, clock, "a2cffa2", __FILE__), | |
| 90 | 90 | device_nvram_interface(mconfig, *this) |
| 91 | 91 | { |
| 92 | m_shortname = "a2cffa2"; | |
| 93 | 92 | } |
| 94 | 93 | |
| 95 | 94 | a2bus_cffa2_6502_device::a2bus_cffa2_6502_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 96 | a2bus_cffa2000_device(mconfig, A2BUS_CFFA2, "CFFA2000 Compact Flash (6502 firmware, www.dreher.net)", tag, owner, clock), | |
| 95 | a2bus_cffa2000_device(mconfig, A2BUS_CFFA2, "CFFA2000 Compact Flash (6502 firmware, www.dreher.net)", tag, owner, clock, "a2cffa02", __FILE__), | |
| 97 | 96 | device_nvram_interface(mconfig, *this) |
| 98 | 97 | { |
| 99 | m_shortname = "a2cffa02"; | |
| 100 | 98 | } |
| 101 | 99 | |
| 102 | 100 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 49 | 49 | //************************************************************************** |
| 50 | 50 | |
| 51 | 51 | cpc_rom_device::cpc_rom_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 52 | device_t(mconfig, CPC_ROM, "ROM Box", tag, owner, clock), | |
| 52 | device_t(mconfig, CPC_ROM, "ROM Box", tag, owner, clock, "cpc_rom", __FILE__), | |
| 53 | 53 | device_cpc_expansion_card_interface(mconfig, *this) |
| 54 | 54 | { |
| 55 | 55 | } |
| r22095 | r22096 | |
|---|---|---|
| 46 | 46 | // LIVE DEVICE |
| 47 | 47 | //************************************************************************** |
| 48 | 48 | |
| 49 | a2bus_echoii_device::a2bus_echoii_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 50 | device_t(mconfig, type, name, tag, owner, clock), | |
| 49 | a2bus_echoii_device::a2bus_echoii_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) : | |
| 50 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 51 | 51 | device_a2bus_card_interface(mconfig, *this), |
| 52 | 52 | m_tms(*this, TMS_TAG) |
| 53 | 53 | { |
| 54 | m_shortname = "a2echoii"; | |
| 55 | 54 | } |
| 56 | 55 | |
| 57 | 56 | a2bus_echoii_device::a2bus_echoii_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 58 | device_t(mconfig, A2BUS_ECHOII, "Street Electronics Echo II", tag, owner, clock), | |
| 57 | device_t(mconfig, A2BUS_ECHOII, "Street Electronics Echo II", tag, owner, clock, "a2echoii", __FILE__), | |
| 59 | 58 | device_a2bus_card_interface(mconfig, *this), |
| 60 | 59 | m_tms(*this, TMS_TAG) |
| 61 | 60 | { |
| 62 | m_shortname = "a2echoii"; | |
| 63 | 61 | } |
| 64 | 62 | |
| 65 | 63 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 25 | 25 | protected: |
| 26 | 26 | virtual void device_start() { } |
| 27 | 27 | virtual void device_reset() { } |
| 28 | virtual void device_config_complete() { m_shortname = "midiout_port"; } | |
| 29 | 28 | private: |
| 30 | 29 | //serial_port_device *m_owner; |
| 31 | 30 | required_device<midiout_device> m_midiout; |
| r22095 | r22096 | |
|---|---|---|
| 70 | 70 | //------------------------------------------------- |
| 71 | 71 | |
| 72 | 72 | vic1011_device::vic1011_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 73 | : device_t(mconfig, VIC1011, "VIC1011", tag, owner, clock), | |
| 73 | : device_t(mconfig, VIC1011, "VIC1011", tag, owner, clock, "vic1011", __FILE__), | |
| 74 | 74 | device_vic20_user_port_interface(mconfig, *this), |
| 75 | 75 | m_rs232(*this, RS232_TAG) |
| 76 | 76 | { |
| r22095 | r22096 | |
|---|---|---|
| 36 | 36 | |
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | virtual void device_config_complete() { m_shortname = "vcs_wheel"; } | |
| 40 | 39 | virtual void device_start(); |
| 41 | 40 | |
| 42 | 41 | // device_vcs_control_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | c64_simons_basic_cartridge_device::c64_simons_basic_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, C64_SIMONS_BASIC, "Simons' BASIC", tag, owner, clock), | |
| 31 | device_t(mconfig, C64_SIMONS_BASIC, "Simons' BASIC", tag, owner, clock, "c64_simons_basic", __FILE__), | |
| 32 | 32 | device_c64_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 128 | 128 | //------------------------------------------------- |
| 129 | 129 | |
| 130 | 130 | vp575_device::vp575_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 131 | device_t(mconfig, VP575, "VP575", tag, owner, clock), | |
| 131 | device_t(mconfig, VP575, "VP575", tag, owner, clock, "vp575", __FILE__), | |
| 132 | 132 | device_vip_expansion_card_interface(mconfig, *this) |
| 133 | 133 | { |
| 134 | 134 | for (int i = 0; i < MAX_SLOTS; i++) |
| r22095 | r22096 | |
|---|---|---|
| 39 | 39 | |
| 40 | 40 | protected: |
| 41 | 41 | // device-level overrides |
| 42 | virtual void device_config_complete() { m_shortname = "c64_supercpu"; } | |
| 43 | 42 | virtual void device_start(); |
| 44 | 43 | virtual void device_reset(); |
| 45 | 44 |
| r22095 | r22096 | |
|---|---|---|
| 45 | 45 | //------------------------------------------------- |
| 46 | 46 | |
| 47 | 47 | iq151_ms151a_device::iq151_ms151a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 48 | : device_t(mconfig, IQ151_MS151A, "IQ151 MS151A", tag, owner, clock), | |
| 48 | : device_t(mconfig, IQ151_MS151A, "IQ151 MS151A", tag, owner, clock, "iq151_ms151a", __FILE__), | |
| 49 | 49 | device_iq151cart_interface( mconfig, *this ) |
| 50 | 50 | { |
| 51 | 51 | } |
| r22095 | r22096 | |
|---|---|---|
| 24 | 24 | { |
| 25 | 25 | public: |
| 26 | 26 | // construction/destruction |
| 27 | a2bus_cffa2000_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 27 | 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); | |
| 28 | 28 | |
| 29 | 29 | // optional information overrides |
| 30 | 30 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 74 | 74 | // device-level overrides |
| 75 | 75 | virtual void device_start(); |
| 76 | 76 | virtual void device_reset(); |
| 77 | virtual void device_config_complete() { m_shortname = "cpc_rom"; } | |
| 78 | 77 | |
| 79 | 78 | private: |
| 80 | 79 | //cpc_expansion_slot_device *m_slot; |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | { |
| 24 | 24 | public: |
| 25 | 25 | // construction/destruction |
| 26 | a2bus_echoii_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 26 | a2bus_echoii_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); | |
| 27 | 27 | a2bus_echoii_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 28 | 28 | |
| 29 | 29 | // optional information overrides |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| 41 | virtual void device_config_complete() { m_shortname = "vic1011"; } | |
| 42 | 41 | virtual void device_start(); |
| 43 | 42 | |
| 44 | 43 | // device_vic20_user_port_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_simons_basic"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 |
| r22095 | r22096 | |
|---|---|---|
| 82 | 82 | //------------------------------------------------- |
| 83 | 83 | |
| 84 | 84 | c64_easyflash_cartridge_device::c64_easyflash_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 85 | device_t(mconfig, C64_EASYFLASH, "C64 EasyFlash cartridge", tag, owner, clock), | |
| 85 | device_t(mconfig, C64_EASYFLASH, "C64 EasyFlash cartridge", tag, owner, clock, "c64_easyflash", __FILE__), | |
| 86 | 86 | device_c64_expansion_card_interface(mconfig, *this), |
| 87 | 87 | m_flash_roml(*this, AM29F040_0_TAG), |
| 88 | 88 | m_flash_romh(*this, AM29F040_1_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 62 | 62 | |
| 63 | 63 | protected: |
| 64 | 64 | // device-level overrides |
| 65 | virtual void device_config_complete() { m_shortname = "vp575"; } | |
| 66 | 65 | virtual void device_start(); |
| 67 | 66 | |
| 68 | 67 | // device_vip_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | // device-level overrides |
| 28 | 28 | virtual void device_start(); |
| 29 | 29 | virtual void device_stop(); |
| 30 | virtual void device_config_complete() { m_shortname = "iq151_ms151a"; } | |
| 31 | 30 | |
| 32 | 31 | // iq151cart_interface overrides |
| 33 | 32 | virtual void read(offs_t offset, UINT8 &data); |
| r22095 | r22096 | |
|---|---|---|
| 49 | 49 | //------------------------------------------------- |
| 50 | 50 | |
| 51 | 51 | c64_easy_calc_result_cartridge_device::c64_easy_calc_result_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 52 | device_t(mconfig, C64_EASY_CALC_RESULT, "C64 Easy Calc Result cartridge", tag, owner, clock), | |
| 52 | device_t(mconfig, C64_EASY_CALC_RESULT, "C64 Easy Calc Result cartridge", tag, owner, clock, "c64_easy_calc_result", __FILE__), | |
| 53 | 53 | device_c64_expansion_card_interface(mconfig, *this) |
| 54 | 54 | { |
| 55 | 55 | } |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | |
| 39 | 39 | protected: |
| 40 | 40 | // device-level overrides |
| 41 | virtual void device_config_complete() { m_shortname = "c64_easyflash"; } | |
| 42 | 41 | virtual void device_start(); |
| 43 | 42 | virtual void device_reset(); |
| 44 | 43 |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | adam_ram_expansion_device::adam_ram_expansion_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 31 | : device_t(mconfig, ADAM_RAM, "Adam 64KB RAM expansion", tag, owner, clock), | |
| 31 | : device_t(mconfig, ADAM_RAM, "Adam 64KB RAM expansion", tag, owner, clock, "adam_ram", __FILE__), | |
| 32 | 32 | device_adam_expansion_slot_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | // device-level overrides |
| 36 | 36 | virtual void device_start(); |
| 37 | 37 | virtual void device_reset(); |
| 38 | virtual void device_config_complete() { m_shortname = "c64_easy_calc_result"; } | |
| 39 | 38 | |
| 40 | 39 | // device_c64_expansion_card_interface overrides |
| 41 | 40 | virtual UINT8 c64_cd_r(address_space &space, offs_t offset, UINT8 data, int sphi2, int ba, int roml, int romh, int io1, int io2); |
| r22095 | r22096 | |
|---|---|---|
| 386 | 386 | //------------------------------------------------- |
| 387 | 387 | |
| 388 | 388 | c8280_device::c8280_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 389 | : device_t(mconfig, C8280, "C8280", tag, owner, clock), | |
| 389 | : device_t(mconfig, C8280, "C8280", tag, owner, clock, "c8280", __FILE__), | |
| 390 | 390 | device_ieee488_interface(mconfig, *this), |
| 391 | 391 | m_maincpu(*this, M6502_DOS_TAG), |
| 392 | 392 | m_fdccpu(*this, M6502_FDC_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 379 | 379 | //------------------------------------------------- |
| 380 | 380 | |
| 381 | 381 | luxor_55_21046_device::luxor_55_21046_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 382 | : device_t(mconfig, LUXOR_55_21046, "Luxor 55 21046", tag, owner, clock), | |
| 382 | : device_t(mconfig, LUXOR_55_21046, "Luxor 55 21046", tag, owner, clock, "lux21046", __FILE__), | |
| 383 | 383 | device_abcbus_card_interface(mconfig, *this), |
| 384 | 384 | m_maincpu(*this, Z80_TAG), |
| 385 | 385 | m_dma(*this, Z80DMA_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | protected: |
| 34 | 34 | // device-level overrides |
| 35 | virtual void device_config_complete() { m_shortname = "adam_ram"; } | |
| 36 | 35 | virtual void device_start(); |
| 37 | 36 | |
| 38 | 37 | // device_adam_expansion_slot_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 52 | 52 | |
| 53 | 53 | protected: |
| 54 | 54 | // device-level overrides |
| 55 | virtual void device_config_complete() { m_shortname = "c8280"; } | |
| 56 | 55 | virtual void device_start(); |
| 57 | 56 | virtual void device_reset(); |
| 58 | 57 |
| r22095 | r22096 | |
|---|---|---|
| 76 | 76 | |
| 77 | 77 | protected: |
| 78 | 78 | // device-level overrides |
| 79 | virtual void device_config_complete() { m_shortname = "lux21046"; } | |
| 80 | 79 | virtual void device_start(); |
| 81 | 80 | virtual void device_reset(); |
| 82 | 81 |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | adamlink_device::adamlink_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 31 | : device_t(mconfig, ADAMLINK, "AdamLink modem", tag, owner, clock), | |
| 31 | : device_t(mconfig, ADAMLINK, "AdamLink modem", tag, owner, clock, "adamlink", __FILE__), | |
| 32 | 32 | device_adam_expansion_slot_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 81 | 81 | const device_type E01S = &device_creator<e01s_device>; |
| 82 | 82 | |
| 83 | 83 | e01s_device::e01s_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 84 | :e01_device(mconfig, E01S, "Acorn FileStore E01S", tag, owner, clock) { m_variant = TYPE_E01S; } | |
| 84 | :e01_device(mconfig, E01S, "Acorn FileStore E01S", tag, owner, clock, "e01s", __FILE__) { m_variant = TYPE_E01S; } | |
| 85 | 85 | |
| 86 | 86 | |
| 87 | 87 | //------------------------------------------------- |
| r22095 | r22096 | |
| 411 | 411 | //------------------------------------------------- |
| 412 | 412 | |
| 413 | 413 | e01_device::e01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 414 | : device_t(mconfig, E01, "Acorn FileStore E01", tag, owner, clock), | |
| 414 | : device_t(mconfig, E01, "Acorn FileStore E01", tag, owner, clock, "e01" , __FILE__), | |
| 415 | 415 | device_econet_interface(mconfig, *this), |
| 416 | 416 | m_maincpu(*this, R65C102_TAG), |
| 417 | 417 | m_fdc(*this, WD2793_TAG), |
| r22095 | r22096 | |
| 435 | 435 | } |
| 436 | 436 | |
| 437 | 437 | |
| 438 | e01_device::e01_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 439 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 438 | e01_device::e01_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) | |
| 439 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 440 | 440 | device_econet_interface(mconfig, *this), |
| 441 | 441 | m_maincpu(*this, R65C102_TAG), |
| 442 | 442 | m_fdc(*this, WD2793_TAG), |
| r22095 | r22096 | |
| 459 | 459 | { |
| 460 | 460 | } |
| 461 | 461 | |
| 462 | ||
| 463 | 462 | //------------------------------------------------- |
| 464 | // device_config_complete - perform any | |
| 465 | // operations now that the configuration is | |
| 466 | // complete | |
| 467 | //------------------------------------------------- | |
| 468 | ||
| 469 | void e01_device::device_config_complete() | |
| 470 | { | |
| 471 | switch (m_variant) | |
| 472 | { | |
| 473 | default: | |
| 474 | case TYPE_E01: | |
| 475 | m_shortname = "e01"; | |
| 476 | break; | |
| 477 | ||
| 478 | case TYPE_E01S: | |
| 479 | m_shortname = "e01s"; | |
| 480 | break; | |
| 481 | } | |
| 482 | } | |
| 483 | ||
| 484 | ||
| 485 | //------------------------------------------------- | |
| 486 | 463 | // device_start - device-specific startup |
| 487 | 464 | //------------------------------------------------- |
| 488 | 465 |
| r22095 | r22096 | |
|---|---|---|
| 32 | 32 | |
| 33 | 33 | protected: |
| 34 | 34 | // device-level overrides |
| 35 | virtual void device_config_complete() { m_shortname = "adamlink"; } | |
| 36 | 35 | virtual void device_start(); |
| 37 | 36 | |
| 38 | 37 | // device_adam_expansion_slot_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 492 | 492 | //------------------------------------------------- |
| 493 | 493 | |
| 494 | 494 | isa8_ibm_mfc_device::isa8_ibm_mfc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 495 | device_t(mconfig, ISA8_IBM_MFC, "IBM PC Music Feature Card", tag, owner, clock), | |
| 495 | device_t(mconfig, ISA8_IBM_MFC, "IBM PC Music Feature Card", tag, owner, clock, "ibm_mfc", __FILE__), | |
| 496 | 496 | device_isa8_card_interface(mconfig, *this), |
| 497 | 497 | m_cpu(*this, "ibm_mfc"), |
| 498 | 498 | m_ym2151(*this, "ym2151"), |
| r22095 | r22096 | |
|---|---|---|
| 31 | 31 | //------------------------------------------------- |
| 32 | 32 | |
| 33 | 33 | z88_32k_ram_device::z88_32k_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 34 | : device_t(mconfig, Z88_32K_RAM, "Z88 32KB RAM", tag, owner, clock), | |
| 34 | : device_t(mconfig, Z88_32K_RAM, "Z88 32KB RAM", tag, owner, clock, "z88_32k_ram", __FILE__), | |
| 35 | 35 | device_z88cart_interface( mconfig, *this ) |
| 36 | 36 | { |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | z88_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) | |
| 40 | : device_t(mconfig, type, name, tag, owner, clock), | |
| 39 | z88_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) | |
| 40 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 41 | 41 | device_z88cart_interface( mconfig, *this ) |
| 42 | 42 | { |
| 43 | 43 | } |
| r22095 | r22096 | |
| 47 | 47 | //------------------------------------------------- |
| 48 | 48 | |
| 49 | 49 | z88_128k_ram_device::z88_128k_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 50 | : z88_32k_ram_device(mconfig, Z88_128K_RAM, "Z88 128KB RAM", tag, owner, clock) | |
| 50 | : z88_32k_ram_device(mconfig, Z88_128K_RAM, "Z88 128KB RAM", tag, owner, clock, "z88_128k_ram", __FILE__) | |
| 51 | 51 | { |
| 52 | 52 | } |
| 53 | 53 | |
| r22095 | r22096 | |
| 56 | 56 | //------------------------------------------------- |
| 57 | 57 | |
| 58 | 58 | z88_512k_ram_device::z88_512k_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 59 | : z88_32k_ram_device(mconfig, Z88_512K_RAM, "Z88 512KB RAM", tag, owner, clock) | |
| 59 | : z88_32k_ram_device(mconfig, Z88_512K_RAM, "Z88 512KB RAM", tag, owner, clock, "z88_512k_ram", __FILE__) | |
| 60 | 60 | { |
| 61 | 61 | } |
| 62 | 62 | |
| r22095 | r22096 | |
| 65 | 65 | //------------------------------------------------- |
| 66 | 66 | |
| 67 | 67 | z88_1024k_ram_device::z88_1024k_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 68 | : z88_32k_ram_device(mconfig, Z88_1024K_RAM, "Z88 1024KB RAM", tag, owner, clock) | |
| 68 | : z88_32k_ram_device(mconfig, Z88_1024K_RAM, "Z88 1024KB RAM", tag, owner, clock, "z88_1024k_ram", __FILE__) | |
| 69 | 69 | { |
| 70 | 70 | } |
| 71 | 71 |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | { |
| 29 | 29 | public: |
| 30 | 30 | // construction/destruction |
| 31 | e01_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 31 | e01_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); | |
| 32 | 32 | e01_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 33 | 33 | |
| 34 | 34 | enum |
| r22095 | r22096 | |
| 69 | 69 | |
| 70 | 70 | protected: |
| 71 | 71 | // device-level overrides |
| 72 | virtual void device_config_complete(); | |
| 73 | 72 | virtual void device_start(); |
| 74 | 73 | virtual void device_reset(); |
| 75 | 74 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| r22095 | r22096 | |
|---|---|---|
| 106 | 106 | //------------------------------------------------- |
| 107 | 107 | |
| 108 | 108 | abc_dos_device::abc_dos_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 109 | : device_t(mconfig, ABC_DOS, "ABC DOS", tag, owner, clock), | |
| 109 | : device_t(mconfig, ABC_DOS, "ABC DOS", tag, owner, clock, "abc_dos", __FILE__), | |
| 110 | 110 | device_abcbus_card_interface(mconfig, *this), |
| 111 | 111 | m_rom(*this, "dos") |
| 112 | 112 | { |
| r22095 | r22096 | |
|---|---|---|
| 203 | 203 | //------------------------------------------------- |
| 204 | 204 | |
| 205 | 205 | s100_mm65k16s_device::s100_mm65k16s_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 206 | device_t(mconfig, S100_MM65K16S, "MM65K16S", tag, owner, clock), | |
| 206 | device_t(mconfig, S100_MM65K16S, "MM65K16S", tag, owner, clock, "mm65k16s", __FILE__), | |
| 207 | 207 | device_s100_card_interface(mconfig, *this), |
| 208 | 208 | m_ram(*this, "ram") |
| 209 | 209 | { |
| r22095 | r22096 | |
|---|---|---|
| 3 | 3 | const device_type PSX_ANALOG_JOYSTICK = &device_creator<psx_analog_joystick_device>; |
| 4 | 4 | const device_type PSX_DUALSHOCK = &device_creator<psx_dualshock_device>; |
| 5 | 5 | |
| 6 | psx_analog_controller_device::psx_analog_controller_device(const machine_config &mconfig, device_type type, const char* name, const char *tag, device_t *owner, UINT32 clock) : | |
| 7 | device_t(mconfig, type, name, tag, owner, clock), | |
| 6 | psx_analog_controller_device::psx_analog_controller_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source) : | |
| 7 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 8 | 8 | device_psx_controller_interface(mconfig, *this), |
| 9 | 9 | m_pad0(*this, "PSXPAD0"), |
| 10 | 10 | m_pad1(*this, "PSXPAD1"), |
| r22095 | r22096 | |
| 15 | 15 | { |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | psx_dualshock_device::psx_dualshock_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock) : | |
| 19 | psx_analog_controller_device(mconfig, PSX_DUALSHOCK, "Playstation Dualshock Pad", tag, owner, clock) | |
| 18 | psx_dualshock_device::psx_dualshock_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 19 | psx_analog_controller_device(mconfig, PSX_DUALSHOCK, "Playstation Dualshock Pad", tag, owner, clock, "psx_dualshock_pad", __FILE__) | |
| 20 | 20 | { |
| 21 | 21 | m_type = DUALSHOCK; |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | psx_analog_joystick_device::psx_analog_joystick_device(const machine_config& mconfig, const char* tag, device_t* owner, UINT32 clock) : | |
| 25 | psx_analog_controller_device(mconfig, PSX_ANALOG_JOYSTICK, "Playstation Analog Joystick", tag, owner, clock) | |
| 24 | psx_analog_joystick_device::psx_analog_joystick_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : | |
| 25 | psx_analog_controller_device(mconfig, PSX_ANALOG_JOYSTICK, "Playstation Analog Joystick", tag, owner, clock, "psx_analog_joystick", __FILE__) | |
| 26 | 26 | { |
| 27 | 27 | m_type = JOYSTICK; |
| 28 | 28 | } |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | // Optional information overrides |
| 36 | 36 | virtual machine_config_constructor device_mconfig_additions() const; |
| 37 | 37 | virtual ioport_constructor device_input_ports() const; |
| 38 | virtual void device_config_complete() { m_shortname = "ibm_mfc"; } | |
| 39 | 38 | |
| 40 | 39 | DECLARE_READ8_MEMBER( ppi0_i_a ); |
| 41 | 40 | DECLARE_WRITE8_MEMBER( ppi0_o_b ); |
| r22095 | r22096 | |
|---|---|---|
| 18 | 18 | public: |
| 19 | 19 | // construction/destruction |
| 20 | 20 | z88_32k_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 21 | z88_32k_ram_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 21 | 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); | |
| 22 | 22 | |
| 23 | 23 | protected: |
| 24 | 24 | // device-level overrides |
| 25 | 25 | virtual void device_start(); |
| 26 | virtual void device_config_complete() { m_shortname = "z88_32k_ram"; } | |
| 27 | 26 | |
| 28 | 27 | // z88cart_interface overrides |
| 29 | 28 | virtual DECLARE_READ8_MEMBER(read); |
| r22095 | r22096 | |
| 45 | 44 | z88_128k_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 46 | 45 | |
| 47 | 46 | protected: |
| 48 | // device-level overrides | |
| 49 | virtual void device_config_complete() { m_shortname = "z88_128k_ram"; } | |
| 50 | ||
| 51 | 47 | // z88cart_interface overrides |
| 52 | 48 | virtual UINT32 get_cart_size() { return 0x20000; } |
| 53 | 49 | }; |
| r22095 | r22096 | |
| 61 | 57 | z88_512k_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 62 | 58 | |
| 63 | 59 | protected: |
| 64 | // device-level overrides | |
| 65 | virtual void device_config_complete() { m_shortname = "z88_512k_ram"; } | |
| 66 | ||
| 67 | 60 | // z88cart_interface overrides |
| 68 | 61 | virtual UINT32 get_cart_size() { return 0x80000; } |
| 69 | 62 | }; |
| r22095 | r22096 | |
| 77 | 70 | z88_1024k_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 78 | 71 | |
| 79 | 72 | protected: |
| 80 | // device-level overrides | |
| 81 | virtual void device_config_complete() { m_shortname = "z88_1024k_ram"; } | |
| 82 | ||
| 83 | 73 | // z88cart_interface overrides |
| 84 | 74 | virtual UINT32 get_cart_size() { return 0x100000; } |
| 85 | 75 | }; |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | 39 | virtual void device_start(); |
| 40 | virtual void device_config_complete() { m_shortname = "abc_dos"; } | |
| 41 | 40 | |
| 42 | 41 | // device_abcbus_interface overrides |
| 43 | 42 | virtual void abcbus_cs(UINT8 data) { }; |
| r22095 | r22096 | |
|---|---|---|
| 38 | 38 | // device-level overrides |
| 39 | 39 | virtual void device_start(); |
| 40 | 40 | virtual void device_reset(); |
| 41 | virtual void device_config_complete() { m_shortname = "mm65k16s"; } | |
| 42 | 41 | |
| 43 | 42 | // device_s100_card_interface overrides |
| 44 | 43 | virtual UINT8 s100_smemr_r(address_space &space, offs_t offset); |
| r22095 | r22096 | |
|---|---|---|
| 10 | 10 | public device_psx_controller_interface |
| 11 | 11 | { |
| 12 | 12 | public: |
| 13 | psx_analog_controller_device(const machine_config &mconfig, device_type type, const char | |
| 13 | 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); | |
| 14 | 14 | |
| 15 | 15 | virtual ioport_constructor device_input_ports() const; |
| 16 | 16 | DECLARE_INPUT_CHANGED_MEMBER(change_mode); |
| r22095 | r22096 | |
| 44 | 44 | { |
| 45 | 45 | public: |
| 46 | 46 | psx_dualshock_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 47 | protected: | |
| 48 | virtual void device_config_complete() { m_shortname = "psx_dualshock_pad"; } | |
| 49 | 47 | }; |
| 50 | 48 | |
| 51 | 49 | class psx_analog_joystick_device : public psx_analog_controller_device |
| 52 | 50 | { |
| 53 | 51 | public: |
| 54 | 52 | psx_analog_joystick_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 55 | protected: | |
| 56 | virtual void device_config_complete() { m_shortname = "psx_analog_joystick"; } | |
| 57 | 53 | }; |
| 58 | 54 | |
| 59 | 55 | #endif /* PSXANALOG_H_ */ |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | //------------------------------------------------- |
| 36 | 36 | |
| 37 | 37 | comx_ram_device::comx_ram_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 38 | device_t(mconfig, COMX_RAM, "COMX-35 RAM Card", tag, owner, clock), | |
| 38 | device_t(mconfig, COMX_RAM, "COMX-35 RAM Card", tag, owner, clock, "comx_ram", __FILE__), | |
| 39 | 39 | device_comx_expansion_card_interface(mconfig, *this), |
| 40 | 40 | m_ram(*this, "ram") |
| 41 | 41 | { |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | // device-level overrides |
| 36 | 36 | virtual void device_start(); |
| 37 | 37 | virtual void device_reset(); |
| 38 | virtual void device_config_complete() { m_shortname = "comx_ram"; } | |
| 39 | 38 | |
| 40 | 39 | // device_comx_expansion_card_interface overrides |
| 41 | 40 | virtual UINT8 comx_mrd_r(address_space &space, offs_t offset, int *extrom); |
| r22095 | r22096 | |
|---|---|---|
| 329 | 329 | const device_type BETA_DISK = &device_creator<beta_disk_device>; |
| 330 | 330 | |
| 331 | 331 | beta_disk_device::beta_disk_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 332 | : device_t(mconfig, BETA_DISK, "Beta Disk Interface", tag, owner, clock) | |
| 332 | : device_t(mconfig, BETA_DISK, "Beta Disk Interface", tag, owner, clock, "betadisk", __FILE__) | |
| 333 | 333 | { |
| 334 | 334 | m_token = global_alloc_clear(beta_disk_state); |
| 335 | 335 | } |
| 336 | 336 | |
| 337 | 337 | //------------------------------------------------- |
| 338 | // device_config_complete - perform any | |
| 339 | // operations now that the configuration is | |
| 340 | // complete | |
| 341 | //------------------------------------------------- | |
| 342 | ||
| 343 | void beta_disk_device::device_config_complete() | |
| 344 | { | |
| 345 | m_shortname = "betadisk"; | |
| 346 | } | |
| 347 | ||
| 348 | //------------------------------------------------- | |
| 349 | 338 | // device_start - device-specific startup |
| 350 | 339 | //------------------------------------------------- |
| 351 | 340 |
| r22095 | r22096 | |
|---|---|---|
| 232 | 232 | //------------------------------------------------- |
| 233 | 233 | |
| 234 | 234 | tandy2k_keyboard_device::tandy2k_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 235 | : device_t(mconfig, TANDY2K_KEYBOARD, "Tandy 2000 Keyboard", tag, owner, clock), | |
| 235 | : device_t(mconfig, TANDY2K_KEYBOARD, "Tandy 2000 Keyboard", tag, owner, clock, "tandy2kb", __FILE__), | |
| 236 | 236 | m_maincpu(*this, I8048_TAG), |
| 237 | 237 | m_y0(*this, "Y0"), |
| 238 | 238 | m_y1(*this, "Y1"), |
| r22095 | r22096 | |
| 260 | 260 | |
| 261 | 261 | void tandy2k_keyboard_device::device_config_complete() |
| 262 | 262 | { |
| 263 | m_shortname = "tandy2kb"; | |
| 264 | ||
| 265 | 263 | // inherit a copy of the static data |
| 266 | 264 | const tandy2k_keyboard_interface *intf = reinterpret_cast<const tandy2k_keyboard_interface *>(static_config()); |
| 267 | 265 | if (intf != NULL) |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | void *token() const { assert(m_token != NULL); return m_token; } |
| 29 | 29 | protected: |
| 30 | 30 | // device-level overrides |
| 31 | virtual void device_config_complete(); | |
| 32 | 31 | virtual void device_start(); |
| 33 | 32 | virtual void device_reset(); |
| 34 | 33 | virtual const rom_entry *device_rom_region() const; |
| r22095 | r22096 | |
|---|---|---|
| 68 | 68 | //------------------------------------------------- |
| 69 | 69 | |
| 70 | 70 | c64_vizawrite_cartridge_device::c64_vizawrite_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 71 | device_t(mconfig, C64_VW64, "VizaWrite 64", tag, owner, clock), | |
| 71 | device_t(mconfig, C64_VW64, "VizaWrite 64", tag, owner, clock, "c64_vizawrite", __FILE__), | |
| 72 | 72 | device_c64_expansion_card_interface(mconfig, *this) |
| 73 | 73 | { |
| 74 | 74 | } |
| r22095 | r22096 | |
|---|---|---|
| 67 | 67 | //------------------------------------------------- |
| 68 | 68 | |
| 69 | 69 | vic1110_device::vic1110_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 70 | : device_t(mconfig, VIC1110, "VIC1110", tag, owner, clock), | |
| 70 | : device_t(mconfig, VIC1110, "VIC1110", tag, owner, clock, "vic1110", __FILE__), | |
| 71 | 71 | device_vic20_expansion_card_interface(mconfig, *this), |
| 72 | 72 | m_sw(*this, "SW") |
| 73 | 73 | { |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "c64_vizawrite"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | virtual void device_reset(); |
| 39 | 38 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| r22095 | r22096 | |
|---|---|---|
| 70 | 70 | //------------------------------------------------- |
| 71 | 71 | |
| 72 | 72 | abc_uni800_device::abc_uni800_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 73 | : device_t(mconfig, ABC_UNI800, "UNI-800", tag, owner, clock), | |
| 73 | : device_t(mconfig, ABC_UNI800, "UNI-800", tag, owner, clock, "uni800", __FILE__), | |
| 74 | 74 | device_abcbus_card_interface(mconfig, *this) |
| 75 | 75 | { |
| 76 | 76 | } |
| r22095 | r22096 | |
|---|---|---|
| 37 | 37 | protected: |
| 38 | 38 | // device-level overrides |
| 39 | 39 | virtual void device_start(); |
| 40 | virtual void device_config_complete() { m_shortname = "vic1110"; } | |
| 41 | 40 | |
| 42 | 41 | // device_vic20_expansion_card_interface overrides |
| 43 | 42 | virtual UINT8 vic20_cd_r(address_space &space, offs_t offset, UINT8 data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3); |
| r22095 | r22096 | |
|---|---|---|
| 29 | 29 | // device-level overrides |
| 30 | 30 | virtual void device_start(); |
| 31 | 31 | virtual void device_reset(); |
| 32 | virtual void device_config_complete() { m_shortname = "uni800"; } | |
| 33 | 32 | |
| 34 | 33 | // device_abcbus_interface overrides |
| 35 | 34 | virtual void abcbus_cs(UINT8 data); |
| r22095 | r22096 | |
|---|---|---|
| 26 | 26 | //************************************************************************** |
| 27 | 27 | |
| 28 | 28 | a2eaux_ext80col_device::a2eaux_ext80col_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 29 | device_t(mconfig, A2EAUX_EXT80COL, "Apple IIe Extended 80-Column Card", tag, owner, clock), | |
| 29 | device_t(mconfig, A2EAUX_EXT80COL, "Apple IIe Extended 80-Column Card", tag, owner, clock, "a2eext80", __FILE__), | |
| 30 | 30 | device_a2eauxslot_card_interface(mconfig, *this) |
| 31 | 31 | { |
| 32 | m_shortname = "a2eext80"; | |
| 33 | 32 | } |
| 34 | 33 | |
| 35 | a2eaux_ext80col_device::a2eaux_ext80col_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 36 | device_t(mconfig, type, name, tag, owner, clock), | |
| 34 | a2eaux_ext80col_device::a2eaux_ext80col_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) : | |
| 35 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 37 | 36 | device_a2eauxslot_card_interface(mconfig, *this) |
| 38 | 37 | { |
| 39 | m_shortname = "a2eext80"; | |
| 40 | 38 | } |
| 41 | 39 | |
| 42 | 40 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 430 | 430 | //------------------------------------------------- |
| 431 | 431 | |
| 432 | 432 | c1551_device::c1551_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 433 | : device_t(mconfig, C1551, "C1551", tag, owner, clock), | |
| 433 | : device_t(mconfig, C1551, "C1551", tag, owner, clock, "c1551", __FILE__), | |
| 434 | 434 | device_plus4_expansion_card_interface(mconfig, *this), |
| 435 | 435 | m_maincpu(*this, M6510T_TAG), |
| 436 | 436 | m_tpi0(*this, M6523_0_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | public: |
| 24 | 24 | // construction/destruction |
| 25 | 25 | a2eaux_ext80col_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 26 | a2eaux_ext80col_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 26 | a2eaux_ext80col_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); | |
| 27 | 27 | |
| 28 | 28 | protected: |
| 29 | 29 | virtual void device_start(); |
| r22095 | r22096 | |
|---|---|---|
| 65 | 65 | |
| 66 | 66 | protected: |
| 67 | 67 | // device-level overrides |
| 68 | virtual void device_config_complete() { m_shortname = "c1551"; } | |
| 69 | 68 | virtual void device_start(); |
| 70 | 69 | virtual void device_reset(); |
| 71 | 70 | virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr); |
| r22095 | r22096 | |
|---|---|---|
| 109 | 109 | memset(&m_out_clock_cb, 0, sizeof(m_out_clock_cb)); |
| 110 | 110 | memset(&m_out_keydown_cb, 0, sizeof(m_out_keydown_cb)); |
| 111 | 111 | } |
| 112 | ||
| 113 | m_shortname = "abc99"; | |
| 114 | 112 | } |
| 115 | 113 | |
| 116 | 114 | |
| r22095 | r22096 | |
| 523 | 521 | //------------------------------------------------- |
| 524 | 522 | |
| 525 | 523 | abc99_device::abc99_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 526 | : device_t(mconfig, ABC99, "Luxor ABC 99", tag, owner, clock), | |
| 524 | : device_t(mconfig, ABC99, "Luxor ABC 99", tag, owner, clock, "abc99", __FILE__), | |
| 527 | 525 | m_maincpu(*this, I8035_Z2_TAG), |
| 528 | 526 | m_mousecpu(*this, I8035_Z5_TAG), |
| 529 | 527 | m_speaker(*this, SPEAKER_TAG), |
| r22095 | r22096 | |
|---|---|---|
| 80 | 80 | // LIVE DEVICE |
| 81 | 81 | //************************************************************************** |
| 82 | 82 | |
| 83 | a2bus_thunderclock_device::a2bus_thunderclock_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 84 | device_t(mconfig, type, name, tag, owner, clock), | |
| 83 | a2bus_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) : | |
| 84 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 85 | 85 | device_a2bus_card_interface(mconfig, *this), |
| 86 | 86 | m_upd1990ac(*this, THUNDERCLOCK_UPD1990_TAG) |
| 87 | 87 | { |
| 88 | m_shortname = "a2thunpl"; | |
| 89 | 88 | } |
| 90 | 89 | |
| 91 | 90 | a2bus_thunderclock_device::a2bus_thunderclock_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 92 | device_t(mconfig, A2BUS_THUNDERCLOCK, "ThunderWare ThunderClock Plus", tag, owner, clock), | |
| 91 | device_t(mconfig, A2BUS_THUNDERCLOCK, "ThunderWare ThunderClock Plus", tag, owner, clock, "a2thunpl", __FILE__), | |
| 93 | 92 | device_a2bus_card_interface(mconfig, *this), |
| 94 | 93 | m_upd1990ac(*this, THUNDERCLOCK_UPD1990_TAG) |
| 95 | 94 | { |
| 96 | m_shortname = "a2thunpl"; | |
| 97 | 95 | } |
| 98 | 96 | |
| 99 | 97 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 53 | 53 | //------------------------------------------------- |
| 54 | 54 | |
| 55 | 55 | c64_mach5_cartridge_device::c64_mach5_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 56 | device_t(mconfig, C64_MACH5, "C64 MACH5 cartridge", tag, owner, clock), | |
| 56 | device_t(mconfig, C64_MACH5, "C64 MACH5 cartridge", tag, owner, clock, "c64_mach5", __FILE__), | |
| 57 | 57 | device_c64_expansion_card_interface(mconfig, *this), |
| 58 | 58 | m_s1(*this, "S1") |
| 59 | 59 | { |
| r22095 | r22096 | |
|---|---|---|
| 28 | 28 | //------------------------------------------------- |
| 29 | 29 | |
| 30 | 30 | videobrain_money_minder_cartridge_device::videobrain_money_minder_cartridge_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 31 | device_t(mconfig, VB_MONEY_MINDER, "VideoBrain Money Minder cartridge", tag, owner, clock), | |
| 31 | device_t(mconfig, VB_MONEY_MINDER, "VideoBrain Money Minder cartridge", tag, owner, clock, "vb_money_minder", __FILE__), | |
| 32 | 32 | device_videobrain_expansion_card_interface(mconfig, *this) |
| 33 | 33 | { |
| 34 | 34 | } |
| r22095 | r22096 | |
|---|---|---|
| 23 | 23 | { |
| 24 | 24 | public: |
| 25 | 25 | // construction/destruction |
| 26 | a2bus_thunderclock_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 26 | 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); | |
| 27 | 27 | a2bus_thunderclock_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 28 | 28 | |
| 29 | 29 | // optional information overrides |
| r22095 | r22096 | |
|---|---|---|
| 531 | 531 | //------------------------------------------------- |
| 532 | 532 | |
| 533 | 533 | sonydriv_floppy_image_device::sonydriv_floppy_image_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 534 | : legacy_floppy_image_device(mconfig, FLOPPY_SONY, "Floppy Disk [Sony]", tag, owner, clock) | |
| 534 | : legacy_floppy_image_device(mconfig, FLOPPY_SONY, "Floppy Disk [Sony]", tag, owner, clock, "floppy_sonny", __FILE__) | |
| 535 | 535 | { |
| 536 | 536 | } |
| 537 | 537 |
| r22095 | r22096 | |
|---|---|---|
| 35 | 35 | |
| 36 | 36 | protected: |
| 37 | 37 | // device-level overrides |
| 38 | virtual void device_config_complete() { m_shortname = "c64_mach5"; } | |
| 39 | 38 | virtual void device_start(); |
| 40 | 39 | virtual void device_reset(); |
| 41 | 40 |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | |
| 34 | 34 | protected: |
| 35 | 35 | // device-level overrides |
| 36 | virtual void device_config_complete() { m_shortname = "vb_money_minder"; } | |
| 37 | 36 | virtual void device_start(); |
| 38 | 37 | |
| 39 | 38 | // device_videobrain_expansion_card_interface overrides |
| r22095 | r22096 | |
|---|---|---|
| 81 | 81 | //------------------------------------------------- |
| 82 | 82 | |
| 83 | 83 | vp585_device::vp585_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 84 | device_t(mconfig, VP585, "VP585", tag, owner, clock), | |
| 84 | device_t(mconfig, VP585, "VP585", tag, owner, clock, "vp585", __FILE__), | |
| 85 | 85 | device_vip_expansion_card_interface(mconfig, *this), |
| 86 | 86 | m_j1(*this, "J1"), |
| 87 | 87 | m_j2(*this, "J2") |
| r22095 | r22096 | |
|---|---|---|
| 58 | 58 | //------------------------------------------------- |
| 59 | 59 | |
| 60 | 60 | isa8_svga_cirrus_device::isa8_svga_cirrus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 61 | device_t(mconfig, ISA8_SVGA_CIRRUS, "Diamond Multimedia Graphics Card", tag, owner, clock), | |
| 61 | device_t(mconfig, ISA8_SVGA_CIRRUS, "Diamond Multimedia Graphics Card", tag, owner, clock, "dm_clgd5430", __FILE__), | |
| 62 | 62 | device_isa8_card_interface(mconfig, *this) |
| 63 | 63 | { |
| 64 | m_shortname = "dm_clgd5430"; | |
| 65 | 64 | } |
| 66 | 65 | |
| 67 | 66 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 677 | 677 | //------------------------------------------------- |
| 678 | 678 | |
| 679 | 679 | isa8_cga_device::isa8_cga_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 680 | device_t(mconfig, ISA8_CGA, "IBM Color/Graphics Monitor Adapter", tag, owner, clock), | |
| 680 | device_t(mconfig, ISA8_CGA, "IBM Color/Graphics Monitor Adapter", tag, owner, clock, "cga", __FILE__), | |
| 681 | 681 | device_isa8_card_interface(mconfig, *this), |
| 682 | 682 | m_cga_config(*this, "cga_config"), |
| 683 | 683 | m_vram_size( 0x4000 ) |
| r22095 | r22096 | |
| 688 | 688 | m_start_offset = 0; |
| 689 | 689 | } |
| 690 | 690 | |
| 691 | isa8_cga_device::isa8_cga_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 692 | device_t(mconfig, type, name, tag, owner, clock), | |
| 691 | isa8_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) : | |
| 692 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 693 | 693 | device_isa8_card_interface(mconfig, *this), |
| 694 | 694 | m_cga_config(*this, "cga_config"), |
| 695 | 695 | m_vram_size( 0x4000 ) |
| r22095 | r22096 | |
| 770 | 770 | //------------------------------------------------- |
| 771 | 771 | |
| 772 | 772 | isa8_cga_mc1502_device::isa8_cga_mc1502_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 773 | isa8_cga_device( mconfig, ISA8_CGA_MC1502, "ISA8_CGA_MC1502", tag, owner, clock ) | |
| 773 | isa8_cga_device( mconfig, ISA8_CGA_MC1502, "ISA8_CGA_MC1502", tag, owner, clock, "cga_mc1502", __FILE__) | |
| 774 | 774 | { |
| 775 | 775 | m_vram_size = 0x8000; |
| 776 | 776 | } |
| r22095 | r22096 | |
| 823 | 823 | //------------------------------------------------- |
| 824 | 824 | |
| 825 | 825 | isa8_cga_poisk1_device::isa8_cga_poisk1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 826 | isa8_cga_device( mconfig, ISA8_CGA_POISK1, "ISA8_CGA_POISK1", tag, owner, clock ) | |
| 826 | isa8_cga_device( mconfig, ISA8_CGA_POISK1, "ISA8_CGA_POISK1", tag, owner, clock, "cga_poisk1", __FILE__) | |
| 827 | 827 | { |
| 828 | 828 | m_chr_gen_offset[0] = 0x0000; |
| 829 | 829 | m_font_selection_mask = 0; |
| r22095 | r22096 | |
| 851 | 851 | //------------------------------------------------- |
| 852 | 852 | |
| 853 | 853 | isa8_cga_poisk2_device::isa8_cga_poisk2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 854 | isa8_cga_device( mconfig, ISA8_CGA_POISK2, "ISA8_CGA_POISK2", tag, owner, clock ) | |
| 854 | isa8_cga_device( mconfig, ISA8_CGA_POISK2, "ISA8_CGA_POISK2", tag, owner, clock, "cga_poisk2", __FILE__) | |
| 855 | 855 | { |
| 856 | 856 | m_chr_gen_offset[0] = 0x0000; |
| 857 | 857 | m_chr_gen_offset[1] = 0x0800; |
| r22095 | r22096 | |
| 880 | 880 | //------------------------------------------------- |
| 881 | 881 | |
| 882 | 882 | isa8_cga_superimpose_device::isa8_cga_superimpose_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 883 | isa8_cga_device( mconfig, ISA8_CGA_SUPERIMPOSE, "ISA8_CGA_SUPERIMPOSE", tag, owner, clock ) | |
| 883 | isa8_cga_device( mconfig, ISA8_CGA_SUPERIMPOSE, "ISA8_CGA_SUPERIMPOSE", tag, owner, clock, "cga_superimpose", __FILE__) | |
| 884 | 884 | { |
| 885 | 885 | m_superimpose = true; |
| 886 | 886 | } |
| r22095 | r22096 | |
| 1988 | 1988 | //------------------------------------------------- |
| 1989 | 1989 | |
| 1990 | 1990 | isa8_cga_pc1512_device::isa8_cga_pc1512_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 1991 | isa8_cga_device( mconfig, ISA8_CGA_PC1512, "ISA8_CGA_PC1512", tag, owner, clock ) | |
| 1991 | isa8_cga_device( mconfig, ISA8_CGA_PC1512, "ISA8_CGA_PC1512", tag, owner, clock, "cga_pc1512", __FILE__) | |
| 1992 | 1992 | { |
| 1993 | 1993 | m_vram_size = 0x10000; |
| 1994 | 1994 | m_chr_gen_offset[0] = 0x0000; |
| r22095 | r22096 | |
| 2117 | 2117 | //------------------------------------------------- |
| 2118 | 2118 | |
| 2119 | 2119 | isa8_wyse700_device::isa8_wyse700_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 2120 | isa8_cga_device( mconfig, ISA8_WYSE700, "Wyse 700", tag, owner, clock ) | |
| 2120 | isa8_cga_device( mconfig, ISA8_WYSE700, "Wyse 700", tag, owner, clock, "wyse700", __FILE__) | |
| 2121 | 2121 | { |
| 2122 | 2122 | m_vram_size = 0x20000; |
| 2123 | 2123 | m_start_offset = 0x18000; |
| r22095 | r22096 | |
|---|---|---|
| 565 | 565 | //------------------------------------------------- |
| 566 | 566 | |
| 567 | 567 | isa8_ega_device::isa8_ega_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 568 | device_t(mconfig, ISA8_EGA, "IBM Enhanced Graphics Adapter", tag, owner, clock), | |
| 568 | device_t(mconfig, ISA8_EGA, "IBM Enhanced Graphics Adapter", tag, owner, clock, "ega", __FILE__), | |
| 569 | 569 | device_isa8_card_interface(mconfig, *this), |
| 570 | 570 | m_misc_output(0) |
| 571 | 571 | { |
| 572 | m_shortname = "ega"; | |
| 573 | 572 | } |
| 574 | 573 | |
| 575 | isa8_ega_device::isa8_ega_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 576 | device_t(mconfig, type, name, tag, owner, clock), | |
| 574 | isa8_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) : | |
| 575 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 577 | 576 | device_isa8_card_interface(mconfig, *this), |
| 578 | 577 | m_misc_output(0) |
| 579 | 578 | { |
| r22095 | r22096 | |
|---|---|---|
| 26 | 26 | public: |
| 27 | 27 | // construction/destruction |
| 28 | 28 | isa8_cga_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 29 | isa8_cga_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 29 | 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); | |
| 30 | 30 | |
| 31 | 31 | // optional information overrides |
| 32 | 32 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
| 39 | 39 | // device-level overrides |
| 40 | 40 | virtual void device_start(); |
| 41 | 41 | virtual void device_reset(); |
| 42 | virtual void device_config_complete() { m_shortname = "cga"; } | |
| 43 | 42 | public: |
| 44 | 43 | void mode_control_w(UINT8 data); |
| 45 | 44 | void set_palette_luts(); |
| r22095 | r22096 | |
| 87 | 86 | public: |
| 88 | 87 | // construction/destruction |
| 89 | 88 | isa8_cga_superimpose_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 90 | virtual void device_config_complete() { m_shortname = "cga_superimpose"; } | |
| 91 | 89 | }; |
| 92 | 90 | |
| 93 | 91 | // device type definition |
| r22095 | r22096 | |
| 104 | 102 | isa8_cga_mc1502_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 105 | 103 | // optional information overrides |
| 106 | 104 | virtual const rom_entry *device_rom_region() const; |
| 107 | virtual void device_config_complete() { m_shortname = "cga_mc1502"; } | |
| 108 | 105 | }; |
| 109 | 106 | |
| 110 | 107 | // device type definition |
| r22095 | r22096 | |
| 121 | 118 | isa8_cga_poisk1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 122 | 119 | // optional information overrides |
| 123 | 120 | virtual const rom_entry *device_rom_region() const; |
| 124 | virtual void device_config_complete() { m_shortname = "cga_poisk1"; } | |
| 125 | 121 | }; |
| 126 | 122 | |
| 127 | 123 | // device type definition |
| r22095 | r22096 | |
| 138 | 134 | isa8_cga_poisk2_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 139 | 135 | // optional information overrides |
| 140 | 136 | virtual const rom_entry *device_rom_region() const; |
| 141 | virtual void device_config_complete() { m_shortname = "cga_poisk2"; } | |
| 142 | 137 | }; |
| 143 | 138 | |
| 144 | 139 | // device type definition |
| r22095 | r22096 | |
| 156 | 151 | // optional information overrides |
| 157 | 152 | virtual ioport_constructor device_input_ports() const; |
| 158 | 153 | virtual const rom_entry *device_rom_region() const; |
| 159 | virtual void device_config_complete() { m_shortname = "cga_pc1512"; } | |
| 160 | 154 | |
| 161 | 155 | protected: |
| 162 | 156 | // device-level overrides |
| r22095 | r22096 | |
| 195 | 189 | isa8_wyse700_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 196 | 190 | // optional information overrides |
| 197 | 191 | virtual const rom_entry *device_rom_region() const; |
| 198 | virtual void device_config_complete() { m_shortname = "wyse700"; } | |
| 199 | 192 | |
| 200 | 193 | protected: |
| 201 | 194 | // device-level overrides |
| r22095 | r22096 | |
|---|---|---|
| 20 | 20 | public: |
| 21 | 21 | // construction/destruction |
| 22 | 22 | isa8_ega_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 23 | isa8_ega_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 23 | 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); | |
| 24 | 24 | |
| 25 | 25 | // optional information overrides |
| 26 | 26 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 66 | 66 | //------------------------------------------------- |
| 67 | 67 | |
| 68 | 68 | nubus_spec8s3_device::nubus_spec8s3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 69 | device_t(mconfig, NUBUS_SPEC8S3, "SuperMac Spectrum/8 Series III video card", tag, owner, clock), | |
| 69 | device_t(mconfig, NUBUS_SPEC8S3, "SuperMac Spectrum/8 Series III video card", tag, owner, clock, "nb_sp8s3", __FILE__), | |
| 70 | 70 | device_nubus_card_interface(mconfig, *this) |
| 71 | 71 | { |
| 72 | m_shortname = "nb_sp8s3"; | |
| 73 | 72 | } |
| 74 | 73 | |
| 75 | nubus_spec8s3_device::nubus_spec8s3_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 76 | device_t(mconfig, type, name, tag, owner, clock), | |
| 74 | nubus_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) : | |
| 75 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 77 | 76 | device_nubus_card_interface(mconfig, *this) |
| 78 | 77 | { |
| 79 | m_shortname = "nb_sp8s3"; | |
| 80 | 78 | } |
| 81 | 79 | |
| 82 | 80 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | nubus_spec8s3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | nubus_spec8s3_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 60 | 60 | //------------------------------------------------- |
| 61 | 61 | |
| 62 | 62 | nubus_lview_device::nubus_lview_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 63 | device_t(mconfig, PDS030_LVIEW, "Sigma Designs L-View", tag, owner, clock), | |
| 63 | device_t(mconfig, PDS030_LVIEW, "Sigma Designs L-View", tag, owner, clock, "pd3_lviw", __FILE__), | |
| 64 | 64 | device_nubus_card_interface(mconfig, *this) |
| 65 | 65 | { |
| 66 | m_shortname = "pd3_lviw"; | |
| 67 | 66 | } |
| 68 | 67 | |
| 69 | nubus_lview_device::nubus_lview_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 70 | device_t(mconfig, type, name, tag, owner, clock), | |
| 68 | nubus_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) : | |
| 69 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 71 | 70 | device_nubus_card_interface(mconfig, *this) |
| 72 | 71 | { |
| 73 | m_shortname = "pd3_lviw"; | |
| 74 | 72 | } |
| 75 | 73 | |
| 76 | 74 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | nubus_lview_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | nubus_lview_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 59 | 59 | //------------------------------------------------- |
| 60 | 60 | |
| 61 | 61 | isa16_svga_s3_device::isa16_svga_s3_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 62 | device_t(mconfig, ISA16_SVGA_S3, "SVGA S3 Graphics Card", tag, owner, clock), | |
| 62 | device_t(mconfig, ISA16_SVGA_S3, "SVGA S3 Graphics Card", tag, owner, clock, "s3_764", __FILE__), | |
| 63 | 63 | device_isa16_card_interface(mconfig, *this) |
| 64 | 64 | { |
| 65 | m_shortname = "s3_764"; | |
| 66 | 65 | } |
| 67 | 66 | |
| 68 | 67 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 66 | 66 | //------------------------------------------------- |
| 67 | 67 | |
| 68 | 68 | nubus_procolor816_device::nubus_procolor816_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 69 | device_t(mconfig, PDS030_PROCOLOR816, "Lapis ProColor Server 8*16", tag, owner, clock), | |
| 69 | device_t(mconfig, PDS030_PROCOLOR816, "Lapis ProColor Server 8*16", tag, owner, clock, "pd3_pc16", __FILE__), | |
| 70 | 70 | device_nubus_card_interface(mconfig, *this) |
| 71 | 71 | { |
| 72 | m_shortname = "pd3_pc16"; | |
| 73 | 72 | } |
| 74 | 73 | |
| 75 | nubus_procolor816_device::nubus_procolor816_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 76 | device_t(mconfig, type, name, tag, owner, clock), | |
| 74 | nubus_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) : | |
| 75 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 77 | 76 | device_nubus_card_interface(mconfig, *this) |
| 78 | 77 | { |
| 79 | m_shortname = "pd3_pc16"; | |
| 80 | 78 | } |
| 81 | 79 | |
| 82 | 80 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | nubus_procolor816_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | nubus_procolor816_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 65 | 65 | //------------------------------------------------- |
| 66 | 66 | |
| 67 | 67 | nubus_m2video_device::nubus_m2video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 68 | device_t(mconfig, NUBUS_M2VIDEO, "Macintosh II Video Card", tag, owner, clock), | |
| 68 | device_t(mconfig, NUBUS_M2VIDEO, "Macintosh II Video Card", tag, owner, clock, "nb_m2vc", __FILE__), | |
| 69 | 69 | device_nubus_card_interface(mconfig, *this) |
| 70 | 70 | { |
| 71 | m_shortname = "nb_m2vc"; | |
| 72 | 71 | } |
| 73 | 72 | |
| 74 | nubus_m2video_device::nubus_m2video_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 75 | device_t(mconfig, type, name, tag, owner, clock), | |
| 73 | nubus_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) : | |
| 74 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 76 | 75 | device_nubus_card_interface(mconfig, *this) |
| 77 | 76 | { |
| 78 | m_shortname = "nb_m2vc"; | |
| 79 | 77 | } |
| 80 | 78 | |
| 81 | 79 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | nubus_m2video_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | nubus_m2video_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 67 | 67 | //------------------------------------------------- |
| 68 | 68 | |
| 69 | 69 | nubus_wsportrait_device::nubus_wsportrait_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 70 | device_t(mconfig, NUBUS_WSPORTRAIT, "Macintosh II Portrait Video Card", tag, owner, clock), | |
| 70 | device_t(mconfig, NUBUS_WSPORTRAIT, "Macintosh II Portrait Video Card", tag, owner, clock, "nb_wspt", __FILE__), | |
| 71 | 71 | device_nubus_card_interface(mconfig, *this) |
| 72 | 72 | { |
| 73 | m_shortname = "nb_wspt"; | |
| 74 | 73 | } |
| 75 | 74 | |
| 76 | nubus_wsportrait_device::nubus_wsportrait_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 77 | device_t(mconfig, type, name, tag, owner, clock), | |
| 75 | nubus_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) : | |
| 76 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 78 | 77 | device_nubus_card_interface(mconfig, *this) |
| 79 | 78 | { |
| 80 | m_shortname = "nb_wspt"; | |
| 81 | 79 | } |
| 82 | 80 | |
| 83 | 81 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | nubus_wsportrait_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | nubus_wsportrait_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 49 | 49 | //------------------------------------------------- |
| 50 | 50 | |
| 51 | 51 | iq151_video64_device::iq151_video64_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 52 | : device_t(mconfig, IQ151_VIDEO64, "IQ151 video64", tag, owner, clock), | |
| 52 | : device_t(mconfig, IQ151_VIDEO64, "IQ151 video64", tag, owner, clock, "iq151_video64", __FILE__), | |
| 53 | 53 | device_iq151cart_interface( mconfig, *this ) |
| 54 | 54 | { |
| 55 | 55 | } |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | // device-level overrides |
| 28 | 28 | virtual void device_start(); |
| 29 | 29 | virtual void device_reset(); |
| 30 | virtual void device_config_complete() { m_shortname = "iq151_video64"; } | |
| 31 | 30 | |
| 32 | 31 | // iq151cart_interface overrides |
| 33 | 32 | virtual void read(offs_t offset, UINT8 &data); |
| r22095 | r22096 | |
|---|---|---|
| 61 | 61 | //------------------------------------------------- |
| 62 | 62 | |
| 63 | 63 | isa16_vga_gfxultra_device::isa16_vga_gfxultra_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 64 | device_t(mconfig, ISA16_VGA_GFXULTRA, "ATi Graphics Ultra Graphics Card", tag, owner, clock), | |
| 64 | device_t(mconfig, ISA16_VGA_GFXULTRA, "ATi Graphics Ultra Graphics Card", tag, owner, clock, "gfxultra", __FILE__), | |
| 65 | 65 | device_isa16_card_interface(mconfig, *this) |
| 66 | 66 | { |
| 67 | m_shortname = "gfxultra"; | |
| 68 | 67 | } |
| 69 | 68 | |
| 70 | 69 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 79 | 79 | //------------------------------------------------- |
| 80 | 80 | |
| 81 | 81 | nubus_specpdq_device::nubus_specpdq_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 82 | device_t(mconfig, NUBUS_SPECPDQ, "SuperMac Spectrum PDQ video card", tag, owner, clock), | |
| 82 | device_t(mconfig, NUBUS_SPECPDQ, "SuperMac Spectrum PDQ video card", tag, owner, clock, "nb_spdq", __FILE__), | |
| 83 | 83 | device_nubus_card_interface(mconfig, *this) |
| 84 | 84 | { |
| 85 | m_shortname = "nb_spdq"; | |
| 86 | 85 | } |
| 87 | 86 | |
| 88 | nubus_specpdq_device::nubus_specpdq_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 89 | device_t(mconfig, type, name, tag, owner, clock), | |
| 87 | nubus_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) : | |
| 88 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 90 | 89 | device_nubus_card_interface(mconfig, *this) |
| 91 | 90 | { |
| 92 | m_shortname = "nb_spdq"; | |
| 93 | 91 | } |
| 94 | 92 | |
| 95 | 93 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | nubus_specpdq_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | nubus_specpdq_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 68 | 68 | //------------------------------------------------- |
| 69 | 69 | |
| 70 | 70 | nubus_cb264_device::nubus_cb264_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 71 | device_t(mconfig, NUBUS_CB264, "RasterOps ColorBoard 264 video card", tag, owner, clock), | |
| 71 | device_t(mconfig, NUBUS_CB264, "RasterOps ColorBoard 264 video card", tag, owner, clock, "nb_cb264", __FILE__), | |
| 72 | 72 | device_nubus_card_interface(mconfig, *this) |
| 73 | 73 | { |
| 74 | m_shortname = "nb_cb264"; | |
| 75 | 74 | } |
| 76 | 75 | |
| 77 | nubus_cb264_device::nubus_cb264_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 78 | device_t(mconfig, type, name, tag, owner, clock), | |
| 76 | nubus_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) : | |
| 77 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 79 | 78 | device_nubus_card_interface(mconfig, *this) |
| 80 | 79 | { |
| 81 | m_shortname = "nb_cb264"; | |
| 82 | 80 | } |
| 83 | 81 | |
| 84 | 82 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | nubus_cb264_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | nubus_cb264_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 74 | 74 | // jmfb_device - constructor |
| 75 | 75 | //------------------------------------------------- |
| 76 | 76 | |
| 77 | jmfb_device::jmfb_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 78 | device_t(mconfig, type, name, tag, owner, clock), | |
| 77 | jmfb_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) : | |
| 78 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 79 | 79 | device_nubus_card_interface(mconfig, *this) |
| 80 | 80 | { |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | nubus_48gc_device::nubus_48gc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 84 | jmfb_device(mconfig, NUBUS_48GC, "Apple 4*8 video card", tag, owner, clock) | |
| 84 | jmfb_device(mconfig, NUBUS_48GC, "Apple 4*8 video card", tag, owner, clock, "nb_48gc", __FILE__) | |
| 85 | 85 | { |
| 86 | m_shortname = "nb_48gc"; | |
| 87 | 86 | m_is824 = false; |
| 88 | 87 | } |
| 89 | 88 | |
| 90 | 89 | nubus_824gc_device::nubus_824gc_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 91 | jmfb_device(mconfig, NUBUS_824GC, "Apple 8*24 video card", tag, owner, clock) | |
| 90 | jmfb_device(mconfig, NUBUS_824GC, "Apple 8*24 video card", tag, owner, clock, "nb_824gc", __FILE__) | |
| 92 | 91 | { |
| 93 | m_shortname = "nb_824gc"; | |
| 94 | 92 | m_is824 = true; |
| 95 | 93 | } |
| 96 | 94 |
| r22095 | r22096 | |
|---|---|---|
| 43 | 43 | //------------------------------------------------- |
| 44 | 44 | |
| 45 | 45 | iq151_grafik_device::iq151_grafik_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 46 | : device_t(mconfig, IQ151_GRAFIK, "IQ151 grafik", tag, owner, clock), | |
| 46 | : device_t(mconfig, IQ151_GRAFIK, "IQ151 grafik", tag, owner, clock, "iq151_grafik", __FILE__), | |
| 47 | 47 | device_iq151cart_interface( mconfig, *this ), |
| 48 | 48 | m_ppi8255(*this, "ppi8255") |
| 49 | 49 | { |
| r22095 | r22096 | |
|---|---|---|
| 67 | 67 | //------------------------------------------------- |
| 68 | 68 | |
| 69 | 69 | nubus_xceed30hr_device::nubus_xceed30hr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 70 | device_t(mconfig, PDS030_XCEED30HR, "Micron/XCEED Technology Color 30HR", tag, owner, clock), | |
| 70 | device_t(mconfig, PDS030_XCEED30HR, "Micron/XCEED Technology Color 30HR", tag, owner, clock, "pd3_30hr", __FILE__), | |
| 71 | 71 | device_nubus_card_interface(mconfig, *this) |
| 72 | 72 | { |
| 73 | m_shortname = "pd3_30hr"; | |
| 74 | 73 | } |
| 75 | 74 | |
| 76 | nubus_xceed30hr_device::nubus_xceed30hr_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 77 | device_t(mconfig, type, name, tag, owner, clock), | |
| 75 | nubus_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) : | |
| 76 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 78 | 77 | device_nubus_card_interface(mconfig, *this) |
| 79 | 78 | { |
| 80 | m_shortname = "pd3_30hr"; | |
| 81 | 79 | } |
| 82 | 80 | |
| 83 | 81 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 18 | 18 | { |
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | jmfb_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 21 | 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); | |
| 22 | 22 | |
| 23 | 23 | // optional information overrides |
| 24 | 24 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 33 | 33 | // device-level overrides |
| 34 | 34 | virtual void device_start(); |
| 35 | 35 | virtual void device_reset(); |
| 36 | virtual void device_config_complete() { m_shortname = "iq151_grafik"; } | |
| 37 | 36 | |
| 38 | 37 | // iq151cart_interface overrides |
| 39 | 38 | virtual void io_read(offs_t offset, UINT8 &data); |
| r22095 | r22096 | |
|---|---|---|
| 60 | 60 | //------------------------------------------------- |
| 61 | 61 | |
| 62 | 62 | nubus_cb264se30_device::nubus_cb264se30_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 63 | device_t(mconfig, PDS030_CB264SE30, "RasterOps Colorboard 264/SE30", tag, owner, clock), | |
| 63 | device_t(mconfig, PDS030_CB264SE30, "RasterOps Colorboard 264/SE30", tag, owner, clock, "pd3_c264", __FILE__), | |
| 64 | 64 | device_nubus_card_interface(mconfig, *this) |
| 65 | 65 | { |
| 66 | m_shortname = "pd3_c264"; | |
| 67 | 66 | } |
| 68 | 67 | |
| 69 | nubus_cb264se30_device::nubus_cb264se30_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 70 | device_t(mconfig, type, name, tag, owner, clock), | |
| 68 | nubus_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) : | |
| 69 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 71 | 70 | device_nubus_card_interface(mconfig, *this) |
| 72 | 71 | { |
| 73 | m_shortname = "pd3_c264"; | |
| 74 | 72 | } |
| 75 | 73 | |
| 76 | 74 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | nubus_xceed30hr_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | nubus_xceed30hr_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | nubus_cb264se30_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | nubus_cb264se30_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 64 | 64 | //------------------------------------------------- |
| 65 | 65 | |
| 66 | 66 | nubus_vikbw_device::nubus_vikbw_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 67 | device_t(mconfig, NUBUS_VIKBW, "Moniterm Viking video card", tag, owner, clock), | |
| 67 | device_t(mconfig, NUBUS_VIKBW, "Moniterm Viking video card", tag, owner, clock, "nb_vikbw", __FILE__), | |
| 68 | 68 | device_nubus_card_interface(mconfig, *this) |
| 69 | 69 | { |
| 70 | m_shortname = "nb_vikbw"; | |
| 71 | 70 | } |
| 72 | 71 | |
| 73 | nubus_vikbw_device::nubus_vikbw_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 74 | device_t(mconfig, type, name, tag, owner, clock), | |
| 72 | nubus_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) : | |
| 73 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 75 | 74 | device_nubus_card_interface(mconfig, *this) |
| 76 | 75 | { |
| 77 | m_shortname = "nb_vikbw"; | |
| 78 | 76 | } |
| 79 | 77 | |
| 80 | 78 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | nubus_vikbw_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | nubus_vikbw_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 82 | 82 | //------------------------------------------------- |
| 83 | 83 | |
| 84 | 84 | cirrus_device::cirrus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 85 | : device_t(mconfig, CIRRUS, "CIRRUS", tag, owner, clock), | |
| 85 | : device_t(mconfig, CIRRUS, "CIRRUS", tag, owner, clock, "cirrus", __FILE__), | |
| 86 | 86 | pci_device_interface( mconfig, *this ) |
| 87 | 87 | { |
| 88 | 88 | } |
| r22095 | r22096 | |
|---|---|---|
| 48 | 48 | //------------------------------------------------- |
| 49 | 49 | |
| 50 | 50 | isa8_vga_device::isa8_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 51 | device_t(mconfig, ISA8_VGA, "IBM VGA Graphics Card", tag, owner, clock), | |
| 51 | device_t(mconfig, ISA8_VGA, "IBM VGA Graphics Card", tag, owner, clock, "ibm_vga", __FILE__), | |
| 52 | 52 | device_isa8_card_interface(mconfig, *this) |
| 53 | 53 | { |
| 54 | m_shortname = "ibm_vga"; | |
| 55 | 54 | } |
| 56 | 55 | |
| 57 | 56 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | // device-level overrides |
| 28 | 28 | virtual void device_start(); |
| 29 | 29 | virtual void device_reset(); |
| 30 | virtual void device_config_complete() { m_shortname = "cirrus"; } | |
| 31 | 30 | private: |
| 32 | 31 | }; |
| 33 | 32 |
| r22095 | r22096 | |
|---|---|---|
| 49 | 49 | //------------------------------------------------- |
| 50 | 50 | |
| 51 | 51 | iq151_video32_device::iq151_video32_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 52 | : device_t(mconfig, IQ151_VIDEO32, "IQ151 video32", tag, owner, clock), | |
| 52 | : device_t(mconfig, IQ151_VIDEO32, "IQ151 video32", tag, owner, clock, "iq151_video32", __FILE__), | |
| 53 | 53 | device_iq151cart_interface( mconfig, *this ) |
| 54 | 54 | { |
| 55 | 55 | } |
| r22095 | r22096 | |
|---|---|---|
| 27 | 27 | // device-level overrides |
| 28 | 28 | virtual void device_start(); |
| 29 | 29 | virtual void device_reset(); |
| 30 | virtual void device_config_complete() { m_shortname = "iq151_video32"; } | |
| 31 | 30 | |
| 32 | 31 | // iq151cart_interface overrides |
| 33 | 32 | virtual void read(offs_t offset, UINT8 &data); |
| r22095 | r22096 | |
|---|---|---|
| 64 | 64 | //------------------------------------------------- |
| 65 | 65 | |
| 66 | 66 | nubus_radiustpd_device::nubus_radiustpd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 67 | device_t(mconfig, NUBUS_RADIUSTPD, "Radius Two Page Display video card", tag, owner, clock), | |
| 67 | device_t(mconfig, NUBUS_RADIUSTPD, "Radius Two Page Display video card", tag, owner, clock, "nb_rtpd", __FILE__), | |
| 68 | 68 | device_nubus_card_interface(mconfig, *this) |
| 69 | 69 | { |
| 70 | m_shortname = "nb_rtpd"; | |
| 71 | 70 | } |
| 72 | 71 | |
| 73 | nubus_radiustpd_device::nubus_radiustpd_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 74 | device_t(mconfig, type, name, tag, owner, clock), | |
| 72 | nubus_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) : | |
| 73 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 75 | 74 | device_nubus_card_interface(mconfig, *this) |
| 76 | 75 | { |
| 77 | m_shortname = "nb_rtpd"; | |
| 78 | 76 | } |
| 79 | 77 | |
| 80 | 78 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | nubus_radiustpd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | nubus_radiustpd_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 64 | 64 | //------------------------------------------------- |
| 65 | 65 | |
| 66 | 66 | nubus_m2hires_device::nubus_m2hires_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 67 | device_t(mconfig, NUBUS_M2HIRES, "Macintosh II Hi-Resolution video card", tag, owner, clock), | |
| 67 | device_t(mconfig, NUBUS_M2HIRES, "Macintosh II Hi-Resolution video card", tag, owner, clock, "nb_m2hr", __FILE__), | |
| 68 | 68 | device_nubus_card_interface(mconfig, *this) |
| 69 | 69 | { |
| 70 | m_shortname = "nb_m2hr"; | |
| 71 | 70 | } |
| 72 | 71 | |
| 73 | nubus_m2hires_device::nubus_m2hires_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 74 | device_t(mconfig, type, name, tag, owner, clock), | |
| 72 | nubus_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) : | |
| 73 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 75 | 74 | device_nubus_card_interface(mconfig, *this) |
| 76 | 75 | { |
| 77 | m_shortname = "nb_m2hr"; | |
| 78 | 76 | } |
| 79 | 77 | |
| 80 | 78 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 831 | 831 | DEVICE_RESET_CALL(apollo_mono19i); |
| 832 | 832 | } |
| 833 | 833 | |
| 834 | apollo_mono_device::apollo_mono_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) | |
| 835 | : device_t(mconfig, type, name, tag, owner, clock) | |
| 834 | apollo_mono_device::apollo_mono_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) | |
| 835 | : device_t(mconfig, type, name, tag, owner, clock, shortname, source) | |
| 836 | 836 | { |
| 837 | 837 | m_token = global_alloc_clear(screen_data_t); |
| 838 | 838 | } |
| r22095 | r22096 | |
| 840 | 840 | const device_type APOLLO_MONO19I = &device_creator<apollo_mono19i_device>; |
| 841 | 841 | |
| 842 | 842 | apollo_mono19i_device::apollo_mono19i_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 843 | : apollo_mono_device(mconfig, APOLLO_MONO19I, "Apollo 19\" Monochrome Screen", tag, owner, clock) | |
| 843 | : apollo_mono_device(mconfig, APOLLO_MONO19I, "Apollo 19\" Monochrome Screen", tag, owner, clock, "apollo_mono19i", __FILE__) | |
| 844 | 844 | { |
| 845 | 845 | } |
| 846 | 846 | |
| r22095 | r22096 | |
| 876 | 876 | const device_type APOLLO_MONO15I = &device_creator<apollo_mono15i_device>; |
| 877 | 877 | |
| 878 | 878 | apollo_mono15i_device::apollo_mono15i_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) |
| 879 | : apollo_mono_device(mconfig, APOLLO_MONO15I, "Apollo 15\" Monochrome Screen", tag, owner, clock) | |
| 879 | : apollo_mono_device(mconfig, APOLLO_MONO15I, "Apollo 15\" Monochrome Screen", tag, owner, clock, "apollo_mono15i", __FILE__) | |
| 880 | 880 | { |
| 881 | 881 | } |
| 882 | 882 |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | nubus_m2hires_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | nubus_m2hires_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 58 | 58 | //------------------------------------------------- |
| 59 | 59 | |
| 60 | 60 | isa8_svga_et4k_device::isa8_svga_et4k_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 61 | device_t(mconfig, ISA8_SVGA_ET4K, "SVGA Tseng ET4000 Graphics Card", tag, owner, clock), | |
| 61 | device_t(mconfig, ISA8_SVGA_ET4K, "SVGA Tseng ET4000 Graphics Card", tag, owner, clock, "et4000", __FILE__), | |
| 62 | 62 | device_isa8_card_interface(mconfig, *this) |
| 63 | 63 | { |
| 64 | m_shortname = "et4000"; | |
| 65 | 64 | } |
| 66 | 65 | |
| 67 | 66 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 63 | 63 | //------------------------------------------------- |
| 64 | 64 | |
| 65 | 65 | nubus_xceedmc30_device::nubus_xceedmc30_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 66 | device_t(mconfig, PDS030_XCEEDMC30, "Micron/XCEED Technology MacroColor 30", tag, owner, clock), | |
| 66 | device_t(mconfig, PDS030_XCEEDMC30, "Micron/XCEED Technology MacroColor 30", tag, owner, clock, "pd3_mclr", __FILE__), | |
| 67 | 67 | device_nubus_card_interface(mconfig, *this) |
| 68 | 68 | { |
| 69 | m_shortname = "pd3_mclr"; | |
| 70 | 69 | } |
| 71 | 70 | |
| 72 | nubus_xceedmc30_device::nubus_xceedmc30_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 73 | device_t(mconfig, type, name, tag, owner, clock), | |
| 71 | nubus_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) : | |
| 72 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 74 | 73 | device_nubus_card_interface(mconfig, *this) |
| 75 | 74 | { |
| 76 | m_shortname = "pd3_mclr"; | |
| 77 | 75 | } |
| 78 | 76 | |
| 79 | 77 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 19 | 19 | public: |
| 20 | 20 | // construction/destruction |
| 21 | 21 | nubus_xceedmc30_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 22 | nubus_xceedmc30_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 22 | 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); | |
| 23 | 23 | |
| 24 | 24 | // optional information overrides |
| 25 | 25 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 156 | 156 | //------------------------------------------------- |
| 157 | 157 | |
| 158 | 158 | isa8_mda_device::isa8_mda_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 159 | device_t(mconfig, ISA8_MDA, "IBM Monochrome Display and Printer Adapter", tag, owner, clock), | |
| 159 | device_t(mconfig, ISA8_MDA, "IBM Monochrome Display and Printer Adapter", tag, owner, clock, "isa_ibm_mda", __FILE__), | |
| 160 | 160 | device_isa8_card_interface(mconfig, *this) |
| 161 | 161 | { |
| 162 | m_shortname = "isa_ibm_mda"; | |
| 163 | 162 | } |
| 164 | 163 | |
| 165 | isa8_mda_device::isa8_mda_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) : | |
| 166 | device_t(mconfig, type, name, tag, owner, clock), | |
| 164 | isa8_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) : | |
| 165 | device_t(mconfig, type, name, tag, owner, clock, shortname, source), | |
| 167 | 166 | device_isa8_card_interface(mconfig, *this) |
| 168 | 167 | { |
| 169 | m_shortname = "isa_ibm_mda"; | |
| 170 | 168 | } |
| 171 | 169 | |
| 172 | 170 | //------------------------------------------------- |
| r22095 | r22096 | |
| 570 | 568 | //------------------------------------------------- |
| 571 | 569 | |
| 572 | 570 | isa8_hercules_device::isa8_hercules_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : |
| 573 | isa8_mda_device(mconfig, ISA8_HERCULES, "Hercules Graphics Card", tag, owner, clock) | |
| 571 | isa8_mda_device(mconfig, ISA8_HERCULES, "Hercules Graphics Card", tag, owner, clock, "isa_hercules", __FILE__) | |
| 574 | 572 | { |
| 575 | m_shortname = "isa_hercules"; | |
| 576 | 573 | } |
| 577 | 574 | |
| 578 | 575 | //------------------------------------------------- |
| r22095 | r22096 | |
|---|---|---|
| 22 | 22 | |
| 23 | 23 | // construction/destruction |
| 24 | 24 | isa8_mda_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 25 | isa8_mda_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 25 | 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); | |
| 26 | 26 | |
| 27 | 27 | // optional information overrides |
| 28 | 28 | virtual machine_config_constructor device_mconfig_additions() const; |
| r22095 | r22096 | |
|---|---|---|
| 167 | 167 | { |
| 168 | 168 | public: |
| 169 | 169 | lynx_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); |
| 170 | lynx_sound_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 170 | lynx_sound_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); | |
| 171 | 171 | ~lynx_sound_device() { global_free(m_token); } |
| 172 | 172 | |
| 173 | 173 | // access to legacy token |
| r22095 | r22096 | |
|---|---|---|
| 310 | 310 | class apollo_mono_device : public device_t |
| 311 | 311 | { |
| 312 | 312 | public: |
| 313 | apollo_mono_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock); | |
| 313 | apollo_mono_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); | |
| 314 | 314 | ~apollo_mono_device() { global_free(m_token); } |
| 315 | 315 | |
| 316 | 316 | // access to legacy token |
| Previous | 199869 Revisions | Next |