Mercurial > repos > blastem
diff blastcpm.c @ 1748:48a43dff4dc0
Added init functions to z80_util.c so new Z80 core is closer to a drop in replacement for the old one
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 07 Feb 2019 09:43:25 -0800 |
parents | ca2336469397 |
children | 95e36a227c9d |
line wrap: on
line diff
--- a/blastcpm.c Wed Feb 06 09:13:24 2019 -0800 +++ b/blastcpm.c Thu Feb 07 09:43:25 2019 -0800 @@ -107,22 +107,8 @@ z80_options opts; z80_context *context; -#ifdef NEW_CORE - memset(&opts, 0, sizeof(opts)); - opts.gen.memmap = z80_map; - opts.gen.memmap_chunks = 1; - opts.gen.address_mask = 0xFFFF; - opts.gen.max_address = 0xFFFF; - opts.gen.clock_divider = 1; - context = calloc(1, sizeof(z80_context)); - context->opts = &opts; - context->io_map = io_map; - context->io_chunks = 3; - context->io_mask = 0xFF; -#else init_z80_opts(&opts, z80_map, 1, io_map, 3, 1, 0xFF); context = init_z80_context(&opts); -#endif for(;;) { #ifdef NEW_CORE