implement write lock
This commit is contained in:
parent
fed836b5b3
commit
9442b70617
1 changed files with 3 additions and 1 deletions
4
rk11.py
4
rk11.py
|
@ -201,7 +201,9 @@ class RK11:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
case 0o16, 1: # write lock (write protect)
|
case 0o16, 1: # write lock (write protect)
|
||||||
self.writelock()
|
f = self._get_drive_f()
|
||||||
|
if f is not None:
|
||||||
|
self._writelocks.add(f)
|
||||||
|
|
||||||
case _, 0: # anything else without the go bit is a nop
|
case _, 0: # anything else without the go bit is a nop
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue