About done writing the first pass of CPU emulation