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