for _, tag in ipairs({":maincpu", ":soundcpu", ":audiocpu"}) do local dev = manager.machine.devices[tag] if dev then for sname, space in pairs(dev.spaces) do for _, e in ipairs(space.map.entries) do emu.print_error(string.format("MAP %s %s %06X-%06X mirror=%06X r=%s w=%s share=%s", tag, sname, e.address_start, e.address_end, e.address_mirror, e.read.handlertype, e.write.handlertype, tostring(e.share))) end end end end count = 0 notifier = emu.add_machine_frame_notifier(function() count = count + 1 if count == 1 then manager.machine.video:snapshot() manager.machine:exit() end end)