sh2dasm: print addrs consistently with everything else
authornotaz <notasas@gmail.com>
Mon, 22 Jul 2013 00:53:04 +0000 (03:53 +0300)
committernotaz <notasas@gmail.com>
Mon, 22 Jul 2013 22:45:21 +0000 (01:45 +0300)
cpu/sh2/mame/sh2dasm.c

index 06f3057..21a32e6 100644 (file)
@@ -471,16 +471,16 @@ static UINT32 op1000(char *buffer, UINT32 pc, UINT16 opcode)
                sprintf(buffer, "CMP/EQ  #$%02X,R0", (opcode & 0xff));\r
                break;\r
        case  9:\r
-               sprintf(buffer, "BT      $%08X", pc + SIGNX8(opcode & 0xff) * 2 + 2);\r
+               sprintf(buffer, "BT      $%08x", pc + SIGNX8(opcode & 0xff) * 2 + 2);\r
                break;\r
        case 11:\r
-               sprintf(buffer, "BF      $%08X", pc + SIGNX8(opcode & 0xff) * 2 + 2);\r
+               sprintf(buffer, "BF      $%08x", pc + SIGNX8(opcode & 0xff) * 2 + 2);\r
                break;\r
        case 13:\r
-               sprintf(buffer, "BTS     $%08X", pc + SIGNX8(opcode & 0xff) * 2 + 2);\r
+               sprintf(buffer, "BTS     $%08x", pc + SIGNX8(opcode & 0xff) * 2 + 2);\r
                break;\r
        case 15:\r
-               sprintf(buffer, "BFS     $%08X", pc + SIGNX8(opcode & 0xff) * 2 + 2);\r
+               sprintf(buffer, "BFS     $%08x", pc + SIGNX8(opcode & 0xff) * 2 + 2);\r
                break;\r
        default :\r
                sprintf(buffer, "invalid $%04X", opcode);\r
@@ -497,13 +497,13 @@ static UINT32 op1001(char *buffer, UINT32 pc, UINT16 opcode)
 \r
 static UINT32 op1010(char *buffer, UINT32 pc, UINT16 opcode)\r
 {\r
-       sprintf(buffer, "BRA     $%08X", SIGNX12(opcode & 0xfff) * 2 + pc + 2);\r
+       sprintf(buffer, "BRA     $%08x", SIGNX12(opcode & 0xfff) * 2 + pc + 2);\r
        return 0;\r
 }\r
 \r
 static UINT32 op1011(char *buffer, UINT32 pc, UINT16 opcode)\r
 {\r
-       sprintf(buffer, "BSR     $%08X", SIGNX12(opcode & 0xfff) * 2 + pc + 2);\r
+       sprintf(buffer, "BSR     $%08x", SIGNX12(opcode & 0xfff) * 2 + pc + 2);\r
        return DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1);\r
 }\r
 \r