当前位置: 首页>>代码示例>>C++>>正文


C++ DEVCB_DRIVER_MEMBER函数代码示例

本文整理汇总了C++中DEVCB_DRIVER_MEMBER函数的典型用法代码示例。如果您正苦于以下问题:C++ DEVCB_DRIVER_MEMBER函数的具体用法?C++ DEVCB_DRIVER_MEMBER怎么用?C++ DEVCB_DRIVER_MEMBER使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了DEVCB_DRIVER_MEMBER函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: machine

{
    machine().scheduler().timer_set(attotime::from_usec(10), FUNC(okean240_boot));
    memory_set_bank(machine(), "boot", 1);
    m_term_data = 0;
    m_j = 0;
    m_scroll = 0;
}

WRITE8_MEMBER( okean240_state::kbd_put )
{
    m_term_data = data;
}

static GENERIC_TERMINAL_INTERFACE( okean240_terminal_intf )
{
    DEVCB_DRIVER_MEMBER(okean240_state, kbd_put)
};

DRIVER_INIT( okean240 )
{
    UINT8 *RAM = machine.region("maincpu")->base();
    memory_configure_bank(machine, "boot", 0, 2, &RAM[0x0000], 0xe000);
}

VIDEO_START_MEMBER( okean240_state )
{
}

#ifndef OKEAN240_USING_TESTROM
static SCREEN_UPDATE( okean240 )
{
开发者ID:rogerjowett,项目名称:ClientServerMAME,代码行数:31,代码来源:okean240.c

示例2: AM_RANGE

AM_RANGE(0x00, 0x00) AM_READ(term_r) AM_DEVWRITE(TERMINAL_TAG, generic_terminal_device, write)
AM_RANGE(0x01, 0x01) AM_READ(term_status_r)
ADDRESS_MAP_END

/* Input ports */
static INPUT_PORTS_START( cm1800 )
INPUT_PORTS_END


static MACHINE_RESET(cm1800)
{
}

static GENERIC_TERMINAL_INTERFACE( terminal_intf )
{
    DEVCB_DRIVER_MEMBER(cm1800_state, kbd_put)
};

static MACHINE_CONFIG_START( cm1800, cm1800_state )
/* basic machine hardware */
MCFG_CPU_ADD("maincpu",I8080, XTAL_2MHz)
MCFG_CPU_PROGRAM_MAP(cm1800_mem)
MCFG_CPU_IO_MAP(cm1800_io)

MCFG_MACHINE_RESET(cm1800)

/* video hardware */
MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, terminal_intf)
MACHINE_CONFIG_END

/* ROM definition */
开发者ID:risico,项目名称:jsmess,代码行数:31,代码来源:cm1800.c

示例3: WRITE_LINE_MEMBER



WRITE_LINE_MEMBER(tail2nos_state::irqhandler)
{
	m_audiocpu->set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE);
}

static const ay8910_interface ay8910_config =
{
	AY8910_LEGACY_OUTPUT | AY8910_SINGLE_OUTPUT,
	AY8910_DEFAULT_LOADS,
	DEVCB_NULL,
	DEVCB_NULL,
	DEVCB_NULL,
	DEVCB_DRIVER_MEMBER(tail2nos_state,sound_bankswitch_w)
};


static const k051316_interface tail2nos_k051316_intf =
{
	"gfx3", 2,
	-4, TRUE, 0,
	1, -89, -14,
	tail2nos_zoom_callback
};

void tail2nos_state::machine_start()
{
	UINT8 *ROM = memregion("audiocpu")->base();
开发者ID:CJBass,项目名称:mame2013-libretro,代码行数:27,代码来源:tail2nos.c

示例4: input

	   bit 6 - Player 2 steering input (wheel moving or stopped)
	   bit 7 - Player 1 steering input (wheel moving or stopped) */

	ret = (m_ttl7474_1a_1->output_r() ? 0x10 : 0x00) |
			(m_ttl7474_1c_1->output_r() ? 0x20 : 0x00) |
			(m_ttl7474_1d_1->output_r() ? 0x40 : 0x00) |
			(m_ttl7474_1f_1->output_r() ? 0x80 : 0x00);

	return ret;
}


const pia6821_interface carpolo_pia0_intf =
{
	DEVCB_NULL,     /* port A in */
	DEVCB_DRIVER_MEMBER(carpolo_state,pia_0_port_b_r),  /* port B in */
	DEVCB_NULL,     /* line CA1 in */
	DEVCB_NULL,     /* line CB1 in */
	DEVCB_NULL,     /* line CA2 in */
	DEVCB_NULL,     /* line CB2 in */
	DEVCB_DRIVER_MEMBER(carpolo_state,pia_0_port_a_w),      /* port A out */
	DEVCB_DRIVER_MEMBER(carpolo_state,pia_0_port_b_w),      /* port B out */
	DEVCB_DRIVER_LINE_MEMBER(carpolo_state,coin1_interrupt_clear_w),        /* line CA2 out */
	DEVCB_DRIVER_LINE_MEMBER(carpolo_state,coin2_interrupt_clear_w),        /* port CB2 out */
	DEVCB_NULL,     /* IRQA */
	DEVCB_NULL      /* IRQB */
};


const pia6821_interface carpolo_pia1_intf =
{
开发者ID:Ilgrim,项目名称:MAMEHub,代码行数:31,代码来源:carpolo.c

示例5: WRITE_LINE_MEMBER

WRITE_LINE_MEMBER( apf_state::apf_m1000_irq_a_func )
{
	apf_update_ints(0x01);
}


WRITE_LINE_MEMBER( apf_state::apf_m1000_irq_b_func )
{
	//logerror("pia 0 irq b %d\n",state);

	apf_update_ints(0x02);
}

static const pia6821_interface apf_m1000_pia_interface=
{
	DEVCB_DRIVER_MEMBER(apf_state, apf_m1000_pia_in_a_func),
	DEVCB_DRIVER_MEMBER(apf_state, apf_m1000_pia_in_b_func),
	DEVCB_DRIVER_MEMBER(apf_state, apf_m1000_pia_in_ca1_func),
	DEVCB_DRIVER_MEMBER(apf_state, apf_m1000_pia_in_cb1_func),
	DEVCB_DRIVER_MEMBER(apf_state, apf_m1000_pia_in_ca2_func),
	DEVCB_DRIVER_MEMBER(apf_state, apf_m1000_pia_in_cb2_func),
	DEVCB_DRIVER_MEMBER(apf_state, apf_m1000_pia_out_a_func),
	DEVCB_DRIVER_MEMBER(apf_state, apf_m1000_pia_out_b_func),
	DEVCB_DRIVER_LINE_MEMBER(apf_state, apf_m1000_pia_out_ca2_func),
	DEVCB_DRIVER_MEMBER(apf_state, apf_m1000_pia_out_cb2_func),
	DEVCB_DRIVER_LINE_MEMBER(apf_state, apf_m1000_irq_a_func),
	DEVCB_DRIVER_LINE_MEMBER(apf_state, apf_m1000_irq_b_func)
};


READ8_MEMBER( apf_state::apf_imagination_pia_in_a_func)
开发者ID:clobber,项目名称:UME,代码行数:31,代码来源:apf.c

示例6: compis_fdc_reset

	/* Centronics Strobe */
	m_centronics->strobe_w(BIT(data, 5));

	/* FDC Reset */
	if (BIT(data, 6))
		compis_fdc_reset(machine());

	/* FDC Terminal count */
	compis_fdc_tc(BIT(data, 7));
}

I8255A_INTERFACE( compis_ppi_interface )
{
	DEVCB_NULL,
	DEVCB_DEVICE_MEMBER("centronics", centronics_device, write),
	DEVCB_DRIVER_MEMBER(compis_state, compis_ppi_port_b_r),
	DEVCB_NULL,
	DEVCB_NULL,
	DEVCB_DRIVER_MEMBER(compis_state, compis_ppi_port_c_w)
};


/*-------------------------------------------------------------------------*/
/*  PIT 8253                                                               */
/*-------------------------------------------------------------------------*/

const struct pit8253_config compis_pit8253_config =
{
	{
		/* Timer0 */
		{4770000/4, DEVCB_NULL, DEVCB_NULL },
开发者ID:risico,项目名称:jsmess,代码行数:31,代码来源:compis.c

示例7: WRITE8_MEMBER

				*p++ = BIT(gfx, 0);
			}
		}
		ma+=80;
	}
	return 0;
}

WRITE8_MEMBER( k8915_state::kbd_put )
{
	m_term_data = data;
}

static ASCII_KEYBOARD_INTERFACE( keyboard_intf )
{
	DEVCB_DRIVER_MEMBER(k8915_state, kbd_put)
};

static MACHINE_CONFIG_START( k8915, k8915_state )
	/* basic machine hardware */
	MCFG_CPU_ADD("maincpu", Z80, XTAL_16MHz / 4)
	MCFG_CPU_PROGRAM_MAP(k8915_mem)
	MCFG_CPU_IO_MAP(k8915_io)

	/* video hardware */
	MCFG_SCREEN_ADD("screen", RASTER)
	MCFG_SCREEN_REFRESH_RATE(60)
	MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
	MCFG_SCREEN_UPDATE_DRIVER(k8915_state, screen_update)
	MCFG_SCREEN_SIZE(640, 250)
	MCFG_SCREEN_VISIBLE_AREA(0, 639, 0, 249)
开发者ID:felipesanches,项目名称:ume,代码行数:31,代码来源:k8915.c

示例8: DEVCB_DRIVER_MEMBER

static const ay8910_interface ay8910_intf =
{
/*
  AY8910: Port A out: FF
  AY8910: Port B out: FF
  AY8910: Port A out: FF
  AY8910: Port B out: FF
  AY8910: Port A out: 00
  AY8910: Port B out: 00
*/
	AY8910_LEGACY_OUTPUT,
	AY8910_DEFAULT_LOADS,
	DEVCB_NULL,                 /* Seems unused */
	DEVCB_NULL,                 /* Seems unused */
	DEVCB_DRIVER_MEMBER(tonton_state,ay_aout_w),    /* Write all bits twice, and then reset them at boot */
	DEVCB_DRIVER_MEMBER(tonton_state,ay_bout_w)     /* Write all bits twice, and then reset them at boot */
};


/*************************************************
*                 Machine Driver                 *
*************************************************/

static MACHINE_CONFIG_START( tonton, tonton_state )

	/* basic machine hardware */
	MCFG_CPU_ADD("maincpu",Z80, CPU_CLOCK)  /* Guess. According to other MSX2 based gambling games */
	MCFG_CPU_PROGRAM_MAP(tonton_map)
	MCFG_CPU_IO_MAP(tonton_io)
	MCFG_TIMER_DRIVER_ADD_SCANLINE("scantimer", tonton_state, tonton_interrupt, "screen", 0, 1)
开发者ID:antervud,项目名称:MAMEHub,代码行数:30,代码来源:tonton.c

示例9: DEVCB_DRIVER_MEMBER

	NULL
};

static const cassette_interface alice32_cassette_interface =
{
	alice32_cassette_formats,
	NULL,
	(cassette_state)(CASSETTE_STOPPED | CASSETTE_SPEAKER_ENABLED | CASSETTE_MOTOR_ENABLED),
	"alice32_cass",
	NULL
};

static const mc6847_interface mc10_mc6847_intf =
{
	"screen",
	DEVCB_DRIVER_MEMBER(mc10_state, mc10_mc6847_videoram_r)
};

static MACHINE_CONFIG_START( mc10, mc10_state )

	/* basic machine hardware */
	MCFG_CPU_ADD("maincpu", M6803, XTAL_3_579545MHz)  /* 0,894886 MHz */
	MCFG_CPU_PROGRAM_MAP(mc10_mem)
	MCFG_CPU_IO_MAP(mc10_io)

	/* video hardware */
	MCFG_SCREEN_MC6847_NTSC_ADD("screen", "mc6847")
	MCFG_MC6847_ADD("mc6847", MC6847_NTSC, XTAL_3_579545MHz, mc10_mc6847_intf)

	/* sound hardware */
	MCFG_SPEAKER_STANDARD_MONO("mono")
开发者ID:risico,项目名称:jsmess,代码行数:31,代码来源:mc10.c

示例10: switch

	switch (offset & 0x0c)
	{
		case 0x04:	/* Motherboard */
				switch (offset & 0x80)
				{
					case 0x80:	/* Motherboard 8255 */
							return machine().device<i8255_device>("ppi8255_0")->write(space, offset & 0x03, data);
				}
				break;
	}
}

const i8255_interface pmd85_ppi8255_interface[4] =
{
	{
		DEVCB_DRIVER_MEMBER(pmd85_state,pmd85_ppi_0_porta_r),
		DEVCB_DRIVER_MEMBER(pmd85_state,pmd85_ppi_0_porta_w),
		DEVCB_DRIVER_MEMBER(pmd85_state,pmd85_ppi_0_portb_r),
		DEVCB_DRIVER_MEMBER(pmd85_state,pmd85_ppi_0_portb_w),
		DEVCB_DRIVER_MEMBER(pmd85_state,pmd85_ppi_0_portc_r),
		DEVCB_DRIVER_MEMBER(pmd85_state,pmd85_ppi_0_portc_w)
	},
	{
		DEVCB_DRIVER_MEMBER(pmd85_state,pmd85_ppi_1_porta_r),
		DEVCB_DRIVER_MEMBER(pmd85_state,pmd85_ppi_1_porta_w),
		DEVCB_DRIVER_MEMBER(pmd85_state,pmd85_ppi_1_portb_r),
		DEVCB_DRIVER_MEMBER(pmd85_state,pmd85_ppi_1_portb_w),
		DEVCB_DRIVER_MEMBER(pmd85_state,pmd85_ppi_1_portc_r),
		DEVCB_DRIVER_MEMBER(pmd85_state,pmd85_ppi_1_portc_w)
	},
	{
开发者ID:coinhelper,项目名称:jsmess,代码行数:31,代码来源:pmd85.c

示例11: WRITE8_MEMBER

void seattle_comp_state::machine_reset()
{
	m_key_available = 0;
	m_term_data = 0;
}

WRITE8_MEMBER( seattle_comp_state::kbd_put )
{
	m_term_data = data;
	m_key_available = 1;
}

static GENERIC_TERMINAL_INTERFACE( terminal_intf )
{
	DEVCB_DRIVER_MEMBER(seattle_comp_state, kbd_put)
};

static MACHINE_CONFIG_START( seattle, seattle_comp_state )
	/* basic machine hardware */
	MCFG_CPU_ADD("maincpu", I8086, 4000000) // no idea
	MCFG_CPU_PROGRAM_MAP(seattle_mem)
	MCFG_CPU_IO_MAP(seattle_io)

	/* video hardware */
	MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, terminal_intf)
MACHINE_CONFIG_END

/* ROM definition */
ROM_START( seattle )
	ROM_REGION( 0x800, "user1", 0 )
开发者ID:antervud,项目名称:MAMEHub,代码行数:30,代码来源:seattle.c

示例12: WRITE_LINE_MEMBER

	// i8237_hlda_w(get_device_dma8237_2(device), state);
}

WRITE_LINE_MEMBER(apollo_state::apollo_dma_2_hrq_changed ) {
	CLOG2(("dma 2 hrq changed state %02x", state));
	m_maincpu->set_input_line(INPUT_LINE_HALT, state ? ASSERT_LINE : CLEAR_LINE);

	/* Assert HLDA */
	m_dma8237_2->hack_w(state);
}

static I8237_INTERFACE( apollo_dma8237_1_config )
{
	DEVCB_DRIVER_LINE_MEMBER(apollo_state, apollo_dma_1_hrq_changed),
	DEVCB_DRIVER_LINE_MEMBER(apollo_state, apollo_dma8237_out_eop),
	DEVCB_DRIVER_MEMBER(apollo_state, apollo_dma_read_byte),
	DEVCB_DRIVER_MEMBER(apollo_state, apollo_dma_write_byte),
	{   DEVCB_NULL, DEVCB_DRIVER_MEMBER(apollo_state, apollo_dma8237_ctape_dack_r), DEVCB_DRIVER_MEMBER(apollo_state, apollo_dma8237_fdc_dack_r), DEVCB_NULL},
	{   DEVCB_NULL, DEVCB_DRIVER_MEMBER(apollo_state, apollo_dma8237_ctape_dack_w), DEVCB_DRIVER_MEMBER(apollo_state, apollo_dma8237_fdc_dack_w), DEVCB_NULL},
	{   DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL}
};

static I8237_INTERFACE( apollo_dma8237_2_config )
{
	DEVCB_DRIVER_LINE_MEMBER(apollo_state, apollo_dma_2_hrq_changed),
	DEVCB_NULL,
	DEVCB_DRIVER_MEMBER(apollo_state, apollo_dma_read_word),
	DEVCB_DRIVER_MEMBER(apollo_state, apollo_dma_write_word),
	{   DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_DRIVER_MEMBER(apollo_state, apollo_dma8237_wdc_dack_r)},
	{   DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_DRIVER_MEMBER(apollo_state, apollo_dma8237_wdc_dack_w)},
	{   DEVCB_NULL, DEVCB_NULL, DEVCB_NULL, DEVCB_NULL}
开发者ID:felipesanches,项目名称:ume,代码行数:31,代码来源:apollo.c

示例13: WRITE8_MEMBER

   There's a separate ROM check for banked U04 at 30F3.
   It looks like dealer/revenger uses ppi8255 to control bankswitching.
*/
WRITE8_MEMBER(epos_state::write_prtc)
{
	membank("bank2")->set_entry(data & 0x01);
}

static I8255A_INTERFACE( ppi8255_intf )
{
	DEVCB_INPUT_PORT("INPUTS"),     /* Port A read */
	DEVCB_NULL,                     /* Port A write */
	DEVCB_NULL,                     /* Port B read */
	DEVCB_NULL,                     /* Port B write */
	DEVCB_NULL,                     /* Port C read */
	DEVCB_DRIVER_MEMBER(epos_state,write_prtc)      /* Port C write */
};


/*************************************
 *
 *  Port definitions
 *
 *************************************/

/* I think the upper two bits of port 1 are used as a simple form of protection,
   so that ROMs couldn't be simply swapped.  Each game checks these bits and halts
   the processor if an unexpected value is read. */

static INPUT_PORTS_START( megadon )
	PORT_START("DSW")
开发者ID:AreaScout,项目名称:mame-libretro,代码行数:31,代码来源:epos.c

示例14: MACHINE_RESET_MEMBER

MACHINE_RESET_MEMBER(pdp11_state,pdp11qb)
{
	m_maincpu->set_state_int(T11_PC, 0xea00);
}


WRITE8_MEMBER( pdp11_state::kbd_put )
{
	m_teletype_data = data;
	m_teletype_status |= 0x80;
}

static GENERIC_TERMINAL_INTERFACE( terminal_intf )
{
	DEVCB_DRIVER_MEMBER(pdp11_state, kbd_put)
};

static MACHINE_CONFIG_START( pdp11, pdp11_state )
	/* basic machine hardware */
	MCFG_CPU_ADD("maincpu",T11, XTAL_4MHz) // Need proper CPU here
	MCFG_T11_INITIAL_MODE(6 << 13)
	MCFG_CPU_PROGRAM_MAP(pdp11_mem)


	/* video hardware */
	MCFG_GENERIC_TERMINAL_ADD(TERMINAL_TAG, terminal_intf)

	MCFG_RX01_ADD("rx01")
MACHINE_CONFIG_END
开发者ID:felipesanches,项目名称:ume,代码行数:29,代码来源:pdp11.c

示例15: PORT_BIT

	PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
	PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
	PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
	PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED )
	PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNUSED )
	PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_COIN1 ) PORT_CHANGED_MEMBER(DEVICE_SELF, madalien_state,coin_inserted, 0)
INPUT_PORTS_END


static const ay8910_interface ay8910_config =
{
	AY8910_LEGACY_OUTPUT,
	AY8910_DEFAULT_LOADS,
	DEVCB_NULL,
	DEVCB_NULL,
	DEVCB_DRIVER_MEMBER(madalien_state,madalien_portA_w),
	DEVCB_DRIVER_MEMBER(madalien_state,madalien_portB_w)
};


static MACHINE_CONFIG_START( madalien, madalien_state )

	/* main CPU */
	MCFG_CPU_ADD("maincpu", M6502, MADALIEN_MAIN_CLOCK / 8) /* 1324kHz */
	MCFG_CPU_PROGRAM_MAP(main_map)

	MCFG_CPU_ADD("audiocpu", M6502, SOUND_CLOCK / 8)        /* 512kHz */
	MCFG_CPU_PROGRAM_MAP(audio_map)
	MCFG_CPU_VBLANK_INT_DRIVER("screen", madalien_state,  nmi_line_pulse)

	/* video hardware */
开发者ID:Ilgrim,项目名称:MAMEHub,代码行数:31,代码来源:madalien.c


注:本文中的DEVCB_DRIVER_MEMBER函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。