diff options
author | Michael Pavone <pavone@retrodev.com> | 2019-02-03 10:40:41 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2019-02-03 10:40:41 -0800 |
commit | 822f91d0a3dd99351d881868f780058949099ffe (patch) | |
tree | 09d141a46a93ddf70f642ad310f68a8b0bb24b8b /cpu_dsl.py | |
parent | 1f7eb1afff1a9b13cde11a786145ba313df3334a (diff) |
Implemented the rest of the block move instructions in new Z80 core
Diffstat (limited to 'cpu_dsl.py')
-rwxr-xr-x | cpu_dsl.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -167,7 +167,7 @@ class SubRoutine(Block): self.args.append((name, size)) elif op.op == 'local': name = op.params[0] - size = op.params[1] + size = int(op.params[1]) self.locals[name] = size else: self.implementation.append(op) @@ -339,7 +339,7 @@ def _updateFlagsCImpl(prog, params, rawParams): if prog.carryFlowDst: lastDst = prog.carryFlowDst else: - lastDst = prog.resolveParam(prog.lastDst, None, {}) + lastDst = prog.resolveParam(prog.lastDst, prog.currentScope, {}) storage = prog.flags.getStorage(flag) if calc == 'bit' or calc == 'sign' or calc == 'carry' or calc == 'half' or calc == 'overflow': myRes = lastDst |