From 508516a336d4d47edc0b792a16030af3b1881f9e Mon Sep 17 00:00:00 2001 From: "therealmogminer@gmail.com" Date: Sun, 19 Jun 2016 22:04:29 +0200 Subject: [PATCH] Show target address for call and branch instructions in SPARC --- src/devices/cpu/sparc/sparcdasm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/cpu/sparc/sparcdasm.cpp b/src/devices/cpu/sparc/sparcdasm.cpp index b17e1754ba7..8e72e0bcacb 100644 --- a/src/devices/cpu/sparc/sparcdasm.cpp +++ b/src/devices/cpu/sparc/sparcdasm.cpp @@ -223,7 +223,7 @@ offs_t sparc_dasm(char *buffer, offs_t pc, UINT32 op) print(sign, "-"); 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; } case 4: // SETHI @@ -238,7 +238,7 @@ offs_t sparc_dasm(char *buffer, offs_t pc, UINT32 op) } break; case 1: // CALL - print(buffer, "call 0x%08x", DISP30); + print(buffer, "call 0x%08x ; %08x", DISP30, DISP30 << 2); break; case 2: if (USEIMM)