Print out 24 bit addresses instead of 16 bit addresses

This commit is contained in:
Adam Dunkels 2013-01-07 14:37:33 +01:00
parent db6af9d926
commit 5df8763ecf
1 changed files with 3 additions and 3 deletions

View File

@ -381,14 +381,14 @@ public class SimpleProfiler implements Profiler, EventListener {
public void printStackTrace(PrintStream out) {
int stackCount = cSP;
out.println("Stack Trace: number of calls: " + stackCount
+ " PC: $" + Utils.hex(cpu.getPC(), 4));
+ " PC: $" + Utils.hex(cpu.getPC(), 5));
for (int i = 0; i < stackCount; i++) {
CallEntry call = callStack[stackCount - i - 1];
out.println(" " + call.function.getInfo()
+ " called from PC: $" + Utils.hex(call.fromPC, 4)
+ " called from PC: $" + Utils.hex(call.fromPC, 5)
+ " (elapsed: " + (cpu.cpuCycles - call.cycles) + ')');
if (stackCount - i - 1 == interruptLevel && servicedInterrupt != -1) {
out.println(" *** Interrupt " + servicedInterrupt + " from PC: $" + Utils.hex(interruptFrom, 4));
out.println(" *** Interrupt " + servicedInterrupt + " from PC: $" + Utils.hex(interruptFrom, 5));
}
}
}