def commit(self) -> None:
    if (self._dirty > 0):
        for reg in self.regs.values():
            reg.commit()
        self._dirty = max(0, (self._dirty - 1))
def commit(self) -> None:
    if (self._dirty > 0):
        for reg in self.regs.values():
            reg.commit()
        self._dirty = max(0, (self._dirty - 1))