From 0c6256571a59cb7e62c661277171010a818be856 Mon Sep 17 00:00:00 2001 From: Neil Webber Date: Tue, 23 Apr 2024 13:19:34 -0500 Subject: [PATCH] cleanup --- breakpoints.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/breakpoints.py b/breakpoints.py index eb1a8ae..3f9f600 100644 --- a/breakpoints.py +++ b/breakpoints.py @@ -155,6 +155,7 @@ class Logger(Breakpoint): self.__logger.debug(f"{pc_s}/{m_s} :: {inst_s}") return self.__bp(pdp, xinfo) + # Useful for ensuring the emulation implementation isn't broken in # some way - making sure all values in physical memory are 16 bits (only). # This will run an expensive check every nth instructions. @@ -162,7 +163,6 @@ class Logger(Breakpoint): # figure out HOW they got in there; put some checks back into readRW/etc # functions as necessary to debug that (they are removed for performance). - class MemChecker(Breakpoint): def __init__(self, nth): self.check_every = nth @@ -177,10 +177,10 @@ class MemChecker(Breakpoint): def check16(self, pdp): """Verifies no illegal values ended up in physical memory or regs.""" - pdp.logger.debug("Check16 checking physical memory") + pdp.logger.debug("check16 checking physical memory") for a, w in enumerate(pdp.physmem): 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(pdp.r): if w < 0 or w > 65535: raise ValueError(f"Illegal reg value {w} @ {r}")