Previous 15994 Revisions Next

r10139 Saturday 22nd January, 2011 at 20:55:38 UTC by Tim Schuerewegen
ARM7: Implemented an undefined ARM7 THUMB instruction used by GBA "Moto GP".
[docs]messnew.txt
[src/emu/cpu/arm7]arm7dasm.c arm7exec.c

src/emu/cpu/arm7/arm7dasm.c
r10138r10139
939939                     case 0x2: /* MOV */
940940                        switch( ( opcode & THUMB_HIREG_H ) >> THUMB_HIREG_H_SHIFT )
941941                        {
942                           case 0x0:
943                              rs = ( opcode & THUMB_HIREG_RS ) >> THUMB_HIREG_RS_SHIFT;
944                              rd = opcode & THUMB_HIREG_RD;
945                              pBuf += sprintf( pBuf, "MOV R%d, R%d", rd, rs );
946                              break;
942947                           case 0x1:
943948                              rs = ( opcode & THUMB_HIREG_RS ) >> THUMB_HIREG_RS_SHIFT;
944949                              rd = opcode & THUMB_HIREG_RD;
src/emu/cpu/arm7/arm7exec.c
r10138r10139
580580                                case 0x2: /* MOV */
581581                                    switch ((insn & THUMB_HIREG_H) >> THUMB_HIREG_H_SHIFT)
582582                                    {
583                                        case 0x0:       // MOV Rd, Rs (undefined)
584                                            // "The action of H1 = 0, H2 = 0 for Op = 00 (ADD), Op = 01 (CMP) and Op = 10 (MOV) is undefined, and should not be used."
585                                            rs = (insn & THUMB_HIREG_RS) >> THUMB_HIREG_RS_SHIFT;
586                                            rd = insn & THUMB_HIREG_RD;
587                                            SET_REGISTER(cpustate, rd, GET_REGISTER(cpustate, rs));
588                                            R15 += 2;
589                                            break;
583590                                        case 0x1:       // MOV Rd, Hs
584591                                            rs = (insn & THUMB_HIREG_RS) >> THUMB_HIREG_RS_SHIFT;
585592                                            rd = insn & THUMB_HIREG_RD;
docs/messnew.txt
r10138r10139
3333  "2 in 1 - Dragon Ball Z 1 and 2", "Aggressive Inline", "Bibi und Tina"
3434  and probably other games too. [Tim Schuerewegen]
3535
36- [GBA] Implemented an undefined ARM7 THUMB instruction used by "Moto GP".
37  [Tim Schuerewegen]
38
3639- [PIPPIN] Added pre release rom
3740
3841- [PV1000] 4 new cartridge dumps for the software list.  [anondumper]

Previous 15994 Revisions Next


© 1998-2018 The MESS Team