| 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 |
| r10138 | r10139 | |
|---|---|---|
| 939 | 939 | case 0x2: /* MOV */ |
| 940 | 940 | switch( ( opcode & THUMB_HIREG_H ) >> THUMB_HIREG_H_SHIFT ) |
| 941 | 941 | { |
| 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; | |
| 942 | 947 | case 0x1: |
| 943 | 948 | rs = ( opcode & THUMB_HIREG_RS ) >> THUMB_HIREG_RS_SHIFT; |
| 944 | 949 | rd = opcode & THUMB_HIREG_RD; |
| r10138 | r10139 | |
|---|---|---|
| 580 | 580 | case 0x2: /* MOV */ |
| 581 | 581 | switch ((insn & THUMB_HIREG_H) >> THUMB_HIREG_H_SHIFT) |
| 582 | 582 | { |
| 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; | |
| 583 | 590 | case 0x1: // MOV Rd, Hs |
| 584 | 591 | rs = (insn & THUMB_HIREG_RS) >> THUMB_HIREG_RS_SHIFT; |
| 585 | 592 | rd = insn & THUMB_HIREG_RD; |
| r10138 | r10139 | |
|---|---|---|
| 33 | 33 | "2 in 1 - Dragon Ball Z 1 and 2", "Aggressive Inline", "Bibi und Tina" |
| 34 | 34 | and probably other games too. [Tim Schuerewegen] |
| 35 | 35 | |
| 36 | - [GBA] Implemented an undefined ARM7 THUMB instruction used by "Moto GP". | |
| 37 | [Tim Schuerewegen] | |
| 38 | ||
| 36 | 39 | - [PIPPIN] Added pre release rom |
| 37 | 40 | |
| 38 | 41 | - [PV1000] 4 new cartridge dumps for the software list. [anondumper] |
| Previous | 15994 Revisions | Next |