Prepare the pasta according to the instructions on the packet and allow to drain.
Cut the cheese and the ham into cubes of the same size.
Melt the butter in a large pan and heat the pasta in it. Put the cheese and ham cubes in the pan and turn them gently over medium heat until the cheese melts.
Then season with salt and pepper and sprinkle with the dill just before serving.