---
name: "hex2cmd"
section: "1"
platform: "linux"
package: "xtrs"
version: "4.9d-2.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/hex2cmd"
---

# hex2cmd(1)

convert Intel hex format to TRS-80 CMD format

## Name

**hex2cmd** - convert Intel hex format to TRS-80 CMD format

## Synopsis

**hex2cmd** \[*infile*\]

## Description

**hex2cmd** reads the specified *infile* (or standard input if none is given) in Intel hex format (also known as S-record format), and writes a TRS-80 CMD file to standard output. An S-record that asks for 0 bytes to be loaded at address *A* sets the transfer address (entry point) of the CMD file to *A*; otherwise the CMD file is given no transfer address.

## Author

**hex2cmd** was written by Timothy Mann.

## See also

[**xtrs**(1)](/xtrs/1.md)

The *LDOS Quarterly*, April 1, 1982 (Vol 1, No 4) ⟨http://\\:www.tim-mann.org/\\:misosys.html⟩, has documentation of the TRS-80 DOS CMD file format.
