Move debugging code to debug.c

Also move newline constant to uart.c, to be visible more widely.
inspect_memory now expects hex addr
Relocate function and call it in the new location