mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-12-24 09:30:45 +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>
|
</ul>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<select id="preset_select" name="" title="Project Select">
|
<select id="preset_select" name="" title="Project Select" style="width:16em">
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<img id="compile_spinner" src="images/spinner.gif" height="20em" style="visibility:hidden;margin-left:8px;margin-right:8px">
|
<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
|
// see if there's a JSR on the stack here
|
||||||
// TODO: make work with roms and memory maps
|
// TODO: make work with roms and memory maps
|
||||||
var addr = read(sp) + read(sp+1)*256;
|
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
|
var opcode = read(addr + jsrofs); // might be out of bounds
|
||||||
if (opcode == jsrop) { // JSR
|
if (opcode == jsrop) { // JSR
|
||||||
s += "\n$" + hex(sp) + ": ";
|
s += "\n$" + hex(sp) + ": ";
|
||||||
|
Loading…
Reference in New Issue
Block a user