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:
parent
c157f4b071
commit
6063b6598b
@ -1 +1 @@
|
||||
Subproject commit 7e246e74bd56c76acf8b7e05334f0221e1783977
|
||||
Subproject commit bd17384fd2c6b020497e5e6a625a1b8130e39ea1
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user