comparison ztestrun.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 56713dac6a69
children 8f14767661fa
comparison
equal deleted inserted replaced
1115:c1e78a101912 1116:fe8c79f82c22
87 if (fread(z80_ram, 1, filesize, f) != filesize) { 87 if (fread(z80_ram, 1, filesize, f) != filesize) {
88 fprintf(stderr, "error reading %s\n",fname); 88 fprintf(stderr, "error reading %s\n",fname);
89 exit(1); 89 exit(1);
90 } 90 }
91 fclose(f); 91 fclose(f);
92 init_z80_opts(&opts, z80_map, 2, port_map, 1, 1); 92 init_z80_opts(&opts, z80_map, 2, port_map, 1, 1, 0xFF);
93 init_z80_context(&context, &opts); 93 init_z80_context(&context, &opts);
94 //Z80 RAM 94 //Z80 RAM
95 context.mem_pointers[0] = z80_ram; 95 context.mem_pointers[0] = z80_ram;
96 if (retranslate) { 96 if (retranslate) {
97 //run core long enough to translate code 97 //run core long enough to translate code