1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-25 18:33:11 +00:00

VCS Stack debug info; updated javatari

This commit is contained in:
Steven Hugg 2018-08-25 19:15:38 -04:00
parent c157f4b071
commit 6063b6598b
2 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit 7e246e74bd56c76acf8b7e05334f0221e1783977
Subproject commit bd17384fd2c6b020497e5e6a625a1b8130e39ea1

View File

@ -1,6 +1,6 @@
"use strict";
import { Platform, cpuStateToLongString_6502, BaseMAMEPlatform, EmuRecorder } from "../baseplatform";
import { Platform, cpuStateToLongString_6502, BaseMAMEPlatform, EmuRecorder, dumpStackToString } from "../baseplatform";
import { PLATFORMS, RAM, newAddressDecoder, dumpRAM } from "../emu";
import { hex, lpad, tobin, byte2signed } from "../util";
import { CodeAnalyzer_vcs } from "../analysis";
@ -181,11 +181,12 @@ class VCSPlatform {
getDefaultExtension() { return ".a"; };
getDebugCategories() {
return ['CPU','PIA','TIA'];
return ['CPU','Stack','PIA','TIA'];
}
getDebugInfo(category, state) {
switch (category) {
case 'CPU': return this.cpuStateToLongString(state.c);
case 'Stack': return dumpStackToString(this, this.getRAMForState(state), 0x100, 0x1ff, 0x100+state.c.SP, 0x20);
case 'PIA': return this.ramStateToLongString(state) + "\n" + this.piaStateToLongString(state.p);
case 'TIA': return this.tiaStateToLongString(state.t);
}