Mercurial > repos > blastem
comparison ztestrun.c @ 819:ab017fb09e77
Added support for an IO memory map in Z80 core
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 29 Jul 2015 00:03:36 -0700 |
parents | 5bf4e77b1a43 |
children | 74cc31040521 |
comparison
equal
deleted
inserted
replaced
818:a634ed0a92cf | 819:ab017fb09e77 |
---|---|
73 if (fread(z80_ram, 1, filesize, f) != filesize) { | 73 if (fread(z80_ram, 1, filesize, f) != filesize) { |
74 fprintf(stderr, "error reading %s\n",fname); | 74 fprintf(stderr, "error reading %s\n",fname); |
75 exit(1); | 75 exit(1); |
76 } | 76 } |
77 fclose(f); | 77 fclose(f); |
78 init_z80_opts(&opts, z80_map, 2, 1); | 78 init_z80_opts(&opts, z80_map, 2, NULL, 0, 1); |
79 init_z80_context(&context, &opts); | 79 init_z80_context(&context, &opts); |
80 //Z80 RAM | 80 //Z80 RAM |
81 context.mem_pointers[0] = z80_ram; | 81 context.mem_pointers[0] = z80_ram; |
82 if (retranslate) { | 82 if (retranslate) { |
83 //run core long enough to translate code | 83 //run core long enough to translate code |