frames = 0 tap = emu.add_machine_frame_notifier(function() frames = frames + 1 if frames % 120 == 0 then local d = manager.machine.devices local s = string.format("F%d", frames) for _, t in ipairs({":master", ":slave", ":iomcu", ":mcu"}) do if d[t] then s = s .. string.format(" %s=%X", t, d[t].state["PC"].value) end end print(s) end if frames == 1500 then manager.machine:exit() end end)