mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
spc700ds.c: fix disassembly of memory-to-memory and immediate-to-memory instructions [Alex Jackson]
This commit is contained in:
parent
9998681885
commit
ace93fb887
@ -360,7 +360,14 @@ CPU_DISASSEMBLE( spc700 )
|
||||
else if (opcode->name == RET || opcode->name == RETI)
|
||||
flags = DASMFLAG_STEP_OUT;
|
||||
|
||||
for(i=0;i<2;i++)
|
||||
if (opcode->args[0] == DP && (opcode->args[1] == DP || opcode->args[1] == IMM))
|
||||
{
|
||||
int src = read_8_immediate();
|
||||
int dst = read_8_immediate();
|
||||
sprintf(ptr, "$%02x,%s$%02x", dst, (opcode->args[1] == IMM ? "#" : ""), src);
|
||||
ptr += strlen(ptr);
|
||||
}
|
||||
else for(i=0;i<2;i++)
|
||||
{
|
||||
if(i == 1 && opcode->args[0] != IMP && opcode->args[1] != IMP)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user