reverted stack display change

This commit is contained in:
Steven Hugg 2019-05-04 19:17:15 -04:00
parent b131a45c5b
commit 7ee650bb64
2 changed files with 2 additions and 1 deletions

View File

@ -367,6 +367,7 @@ div.markdown th {
padding:0.2em;
}
#sidebar {
overflow:auto;
}
#sidebar ul {
list-style-type:none;

View File

@ -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 = -3;
var jsrofs = jsrop==0x20 ? -2 : -3; // 6502 vs Z80
var opcode = read(addr + jsrofs); // might be out of bounds
if (opcode == jsrop) { // JSR
s += "\n$" + hex(sp) + ": ";