An explanation of how the CPU simulation works, that is from moment it starts to the moments

Question:

An explanation of how the CPU simulation works, that is from moment it starts to the moments it ends, a walk through of the source code explaining what the code does. preferably if each section or line is commented to aid understanding.
The entire code is well commented but if you still feel any problem you can contact me.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: