diff options
author | Michael Pavone <pavone@retrodev.com> | 2019-02-02 15:35:15 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2019-02-02 15:35:15 -0800 |
commit | 53015149f581d73e44a75bb5322f8f803411a04e (patch) | |
tree | b8f8b8cf43366d32849155e07c61eeb40db72076 /cpu_dsl.py | |
parent | 8c126fe314843f54ca26e495c6bf656042513bd9 (diff) |
Implemented RES instruction in new Z80 core
Diffstat (limited to 'cpu_dsl.py')
-rwxr-xr-x | cpu_dsl.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -745,6 +745,13 @@ class NormalOp: output.append(_opMap['mov'].generate(otype, prog, shortProc, shortParams, None)) else: output.append(opDef.generate(otype, prog, procParams, self.params, flagUpdates)) + for dstIdx in opDef.outOp: + dst = self.params[dstIdx] + while dst in prog.meta: + dst = prog.meta[dst] + if dst in parent.regValues: + del parent.regValues[dst] + elif self.op in prog.subroutines: procParams = [] for param in self.params: |