Merge pull request #976 from MooglyGuy/master

SPARC call/branch disassembly improvement
This commit is contained in:
R. Belmont 2016-06-19 16:52:21 -04:00 committed by GitHub
commit b24b54ccbf

View File

@ -223,7 +223,7 @@ offs_t sparc_dasm(char *buffer, offs_t pc, UINT32 op)
print(sign, "-"); print(sign, "-");
disp = -disp; disp = -disp;
} }
print(buffer, "%s%s0x%06x", (OP2 == 2) ? branchnames[index] : ((OP2 == 6) ? fpbranchnames[index] : copbranchnames[index]), sign, disp); print(buffer, "%s%s0x%06x ; %08x", (OP2 == 2) ? branchnames[index] : ((OP2 == 6) ? fpbranchnames[index] : copbranchnames[index]), sign, disp, pc + DISP22);
break; break;
} }
case 4: // SETHI case 4: // SETHI
@ -238,7 +238,7 @@ offs_t sparc_dasm(char *buffer, offs_t pc, UINT32 op)
} }
break; break;
case 1: // CALL case 1: // CALL
print(buffer, "call 0x%08x", DISP30); print(buffer, "call 0x%08x ; %08x", DISP30, DISP30 << 2);
break; break;
case 2: case 2:
if (USEIMM) if (USEIMM)