summaryrefslogtreecommitdiff
path: root/cpu_dsl.py
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2019-02-12 09:58:04 -0800
committerMichael Pavone <pavone@retrodev.com>2019-02-12 09:58:04 -0800
commit84198d4ef6e5f311945ec6f6a8956426a52795af (patch)
tree7d14ca50af2f7e7404d6846e4bd6e334c7a133fc /cpu_dsl.py
parent1b23425efd7606bf6cd509861d9b2d60e033e962 (diff)
Integration of new Z80 core is sort of working now
Diffstat (limited to 'cpu_dsl.py')
-rwxr-xr-xcpu_dsl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu_dsl.py b/cpu_dsl.py
index 605ce7a..e77fe34 100755
--- a/cpu_dsl.py
+++ b/cpu_dsl.py
@@ -696,7 +696,7 @@ _opMap = {
'sext': Op(_sext).addImplementation('c', 2, _sextCImpl),
'ocall': Op().addImplementation('c', None, lambda prog, params: '\n\t{pre}{fun}({args});'.format(
pre = prog.prefix, fun = params[0], args = ', '.join(['context'] + [str(p) for p in params[1:]])
- )),
+ ) + _updateSyncCImpl(prog, params)),
'cycles': Op().addImplementation('c', None,
lambda prog, params: '\n\tcontext->cycles += context->opts->gen.clock_divider * {0};'.format(
params[0]