View Single Post
Old 9th Feb 2021, 8:07 pm   #569
ScottishColin
Octode
 
Join Date: May 2012
Location: Perth, Scotland
Posts: 1,762
Default Re: Non-working Commodore PET 3016

Quote:
Originally Posted by SiriusHardware View Post
Quote:
Originally Posted by dave cox View Post
hexdump ?
Maybe a bit more information? Just googling 'hexdump' gets an awful lot of hits.

To recap, the situation is that Colin has an apparently working PROM reader project which sends its ASCII hex-dump output to the Arduino serial monitor.

To get it from there and into a hex viewer, Colin is copying and pasting the output of the reader into a text editor and saving it as a file. The problem is that HxD, the hex editor he is using, does not know how to read simple 'ASCII Hex' so he needs a utility which will convert the ASCII-HEX text back to plain binary, HxD's preferred input format.
I've found xxd which will take hex files and convert to binary. So I cut and paste the output from the Serial Monitor in Arduino into Nano. Save the file as UF10001.txt. Then

xxd -r -p UF10001.txt dump.txt

will convert it to dump.txt as a binary file.

Okteta seems like a reasonable equivalent of HxD for Linux - available as a snap for Ubuntu.
ScottishColin is offline