X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fsh2%2Fmame%2Fsh2dasm.c;h=06f3057b100014c2c002ee987951d900a075bb4f;hb=bf092a3631694f525c3d1179b21ab8941e87e7d7;hp=e3983eb169aebd14c9df4bb50e635cbc86d748bf;hpb=679af8a3f466a2a4a20f58e4181a231fb73e9836;p=picodrive.git diff --git a/cpu/sh2/mame/sh2dasm.c b/cpu/sh2/mame/sh2dasm.c index e3983eb..06f3057 100644 --- a/cpu/sh2/mame/sh2dasm.c +++ b/cpu/sh2/mame/sh2dasm.c @@ -490,7 +490,8 @@ static UINT32 op1000(char *buffer, UINT32 pc, UINT16 opcode) static UINT32 op1001(char *buffer, UINT32 pc, UINT16 opcode) { - sprintf(buffer, "MOV.W @($%04X,PC),%s", (opcode & 0xff) * 2, regname[Rn]); + sprintf(buffer, "MOV.W @($%02X,PC),%s ; @$%08x", (opcode & 0xff) * 2, regname[Rn], + pc + (opcode & 0xff) * 2 + 2); return 0; } @@ -534,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); @@ -566,8 +568,8 @@ static UINT32 op1100(char *buffer, UINT32 pc, UINT16 opcode) static UINT32 op1101(char *buffer, UINT32 pc, UINT16 opcode) { - sprintf(buffer, "MOV.L @($%02X,PC),%s ; #$%06x", (opcode * 4) & 0x3ff, regname[Rn], - (pc + ((opcode * 4) & 0x3ff) + 2) & ~3); + sprintf(buffer, "MOV.L @($%02X,PC),%s ; @$%08x", (opcode & 0xff) * 4, regname[Rn], + (pc + (opcode & 0xff) * 4 + 2) & ~3); return 0; }