32x: drc: some constant propagation
[picodrive.git] / cpu / sh2 / mame / sh2dasm.c
index e3983eb..172193a 100644 (file)
@@ -490,7 +490,8 @@ static UINT32 op1000(char *buffer, UINT32 pc, UINT16 opcode)
 \r
 static UINT32 op1001(char *buffer, UINT32 pc, UINT16 opcode)\r
 {\r
-       sprintf(buffer, "MOV.W   @($%04X,PC),%s", (opcode & 0xff) * 2, regname[Rn]);\r
+       sprintf(buffer, "MOV.W   @($%02X,PC),%s  ; @$%08x", (opcode & 0xff) * 2, regname[Rn],\r
+               pc + (opcode & 0xff) * 2 + 2);\r
        return 0;\r
 }\r
 \r
@@ -566,8 +567,8 @@ static UINT32 op1100(char *buffer, UINT32 pc, UINT16 opcode)
 \r
 static UINT32 op1101(char *buffer, UINT32 pc, UINT16 opcode)\r
 {\r
-       sprintf(buffer, "MOV.L   @($%02X,PC),%s  ; #$%06x", (opcode * 4) & 0x3ff, regname[Rn],\r
-               (pc + ((opcode * 4) & 0x3ff) + 2) & ~3);\r
+       sprintf(buffer, "MOV.L   @($%02X,PC),%s  ; @$%08x", (opcode & 0xff) * 4, regname[Rn],\r
+               (pc + (opcode & 0xff) * 4 + 2) & ~3);\r
        return 0;\r
 }\r
 \r