summaryrefslogtreecommitdiff
path: root/z80_to_x86.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-12-22 10:51:33 -0800
committerMichael Pavone <pavone@retrodev.com>2016-12-22 10:51:33 -0800
commit0ce85adad77df67b6637d2160fdeccefbfd4790d (patch)
tree3d548f55290b84aac8dafae2c4a82d72dde06b99 /z80_to_x86.c
parent83b5d6a1a3d2211b824599d73d12d3f3807b2acc (diff)
More cleanup in preparation for SMS/Mark III support
Diffstat (limited to 'z80_to_x86.c')
-rw-r--r--z80_to_x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/z80_to_x86.c b/z80_to_x86.c
index 198dbe6..ee472f7 100644
--- a/z80_to_x86.c
+++ b/z80_to_x86.c
@@ -3120,7 +3120,7 @@ void translate_z80_stream(z80_context * context, uint32_t address)
} while (opts->gen.deferred);
}
-void init_z80_opts(z80_options * options, memmap_chunk const * chunks, uint32_t num_chunks, memmap_chunk const * io_chunks, uint32_t num_io_chunks, uint32_t clock_divider)
+void init_z80_opts(z80_options * options, memmap_chunk const * chunks, uint32_t num_chunks, memmap_chunk const * io_chunks, uint32_t num_io_chunks, uint32_t clock_divider, uint32_t io_address_mask)
{
memset(options, 0, sizeof(*options));
@@ -3386,7 +3386,7 @@ void init_z80_opts(z80_options * options, memmap_chunk const * chunks, uint32_t
//HACK
options->gen.address_size = SZ_D;
- options->gen.address_mask = 0xFF;
+ options->gen.address_mask = io_address_mask;
options->read_io = gen_mem_fun(&options->gen, io_chunks, num_io_chunks, READ_8, NULL);
options->write_io = gen_mem_fun(&options->gen, io_chunks, num_io_chunks, WRITE_8, NULL);
options->gen.address_size = SZ_W;