diff ztestrun.c @ 1060:56713dac6a69

Implement INI
author Michael Pavone <pavone@retrodev.com>
date Mon, 01 Aug 2016 09:48:10 -0700
parents ef7ee9919a73
children fe8c79f82c22
line wrap: on
line diff
--- a/ztestrun.c	Sun Jul 31 15:20:00 2016 -0700
+++ b/ztestrun.c	Mon Aug 01 09:48:10 2016 -0700
@@ -38,6 +38,10 @@
 	{ 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 @@
 		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;