uart: Refine hex output loop
uart: Add %c specification support
debug: Add CPSR dumping