notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
handle frequent psg updates
[picodrive.git]
/
cpu
/
sh2
/
mame
/
sh2dasm.c
diff --git
a/cpu/sh2/mame/sh2dasm.c
b/cpu/sh2/mame/sh2dasm.c
index
172193a
..
21a32e6
100644
(file)
--- a/
cpu/sh2/mame/sh2dasm.c
+++ b/
cpu/sh2/mame/sh2dasm.c
@@
-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, "CMP/EQ #$%02X,R0", (opcode & 0xff));
\r
break;
\r
case 9:
\r
- sprintf(buffer, "BT $%08
X
", pc + SIGNX8(opcode & 0xff) * 2 + 2);
\r
+ sprintf(buffer, "BT $%08
x
", pc + SIGNX8(opcode & 0xff) * 2 + 2);
\r
break;
\r
case 11:
\r
break;
\r
case 11:
\r
- sprintf(buffer, "BF $%08
X
", pc + SIGNX8(opcode & 0xff) * 2 + 2);
\r
+ sprintf(buffer, "BF $%08
x
", pc + SIGNX8(opcode & 0xff) * 2 + 2);
\r
break;
\r
case 13:
\r
break;
\r
case 13:
\r
- sprintf(buffer, "BTS $%08
X
", pc + SIGNX8(opcode & 0xff) * 2 + 2);
\r
+ sprintf(buffer, "BTS $%08
x
", pc + SIGNX8(opcode & 0xff) * 2 + 2);
\r
break;
\r
case 15:
\r
break;
\r
case 15:
\r
- sprintf(buffer, "BFS $%08
X
", pc + SIGNX8(opcode & 0xff) * 2 + 2);
\r
+ sprintf(buffer, "BFS $%08
x
", pc + SIGNX8(opcode & 0xff) * 2 + 2);
\r
break;
\r
default :
\r
sprintf(buffer, "invalid $%04X", opcode);
\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
\r
static UINT32 op1010(char *buffer, UINT32 pc, UINT16 opcode)
\r
{
\r
- sprintf(buffer, "BRA $%08
X
", SIGNX12(opcode & 0xfff) * 2 + pc + 2);
\r
+ sprintf(buffer, "BRA $%08
x
", SIGNX12(opcode & 0xfff) * 2 + pc + 2);
\r
return 0;
\r
}
\r
\r
static UINT32 op1011(char *buffer, UINT32 pc, UINT16 opcode)
\r
{
\r
return 0;
\r
}
\r
\r
static UINT32 op1011(char *buffer, UINT32 pc, UINT16 opcode)
\r
{
\r
- sprintf(buffer, "BSR $%08
X
", SIGNX12(opcode & 0xfff) * 2 + pc + 2);
\r
+ sprintf(buffer, "BSR $%08
x
", SIGNX12(opcode & 0xfff) * 2 + pc + 2);
\r
return DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1);
\r
}
\r
\r
return DASMFLAG_STEP_OVER | DASMFLAG_STEP_OVER_EXTRA(1);
\r
}
\r
\r
@@
-535,7
+535,8
@@
static UINT32 op1100(char *buffer, UINT32 pc, UINT16 opcode)
sprintf(buffer, "MOV.L @($%04X,GBR),R0", (opcode & 0xff) * 4);
\r
break;
\r
case 7:
\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
break;
\r
case 8:
\r
sprintf(buffer, "TST #$%02X,R0", opcode & 0xff);
\r