From 6182fafe0629ee220da465a581d9c6f3345f7e2e Mon Sep 17 00:00:00 2001 From: Neil Webber Date: Tue, 21 May 2024 06:32:09 -0500 Subject: [PATCH] a few missing check16 calls --- pdptests.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdptests.py b/pdptests.py index dd81113..a347c2c 100644 --- a/pdptests.py +++ b/pdptests.py @@ -711,6 +711,7 @@ class TestMethods(unittest.TestCase): instloc = 0o4000 self.loadphysmem(p, a, instloc) p.run(pc=instloc) + self.check16(p) self.assertEqual(p.r[2], 2) def test_br(self): @@ -1065,6 +1066,7 @@ class TestMethods(unittest.TestCase): self.loadphysmem(p, a, instloc) self.loadphysmem(p, simhdata, 0o20000) p.run(pc=instloc) + self.check16(p) self.assertEqual(p.r[3], 0) def test_div(self): @@ -1224,6 +1226,7 @@ class TestMethods(unittest.TestCase): magic = 0o123321 p.r[2] = magic p.run(pc=0o177776) + self.check16(p) # both MOV instructions should have executed self.assertEqual(p.r[2], magic) @@ -1466,6 +1469,7 @@ class TestMethods(unittest.TestCase): self.loadphysmem(p, list(a), startaddr) self.loadphysmem(p, insts, tsaddr) p.run(pc=startaddr) + self.check16(p) self.assertEqual(tx, p.r[4]) self.assertEqual(p.r[6], a.getlabel('stack')+startaddr-4)