No more MAX_ADDRESS hacks for "fake" register addresses
This commit is contained in:
parent
fc48982d4c
commit
8a78eb7d6b
1 changed files with 3 additions and 14 deletions
|
|
@ -216,8 +216,8 @@ CPUStatePDP11.prototype.resetRegs = function()
|
||||||
/**
|
/**
|
||||||
* initMemoryAccess()
|
* initMemoryAccess()
|
||||||
*
|
*
|
||||||
* Define getAddr() handlers appropriate for the current MMU mode, in order to
|
* Define getAddr() handler and DSPACE setting appropriate for the current MMU mode, in order to eliminate
|
||||||
* eliminate unnecessary calls to mapVirtualToPhysical().
|
* unnecessary calls to mapVirtualToPhysical().
|
||||||
*
|
*
|
||||||
* @this {CPUStatePDP11}
|
* @this {CPUStatePDP11}
|
||||||
*/
|
*/
|
||||||
|
|
@ -1184,18 +1184,7 @@ CPUStatePDP11.prototype.mapVirtualToPhysical = function(virtualAddress, accessFl
|
||||||
*/
|
*/
|
||||||
CPUStatePDP11.prototype.readWordFromPhysical = function(physicalAddress)
|
CPUStatePDP11.prototype.readWordFromPhysical = function(physicalAddress)
|
||||||
{
|
{
|
||||||
if (physicalAddress >= BusPDP11.MAX_ADDRESS) {
|
return this.bus.getWord(physicalAddress);
|
||||||
return this.regsGen[physicalAddress - BusPDP11.MAX_ADDRESS];
|
|
||||||
} else {
|
|
||||||
// if (physicalAddress >= BusPDP11.IOPAGE_UNIBUS) {
|
|
||||||
// return this.bus.access_iopage(physicalAddress, -1, 0);
|
|
||||||
// } else {
|
|
||||||
if (physicalAddress >= 0) {
|
|
||||||
return this.bus.getWord(physicalAddress);
|
|
||||||
}
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
return physicalAddress;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue