I'm looking for some sample code that "emulates" the most frequently used math instructions(addition,subtraction,multiplication,division) and will cover all steps that a hardware based cpu processor follows.
The first thing i did was to use google and got this : https://bochs.svn.sourceforge.net/svnroot/bochs/trunk/bochs/cpu/
But its not what i want.This is an instruction wrapper/emulator while i want to see how the cpu does everything down to bit level...
..