In the spirit of the PCx86 Debugger, the PDP11 Debugger can now distinguish between virtual and physical addresses; physical addresses are specified with a leading '%'; this necessitated special CPU memory interfaces that mirror the Bus memory interfaces, which perform mapVirtualToPhysical() as needed, with traps disabled.

This commit is contained in:
Jeff Parsons 2016-10-13 13:11:11 -07:00 committed by Jeff Parsons
commit 2a1be67727
5 changed files with 520 additions and 422 deletions

View file

@ -1201,7 +1201,7 @@ PDP11.opJSR = function(opCode)
PDP11.opMARK = function(opCode)
{
var addr = (this.getPC() + ((opCode & 0x3F) << 1)) & 0xffff;
var src = this.readWordFromVirtual(addr | 0x10000);
var src = this.readWord(addr | this.addrDSpace);
this.setPC(this.regsGen[5]);
this.setSP(addr + 2);
this.regsGen[5] = src;