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
\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
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
sprintf(buffer, "MOV.L @($%04X,GBR),R0", (opcode & 0xff) * 4);\r
break;\r
case 7:\r
- sprintf(buffer, "MOVA @($%04X,PC),R0", (opcode & 0xff) * 4);\r
+ sprintf(buffer, "MOVA @($%04X,PC),R0 ; @$%08x", (opcode & 0xff) * 4,\r
+ ((pc + 2) & ~3) + (opcode & 0xff) * 4);\r
break;\r
case 8:\r
sprintf(buffer, "TST #$%02X,R0", opcode & 0xff);\r
\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