1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-26 10:49:17 +00:00

c64: fixed zp/stack ram debug

This commit is contained in:
Steven Hugg 2022-07-26 18:43:29 -05:00
parent a611697819
commit c4fcf51e55

View File

@ -107,14 +107,12 @@ export class C64_WASMMachine extends BaseWASMMachine implements Machine, Probeab
}
saveState() {
this.exports.machine_save_state(this.sys, this.stateptr);
/*
for (var i=0; i<this.statearr.length; i++)
if (this.statearr[i] == 0xa0 && this.statearr[i+1] == 0x4d && this.statearr[i+2] == 0xe2) console.log(hex(i));
*/
if (this.statearr[i] == 0x9e && this.statearr[i+1] == 0x32 && this.statearr[i+2] == 0x30) console.log(i-0x805);
return {
c:this.getCPUState(),
state:this.statearr.slice(0),
ram:this.statearr.slice(18640, 18640+0x200), // ZP and stack
ram:this.statearr.slice(16636, 16636+0x200), // ZP and stack
};
}
loadState(state) : void {