trunk/src/emu/cpu/sh2/sh2dasm.c
| r25380 | r25381 | |
| 482 | 482 | |
| 483 | 483 | static UINT32 op1001(char *buffer, UINT32 pc, UINT16 opcode) |
| 484 | 484 | { |
| 485 | | sprintf(buffer, "MOV.W @($%04X,PC),%s", (opcode & 0xff) * 2, regname[Rn]); |
| 485 | sprintf(buffer, "MOV.W @($%04X,PC),%s [%08X]", (opcode & 0xff) * 2, regname[Rn], pc+((opcode & 0xff) * 2)+2); |
| 486 | 486 | return 0; |
| 487 | 487 | } |
| 488 | 488 | |
| r25380 | r25381 | |
| 526 | 526 | sprintf(buffer, "MOV.L @($%04X,GBR),R0", (opcode & 0xff) * 4); |
| 527 | 527 | break; |
| 528 | 528 | case 7: |
| 529 | | sprintf(buffer, "MOVA @($%04X,PC),R0", (opcode & 0xff) * 4); |
| 529 | sprintf(buffer, "MOVA @($%04X,PC),R0 [%08X]", (opcode & 0xff) * 4, ((pc + 2) & ~3) + (opcode & 0xff) * 4); |
| 530 | 530 | break; |
| 531 | 531 | case 8: |
| 532 | 532 | sprintf(buffer, "TST #$%02X,R0", opcode & 0xff); |
| r25380 | r25381 | |
| 558 | 558 | |
| 559 | 559 | static UINT32 op1101(char *buffer, UINT32 pc, UINT16 opcode) |
| 560 | 560 | { |
| 561 | | sprintf(buffer, "MOV.L @($%02X,PC),%s", (opcode * 4) & 0xff, regname[Rn]); |
| 561 | sprintf(buffer, "MOV.L @($%02X,PC),%s [%08X]", (opcode * 4) & 0xff, regname[Rn], ((pc + 2) & ~3) + (opcode & 0xff) * 4); |
| 562 | 562 | return 0; |
| 563 | 563 | } |
| 564 | 564 | |