mirror of
https://github.com/holub/mame
synced 2025-05-25 07:15:25 +03:00
Fix a couple of regressions.
This commit is contained in:
parent
a7db377c87
commit
21831461f2
@ -72,6 +72,7 @@ static MACHINE_RESET( flyball )
|
|||||||
|
|
||||||
for (i = 0; i < 0x1000; i++)
|
for (i = 0; i < 0x1000; i++)
|
||||||
rombase[i] = ROM[i ^ 0x1ff];
|
rombase[i] = ROM[i ^ 0x1ff];
|
||||||
|
cpu_reset(machine->cpu[0]);
|
||||||
|
|
||||||
timer_set(machine, video_screen_get_time_until_pos(machine->primary_screen, 0, 0), NULL, 0, flyball_quarter_callback);
|
timer_set(machine, video_screen_get_time_until_pos(machine->primary_screen, 0, 0), NULL, 0, flyball_quarter_callback);
|
||||||
}
|
}
|
||||||
|
@ -53,6 +53,7 @@ static MACHINE_RESET( galivan )
|
|||||||
UINT8 *RAM = memory_region(machine, "main");
|
UINT8 *RAM = memory_region(machine, "main");
|
||||||
|
|
||||||
memory_set_bankptr(machine, 1,&RAM[0x10000]);
|
memory_set_bankptr(machine, 1,&RAM[0x10000]);
|
||||||
|
cpu_reset(machine->cpu[0]);
|
||||||
// layers = 0x60;
|
// layers = 0x60;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -987,6 +988,8 @@ static WRITE8_HANDLER( youmab_84_w )
|
|||||||
static DRIVER_INIT( youmab )
|
static DRIVER_INIT( youmab )
|
||||||
{
|
{
|
||||||
memory_install_write8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_IO), 0x82, 0x82, 0, 0, youmab_extra_bank_w); // banks rom at 0x8000? writes 0xff and 0x00 before executing code there
|
memory_install_write8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_IO), 0x82, 0x82, 0, 0, youmab_extra_bank_w); // banks rom at 0x8000? writes 0xff and 0x00 before executing code there
|
||||||
|
memory_install_read8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x0000, 0x7fff, 0, 0, SMH_BANK3);
|
||||||
|
memory_set_bankptr(machine, 3, memory_region(machine, "main") );
|
||||||
memory_install_read8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x8000, 0xbfff, 0, 0, SMH_BANK2);
|
memory_install_read8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x8000, 0xbfff, 0, 0, SMH_BANK2);
|
||||||
memory_set_bankptr(machine, 2, memory_region(machine, "user2") );
|
memory_set_bankptr(machine, 2, memory_region(machine, "user2") );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user