handle missing rp.disk
This commit is contained in:
parent
8d1b9d66f9
commit
ef1f5b75b9
1 changed files with 8 additions and 1 deletions
|
@ -243,7 +243,14 @@ class PDP11:
|
||||||
# but of course must be instantiated
|
# but of course must be instantiated
|
||||||
if console: # it's helpful to disable for tests
|
if console: # it's helpful to disable for tests
|
||||||
self._KL = KL11(self.ub)
|
self._KL = KL11(self.ub)
|
||||||
self._RP = RPRM(self.ub)
|
try:
|
||||||
|
rp = RPRM(self.ub)
|
||||||
|
except FileNotFoundError:
|
||||||
|
self.logger.info("NO DISK DRIVE FILE FOUND; DISK DISABLED")
|
||||||
|
else:
|
||||||
|
self._RP = rp
|
||||||
|
|
||||||
|
# line clock
|
||||||
self._KW = KW11(self.ub)
|
self._KW = KW11(self.ub)
|
||||||
|
|
||||||
def physRW(self, physaddr, value=None):
|
def physRW(self, physaddr, value=None):
|
||||||
|
|
Loading…
Add table
Reference in a new issue