bit 8-10 of the PSW should be ignored

This commit is contained in:
folkert van heusden 2024-03-31 21:56:11 +02:00
parent a908c72761
commit c8185cdd5e
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1
2 changed files with 2 additions and 2 deletions

View file

@ -113,7 +113,7 @@ class test_generator:
# generate & set PSW
while True:
try:
p.psw = random.randint(0, 65536)
p.psw = random.randint(0, 65536) & 0o174377
break
except PDPTraps.ReservedInstruction as ri:
pass

View file

@ -164,7 +164,7 @@ class test_generator:
stop = False
while True:
psw = random.randint(0, 65536)
psw = random.randint(0, 65536) & 0o174377
name = f'/mnt/temp/bla-{psw:06o}.json'
if os.path.isfile(name):
print(f'skipping {name}')