The CPU code is pretty cool https://github.com/copy/v86/blob/master/src/cpu.js
These guys are my nerd-crush du jour.
The CPU code is pretty cool https://github.com/copy/v86/blob/master/src/cpu.js