• Please review our updated Terms and Rules here

COM to HEX Converter

jjandersoj

Experienced Member
Joined
Apr 28, 2018
Messages
79
Location
Clinton, MA
They say the mind is the first thing to go, I forgot what the second thing was.

I forgot how to do this. I want to convert a COM to HEX so I can transmit it over the console.

I know LOAD does the HEX to COM.

Anybody remember how to do this?

JA
 
PIPIO.DOC explains the process.
The receiving computer is initiated with the command:
A>A:pIP d:filename.ext=INP:
(if you are receiving data via the console, disconnect your CRT
and plug in the communications cable after PIP sends a linefeed
to your terminal).

This method sends 7-bit ASCII data, so you cannot send 8-bit
files or programs without first turning them into HEX files. This
conversion is done by the UNLOAD program from the CP/M Users'
Group, which creates a file named "d:filename.HEX" from a file
named "d:filename.COM". You can change the file type of the file
to be sent (if necessary) by renaming it:
A>REN d:filename.COM=d:filename.ext
A>

When you are ready to create the HEX file, enter the command:
A>UNLOAD d:filename 0100
A>

The sending computer is then activated with the command:
A>A:pIP OUT:=d:filename.ext,EOF:
(if you are using the console connector to send data, disconnect
your CRT and plug in the communications cable after PIP sends a
linefeed to your terminal).

Once the HEX file has been sent to the other computer, it is
turned into a file of type COM with the command:
A>LOAD d:filename
A>

You can then change its type (if necessary) by renaming it:
A>REN d:filename.ext=d:filename.COM
A>


Larry

Download, Rename to UNLOAD23.ZIP, extract, Move to CP/M and try it.
 

Attachments

  • UNLOAD23ZIP.TXT
    15.6 KB · Views: 2
Last edited:
Hi JA,

If a program, written in C, would help you with this task, I'd be happy to send it to you. It is pretty generic C. I use it on my Linux box to convert .COM to .HEX to download the .HEX to my Z80 SBCs.

Roger
 
Back
Top