fix check16 message

This commit is contained in:
Neil Webber 2024-05-24 07:39:21 -05:00
parent ff2d6b6de4
commit 86175eae07

View file

@ -102,7 +102,7 @@ class TestMethods(unittest.TestCase):
"""Verifies no illegal values ended up in physical memory or regs.""" """Verifies no illegal values ended up in physical memory or regs."""
for a, w in enumerate(p.physmem): for a, w in enumerate(p.physmem):
if w < 0 or w > 65535: if w < 0 or w > 65535:
raise ValueError(f"Illegal physmem value {w} @ {oct(a<<2)}") raise ValueError(f"Illegal physmem value {w} @ {oct(a<<1)}")
for r, w in enumerate(p.r): for r, w in enumerate(p.r):
if w < 0 or w > 65535: if w < 0 or w > 65535:
raise ValueError(f"Illegal reg value {w} @ {r}") raise ValueError(f"Illegal reg value {w} @ {r}")