BACKTRACK support: PCjs can now report which portions of which files are being read into memory

This commit is contained in:
Jeff Parsons 2014-12-27 15:13:08 -08:00 • committed by jeffpar
commit 197392bce9
5 changed files with 407 additions and 155 deletions

View file

@ -2815,6 +2815,9 @@ ChipSet.prototype.advanceDMA = function(channel, fInit)
*/
chipset.bus.setByteDirect(addrCur, b);
if (BACKTRACK) {
if (!off && obj.file) {
chipset.println('loading ' + obj.file.sPath + '[' + obj.offFile + '] @' + str.toHex(addrCur));
}
bto = chipset.bus.addBackTrackObject(obj, bto, off);
chipset.bus.setBackTrackIndex(addrCur, bto, off);
}