Engineering: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.[3] 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.[4]
See also
- Binary-to-text encoding, a survey and comparison of encoding algorithms
- Intel hex format
- Motorola S-record hex format
- Tektronix hex format
- Texas Instruments TI-TXT (TI Text)
References
- ↑ "1.8.5. Lochstreifen-Datenformate" (in de). Arbeitsbuch Mikrocomputer (2 ed.). Munich, Germany: Franzis-Verlag GmbH. 1987. pp. 240–243 [243]. ISBN 3-7723-8022-0.
- ↑ "srec_mos_tech − MOS Technology file format". 2014. http://srecord.sourceforge.net/man/man5/srec_mos_tech.html.
- ↑ "HEX.DOC: MOS Technology Hex Format" (in de). SIM51. 1993-02-01. http://spot.fho-emden.de/ftp/micro/sim51_04.zip. (NB. This is an older version of SIM51, the software and documentation was maintained up to 1996.)
- ↑ "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. https://archive.org/details/KIM-1_Users_Manual/page/n98/mode/1up. Retrieved 2020-07-31. [1][2]