mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-12-23 18:31:08 +00:00
fixed stack display
This commit is contained in:
parent
6ad685f375
commit
efb49f7fc8
@ -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">
|
||||
|
@ -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) + ": ";
|
||||
|
Loading…
Reference in New Issue
Block a user