X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fsh2%2Fmame%2Fsh2dasm.c;h=21a32e68902adcbc7e8425ceb845323c56c2bf52;hb=61290a355398cc8f17b183700f637dc65a8b8ab4;hp=172193a3ba88126e31cafe0a1f2a222e9ab284b9;hpb=2368651527f2b14e24b7df5f7db3d95dc5bfbd3a;p=picodrive.git diff --git a/cpu/sh2/mame/sh2dasm.c b/cpu/sh2/mame/sh2dasm.c index 172193a..21a32e6 100644 --- a/cpu/sh2/mame/sh2dasm.c +++ b/cpu/sh2/mame/sh2dasm.c @@ -471,16 +471,16 @@ static UINT32 op1000(char *buffer, UINT32 pc, UINT16 opcode) sprintf(buffer, "CMP/EQ #$%02X,R0", (opcode & 0xff)); break; case 9: - sprintf(buffer, "BT $%08X", pc + SIGNX8(opcode & 0xff) * 2 + 2); + sprintf(buffer, "BT $%08x", pc + SIGNX8(opcode & 0xff) * 2 + 2); break; case 11: - sprintf(buffer, "BF $%08X", pc + SIGNX8(opcode & 0xff) * 2 + 2); + sprintf(buffer, "BF $%08x", pc + SIGNX8(opcode & 0xff) * 2 + 2); break; case 13: - sprintf(buffer, "BTS $%08X", pc + SIGNX8(opcode & 0xff) * 2 + 2); + sprintf(buffer, "BTS $%08x", pc + SIGNX8(opcode & 0xff) * 2 + 2); break; case 15: - sprintf(buffer, "BFS $%08X", pc + SIGNX8(opcode & 0xff) * 2 + 2); + sprintf(buffer, "BFS $%08x", pc + SIGNX8(opcode & 0xff) * 2 + 2); break; default : sprintf(buffer, "invalid $%04X", opcode); @@ -497,13 +497,13 @@ static UINT32 op1001(char *buffer, UINT32 pc, UINT16 opcode) static UINT32 op1010(char *buffer, UINT32 pc, UINT16 opcode) { - sprintf(buffer, "BRA $%08X", SIGNX12(opcode & 0xfff) * 2 + pc + 2); + sprintf(buffer, "BRA $%08x", SIGNX12(opcode & 0xfff) * 2 + pc + 2); return 0; } static UINT32 op1011(char *buffer, UINT32 pc, UINT16 opcode) { - sprintf(buffer, "BSR $%08X", SIGNX12(opcode & 0xfff) * 2 + pc + 2); + sprintf(buffer, "BSR $%08x", SIGNX12(opcode & 0xfff) * 2 + pc + 2); return DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1); } @@ -535,7 +535,8 @@ static UINT32 op1100(char *buffer, UINT32 pc, UINT16 opcode) sprintf(buffer, "MOV.L @($%04X,GBR),R0", (opcode & 0xff) * 4); break; case 7: - sprintf(buffer, "MOVA @($%04X,PC),R0", (opcode & 0xff) * 4); + sprintf(buffer, "MOVA @($%04X,PC),R0 ; @$%08x", (opcode & 0xff) * 4, + ((pc + 2) & ~3) + (opcode & 0xff) * 4); break; case 8: sprintf(buffer, "TST #$%02X,R0", opcode & 0xff);