MOS Technology file format

The MOS Technology file 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 adapted slightly and has been used to interchange files for computers based on the MOS Technology 6502 microprocessor.[1]

The open-source Srecord package simplified this tape format by eliminating the <NUL> and XOFF characters.[2]

Format

Each record begins 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: the sum of the other non-; data in the record. Finally, a record ends with a carriage return (<CR>), a line break (<LF>), and 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.[3]

gollark: > there is literally no reason to fight against a word's current usage when another one works fineYes there is. Lots of things are tied to the word sometimes.
gollark: Okay yes, maybe alignment sometimes.
gollark: > Or one bit in some cases.<@258639553357676545>
gollark: That's what I said.
gollark: Or one bit in some cases.

See also

References

  1. Feichtinger, Herwig (1987). "1.8.5. Lochstreifen-Datenformate: Das Intel-Hex-Format" [1.8.5. Paper tape data formats]. Arbeitsbuch Mikrocomputer [Microcomputer work book] (in German) (2 ed.). Munich, Germany: Franzis-Verlag GmbH. pp. 240–243 [243]. ISBN 3-7723-8022-0.
  2. Miller, Peter (2014) [1998]. "srec_mos_tech − MOS Technology file format". Version 1.64. Archived from the original on 2020-07-31. Retrieved 2020-07-31.
  3. "Appendix F − Paper Tape Format". KIM-1 − Microcomputer Module − User Manual (2 ed.). Norristown, Pasadena, USA: MOS Technology. August 1976. pp. F-1 − F-2. Publications Number 6500-15B. Retrieved 2020-07-31.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.