Fix accidential swap of registers, adapt the printout to register order.
Add some debug output to the PH command.