Fix various bugs reported by testyourmine

This commit is contained in:
Snesrev
2023-03-06 18:00:05 +01:00
parent 1666b7aaaf
commit 606e9a0ada
10 changed files with 49 additions and 22 deletions

View File

@@ -276,6 +276,12 @@ void PatchBugs(uint32 mode, uint32 addr) {
} else if (FixBugHook(0x829325)) {
// forgot to change bank
g_cpu->db = 0x82;
} else if (FixBugHook(0x848ACD)) {
// PlmInstr_IncrementArgumentAndJGE A is not zeroed
g_cpu->a = 0;
} else if (FixBugHook(0xA7CEB2)) {
// Phantoon_Main forgots to reload x
g_cpu->x = cur_enemy_index;
}
}