summaryrefslogtreecommitdiff
path: root/z80_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'z80_util.c')
-rw-r--r--z80_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/z80_util.c b/z80_util.c
index 949d55e..9802809 100644
--- a/z80_util.c
+++ b/z80_util.c
@@ -91,7 +91,7 @@ z80_context * init_z80_context(z80_options *options)
return context;
}
-uint32_t z80_sync_cycle(z80_context *context, uint32_t target_cycle)
+void z80_sync_cycle(z80_context *context, uint32_t target_cycle)
{
if (context->iff1 && context->int_cycle < target_cycle) {
if (context->cycles > context->int_end_cycle) {
@@ -103,7 +103,7 @@ uint32_t z80_sync_cycle(z80_context *context, uint32_t target_cycle)
if (context->nmi_cycle < target_cycle) {
target_cycle = context->nmi_cycle;
}
- return target_cycle;
+ context->sync_cycle = target_cycle;
}
void z80_run(z80_context *context, uint32_t target_cycle)