summaryrefslogtreecommitdiff
path: root/ztestrun.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-08-01 09:48:10 -0700
committerMichael Pavone <pavone@retrodev.com>2016-08-01 09:48:10 -0700
commit846bdd563475770c698e1911fbb98ec99f980866 (patch)
tree9eec70cd611e5ec8fcaf6cb0c682b11f640ce6d5 /ztestrun.c
parent5b0d7f25f96901cc092184a14a3c3c69061d674b (diff)
Implement INI
Diffstat (limited to 'ztestrun.c')
-rw-r--r--ztestrun.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ztestrun.c b/ztestrun.c
index 7b4d2a4..e7b28d2 100644
--- a/ztestrun.c
+++ b/ztestrun.c
@@ -38,6 +38,10 @@ const memmap_chunk z80_map[] = {
{ 0x4000, 0x10000, 0xFFFF, 0, 0, NULL, NULL, NULL, z80_unmapped_read, z80_unmapped_write}
};
+const memmap_chunk port_map[] = {
+ { 0x0000, 0x100, 0xFF, 0, 0, NULL, NULL, NULL, z80_unmapped_read, z80_unmapped_write}
+};
+
void z80_next_int_pulse(z80_context * context)
{
context->int_pulse_start = context->int_pulse_end = CYCLE_NEVER;
@@ -85,7 +89,7 @@ int main(int argc, char ** argv)
exit(1);
}
fclose(f);
- init_z80_opts(&opts, z80_map, 2, NULL, 0, 1);
+ init_z80_opts(&opts, z80_map, 2, port_map, 1, 1);
init_z80_context(&context, &opts);
//Z80 RAM
context.mem_pointers[0] = z80_ram;