srec_mos_tech(5)
πΈ NAME πΈ
srec_mos_tech β the MOS Technology file format, bestie. This page is from the File Formats Manual, and yes itβs literally srec_mos_tech(5) β¨.
π DESCRIPTION π
The MOS Technology format lets binary files be uploaded and downloaded between between a computer system (such as a PC, Macintosh, or workstation) and an emulator or evaluation board for microcontrollers and microprocessors. No cap, thatβs the whole vibe π«Ά.
π The Lines π
Each line consists of 5 fields. These are the length field, address field, data field, and the checksum. Every line always starts with a semicolon (;) character. Periodt π
.
π¦ The Fields π¦
βββββ¬βββββββββ¬ββββββββββ¬βββββββ¬βββββββββββ¬βββββββ
β ; β Length β Address β Data β Checksum β CRLF β
βββββ΄βββββββββ΄ββββββββββ΄βββββββ΄βββββββββββ΄βββββββ
- Length β the record length field is a
2character (1byte) field that specifies the number of data bytes in the record. Typically this is24or less. - Address β this is a
2-byte address that specifies where the data in the record is to be loaded into memory, big-endian. - Data β the data field contains the executable code, memory-loadable data or descriptive information to be transferred.
- Checksum β the checksum is an
2-byte field that represents the least significant two bytes of the the sum of the values represented by the pairs of characters making up the record's length, address, and data fields, big-endian.
π End of File π
The final line should have a data length of zero, and the data line count in the address field. The checksum is not the usual checksum, it is instead a repeat of the data line count. Thatβs the end-of-file main character energy π.
π Size Multiplier π
In general, binary data will expand in sized by approximately 2.54 times when represented with this format. Yes bestie, βin sized byβ is literally what it says π.
β¨ EXAMPLE β¨
Here is an example MOS Technology format file. It contains the data βHello, Worldβ to be loaded at address 0.
;0C000048656C6C6F2C20576F726C640454
;0000010001
π COPYRIGHT π
srec_cat version 1.65 Copyright (C) 1998... Peter Miller
The srec_cat program comes with ABSOLUTELY NO WARRANTY; for details use the 'srec_cat -VERSion License' command. This is free software and you are welcome to redistribute it under certain conditions; for details use the 'srec_cat -VERSion License' command.
π«Ά MAINTAINER π«Ά
- Scott Finneran β EβMail:
scottfinneran@yahoo.com.au - Peter Miller β EβMail:
pmiller@opensource.org.au
π KIMβ1 User Manual - Appendix F - Paper Tape Format π
(The following information is reproduced from http://users.telenet.be/kim1β6502/6502/usrman.html#F just in case it vanishes from the Web.)
Okay so the paper tape LOAD and DUMP routines store and retrieve data in a specific format designed to insure error free recovery. Every byte of data to be stored gets converted to two half bytes. Those half bytes (possible values: 0 to F HEX) get translated into their ASCII equivalents and written out onto paper tape in this form.
Every record outputted starts with a ; character (ASCII 3B) to mark the start of a valid record. The next byte transmitted is (18HEX) or (24 decimal), and itβs the number of data bytes contained in the record. Then come the record's starting address High (1 byte, 2 characters), starting address Lo (1 byte, 2 characters), and data (24 bytes, 48 characters). Each record is terminated by the record's checkβsum (2 bytes, 4 characters), a carriage return (ASCII 0D), line feed (ASCII 0A), and six βNULLβ characters (ASCII 00). (NULL characters cause a blank area on the paper tape.)
The last record transmitted has zero data bytes (indicated by ;00) The starting address field is replaced by a four digit Hex number representing the total number of data records contained in the transmission, followed by the records usual checkβsum digits. An βXOFFβ character ends the transmission.
;180000FFEEDDCCBBAA0099887766554433221122334455667788990AFC
;0000010001
During a βLOADβ all incoming data is ignored until a β;β character is received. The receipt of non ASCII data or a mismatch between a records calculated checkβsum and the checkβsum read from tape will cause an error condition to be recognized by KIM. The checkβsum is calculated by adding all data in the record except the β;β character.
The paper tape format described is compatible with all other MOS Technology, Inc. software support programs. Slay π¦.
π
footer vibe check: Reference Manual Β· SRecord Β· srec_mos_tech(5) β no date in the footer, just vibes, periodt π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: srecord 1.65.0-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: srecord 1.65.0-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: srecord 1.65.0-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: srecord 1.65.0-bp160.1.12 Β· GPL-3.0-or-later
- Copyright (C) 2000, 2006-2009 Peter Miller
- Copyright (C) 1998, 2006-2009, 2014 Peter Miller
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms