Added a callback mechanism to the CPU to update the GUI