From 201639b58bf8b6c3ebbed8c33778c9c9c0a691ce Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 7 Feb 2019 09:43:25 -0800 Subject: Added init functions to z80_util.c so new Z80 core is closer to a drop in replacement for the old one --- blastcpm.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'blastcpm.c') diff --git a/blastcpm.c b/blastcpm.c index 36fb3ae..5afcbae 100644 --- a/blastcpm.c +++ b/blastcpm.c @@ -107,22 +107,8 @@ int main(int argc, char **argv) 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 -- cgit v1.2.3