Mercurial > repos > blastem
diff z80_to_x86.c @ 1116:fe8c79f82c22
More cleanup in preparation for SMS/Mark III support
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 22 Dec 2016 10:51:33 -0800 |
parents | d1eed3b1121c |
children | 928a65750345 |
line wrap: on
line diff
--- a/z80_to_x86.c Mon Dec 19 14:16:59 2016 -0800 +++ b/z80_to_x86.c Thu Dec 22 10:51:33 2016 -0800 @@ -3120,7 +3120,7 @@ } 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 @@ //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;