mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
sh2dasm: print addrs consistently with everything else
This commit is contained in:
parent
6976a54726
commit
e85944ccd9
1 changed files with 6 additions and 6 deletions
|
@ -471,16 +471,16 @@ static UINT32 op1000(char *buffer, UINT32 pc, UINT16 opcode)
|
||||||
sprintf(buffer, "CMP/EQ #$%02X,R0", (opcode & 0xff));
|
sprintf(buffer, "CMP/EQ #$%02X,R0", (opcode & 0xff));
|
||||||
break;
|
break;
|
||||||
case 9:
|
case 9:
|
||||||
sprintf(buffer, "BT $%08X", pc + SIGNX8(opcode & 0xff) * 2 + 2);
|
sprintf(buffer, "BT $%08x", pc + SIGNX8(opcode & 0xff) * 2 + 2);
|
||||||
break;
|
break;
|
||||||
case 11:
|
case 11:
|
||||||
sprintf(buffer, "BF $%08X", pc + SIGNX8(opcode & 0xff) * 2 + 2);
|
sprintf(buffer, "BF $%08x", pc + SIGNX8(opcode & 0xff) * 2 + 2);
|
||||||
break;
|
break;
|
||||||
case 13:
|
case 13:
|
||||||
sprintf(buffer, "BTS $%08X", pc + SIGNX8(opcode & 0xff) * 2 + 2);
|
sprintf(buffer, "BTS $%08x", pc + SIGNX8(opcode & 0xff) * 2 + 2);
|
||||||
break;
|
break;
|
||||||
case 15:
|
case 15:
|
||||||
sprintf(buffer, "BFS $%08X", pc + SIGNX8(opcode & 0xff) * 2 + 2);
|
sprintf(buffer, "BFS $%08x", pc + SIGNX8(opcode & 0xff) * 2 + 2);
|
||||||
break;
|
break;
|
||||||
default :
|
default :
|
||||||
sprintf(buffer, "invalid $%04X", opcode);
|
sprintf(buffer, "invalid $%04X", opcode);
|
||||||
|
@ -497,13 +497,13 @@ static UINT32 op1001(char *buffer, UINT32 pc, UINT16 opcode)
|
||||||
|
|
||||||
static UINT32 op1010(char *buffer, UINT32 pc, UINT16 opcode)
|
static UINT32 op1010(char *buffer, UINT32 pc, UINT16 opcode)
|
||||||
{
|
{
|
||||||
sprintf(buffer, "BRA $%08X", SIGNX12(opcode & 0xfff) * 2 + pc + 2);
|
sprintf(buffer, "BRA $%08x", SIGNX12(opcode & 0xfff) * 2 + pc + 2);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static UINT32 op1011(char *buffer, UINT32 pc, UINT16 opcode)
|
static UINT32 op1011(char *buffer, UINT32 pc, UINT16 opcode)
|
||||||
{
|
{
|
||||||
sprintf(buffer, "BSR $%08X", SIGNX12(opcode & 0xfff) * 2 + pc + 2);
|
sprintf(buffer, "BSR $%08x", SIGNX12(opcode & 0xfff) * 2 + pc + 2);
|
||||||
return DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1);
|
return DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue