Verifying with some test code, SIMH generates ReservedInstruction for things like JMP R0 ... and now this code does the same (was AddressError)

This commit is contained in:
Neil Webber 2024-05-08 17:59:35 -05:00
parent 625c5ce1cc
commit 9428e4744a

View file

@ -423,7 +423,7 @@ class PDP11:
# Note that in all READ cases b6 will be the newb6 (reusable) # Note that in all READ cases b6 will be the newb6 (reusable)
if (b6 & 0o70) == 0: if (b6 & 0o70) == 0:
if justEA: if justEA:
raise PDPTraps.AddressError raise PDPTraps.ReservedInstruction # validated via SIMH
match b6 & 0o07, value, opsize: match b6 & 0o07, value, opsize:
case Rn, None, 2: case Rn, None, 2: