本文整理汇总了C++中INPUTLINE函数的典型用法代码示例。如果您正苦于以下问题:C++ INPUTLINE函数的具体用法?C++ INPUTLINE怎么用?C++ INPUTLINE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了INPUTLINE函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MACHINE_CONFIG_START
static MACHINE_CONFIG_START( eacc, eacc_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", M6802, XTAL_3_579545MHz) /* Divided by 4 inside the m6802*/
MCFG_CPU_PROGRAM_MAP(eacc_mem)
MCFG_DEFAULT_LAYOUT(layout_eacc)
MCFG_DEVICE_ADD("pia", PIA6821, 0)
MCFG_PIA_READPB_HANDLER(READ8(eacc_state, eacc_keyboard_r))
MCFG_PIA_READCA1_HANDLER(READLINE(eacc_state, eacc_distance_r))
MCFG_PIA_READCB1_HANDLER(READLINE(eacc_state, eacc_cb1_r))
MCFG_PIA_READCA2_HANDLER(READLINE(eacc_state, eacc_fuel_sensor_r))
MCFG_PIA_WRITEPA_HANDLER(WRITE8(eacc_state, eacc_segment_w))
MCFG_PIA_WRITEPB_HANDLER(WRITE8(eacc_state, eacc_digit_w))
MCFG_PIA_CB2_HANDLER(WRITELINE(eacc_state, eacc_cb2_w))
MCFG_PIA_IRQA_HANDLER(INPUTLINE("maincpu", M6802_IRQ_LINE))
MCFG_PIA_IRQB_HANDLER(INPUTLINE("maincpu", M6802_IRQ_LINE))
MCFG_NVRAM_ADD_0FILL("nvram")
MCFG_TIMER_DRIVER_ADD_PERIODIC("eacc_nmi", eacc_state, eacc_nmi, attotime::from_hz(600))
MCFG_TIMER_DRIVER_ADD_PERIODIC("eacc_cb1", eacc_state, eacc_cb1, attotime::from_hz(30))
MACHINE_CONFIG_END
/******************************************************************************
ROM Definitions
******************************************************************************/
ROM_START(eacc)
ROM_REGION(0x10000, "maincpu", 0)
示例2: MCFG_SCREEN_REFRESH_RATE
MCFG_SCREEN_REFRESH_RATE(60)
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
MCFG_SCREEN_UPDATE_DEVICE("hd63484", h63484_device, update_screen)
MCFG_SCREEN_SIZE(720, 480)
MCFG_SCREEN_VISIBLE_AREA(0, 720-1, 0, 448-1)
MCFG_SCREEN_PALETTE("palette")
MCFG_PALETTE_ADD("palette", 16)
MCFG_RAMDAC_ADD("ramdac", ramdac_map, "palette")
MCFG_H63484_ADD("hd63484", 8000000, segajw_hd63484_map) // unknown clock
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("ymsnd", YM3438, 8000000) // unknown clock
MCFG_YM2612_IRQ_HANDLER(INPUTLINE("maincpu", 5))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_CONFIG_END
/***************************************************************************
Game driver(s)
***************************************************************************/
ROM_START( segajw )
ROM_REGION( 0x40000, "maincpu", 0 )
ROM_LOAD16_BYTE( "14584b.epr", 0x00001, 0x20000, CRC(d3a6d63d) SHA1(ce9d4769b7514294a91af1dfd7cd10ee40b3572c) )
ROM_LOAD16_BYTE( "14585b.epr", 0x00000, 0x20000, CRC(556d0a62) SHA1(d2def433a511cbdebbe2cd0c8e51fc8c4ff1ed7b) )
ROM_REGION( 0x20000, "audiocpu", 0 )
示例3: MCFG_SCREEN_REFRESH_RATE
MCFG_SCREEN_REFRESH_RATE(60)
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
MCFG_SCREEN_SIZE(256, 256)
MCFG_SCREEN_VISIBLE_AREA(0, 256-1, 0+16, 256-16-1)
MCFG_SCREEN_UPDATE_DRIVER(amspdwy_state, screen_update_amspdwy)
MCFG_SCREEN_PALETTE("palette")
MCFG_GFXDECODE_ADD("gfxdecode", "palette", amspdwy)
MCFG_PALETTE_ADD("palette", 32)
MCFG_PALETTE_FORMAT(BBGGGRRR_inverted)
/* sound hardware */
MCFG_SPEAKER_STANDARD_STEREO("lspeaker", "rspeaker")
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", INPUT_LINE_NMI))
MCFG_YM2151_ADD("ymsnd", 3000000)
MCFG_YM2151_IRQ_HANDLER(INPUTLINE("audiocpu", 0))
MCFG_SOUND_ROUTE(0, "lspeaker", 1.0)
MCFG_SOUND_ROUTE(1, "rspeaker", 1.0)
MACHINE_CONFIG_END
/***************************************************************************
ROMs Loading
示例4: MCFG_DEVICE_ADD
MCFG_DEVICE_ADD("maincpu", Z80, 4000000) /* 4 MHz ? */
MCFG_DEVICE_PROGRAM_MAP(mouser_map)
MCFG_DEVICE_OPCODES_MAP(decrypted_opcodes_map)
MCFG_DEVICE_ADD("audiocpu", Z80, 4000000) /* ??? */
MCFG_DEVICE_PROGRAM_MAP(mouser_sound_map)
MCFG_DEVICE_IO_MAP(mouser_sound_io_map)
MCFG_DEVICE_PERIODIC_INT_DRIVER(mouser_state, mouser_sound_nmi_assert, 4*60) /* ??? This controls the sound tempo */
ls259_device &mainlatch(LS259(config, "mainlatch")); // type unconfirmed
mainlatch.q_out_cb<0>().set(FUNC(mouser_state::nmi_enable_w));
mainlatch.q_out_cb<1>().set(FUNC(mouser_state::flip_screen_x_w));
mainlatch.q_out_cb<2>().set(FUNC(mouser_state::flip_screen_y_w));
MCFG_GENERIC_LATCH_8_ADD("soundlatch")
MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("audiocpu", 0))
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 2*8, 30*8-1)
MCFG_SCREEN_UPDATE_DRIVER(mouser_state, screen_update_mouser)
MCFG_SCREEN_PALETTE("palette")
MCFG_SCREEN_VBLANK_CALLBACK(WRITELINE(*this, mouser_state, mouser_nmi_interrupt))
MCFG_DEVICE_ADD("gfxdecode", GFXDECODE, "palette", gfx_mouser)
MCFG_PALETTE_ADD("palette", 64)
MCFG_PALETTE_INIT_OWNER(mouser_state, mouser)
示例5: WRITE_LINE_MEMBER
}
WRITE_LINE_MEMBER(isbc_state::isbc_uart8274_irq)
{
m_uart8274->m1_r(); // always set
m_pic_0->ir6_w(state);
}
static MACHINE_CONFIG_START( isbc86, isbc_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", I8086, XTAL_5MHz)
MCFG_CPU_PROGRAM_MAP(isbc86_mem)
MCFG_CPU_IO_MAP(isbc_io)
MCFG_CPU_IRQ_ACKNOWLEDGE_DEVICE("pic_0", pic8259_device, inta_cb)
MCFG_PIC8259_ADD("pic_0", INPUTLINE(":maincpu", 0), VCC, NULL)
MCFG_DEVICE_ADD("pit", PIT8253, 0)
MCFG_PIT8253_CLK0(XTAL_22_1184MHz/18)
MCFG_PIT8253_OUT0_HANDLER(DEVWRITELINE("pic_0", pic8259_device, ir0_w))
MCFG_PIT8253_CLK1(XTAL_22_1184MHz/18)
MCFG_PIT8253_CLK2(XTAL_22_1184MHz/18)
MCFG_PIT8253_OUT2_HANDLER(WRITELINE(isbc_state, isbc86_tmr2_w))
MCFG_DEVICE_ADD("ppi", I8255A, 0)
MCFG_DEVICE_ADD("uart8251", I8251, 0)
MCFG_I8251_TXD_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_txd))
MCFG_I8251_DTR_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_dtr))
MCFG_I8251_RTS_HANDLER(DEVWRITELINE("rs232", rs232_port_device, write_rts))
MCFG_I8251_RXRDY_HANDLER(DEVWRITELINE("pic_0", pic8259_device, ir6_w))
示例6: MCFG_SOUND_ROUTE
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
// internal ram
MCFG_RAM_ADD(RAM_TAG)
MCFG_RAM_DEFAULT_SIZE("256k")
MCFG_RAM_EXTRA_OPTIONS("384k,512k") // with 1 or 2 128k expansion boards
// devices
MCFG_DEVICE_ADD("ic17", I8255A, 0)
MCFG_I8255_IN_PORTA_CB(DEVREAD8("cent_data_in", input_buffer_device, read))
MCFG_I8255_OUT_PORTA_CB(DEVWRITE8("cent_data_out", output_latch_device, write))
MCFG_I8255_OUT_PORTB_CB(WRITE8(apricot_state, i8255_portb_w))
MCFG_I8255_IN_PORTC_CB(READ8(apricot_state, i8255_portc_r))
MCFG_I8255_OUT_PORTC_CB(WRITE8(apricot_state, i8255_portc_w))
MCFG_PIC8259_ADD("ic31", INPUTLINE("ic91", 0), VCC, NULL)
MCFG_DEVICE_ADD("ic16", PIT8253, 0)
MCFG_PIT8253_CLK0(XTAL_4MHz / 16)
MCFG_PIT8253_OUT0_HANDLER(DEVWRITELINE("ic31", pic8259_device, ir6_w))
MCFG_PIT8253_CLK1(XTAL_4MHz / 2)
MCFG_PIT8253_OUT1_HANDLER(WRITELINE(apricot_state, timer_out1))
MCFG_PIT8253_CLK2(XTAL_4MHz / 2)
MCFG_PIT8253_OUT2_HANDLER(WRITELINE(apricot_state, timer_out2))
MCFG_Z80SIO0_ADD("ic15", XTAL_15MHz / 6, 0, 0, XTAL_4MHz / 16, XTAL_4MHz / 16)
MCFG_Z80DART_OUT_TXDA_CB(DEVWRITELINE("rs232", rs232_port_device, write_txd))
MCFG_Z80DART_OUT_DTRA_CB(DEVWRITELINE("rs232", rs232_port_device, write_dtr))
MCFG_Z80DART_OUT_RTSA_CB(DEVWRITELINE("rs232", rs232_port_device, write_rts))
MCFG_Z80DART_OUT_WRDYA_CB(DEVWRITELINE("ic71", i8089_device, drq2_w))
MCFG_Z80DART_OUT_DTRB_CB(WRITELINE(apricot_state, data_selector_dtr_w))
示例7: MCFG_CPU_PROGRAM_MAP
MCFG_CPU_PROGRAM_MAP(cpu_mem)
MCFG_CPU_IO_MAP(cpu_io)
MCFG_CPU_IRQ_ACKNOWLEDGE_DEVICE(DEVICE_SELF, epson_tf20_device,irq_callback)
// 64k internal ram
MCFG_RAM_ADD("ram")
MCFG_RAM_DEFAULT_SIZE("64k")
// upd7201 serial interface
MCFG_UPD7201_ADD("3a", XTAL_CR1 / 2, 0, 0, 0, 0)
MCFG_Z80DART_OUT_TXDA_CB(WRITELINE(epson_tf20_device, txda_w))
MCFG_Z80DART_OUT_DTRA_CB(WRITELINE(epson_tf20_device, dtra_w))
// floppy disk controller
MCFG_UPD765A_ADD("5a", true, true)
MCFG_UPD765_INTRQ_CALLBACK(INPUTLINE("19b", INPUT_LINE_IRQ0))
// floppy drives
MCFG_FLOPPY_DRIVE_ADD("5a:0", tf20_floppies, "sd320", floppy_image_device::default_floppy_formats)
MCFG_FLOPPY_DRIVE_ADD("5a:1", tf20_floppies, "sd320", floppy_image_device::default_floppy_formats)
// serial interface to another device
MCFG_EPSON_SIO_ADD("sio", nullptr)
MCFG_EPSON_SIO_RX(DEVWRITELINE(DEVICE_SELF, epson_tf20_device, rxc_w))
MCFG_EPSON_SIO_PIN(DEVWRITELINE(DEVICE_SELF, epson_tf20_device, pinc_w))
MACHINE_CONFIG_END
machine_config_constructor epson_tf20_device::device_mconfig_additions() const
{
return MACHINE_CONFIG_NAME( tf20 );
}
示例8: MCFG_SCREEN_SIZE
MCFG_SCREEN_SIZE(40 * 12, 24 * 20)
MCFG_SCREEN_VISIBLE_AREA(0, 40 * 12 - 1, 0, 24 * 20 - 1)
MCFG_SCREEN_UPDATE_DEVICE("saa5050", saa5050_device, screen_update)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("speaker", SPEAKER_SOUND, 0)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
/* Devices */
MCFG_DEVICE_ADD("saa5050", SAA5050, 6000000)
MCFG_SAA5050_D_CALLBACK(READ8(poly_state, videoram_r))
MCFG_SAA5050_SCREEN_SIZE(40, 24, 40)
MCFG_DEVICE_ADD("pia0", PIA6821, 0)
MCFG_PIA_IRQA_HANDLER(INPUTLINE("maincpu", M6809_IRQ_LINE))
MCFG_PIA_IRQB_HANDLER(INPUTLINE("maincpu", M6809_IRQ_LINE))
MCFG_DEVICE_ADD("pia1", PIA6821, 0)
MCFG_PIA_READPB_HANDLER(READ8(poly_state, pia1_b_in))
// CB1 kbd strobe
MCFG_PIA_IRQA_HANDLER(INPUTLINE("maincpu", M6809_IRQ_LINE))
MCFG_PIA_IRQB_HANDLER(INPUTLINE("maincpu", M6809_IRQ_LINE))
MCFG_DEVICE_ADD("ptm", PTM6840, 0)
MCFG_PTM6840_INTERNAL_CLOCK(XTAL_12MHz / 3)
MCFG_PTM6840_EXTERNAL_CLOCKS(0, 0, 0)
MCFG_PTM6840_OUT1_CB(WRITE8(poly_state, ptm_o2_callback))
MCFG_PTM6840_OUT2_CB(WRITE8(poly_state, ptm_o3_callback))
MCFG_PTM6840_IRQ_CB(INPUTLINE("maincpu", M6809_IRQ_LINE))
示例9: MCFG_SCREEN_REFRESH_RATE
MCFG_SCREEN_REFRESH_RATE(60)
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
MCFG_SCREEN_SIZE(32*8, 32*8)
MCFG_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 1*8, 31*8-1)
MCFG_SCREEN_UPDATE_DRIVER(shootout_state, screen_update_shootout)
MCFG_SCREEN_PALETTE("palette")
MCFG_GFXDECODE_ADD("gfxdecode", "palette", shootout)
MCFG_PALETTE_ADD("palette", 256)
MCFG_PALETTE_INIT_OWNER(shootout_state, shootout)
/* sound hardware */
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("ymsnd", YM2203, 1500000)
MCFG_YM2203_IRQ_HANDLER(INPUTLINE("audiocpu", M6502_IRQ_LINE))
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
MACHINE_CONFIG_END
static MACHINE_CONFIG_START( shootouj, shootout_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", M6502, 2000000) /* 2 MHz? */
MCFG_CPU_PROGRAM_MAP(shootouj_map)
/* video hardware */
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(60)
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
MCFG_SCREEN_SIZE(32*8, 32*8)
示例10: MACHINE_CONFIG_FRAGMENT
static MACHINE_CONFIG_FRAGMENT( pcx_video )
MCFG_CPU_ADD("graphics", I8031, XTAL_24MHz/2)
MCFG_CPU_PROGRAM_MAP(pcx_vid_map)
MCFG_CPU_IO_MAP(pcx_vid_io)
// video hardware
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_SIZE(640, 350)
MCFG_SCREEN_VISIBLE_AREA(0, 639, 0, 349)
MCFG_SCREEN_REFRESH_RATE(50)
MCFG_SCREEN_UPDATE_DEVICE("crtc", scn2674_device, screen_update)
MCFG_GFXDECODE_ADD("gfxdecode", "palette", pcx)
MCFG_PALETTE_ADD_BLACK_AND_WHITE("palette")
MCFG_SCN2674_VIDEO_ADD("crtc", 0, INPUTLINE("graphics", MCS51_INT0_LINE));
MCFG_SCN2674_TEXT_CHARACTER_WIDTH(8)
MCFG_SCN2674_GFX_CHARACTER_WIDTH(16)
MCFG_SCN2674_DRAW_CHARACTER_CALLBACK_OWNER(pcx_video_device, display_pixels)
MCFG_VIDEO_SET_SCREEN("screen")
MCFG_DEVICE_ADDRESS_MAP(AS_0, pcx_vram)
MACHINE_CONFIG_END
machine_config_constructor pcx_video_device::device_mconfig_additions() const
{
return MACHINE_CONFIG_NAME( pcx_video );
}
SCN2674_DRAW_CHARACTER_MEMBER(pcd_video_device::display_pixels)
{
address <<= 1;
示例11: MACHINE_CONFIG_START
//-------------------------------------------------
// device_add_mconfig - add device configuration
//-------------------------------------------------
MACHINE_CONFIG_START(bbc_tube_z80_device::device_add_mconfig)
MCFG_DEVICE_ADD("z80", Z80, XTAL(12'000'000) / 2)
MCFG_DEVICE_PROGRAM_MAP(tube_z80_mem)
MCFG_DEVICE_OPCODES_MAP(tube_z80_fetch)
MCFG_DEVICE_IO_MAP(tube_z80_io)
MCFG_DEVICE_IRQ_ACKNOWLEDGE_DEVICE(DEVICE_SELF, bbc_tube_z80_device, irq_callback)
MCFG_TUBE_ADD("ula")
MCFG_TUBE_HIRQ_HANDLER(WRITELINE(DEVICE_SELF_OWNER, bbc_tube_slot_device, irq_w))
MCFG_TUBE_PNMI_HANDLER(WRITELINE(*this, bbc_tube_z80_device, nmi_w))
MCFG_TUBE_PIRQ_HANDLER(INPUTLINE("z80", INPUT_LINE_IRQ0))
/* internal ram */
MCFG_RAM_ADD(RAM_TAG)
MCFG_RAM_DEFAULT_SIZE("64K")
MCFG_RAM_DEFAULT_VALUE(0x00)
/* software lists */
MCFG_SOFTWARE_LIST_ADD("flop_ls_z80", "bbc_flop_z80")
MACHINE_CONFIG_END
//-------------------------------------------------
// rom_region - device-specific ROM region
//-------------------------------------------------
const tiny_rom_entry *bbc_tube_z80_device::device_rom_region() const
示例12: MCFG_DEVICE_ADD
MCFG_DEVICE_ADD("fgcpu", Z80,XTAL1/4) // ?
MCFG_DEVICE_PROGRAM_MAP(divebomb_fgcpu_map)
MCFG_DEVICE_IO_MAP(divebomb_fgcpu_iomap)
MCFG_DEVICE_ADD("spritecpu", Z80,XTAL1/4) // ?
MCFG_DEVICE_PROGRAM_MAP(divebomb_spritecpu_map)
MCFG_DEVICE_IO_MAP(divebomb_spritecpu_iomap)
MCFG_DEVICE_ADD("rozcpu", Z80,XTAL1/4) // ?
MCFG_DEVICE_PROGRAM_MAP(divebomb_rozcpu_map)
MCFG_DEVICE_IO_MAP(divebomb_rozcpu_iomap)
MCFG_QUANTUM_PERFECT_CPU("fgcpu")
MCFG_INPUT_MERGER_ANY_HIGH("fgcpu_irq")
MCFG_INPUT_MERGER_OUTPUT_HANDLER(INPUTLINE("fgcpu", INPUT_LINE_IRQ0))
MCFG_GENERIC_LATCH_8_ADD("fg2spr")
MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("spritecpu", INPUT_LINE_IRQ0))
MCFG_GENERIC_LATCH_8_ADD("fg2roz")
MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE("rozcpu", INPUT_LINE_IRQ0))
MCFG_GENERIC_LATCH_8_ADD("spr2fg")
MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("fgcpu_irq", input_merger_any_high_device, in_w<0>))
MCFG_GENERIC_LATCH_8_ADD("roz2fg")
MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("fgcpu_irq", input_merger_any_high_device, in_w<1>))
MCFG_DEVICE_ADD("k051316_1", K051316, 0)
MCFG_GFX_PALETTE("palette")
示例13: MACHINE_CONFIG_START
MACHINE_CONFIG_START(bbc_tube_casper_device::device_add_mconfig)
MCFG_CPU_ADD("m68000", M68000, XTAL(4'000'000))
MCFG_CPU_PROGRAM_MAP(tube_casper_mem)
MCFG_DEVICE_ADD("via6522_0", VIA6522, XTAL(4'000'000) / 2)
MCFG_VIA6522_WRITEPB_HANDLER(DEVWRITE8("via6522_1", via6522_device, write_pa))
MCFG_VIA6522_CA2_HANDLER(DEVWRITELINE("via6522_1", via6522_device, write_cb1))
MCFG_VIA6522_CB2_HANDLER(DEVWRITELINE("via6522_1", via6522_device, write_ca1))
MCFG_VIA6522_IRQ_HANDLER(DEVWRITELINE(DEVICE_SELF_OWNER, bbc_tube_slot_device, irq_w))
MCFG_DEVICE_ADD("via6522_1", VIA6522, XTAL(4'000'000) / 2)
MCFG_VIA6522_WRITEPB_HANDLER(DEVWRITE8("via6522_0", via6522_device, write_pa))
MCFG_VIA6522_CA2_HANDLER(DEVWRITELINE("via6522_0", via6522_device, write_cb1))
MCFG_VIA6522_CB2_HANDLER(DEVWRITELINE("via6522_0", via6522_device, write_ca1))
MCFG_VIA6522_IRQ_HANDLER(INPUTLINE("maincpu", M68K_IRQ_1))
/* software lists */
MCFG_SOFTWARE_LIST_ADD("flop_ls_casper", "bbc_flop_68000")
MACHINE_CONFIG_END
//-------------------------------------------------
// rom_region - device-specific ROM region
//-------------------------------------------------
const tiny_rom_entry *bbc_tube_casper_device::device_rom_region() const
{
return ROM_NAME( tube_casper );
}
//**************************************************************************
示例14: MCFG_DEVICE_ADD
MCFG_DEVICE_ADD("modppi1", I8255, 0)
MCFG_DEVICE_ADD("modppi2", I8255, 0)
MCFG_DEVICE_ADD("moduart", I8251, XTAL_4MHz / 2) // divider guessed
MCFG_DEVICE_ADD("rtc", MM58167, XTAL_32_768kHz)
MACHINE_CONFIG_END
static MACHINE_CONFIG_START( pg675, pg685_state )
// main cpu
MCFG_CPU_ADD("maincpu", I8088, XTAL_15MHz / 3)
MCFG_CPU_PROGRAM_MAP(pg675_mem)
MCFG_CPU_IRQ_ACKNOWLEDGE_DEVICE("mainpic", pic8259_device, inta_cb)
MCFG_PIC8259_ADD("mainpic", INPUTLINE("maincpu", 0), VCC, NOOP)
// i/o cpu
// ram
// video hardware
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_RAW_PARAMS(12288000, 882, 0, 720, 370, 0, 350 ) // not real values
MCFG_SCREEN_UPDATE_DEVICE( "crtc", mc6845_device, screen_update )
MCFG_MC6845_ADD("crtc", MC6845, "screen", 12288000)
MCFG_MC6845_SHOW_BORDER_AREA(false)
MCFG_MC6845_CHAR_WIDTH(8)
MCFG_MC6845_UPDATE_ROW_CB(pg685_state, crtc_update_row)
示例15: MACHINE_CONFIG_START
/*************************
* Machine Drivers *
*************************/
static MACHINE_CONFIG_START( jwildb52, sigmab52_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu", M6809, MAIN_CLOCK/9) /* 2 MHz */
MCFG_CPU_PROGRAM_MAP(jwildb52_map)
MCFG_CPU_ADD("audiocpu", M6809, MAIN_CLOCK/9) /* 2 MHz */
MCFG_CPU_PROGRAM_MAP(sound_prog_map)
MCFG_DEVICE_ADD("6840ptm_1", PTM6840, 0)
MCFG_PTM6840_INTERNAL_CLOCK(MAIN_CLOCK/9) // FIXME
MCFG_PTM6840_IRQ_CB(INPUTLINE("maincpu", M6809_IRQ_LINE))
MCFG_DEVICE_ADD("6840ptm_2", PTM6840, 0)
MCFG_PTM6840_INTERNAL_CLOCK(MAIN_CLOCK/18) // FIXME
MCFG_PTM6840_IRQ_CB(WRITELINE(sigmab52_state, ptm2_irq))
MCFG_NVRAM_ADD_NO_FILL("nvram")
MCFG_SCREEN_ADD("screen", RASTER)
MCFG_SCREEN_REFRESH_RATE(30)
MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(0))
MCFG_SCREEN_SIZE(1024, 1024)
MCFG_SCREEN_VISIBLE_AREA(0, 544-1, 0, 436-1)
MCFG_SCREEN_UPDATE_DEVICE("hd63484", hd63484_device, update_screen)
MCFG_SCREEN_PALETTE("palette")