Previous 15994 Revisions Next

r9842 Wednesday 29th December, 2010 at 21:34:54 UTC by Tim Schuerewegen
[GBA] Fixed an issue with the ARM7 cycle count. This fixes the crash problems with "Golden Sun", "All-Star Baseball 2003" and maybe others too.
[docs]messnew.txt
[src/emu/cpu/arm7]arm7core.c

src/emu/cpu/arm7/arm7core.c
r9841r9842
15671567        LOG(("%08x: Unaligned Mem Transfer @ %08x\n", R15, rbp));
15681568#endif
15691569
1570    // We will specify the cycle count for each case, so remove the -3 that occurs at the end
1571    ARM7_ICOUNT += 3;
1572
15731570    if (insn & INSN_BDT_L)
15741571    {
15751572        /* Loading */
r9841r9842
16121609                    SET_CPSR(GET_REGISTER(cpustate, SPSR));
16131610                    SwitchMode(cpustate, GET_MODE);
16141611                }
1612               // LDM PC - takes 1 extra cycle
1613               ARM7_ICOUNT -= 1;
16151614            }
1616            // LDM PC - takes 1 extra cycle
1617            ARM7_ICOUNT -= 1;
16181615        }
16191616        else
16201617        {
r9841r9842
17341731        // STM takes (n+1)S+2N+1I cycles (n = # of register transfers)
17351732        ARM7_ICOUNT -= (result + 1) + 2 + 1;
17361733    }
1734
1735    // We will specify the cycle count for each case, so remove the -3 that occurs at the end
1736    ARM7_ICOUNT += 3;
1737
17371738} /* HandleMemBlock */
docs/messnew.txt
r9841r9842
7878
7979- [CHANNELF/LYNX/SPECIAL/SVISION/WSWAN] Tokenized audio state.  [Atari Ace]
8080
81- [GBA] Added a workaround for the unreliable ATTOTIME_IN_HZ macro. This fixes the hang/crash problems with "Gunstar Super Heroes", "bit Generations" and maybe others too. [Tim Schuerewegen]
81- [GBA] Added a workaround for the unreliable ATTOTIME_IN_HZ macro. This
82  fixes the hang/crash problems with "Gunstar Super Heroes",
83  "bit Generations" and maybe others too. [Tim Schuerewegen]
8284
85- [GBA] Fixed an issue with the ARM7 cycle count. This fixes the crash
86  problems with "Golden Sun", "All-Star Baseball 2003" and maybe others
87  too. [Tim Schuerewegen]
88
8389- [GENESIS] Added support for several genesis PCB carts [El Barto]
8490  Updated softlist to use PCB's
8591  Added J-Cart player 3 and 4 support

Previous 15994 Revisions Next


© 1998-2018 The MESS Team