summaryrefslogtreecommitdiff
path: root/backend_x86.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-12-14 16:45:23 -0800
committerMichael Pavone <pavone@retrodev.com>2014-12-14 16:45:23 -0800
commitd07b907bc7889308890b590d2aaf88dfc44ae616 (patch)
tree273eedc41416db521869870f236f761e351c309f /backend_x86.c
parent4d15ffc63362410563a49481faf9652c138945ac (diff)
WIP effort to update z80 core for code gen changes
Diffstat (limited to 'backend_x86.c')
-rw-r--r--backend_x86.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend_x86.c b/backend_x86.c
index 3b291fe..7f75761 100644
--- a/backend_x86.c
+++ b/backend_x86.c
@@ -28,12 +28,15 @@ void check_cycles(cpu_options * opts)
*jmp_off = code->cur - (jmp_off+1);
}
-code_ptr gen_mem_fun(cpu_options * opts, memmap_chunk * memmap, uint32_t num_chunks, ftype fun_type)
+code_ptr gen_mem_fun(cpu_options * opts, memmap_chunk * memmap, uint32_t num_chunks, ftype fun_type, code_ptr *after_inc)
{
code_info *code = &opts->code;
code_ptr start = code->cur;
check_cycles(opts);
cycles(opts, opts->bus_cycles);
+ if (after_inc) {
+ *after_inc = code->cur;
+ }
if (opts->address_size == SZ_D && opts->address_mask < 0xFFFFFFFF) {
and_ir(code, opts->address_mask, opts->scratch1, SZ_D);
}