My question is, what's the best way to implement this in PCEM? I've tried using rom_init() to load the ROM, and mem_mapping_add() to create the RAM mapping:
Code: Select all
rom_init(&sigma->bios_rom, "sigma400_bios.rom", 0xC0000, 0x2000, 0x1FFF, 0, MEM_MAPPING_EXTERNAL);
mem_mapping_add(&sigma->bios_ram, 0xC1800, 0x0800, sigma_bread, NULL, NULL, sigma_bwrite, NULL, NULL, NULL, MEM_MAPPING_EXTERNAL, sigma);