Updated some of the PSW bits.
Updated interface with the rest of the machine; handles PSW.