]> git.sesse.net Git - pistorm/blobdiff - platforms/amiga/amiga-platform.c
Plug some read/write mappings directly into Musashi
[pistorm] / platforms / amiga / amiga-platform.c
index c2361e30b91d6f600e7d8049a5b7fb9f66039948..71fd2b5d1c4c1c66bf6584171950c6627adfd8a3 100644 (file)
@@ -138,7 +138,6 @@ void adjust_ranges_amiga(struct emulator_config *cfg) {
 }
 
 int setup_platform_amiga(struct emulator_config *cfg) {
-    if (cfg) {}
     printf("Performing setup for Amiga platform.\n");
     // Look for Z2 autoconf Fast RAM by id
     int index = get_named_mapped_item(cfg, z2_autoconf_id);
@@ -205,6 +204,11 @@ int setup_platform_amiga(struct emulator_config *cfg) {
         }
     }
 
+    index = get_named_mapped_item(cfg, "cpu_slot_ram");
+    if (index != -1) {
+        m68k_add_ram_range((uint32_t)cfg->map_offset[index], (uint32_t)cfg->map_high[index], cfg->map_data[index]);
+    }
+
     adjust_ranges_amiga(cfg);
     
     return 0;