Jump to content

MOS Technology file format

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Krallja (talk | contribs) at 00:53, 23 July 2020 (Start article). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

The MOS hex format is a file format that conveys binary information in ASCII text form.

History

The KIM-1 single-board computer specified a file format for magnetic tape and a format for paper tape. The paper tape format was adaptable to other ASCII file formats, and is used for computers based on the MOS Technology 6502 microprocessor.

Format

Records begin with a semicolon (;), followed by two hexadecimal digits denoting the length of the data in the record. The next two bytes represent the starting address of the data, in big-endian (most-significant byte first) hexadecimal. Up to 24 bytes of data follow. Then, there is a 2-byte (4-character) checksum, a carriage return (<CR>), and a line break (<LF>). Finally, the record ends with six null characters (<NUL>).

The last record on the paper tape is empty (its length field is 0000), with the starting address field representing the total number of data bytes contained in the transmission. The file ends with a XOFF. [1]

See also

References