Add LGHI/LG to simulator.
Clean up the set_high/low_register routines, and ensure they work irregardless
of endianness.