src/emu/cpu/arm7/arm7core.c
| r9857 | r9858 | |
| 1418 | 1418 | // Rd = 15 and S Flag IS set, Result is placed in R15, and current mode SPSR moved to CPSR |
| 1419 | 1419 | if (rdn == eR15) { |
| 1420 | 1420 | |
| 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. <-- |
| 1424 | 1424 | |
| 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 | |
| 1425 | 1432 | R15 = rd; |
| 1426 | 1433 | |
| 1427 | 1434 | /* IRQ masks may have changed in this instruction */ |
docs/messnew.txt
| r9857 | r9858 | |
| 93 | 93 | - [GBA] Added support for 14-bit EEPROM addressing. This fixes the lockups |
| 94 | 94 | in "Bomberman Max 2" and "Broken Sword". [Tim Schuerewegen] |
| 95 | 95 | |
| 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] |
| 98 | 98 | |
| 99 | 99 | - [GBA] Fixed memory corruption due to a faulty DMA operation. This fixes the |
| 100 | 100 | problems with "The Ant Bully", "Buffy The Vampire Slayer", and maybe |