X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Fsh2%2Fmame%2Fsh2dasm.c;h=172193a3ba88126e31cafe0a1f2a222e9ab284b9;hb=2368651527f2b14e24b7df5f7db3d95dc5bfbd3a;hp=e3983eb169aebd14c9df4bb50e635cbc86d748bf;hpb=5aec752dacff131607d2986ce25762c91c079a23;p=picodrive.git diff --git a/cpu/sh2/mame/sh2dasm.c b/cpu/sh2/mame/sh2dasm.c index e3983eb..172193a 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; } @@ -566,8 +567,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; }