x86Lib is a library that fully emulates the x86 CPU and it's MMU. It is intended to be used to help create an emulator, but it can have other uses.
The x86Lib project currently only emulates a 8086, but it is planned(and designed as such) to eventually implement 386+ 32bit protected mode, FPU, and possibly CPU extensions such as MMX and SSE.