comparison genesis.c @ 2272:777900eb8e15

Add address logging support to sub CPU
author Michael Pavone <pavone@retrodev.com>
date Thu, 29 Dec 2022 15:47:54 -0800
parents 3ef80963c2a7
children 9e578fd493e1
comparison
equal deleted inserted replaced
2271:3ef80963c2a7 2272:777900eb8e15
2233 if (map[i].flags & MMAP_PTR_IDX) { 2233 if (map[i].flags & MMAP_PTR_IDX) {
2234 map[i].ptr_index += cd->memptr_start_index; 2234 map[i].ptr_index += cd->memptr_start_index;
2235 } 2235 }
2236 } 2236 }
2237 cd->base = 0x400000; 2237 cd->base = 0x400000;
2238 cd->m68k->options->address_log = (ym_opts & OPT_ADDRESS_LOG) ? fopen("address_sub.log", "w") : NULL;
2238 } 2239 }
2239 info.map = gen->header.info.map = NULL; 2240 info.map = gen->header.info.map = NULL;
2240 2241
2241 m68k_options *opts = malloc(sizeof(m68k_options)); 2242 m68k_options *opts = malloc(sizeof(m68k_options));
2242 init_m68k_opts(opts, map, map_chunks, MCLKS_PER_68K, sync_components); 2243 init_m68k_opts(opts, map, map_chunks, MCLKS_PER_68K, sync_components);
2295 gen->save_storage = NULL; 2296 gen->save_storage = NULL;
2296 gen->save_type = SAVE_NONE; 2297 gen->save_type = SAVE_NONE;
2297 gen->version_reg &= ~NO_DISK; 2298 gen->version_reg &= ~NO_DISK;
2298 2299
2299 gen->expansion = cd; 2300 gen->expansion = cd;
2301 cd->m68k->options->address_log = (system_opts & OPT_ADDRESS_LOG) ? fopen("address_sub.log", "w") : NULL;
2300 gen->version_reg &= ~NO_DISK; 2302 gen->version_reg &= ~NO_DISK;
2301 cd->genesis = gen; 2303 cd->genesis = gen;
2302 setup_io_devices(config, &info, &gen->io); 2304 setup_io_devices(config, &info, &gen->io);
2303 2305
2304 uint32_t cd_chunks; 2306 uint32_t cd_chunks;