mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
32x, fixes for msu
This commit is contained in:
parent
411b2c1949
commit
805fbe6faa
3 changed files with 11 additions and 11 deletions
|
@ -137,10 +137,9 @@ void p32x_reset_sh2s(void)
|
|||
if (p32x_bios_m == NULL) {
|
||||
sh2_set_gbr(0, 0x20004000);
|
||||
|
||||
if (!(PicoIn.AHW & PAHW_MCD)) {
|
||||
if (!Pico.m.ncart_in) { // copy IDL from cartridge
|
||||
unsigned int idl_src, idl_dst, idl_size; // initial data load
|
||||
unsigned int vbr;
|
||||
|
||||
// initial data
|
||||
idl_src = CPU_BE2(*(u32 *)(Pico.rom + 0x3d4)) & ~0xf0000000;
|
||||
idl_dst = CPU_BE2(*(u32 *)(Pico.rom + 0x3d8)) & ~0xf0000000;
|
||||
|
|
|
@ -351,10 +351,8 @@ static u32 p32x_reg_read16(u32 a)
|
|||
if (CYCLES_GT(cycles - msh2.m68krcycles_done, 244))
|
||||
p32x_sync_sh2s(cycles);
|
||||
|
||||
if (m68k_poll_detect(a, cycles, P32XF_68KCPOLL)) {
|
||||
if (m68k_poll_detect(a, cycles, P32XF_68KCPOLL))
|
||||
SekSetStop(1);
|
||||
SekEndRun(16);
|
||||
}
|
||||
return sh2_poll_read(a, Pico32x.regs[a / 2], cycles, NULL);
|
||||
}
|
||||
#endif
|
||||
|
@ -2203,6 +2201,9 @@ static void get_bios(void)
|
|||
|
||||
// startup code
|
||||
memcpy(&Pico32xMem->sh2_rom_m.b[0x200], msh2_code, sizeof(msh2_code));
|
||||
if (!Pico.m.ncart_in && (PicoIn.AHW & PAHW_MCD))
|
||||
// hack for MSU games (adjust delay loop for copying the MSU code to sub)
|
||||
Pico32xMem->sh2_rom_m.w[0x224/2] = 0x0090;
|
||||
}
|
||||
|
||||
// SSH2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue