def __init__(self) -> None:
    (_, reg_block) = load_registers()
    self.regs = {}
    self._dirty = 0
    assert isinstance(reg_block, RegBlock)
    for entry in reg_block.flat_regs:
        assert isinstance(entry.name, str)
        assert (entry.name not in self.regs)
        double_flopped = (entry.name in self.double_flopped_regs)
        self.regs[entry.name] = RGReg.from_register(entry, double_flopped)
    self.regs['STOP_PC'] = make_flag_reg('STOP_PC', True)
    self.regs['RND_REQ'] = make_flag_reg('RND_REQ', True)
    self.regs['WIPE_START'] = make_flag_reg('WIPE_START', False)
def __init__(self) -> None:
    (_, reg_block) = load_registers()
    self.regs = {}
    self._dirty = 0
    assert isinstance(reg_block, RegBlock)
    for entry in reg_block.flat_regs:
        assert isinstance(entry.name, str)
        assert (entry.name not in self.regs)
        double_flopped = (entry.name in self.double_flopped_regs)
        self.regs[entry.name] = RGReg.from_register(entry, double_flopped)
    self.regs['STOP_PC'] = make_flag_reg('STOP_PC', True)
    self.regs['RND_REQ'] = make_flag_reg('RND_REQ', True)
    self.regs['WIPE_START'] = make_flag_reg('WIPE_START', False)