New Debugger command to dump Bus memory allocations
This commit is contained in:
parent
b71fd5002b
commit
fa88aa6a2d
9 changed files with 316 additions and 72 deletions
|
|
@ -273,6 +273,7 @@ Bus.prototype.initMemory = function()
|
|||
for (var iBlock = 0; iBlock < this.blockTotal; iBlock++) {
|
||||
var addr = iBlock * this.blockSize;
|
||||
var block = this.aMemBlocks[iBlock] = new Memory(addr);
|
||||
|
||||
if (DEBUGGER) block.setDebugInfo(this.cpu, this.dbg, this.blockSize);
|
||||
}
|
||||
this.cpu.initMemory(this.aMemBlocks, this.blockShift, this.blockLimit, this.blockMask);
|
||||
|
|
@ -597,6 +598,7 @@ Bus.prototype.setMemoryBlocks = function(addr, size, aBlocks, type)
|
|||
block = aBlocks[i++];
|
||||
} else {
|
||||
block = new Memory(addr);
|
||||
if (DEBUGGER) block.setDebugInfo(this.cpu, this.dbg, this.blockSize);
|
||||
block.clone(aBlocks[i++], type);
|
||||
}
|
||||
this.aMemBlocks[iBlock++] = block;
|
||||
|
|
|
|||
Loading…
Reference in a new issue