Lots of updates to CPU emulation