Exemplo n.º 1
0
static MACHINE_RESET( aliens )
{
	UINT8 *RAM = memory_region(REGION_CPU1);

	cpunum_set_info_fct(0, CPUINFO_PTR_KONAMI_SETLINES_CALLBACK, (genf *)aliens_banking);

	/* init the default bank */
	memory_set_bankptr( 1, &RAM[0x10000] );
}
Exemplo n.º 2
0
static MACHINE_RESET( crimfght )
{
	unsigned char *RAM = memory_region(REGION_CPU1);

	cpunum_set_info_fct(0, CPUINFO_PTR_KONAMI_SETLINES_CALLBACK, (genf *)crimfght_banking);

	/* init the default bank */
	memory_set_bankptr( 2, &RAM[0x10000] );
}
Exemplo n.º 3
0
Arquivo: c128.c Projeto: RobinDX/xmame
static void c128_common_driver_init (void)
{
    UINT8 *gfx=memory_region(REGION_GFX1);
    int i;

    /* configure the M6510 port */
    cpunum_set_info_fct(1, CPUINFO_PTR_M6510_PORTREAD, (genf *) c64_m6510_port_read);
    cpunum_set_info_fct(1, CPUINFO_PTR_M6510_PORTWRITE, (genf *) c64_m6510_port_write);

    c64_memory = memory_region(REGION_CPU1);

    c128_basic = memory_region(REGION_CPU1)+0x100000;
    c64_basic = memory_region(REGION_CPU1)+0x108000;
    c64_kernal = memory_region(REGION_CPU1)+0x10a000;
    c128_editor = memory_region(REGION_CPU1)+0x10c000;
    c128_z80 = memory_region(REGION_CPU1)+0x10d000;
    c128_kernal = memory_region(REGION_CPU1)+0x10e000;
    c128_internal_function = memory_region(REGION_CPU1)+0x110000;
    c128_external_function = memory_region(REGION_CPU1)+0x118000;
    c64_chargen = memory_region(REGION_CPU1)+0x120000;
    c128_chargen = memory_region(REGION_CPU1)+0x121000;
    c64_colorram = memory_region(REGION_CPU1)+0x122000;
    c128_vdcram = memory_region(REGION_CPU1)+0x122800;

    for (i=0; i<0x100; i++)
        gfx[i]=i;

    vc20_tape_open (c64_tape_read);

    {
        cia6526_interface cia_intf[2];
        cia_intf[0] = c64_cia0;
        cia_intf[1] = c64_cia1;
        cia_intf[0].tod_clock = c64_pal ? 50 : 60;
        cia_intf[1].tod_clock = c64_pal ? 50 : 60;

        cia_config(0, &cia_intf[0]);
        cia_config(1, &cia_intf[1]);
    }
}
Exemplo n.º 4
0
static MACHINE_RESET( parodius )
{
	unsigned char *RAM = memory_region(REGION_CPU1);

	cpunum_set_info_fct(0, CPUINFO_PTR_KONAMI_SETLINES_CALLBACK, (genf *)parodius_banking);

	paletteram = &memory_region(REGION_CPU1)[0x48000];

	videobank = 0;

	/* init the default bank */
	memory_set_bankptr(1,&RAM[0x10000]);
}
Exemplo n.º 5
0
static MACHINE_RESET( surpratk )
{
	cpunum_set_info_fct(0, CPUINFO_PTR_KONAMI_SETLINES_CALLBACK, (genf *)surpratk_banking);

	paletteram = &memory_region(REGION_CPU1)[0x48000];
}
Exemplo n.º 6
0
static MACHINE_INIT( rollerg )
{
	cpunum_set_info_fct(0, CPUINFO_PTR_KONAMI_SETLINES_CALLBACK, (genf *)rollerg_banking);

	readzoomroms = 0;
}