diff options
author | Michael Pavone <pavone@retrodev.com> | 2016-12-28 20:39:27 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2016-12-28 20:39:27 -0800 |
commit | 67b7c359a5a73f01eeba37af2d5fbae1027b4a7a (patch) | |
tree | f2542e2c1a6fc6ae59792e22cbc265e4267d78b6 /sms.c | |
parent | 96d5581219aec6c49fadaaf1d30623c0f2eed358 (diff) |
Remove memory map assumptions from Z80 core and move a little bit of logic to the generic backend.c so it can be shared between CPU cores
Diffstat (limited to 'sms.c')
-rw-r--r-- | sms.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -212,8 +212,7 @@ sms_context *alloc_configure_sms(void *rom, uint32_t rom_size, void *extra_rom, memcpy(info_out->map, memory_map, sizeof(memory_map)); z80_options *zopts = malloc(sizeof(z80_options)); init_z80_opts(zopts, info_out->map, 2, io_map, 4, 15, 0xFF); - sms->z80 = malloc(sizeof(z80_context)); - init_z80_context(sms->z80, zopts); + sms->z80 = init_z80_context(zopts); sms->z80->system = sms; char * lowpass_cutoff_str = tern_find_path(config, "audio\0lowpass_cutoff\0").ptrval; |