esp = manager.machine.devices[":taito_en:esp"] frames = 0 seen = {} sub = emu.add_machine_frame_notifier(function() frames = frames + 1 if frames >= 600 and frames < 640 then seen[#seen+1] = string.format("%X", esp.state["CURPC"].value) end if frames == 640 then print("PCS " .. table.concat(seen, " ")); manager.machine:exit() end end)