fixed stack display

This commit is contained in:
Steven Hugg 2019-05-01 21:28:16 -04:00
parent 6ad685f375
commit efb49f7fc8
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
</ul>
</span>
<select id="preset_select" name="" title="Project Select">
<select id="preset_select" name="" title="Project Select" style="width:16em">
</select>
<img id="compile_spinner" src="images/spinner.gif" height="20em" style="visibility:hidden;margin-left:8px;margin-right:8px">

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 = (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) + ": ";