mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-01-10 16:29:48 +00:00
reverted stack display change
This commit is contained in:
parent
b131a45c5b
commit
7ee650bb64
@ -367,6 +367,7 @@ div.markdown th {
|
|||||||
padding:0.2em;
|
padding:0.2em;
|
||||||
}
|
}
|
||||||
#sidebar {
|
#sidebar {
|
||||||
|
overflow:auto;
|
||||||
}
|
}
|
||||||
#sidebar ul {
|
#sidebar ul {
|
||||||
list-style-type:none;
|
list-style-type:none;
|
||||||
|
@ -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 = -3;
|
var jsrofs = jsrop==0x20 ? -2 : -3; // 6502 vs Z80
|
||||||
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…
x
Reference in New Issue
Block a user