mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-12-24 09:30:45 +00:00
c64: fixed zp/stack ram debug
This commit is contained in:
parent
a611697819
commit
c4fcf51e55
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user