Previous 15994 Revisions Next

r9858 Friday 31st December, 2010 at 10:56:23 UTC by Tim Schuerewegen
[GBA] Fixed another ARM7 core bug. This fixes the problem with "Colin McRae Rally".
[docs]messnew.txt
[src/emu/cpu/arm7]arm7core.c

src/emu/cpu/arm7/arm7core.c
r9857r9858
14181418            // Rd = 15 and S Flag IS set, Result is placed in R15, and current mode SPSR moved to CPSR
14191419            if (rdn == eR15) {
14201420
1421                // Update CPSR from SPSR
1422                SET_CPSR(GET_REGISTER(cpustate, SPSR));
1423                SwitchMode(cpustate, GET_MODE);
1421            // When Rd is R15 and the S flag is set the result of the operation is placed in R15 and the SPSR corresponding to
1422            // the current mode is moved to the CPSR. This allows state changes which automatically restore both PC and
1423            // CPSR. --> This form of instruction should not be used in User mode. <--
14241424
1425            if (GET_MODE != eARM7_MODE_USER)
1426            {
1427                   // Update CPSR from SPSR
1428                   SET_CPSR(GET_REGISTER(cpustate, SPSR));
1429                   SwitchMode(cpustate, GET_MODE);
1430               }
1431
14251432                R15 = rd;
14261433
14271434                /* IRQ masks may have changed in this instruction */
docs/messnew.txt
r9857r9858
9393- [GBA] Added support for 14-bit EEPROM addressing. This fixes the lockups
9494  in "Bomberman Max 2" and "Broken Sword". [Tim Schuerewegen]
9595
96- [GBA] Fixed an ARM7 core bug. This fixes the freeze in "Big Mutha Truckers".
97  [Tim Schuerewegen]
96- [GBA] Fixed several ARM7 core bugs. This fixes the problems with
97  "Big Mutha Truckers" and "Colin McRae Rally" [Tim Schuerewegen]
9898
9999- [GBA] Fixed memory corruption due to a faulty DMA operation. This fixes the
100100  problems with "The Ant Bully", "Buffy The Vampire Slayer", and maybe

Previous 15994 Revisions Next


© 1998-2018 The MESS Team