(m: Match[str])
| 80 | |
| 81 | def sub_reg_values(self, expr: str) -> str: |
| 82 | def __sub_reg(m: Match[str]) -> str: |
| 83 | reg = m.group(1).lower() |
| 84 | |
| 85 | return f'{self.read_reg(self.unalias(reg)):#x}' |
| 86 | |
| 87 | # replace reg names with their actual values |
| 88 | return re.sub(r'\$(\w+)', __sub_reg, expr) |