title: Recommendation for a simple x86 emulator and operating system
body: <p>As a personal learning project, I want to port an existing x86 emulator library to JavaScript and then run a very simple operating system on top of it.</p>
  
  <p>My only requirement for the library is that it should be written in C\C++, as I want to use emscripten and asm.js to compile the source files to JavaScript. The library should at least be able to interpret x86 opcodes; the specific environment details for JavaScript (memory, GUI, interrupts etc.) I can implement myself. The operating system doesn't have any requirement, as long as it is simple enough and can run on the emulator.</p>
  
  <p>So far in my research, <a href="http://softx86.sourceforge.net/" rel="noreferrer" title="softx86">Softx86</a> seems like the most viable solution, as it seems simple enough to port to JavaScript (it only does CPU emulation). The simplest 16 bit real-mode operating system I can find is <a href="http://mikeos.berlios.de/" rel="noreferrer">MikeOS</a>, the only problem being that it requires a 386 processor, which Softx86 cannot emulate and I am not sure if they are completely compatible.</p>
  
  <p>My question is if anyone knows an alternate combination of emulator-OS that is simple enough to be ported to JavaScript.</p>