From efb49f7fc8f2b44660644c5200b5fc69182a7bf4 Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Wed, 1 May 2019 21:28:16 -0400 Subject: [PATCH] fixed stack display --- index.html | 2 +- src/baseplatform.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 76c58465..357c4670 100644 --- a/index.html +++ b/index.html @@ -142,7 +142,7 @@ if (window.location.host.endsWith('8bitworkshop.com')) { - diff --git a/src/baseplatform.ts b/src/baseplatform.ts index 343464c7..6a676b09 100644 --- a/src/baseplatform.ts +++ b/src/baseplatform.ts @@ -1035,7 +1035,7 @@ export function dumpStackToString(platform:Platform, mem:Uint8Array|number[], st // see if there's a JSR on the stack here // TODO: make work with roms and memory maps var addr = read(sp) + read(sp+1)*256; - var jsrofs = (jsrop == 0xcd) ? -3 : -2; + var jsrofs = -3; var opcode = read(addr + jsrofs); // might be out of bounds if (opcode == jsrop) { // JSR s += "\n$" + hex(sp) + ": ";