def METHOD_NAME(self, regmap, skip=set(), regs=set()):
    base = regmap._base
    for name, (addr, rcls) in regmap._namemap.items():
        if name not in skip and (not regs or name in regs):
            self.regs[name] = base + addr, rcls