implement the output hex/ascii